/* Shared by the main page, Showcase and Who we are. The segment pages keep their own copies of these styles. */
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--space-12); }
section { padding-block: var(--space-24); }
.intro { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); }
.intro .tof-tag { justify-self: start; }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Hero */
.tof-hero__slide { display: block; }
.tof-hero__slide > [data-media] { position: absolute; inset: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-8); }

[data-media] { container-type: size; }
[data-media] > img, [data-media] > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Cards link on to the segment pages */
a.tof-case { text-decoration: none; }
.tof-case .tof-frame { position: relative; }
.tof-case .tof-frame > [data-media] { position: absolute; inset: 0; }

/* Pillars and demo loops */
.tof-demo { padding: 0; }
.tof-demo.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.tof-demo.flip > :first-child { order: 2; }
.tof-demo__loop > [data-media] { position: absolute; inset: 0; }
.pillar-n { display: block; font: 500 13px/1 var(--font-mono); color: var(--accent); margin-bottom: var(--space-3); }
.ticks { margin: var(--space-6) 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font: 500 13px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-muted); }
.ticks li::before { content: "→ "; color: var(--accent); }
.more { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-6); }
.more a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; box-shadow: inset 0 -1px 0 var(--line-strong); }
.more a:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.more svg { width: 18px; height: 18px; stroke: var(--accent); }

/* The same tools in a browser, on a kiosk and on a phone */
.tof-devices { display: grid; grid-template-columns: minmax(0, 1fr) 21% 15%; gap: var(--space-6); align-items: end; }
.tof-dev { margin: 0; display: flex; flex-direction: column; align-items: center; }
.tof-dev figcaption { margin-top: var(--space-4); font: 500 12px/16px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.tof-dev .tof-frame { position: relative; overflow: hidden; background: var(--surface-alt); }
.tof-dev .tof-frame > [data-media] { position: absolute; inset: 0; }
.tof-dev__win { width: 100%; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(9,12,26,.16); }
.tof-dev__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.tof-dev__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.tof-dev__win .tof-frame { aspect-ratio: 16 / 10; border-radius: 0; }
.tof-dev__kiosk { width: 100%; padding: 6px; border-radius: 14px; background: var(--night); box-shadow: 0 24px 60px rgba(9,12,26,.2); }
.tof-dev__kiosk .tof-frame { aspect-ratio: 9 / 16; border-radius: 8px; }
.tof-dev__stand { display: block; width: 16%; height: 36px; background: linear-gradient(90deg, #1b2036, #2a3150, #1b2036); }
.tof-dev__foot { display: block; width: 62%; height: 8px; border-radius: 6px; background: #1b2036; }
.tof-dev__phone { width: 100%; padding: 5px; border-radius: 22px; background: var(--night); box-shadow: 0 24px 60px rgba(9,12,26,.2); }
.tof-dev__phone .tof-frame { aspect-ratio: 390 / 844; border-radius: 18px; }

/* Why it holds up: three loops side by side */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.trio figure { margin: 0; }
.trio h3 { margin: var(--space-6) 0 0; font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
.trio p { margin: var(--space-2) 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-body); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .tof-frame { aspect-ratio: 16 / 10; }
.split .tof-frame > [data-media] { position: absolute; inset: 0; }
.soon { margin: var(--space-6) 0 0; font: 500 16px/1.5 var(--font-sans); color: var(--ink-muted); }
.pillar-n { text-transform: uppercase; letter-spacing: .04em; }

/* The cost, side by side */
.cmp { width: 100%; border-collapse: collapse; font-size: 18px; line-height: 1.5; }
.cmp th { padding: 0 var(--space-6) var(--space-4) 0; text-align: left; font: 500 12px/16px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.cmp td { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-muted); }
.cmp td:first-child { width: 28%; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.cmp td:last-child { color: var(--ink); font-weight: 500; }
.cmp td:last-child::before { content: "→ "; color: var(--accent); }
@media (max-width: 760px) {
  .cmp thead { display: none; }
  .cmp tr { display: block; padding-block: var(--space-4); border-top: 1px solid var(--line); }
  .cmp td { display: block; width: auto !important; padding: 4px 0; border: 0; }
  .cmp td:nth-child(2)::before { content: "Usually: "; }
}

.ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.ctl div { padding: var(--space-6); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ctl b { display: block; font-size: 19px; font-weight: 600; }
.ctl span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-body); }
/* Linked tiles: the How we work steps on Who we are */
.ctl a { display: block; padding: var(--space-6); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.ctl a:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.ctl a small { display: block; margin-bottom: var(--space-3); font: 500 13px/1 var(--font-mono); color: var(--accent); }
.ctl a b::after { content: " →"; color: var(--accent); }
/* Points with an icon each: "Accurate first" on Who we are */
.points { margin: var(--space-12) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
.points b { display: block; margin-top: var(--space-3); font-size: 18px; line-height: 1.3; font-weight: 600; }
.points span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-body); }
.ic { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .points { grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-8); }
  .points li { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; align-items: start; }
  .points .ic { grid-row: 1 / span 2; }
  .points b { margin-top: 2px; }
}

/* Commitments and the named contact: Who we are and every How we work step */
.commits-band { margin: var(--space-16) 0 var(--space-6); padding: var(--space-8); background: color-mix(in srgb, var(--periwinkle) 22%, var(--surface)); }
.commits-band > .tof-tag { display: block; margin-bottom: var(--space-6); }
#how .contact-card { max-width: 560px; }
.commits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) 40px; }
.commits div { padding-top: var(--space-4); border-top: 2px solid var(--accent); }
.commits b { display: block; font-size: 19px; font-weight: 600; }
.commits span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--ink-body); }
.contact-card { display: flex; gap: var(--space-6); align-items: center; padding: var(--space-6); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.contact-card img { flex: none; width: 112px; height: 112px; object-fit: cover; background: #fff; }
.contact-card small { display: block; font: 600 14px/18px var(--font-sans); color: var(--accent); }
.contact-card b { display: block; margin-top: 4px; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.contact-card span { display: block; font-size: 16px; color: var(--ink-muted); }
.contact-card .more { margin-top: var(--space-3); }
.contact-card .more a { font-size: 16px; }
@media (max-width: 900px) { .commits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .commits { grid-template-columns: 1fr; } .commits-band { padding: var(--space-6) 20px; } .contact-card { align-items: flex-start; padding: 20px; gap: 16px; } .contact-card img { width: 80px; height: 80px; } }

/* How we work: the dotted line runs from the first step to the last */
.tof-how { padding: 0; margin: 0; }
.tof-how::before { border-top: 0; height: 2px; top: 37px; left: 38px; right: calc((100% - 3 * var(--space-6)) / 4 - 38px);
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); background-size: 16px 2px; animation: tof-how-run .9s linear infinite; }
@keyframes tof-how-run { to { background-position: 16px 0; } }
@keyframes tof-how-run-v { to { background-position: 0 14px; } }
.tof-how__icon { position: relative; z-index: 1; width: 76px; height: 76px; }
.tof-how__icon svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .tof-how::before, .tof-how li::after { animation: none; } }

.tof-ctaform h2 + p { margin: var(--space-6) 0 0; font-size: 19px; line-height: 28px; color: color-mix(in srgb, var(--on-cobalt) 85%, transparent); max-width: 30ch; }
.tof-form .sent { margin: 0; font-weight: 600; color: var(--accent); }

footer { padding-block: var(--space-12); border-top: var(--stroke-hairline) solid var(--line); font-size: 14px; color: var(--ink-muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); }

/* Editorial pass, as on the segment pages */
:root { --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --font-serif: "Source Serif 4", Georgia, serif;
  --radius-sm: 3px; --radius-md: 4px; --radius-lg: 4px; --radius-xl: 4px;
  --ink-body: color-mix(in srgb, var(--ink) 84%, var(--surface)); --grid-line: color-mix(in srgb, var(--cobalt) 17%, transparent); --grid: 112px; --page: 1440px; --gutter: clamp(24px, 6.4vw, 96px); --edge: clamp(16px, 2.8vw, 40px); }
body { font-size: 18px; line-height: 1.55; }
.wrap { max-width: var(--page); padding-inline: var(--gutter); box-sizing: border-box; }
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .tof-nav { max-width: none; height: 80px; padding-inline: var(--edge); border-bottom: 0; }
.tof-nav__links { margin-left: var(--space-12); gap: 40px; }
.tof-nav__links a { padding-block: 6px; font-size: 16px; font-weight: 500; letter-spacing: .04em; }
header.top .tof-btn, .tof-hero .tof-btn { height: auto; padding: 4px 0; gap: 8px; border-radius: 0; background: none; color: var(--ink); font: 600 17px/1.3 var(--font-sans); letter-spacing: .01em; }
header.top .tof-btn { margin-left: auto; color: var(--accent); font-size: 16px; }
header.top .tof-btn__badge, .tof-hero .tof-btn__badge { width: auto; height: auto; background: none; color: var(--accent); }
.tof-hero .tof-btn { box-shadow: inset 0 -1px 0 var(--line-strong); } .tof-hero .tof-btn:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.tof-tag { height: auto; padding: 0; border-radius: 0; background: none; color: var(--accent); font: 400 19px/1.3 var(--font-sans); }
.tof-h { font-size: clamp(44px, 4.6vw, 68px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.tof-lead, .tof-hero__sub { font-size: 21px; line-height: 1.5; letter-spacing: 0; color: var(--ink-body); max-width: 38ch; }
section { padding-block: var(--space-32); }
.hero-bg { position: relative; isolation: isolate; }
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--gx, var(--grid)) var(--gy, var(--grid)); background-position: var(--px, 0) var(--py, 0);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 44%), linear-gradient(180deg, #000 72%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 30%, #000 44%), linear-gradient(180deg, #000 72%, transparent); mask-composite: intersect; }
.tof-hero { padding-block: 112px var(--space-24); }
.tof-hero .tof-tag { display: block; margin-bottom: var(--space-6); }
.tof-hero__title { font-weight: 600; letter-spacing: -0.04em; line-height: .95; }
.tof-hero__media { border-radius: 0; box-shadow: none; }
.tof-hero__sub { color: var(--ink); }
.tof-hero__dots { margin-top: var(--space-6); gap: var(--space-8); }
.tof-hero__dots button { gap: 12px; font: 500 16px/1.3 var(--font-sans); letter-spacing: 0; color: var(--ink-muted); }
.tof-hero__dots button[aria-current="true"] { color: var(--ink); }
.tof-hero__dots i { height: 2px; border-radius: 0; background: var(--line); }
.tof-marquee { padding-block: 20px; border-color: var(--line); }
.tof-marquee__track span { font-size: 22px; line-height: 30px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-muted); }
.tof-marquee__track span::after { width: 5px; height: 5px; background: var(--line-strong); }
@media (min-width: 761px) { .tof-hero { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(40px, 5vw, 80px); } .tof-hero__title { font-size: clamp(56px, 6.2vw, 100px); } }
@media (min-width: 761px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); margin-bottom: var(--space-16); }
  .intro > .tof-tag, .intro > .tof-h { grid-column: 1; }
  .intro > .tof-lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}
/* A flat tint: a gradient band ended at its darkest edge against white */
.band { background: color-mix(in srgb, var(--cobalt) 4%, var(--surface)); }
.tof-demo { gap: clamp(40px, 6vw, 96px); }
.tof-demo + .tof-demo { margin-top: var(--space-32); }
.tof-demo p { font-size: 19px; line-height: 1.55; color: var(--ink-body); max-width: 36ch; }
.tof-case__meta b { font-size: 24px; font-weight: 600; }
.tof-case p { font-size: 16px; line-height: 1.5; color: var(--ink-body); }
.tof-how b { font-size: 22px; font-weight: 500; }
.tof-how p { margin-top: var(--space-2); font-size: 16px; line-height: 1.5; color: var(--ink-body); max-width: 30ch; }
.tof-ctaform h2 { font-weight: 600; }

@media (max-width: 900px) { .trio, .ctl { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .wrap, header.top .tof-nav { padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  section { padding-block: var(--space-16); }
  .tof-nav__links { display: none; }
  .tof-nav .tof-btn { margin-left: auto; }
  .tof-h { font-size: 38px; line-height: 1.05; }
  .tof-hero { padding-block: var(--space-8) var(--space-12); }
  .tof-hero .tof-tag { margin-bottom: var(--space-4); }
  .tof-lead, .tof-hero__sub { font-size: 18px; }
  .tof-hero__dots { gap: var(--space-3); }
  .tof-hero__dots button { font-size: 13px; }
  .hero-bg::before { -webkit-mask-image: linear-gradient(180deg, transparent 50%, #000 62%, transparent 98%); -webkit-mask-composite: source-over; mask-image: linear-gradient(180deg, transparent 50%, #000 62%, transparent 98%); mask-composite: add; }
  .tof-demo + .tof-demo { margin-top: var(--space-16); }
  .tof-demo p { font-size: 17px; }
  .tof-demo.flip { grid-template-columns: 1fr; }
  .tof-demo.flip > :first-child { order: 0; }
  .split { grid-template-columns: 1fr; }
  .tof-devices { grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-4); }
  .tof-dev:first-child { grid-column: 1 / -1; }
  .tof-dev__kiosk { width: 80%; } .tof-dev__phone { width: 64%; }
  .tof-how { gap: 0; }
  .tof-how li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-4); padding-bottom: var(--space-8); }
  .tof-how li:last-child { padding-bottom: 0; }
  .tof-how li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: 8px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--accent) 0 7px, transparent 7px 14px); background-size: 2px 14px; animation: tof-how-run-v .9s linear infinite; }
  .tof-how__icon { width: 56px; height: 56px; grid-row: 1 / span 3; }
  .tof-how__icon svg { width: 24px; height: 24px; }
  .tof-how small { margin-top: 2px; }
  .tof-how b { font-size: 19px; line-height: 25px; }
  .tof-how p { margin-top: var(--space-1); max-width: none; }
}
