/* Tervo — components. Every value comes from tokens.css.
   Page = deep teal; content lives in cream panels inset 24px from the edge (40px radius), 24px apart. */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed !important; left: 16px; top: 16px; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--paper); color: var(--text); z-index: 100; border-radius: 8px; }
.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.on-dark { color: var(--on-dark); }

/* Headline scale (h1/h2/h3 inherit the .t-* sizes) */
h1, .h1 { font-family: var(--font-display); font-size: 80px; line-height: .96; letter-spacing: -.035em; }
h2, .h2 { font-family: var(--font-display); font-size: 56px; line-height: 1.1; letter-spacing: -.03em; }
h1 .it, h2 .it, h3 .it { line-height: inherit; }
h3, .h3 { font-family: var(--font-display); font-size: 40px; line-height: 1.2; letter-spacing: -.025em; }
.h-line { display: block; }            /* a forced line in a two-line headline */

/* ── Hairline grid (the four vertical lines that run behind dark bands and the CTA) ── */
.grid-lines { position: absolute; inset: 0; pointer-events: none; }
.grid-lines .wrap { height: 100%; }
.grid-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--dark-line); }
.grid-lines i:nth-child(1) { left: 0; } .grid-lines i:nth-child(2) { left: 29.5%; } .grid-lines i:nth-child(3) { left: 71.2%; } .grid-lines i:nth-child(4) { right: 0; }
.panel .grid-lines i { background: var(--paper-line); }

/* ── Buttons: pill + lime arrow disc ── */
.btn { --h: 48px; display: inline-flex; align-items: center; gap: 12px; height: var(--h); padding: 0 6px 0 22px; border-radius: var(--r-pill); background: var(--paper); color: var(--text); font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.btn__go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; transition: transform var(--dur) var(--ease-out); }
.btn__go svg { width: 14px; height: 14px; }
.btn:hover .btn__go { transform: rotate(45deg); }
.btn:hover { background: var(--surface); }
.btn--ink { background: var(--text); color: var(--on-dark); }
.btn--ink:hover { background: #0B3A42; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .7); padding: 0 22px; }
.btn--ghost:hover { background: var(--on-dark); color: var(--text); }
.btn--plain { padding: 0 22px; }           /* no disc */
.btn--sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn--sm.btn--ink:hover { background: #0B3A42; }
.arrow-disc { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--text); flex: none; transition: transform var(--dur) var(--ease-out), background var(--dur-fast); }
.arrow-disc svg { width: 13px; height: 13px; }

/* ── Chips (eyebrow pills with a dot) ── */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 12px; border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--dark { background: var(--dark-2); color: var(--on-dark); }
.chip--dark::before { background: var(--accent); }
.chip--paper { background: var(--paper); }

/* ── Section heads ── */
.head { display: grid; gap: var(--head-gap); justify-items: start; max-width: 640px; }
.head--center { justify-items: center; text-align: center; margin-inline: auto; max-width: 820px; }
.section-head { margin-bottom: var(--head-to-content); }

/* ── Header (sits on the teal hero, never moves) ── */
.site-head { position: relative; z-index: 20; padding-top: 16px; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--on-dark); line-height: 1; justify-self: start; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.nav { display: flex; gap: 8px; }
.nav > a, .nav-item > a { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); background: var(--dark-2); border: 1px solid var(--dark-line-2); color: var(--on-dark); font-size: 15px; font-weight: 500; transition: background var(--dur-fast) var(--ease), color var(--dur-fast); }
.nav > a:hover, .nav-item > a:hover { background: #163C43; }
.nav > a[aria-current="page"], .nav-item > a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.nav-item { position: relative; }
.head-cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.head-cta .btn { --h: 40px; padding: 0 20px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--dark-2); color: var(--on-dark); place-items: center; }
.nav__toggle svg { width: 20px; height: 20px; }

/* Mega menu (opens under "Pages") */
.mega { position: absolute; left: 50%; top: calc(100% + 14px); transform: translate(-50%, 8px); width: min(1000px, 92vw); background: var(--paper); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: 1fr 1.7fr; gap: 0; box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast); color: var(--text); }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega__col { display: grid; align-content: start; gap: 12px; }
.mega__col + .mega__col { border-left: 1px solid var(--line); padding-left: 48px; margin-left: 40px; }
.mega__k { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mega__link { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px 0 6px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 17px; font-weight: 500; transition: background var(--dur-fast); }
.mega__link:hover { background: var(--paper-2); }
.mega__link .arrow-disc { width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--line); }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.mega__grid .mega__link { border-color: transparent; padding-left: 0; }
.mega__promo { margin-top: 18px; background: var(--accent); color: var(--on-accent); border-radius: var(--r); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mega__promo b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.mega__promo span { font-size: 15px; }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--on-dark); padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 32px; transform: translateY(-100%); transition: transform .45s var(--ease-out); visibility: hidden; }
.menu.is-open { transform: none; visibility: visible; }
.menu__top { display: flex; align-items: center; justify-content: space-between; }
.menu__links { display: grid; gap: 4px; }
.menu__links a { font-size: 34px; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid var(--dark-line); }

/* ── Hero (teal, centred headline, arch portrait strip) ── */
.hero { position: relative; padding: 92px 0 80px; color: var(--on-dark); }
.hero > .grid-lines { top: -64px; }
.hero__copy { position: relative; display: grid; justify-items: center; text-align: center; gap: 32px; }
.hero__copy h1 { max-width: 760px; }
.hero__lead { color: var(--on-dark-2); font-size: 20px; line-height: 1.5; max-width: 460px; }
.hero__ctas { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.strip { position: relative; margin-top: 78px; overflow: hidden; }
.strip__track { display: flex; gap: var(--gap); width: max-content; animation: tv-marquee 60s linear infinite; animation-delay: -6.5s; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__item { width: 287px; height: 460px; flex: none; border-radius: var(--r-arch); overflow: hidden; background: var(--dark-2); }
.strip__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes tv-marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* ── Cream panels ── */
.panel { position: relative; background: var(--paper); border-radius: var(--r-panel); margin: 0 var(--inset); padding: var(--section) 0; }
.panel + .panel { margin-top: var(--inset); }
.panel--flush-top { padding-top: 0; }
.band { position: relative; padding: var(--section) 0; color: var(--on-dark); }
.band + .panel, .panel + .band { margin-top: 0; }
.hero + .panel { margin-top: 0; }

/* Logo band at the top of a panel */
.logos { height: 74px; background: var(--paper-2); border-radius: var(--r-panel) var(--r-panel) 0 0; overflow: hidden; display: flex; align-items: center; margin-bottom: var(--section); }
.logos__track { display: flex; align-items: center; gap: 88px; width: max-content; animation: tv-marquee 40s linear infinite; padding-left: 88px; }
.logo-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 24px; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.logo-chip svg { width: 26px; height: 26px; flex: none; }
.logo-chip--serif { font-family: var(--font-serif); font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.logo-chip--wide { letter-spacing: .18em; font-weight: 400; text-transform: uppercase; font-size: 22px; }

/* ── Photo cards with a label (services) ── */
.pcards { display: grid; grid-template-columns: 1fr 2.083fr 1fr; gap: var(--gap); }
.pcard { position: relative; height: 428px; border-radius: var(--r); overflow: hidden; display: block; color: var(--on-dark); isolation: isolate; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s var(--ease-out); z-index: -1; }
.pcard::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, var(--scrim), rgba(3, 36, 42, 0)); z-index: -1; }
.pcard__label { position: absolute; left: 32px; right: 32px; bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; white-space: nowrap; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.pcard:hover img { transform: scale(1.04); }
.pcard:hover .arrow-disc { transform: rotate(45deg); background: var(--accent); }

/* ── Split: copy left, photo right (why choose us) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: stretch; }
.split__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.split__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 600 / 705; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__media { order: -1; }
.ticks { display: grid; }
.tick { border-left: 1px solid var(--line); padding: 4px 0 18px 24px; cursor: default; transition: border-color var(--dur) var(--ease); }
.tick:last-child { padding-bottom: 4px; }
.tick b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--text); }
.tick span { display: block; margin-top: 6px; font-size: 16px; color: var(--muted); }
.tick.is-on { border-left: 2px solid var(--line-strong); padding-left: 23px; }

/* Icon-tile list (company: why choose us) */
.icon-list { display: grid; gap: 14px; }
.icon-list li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; }
.icon-tile { width: 36px; height: 36px; border-radius: var(--r-xs); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.icon-tile svg { width: 18px; height: 18px; }

/* ── Steps: horizontal accordion of cream cards on teal ── */
.steps { display: flex; gap: var(--gap); height: 424px; }
.step { flex: 1 1 0; min-width: 0; background: var(--paper); color: var(--text); border-radius: var(--r); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; transition: flex-grow .7s var(--ease-out); cursor: pointer; }
.step.is-on { flex-grow: 1.46; cursor: default; }
.step__n { font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--faint); font-weight: 400; }
.step__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.step__t { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.step__d { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 340px; display: none; }
.step.is-on .step__d { display: block; animation: tv-in .6s var(--ease-out); }
.step__plus { width: 22px; height: 22px; color: var(--faint); flex: none; transition: transform var(--dur) var(--ease-out); }
.step.is-on .step__plus { display: none; }
.step:not(.is-on):hover .step__plus { transform: rotate(90deg); color: var(--text); }
@keyframes tv-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Stories: staggered two columns (case studies teaser) ── */
.stories { display: grid; grid-template-columns: 565fr 589fr; gap: 70px; align-items: start; }
.stories__col { display: grid; gap: 56px; }
.story-card { display: grid; gap: 0; }
.story-card__img { border-radius: var(--r); overflow: hidden; }
.story-card__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 565 / 500); }
.story-card .logo-chip { margin-top: 32px; }
.story-card h3 { margin-top: 24px; font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.story-card p { margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 470px; }

/* ── Industries: folder cards that stack as you scroll ── */
.folders { display: grid; gap: 60px; }
.folder { position: sticky; top: 24px; }
.folder__tab { width: 300px; height: 76px; border-radius: var(--r) var(--r) 0 0; background: var(--tab, var(--tint-1)); display: flex; align-items: center; padding: 0 46px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--text); margin-left: var(--tab-x, 0); }
.folder__card { background: var(--surface); border-radius: var(--r); padding: 40px; display: grid; grid-template-columns: 570px 1fr; gap: 86px; min-height: 532px; }
.folder:nth-child(1) .folder__card { border-top-left-radius: 0; }
.folder:nth-child(4) .folder__card { border-top-right-radius: 0; }
.folder__img { border-radius: var(--r-sm); overflow: hidden; position: relative; min-height: 452px; }
.folder__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.folder__copy { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 20px 0 20px; gap: 32px; }
.folder__copy p { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 400px; }
.folder--flip .folder__card { grid-template-columns: 1fr 570px; }
.folder--flip .folder__img { order: 2; }
.folder--flip .folder__copy { padding-left: 46px; }
.folder:nth-child(2) { --tab: var(--tint-2); --tab-x: 300px; }
.folder:nth-child(3) { --tab: var(--tint-3); --tab-x: 600px; }
.folder:nth-child(4) { --tab: var(--tint-4); --tab-x: calc(100% - 300px); }

/* ── Numbers: pastel bars rising out of the next panel ── */
.nums-band { padding-bottom: 0; }
.bars { display: flex; justify-content: center; align-items: flex-end; gap: var(--gap); margin-top: 90px; }
.bar-col { width: 320px; border-radius: var(--r) var(--r) 0 0; background: var(--tab, var(--tint-1)); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 44px 24px 56px; height: var(--h, 240px); text-align: center; transform-origin: bottom; }
.bar-col b { font-size: 48px; font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.bar-col span { font-size: 16px; font-weight: 500; }
.bar-col:nth-child(2) { --tab: var(--tint-2); --h: 350px; }
.bar-col:nth-child(3) { --tab: var(--tint-4); --h: 495px; }
.nums-band + .panel { margin-top: 0; }

/* ── About strip: two photos + statement ── */
.about-strip { display: grid; grid-template-columns: 384fr 200fr 588fr; gap: 0 24px; }
.about-strip__a { grid-column: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.about-strip__a .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 384 / 413; }
.about-strip__b { grid-column: 3; border-radius: var(--r); overflow: hidden; aspect-ratio: 588 / 713; }
.about-strip img { width: 100%; height: 100%; object-fit: cover; }
.about-strip__txt { display: grid; gap: 16px; padding-bottom: 6px; }
.about-strip__txt p { font-size: 18px; color: var(--text); max-width: 360px; }

/* ── FAQ ── */
.faq { width: min(740px, 100%); margin: var(--head-to-content) auto 0; display: grid; gap: 8px; }
.faq__item { background: var(--surface); border-radius: var(--r); }
.faq__q { width: 100%; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 32px; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.faq__q svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur) var(--ease-out); }
.faq__q .v { transition: opacity var(--dur-fast); }
.faq__q[aria-expanded="true"] .v { opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__q[aria-expanded="false"] + .faq__a { visibility: hidden; transition: grid-template-rows .45s var(--ease-out), visibility 0s linear .45s; }
.faq__a p { padding: 0 32px 26px; font-size: 16px; color: var(--muted); max-width: 34em; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* ── CTA panel: cream with a lime swoosh ── */
.cta { position: relative; overflow: hidden; min-height: 568px; display: flex; align-items: center; padding: 0; }
.cta__copy { position: relative; z-index: 2; display: grid; gap: 32px; justify-items: start; }
.cta__swoosh { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); z-index: 1; }

/* ── Footer ── */
.site-foot { position: relative; color: var(--on-dark); padding: 88px 0 64px; }
.site-foot .logo__mark { color: var(--accent); }
.foot__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; }
.foot__brand { display: flex; flex-direction: column; justify-content: space-between; gap: 104px; }
.foot__brand h2 { font-size: 40px; line-height: 1.2; letter-spacing: -.025em; }
.foot__brand .logo { font-size: 46px; gap: 14px; }
.foot__brand .logo__mark { width: 52px; height: 52px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px; }
.foot__cols div { display: grid; align-content: start; gap: 18px; }
.foot__k { color: var(--on-dark-3); font-size: 15px; margin-bottom: 8px; }
.foot__cols a { font-size: 15px; transition: color var(--dur-fast); }
.foot__cols a:hover { color: var(--accent); }
.foot__bottom { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; color: var(--on-dark-3); font-size: 15px; }
.socials { display: grid; justify-items: end; gap: 12px; color: var(--on-dark); font-size: 16px; }
.socials div { display: flex; gap: 6px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--dark-2); display: grid; place-items: center; transition: background var(--dur-fast), color var(--dur-fast); }
.socials a:hover { background: var(--accent); color: var(--on-accent); }
.socials svg { width: 14px; height: 14px; }

/* ── Page heroes (inner pages, teal) ── */
.page-hero { position: relative; padding: 76px 0 80px; color: var(--on-dark); }
.page-hero > .grid-lines { top: -64px; }
.page-hero__copy { display: grid; gap: 24px; justify-items: start; max-width: 780px; }
.page-hero__copy p:not(.chip):not(.meta) { color: var(--on-dark-2); font-size: 18px; max-width: 470px; }
.page-hero--center .page-hero__copy { justify-items: center; text-align: center; margin-inline: auto; max-width: 900px; }
.page-hero__media { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); margin-top: 72px; }
.page-hero__media figure { border-radius: var(--r); overflow: hidden; height: 470px; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__wide { margin: 56px auto 0; width: min(1000px, 100%); border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 1000 / 552; }
.page-hero__wide img { width: 100%; height: 100%; object-fit: cover; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: inherit; }
.meta i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.on-photo-logo { position: absolute; left: 28px; top: 24px; color: var(--on-dark); text-shadow: 0 1px 12px rgba(3, 36, 42, .45); }
.on-photo-logo .logo-chip { color: var(--on-dark); font-size: 26px; }

/* ── About intro: statement + four stats ── */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.intro__lead { font-size: 24px; line-height: 1.4; letter-spacing: -.015em; font-weight: 500; }
.intro__lead span { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 56px; }
.stat { padding: 0 32px; border-left: 1px solid var(--line); display: grid; gap: 40px; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { font-size: 56px; font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.stat span { font-size: 16px; font-weight: 500; }

/* ── Value cards on teal (middle one lime) ── */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.value { background: var(--paper); color: var(--text); border-radius: var(--r); padding: 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.value--lime { background: var(--accent); color: var(--on-accent); }
.value svg { width: 22px; height: 22px; }
.value b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.value p { margin-top: 10px; font-size: 16px; color: var(--muted); max-width: 300px; }
.value--lime p { color: var(--text); }

/* ── Team: sticky head left, portrait grid right ── */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.team__head { position: sticky; top: 40px; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.person { background: var(--surface); border-radius: var(--r); overflow: hidden; }
.person__ph { position: relative; aspect-ratio: 288 / 300; overflow: hidden; }
.person__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person__x { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: var(--r-xs); background: var(--surface); color: var(--text); display: grid; place-items: center; }
.person__x svg { width: 13px; height: 13px; }
.person__body { padding: 18px 20px 20px; }
.person__body b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.person__body span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ── Quote slider ── */
.quotes { text-align: center; display: grid; justify-items: center; }
.quotes__stage { display: grid; width: min(820px, 100%); }
.slide { grid-area: 1 / 1; display: grid; justify-items: center; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease); }
.slide.is-on { opacity: 1; visibility: visible; }
.slide blockquote { font-size: 36px; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.slide figcaption { display: grid; justify-items: center; gap: 6px; }
.slide img { width: 64px; height: 64px; border-radius: var(--r-xs); object-fit: cover; margin-bottom: 8px; }
.slide figcaption b { font-size: 17px; font-weight: 500; }
.slide figcaption span { font-size: 14px; color: var(--muted); }
.dots { display: flex; gap: 6px; margin-top: 32px; }
.dots button { width: 48px; height: 24px; position: relative; }
.dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 2px; background: var(--line); transition: background var(--dur-fast); }
.dots button[aria-current="true"]::before { background: var(--text); }

/* ── Case-study cards ── */
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.cs-card { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.cs-card__ph { position: relative; aspect-ratio: 600 / 372; overflow: hidden; }
.cs-card__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cs-card:hover .cs-card__ph img { transform: scale(1.04); }
.cs-card__ph::after, .page-hero__wide::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 46%; background: linear-gradient(rgba(3, 36, 42, .78), rgba(3, 36, 42, .3) 55%, rgba(3, 36, 42, 0)); pointer-events: none; }
.page-hero__wide .on-photo-logo { z-index: 1; }
.cs-card__ph .on-photo-logo { z-index: 1; }
.cs-card__body { padding: 28px 32px 32px; display: grid; gap: 10px; justify-items: start; flex: 1; align-content: start; }
.cs-card__body h2 { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.cs-card__body p { font-size: 16px; color: var(--muted); max-width: 470px; margin-bottom: 12px; }

/* ── Article layout (case study + blog post) ── */
.article { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: start; }
.article--solo { grid-template-columns: minmax(0, 800px); justify-content: center; }
.prose { display: grid; gap: 40px; max-width: 720px; }
.prose section { display: grid; gap: 14px; }
.prose h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.02em; font-weight: 500; }
.prose p { font-size: 17px; color: var(--muted); }
.prose .prose__lead { font-size: 20px; line-height: 1.55; color: var(--text); }
.prose ul { display: grid; gap: 10px; }
.prose li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; color: var(--muted); }
.prose li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(3, 36, 42, .15); }
.prose li b { color: var(--text); font-weight: 500; }
.prose figure { border-radius: var(--r); overflow: hidden; aspect-ratio: 800 / 530; }
.prose figure img { width: 100%; height: 100%; object-fit: cover; }
.callout { background: var(--surface); border-radius: var(--r); padding: 28px 32px; font-size: 18px; line-height: 1.5; color: var(--text); font-weight: 500; }
.share { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.share a { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.share svg { width: 13px; height: 13px; }
.facts { position: sticky; top: 40px; border-radius: var(--r); overflow: hidden; background: var(--bg); color: var(--on-dark); }
.facts__top { background: var(--accent); color: var(--on-accent); padding: 22px 28px; }
.facts__top .logo-chip { color: var(--on-accent); }
.facts dl { margin: 0; padding: 28px; display: grid; gap: 22px; }
.facts dt { font-size: 16px; font-weight: 500; }
.facts dd { margin: 6px 0 0; font-size: 15px; color: var(--on-dark-2); }

/* ── Blog ── */
.post-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: stretch; }
.post-hero__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 8px 0; }
.post-hero__copy .stack { display: grid; gap: 24px; justify-items: start; }
.post-hero__ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 1 / 1.12; }
.post-hero__ph img { width: 100%; height: 100%; object-fit: cover; }
.author { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.author b { display: block; font-weight: 500; }
.author span { color: var(--on-dark-2); font-size: 13px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--gap); }
.post { display: grid; gap: 14px; align-content: start; }
.post__ph { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 384 / 316; }
.post__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post:hover .post__ph img { transform: scale(1.04); }
.post .meta { color: var(--muted); font-size: 13px; }
.post h3 { font-size: 19px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }

/* ── Contact ── */
.contact-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: stretch; }
.contact-hero__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 236px)); gap: 12px; }
.info { background: var(--paper); color: var(--text); border-radius: var(--r); padding: 20px; display: grid; gap: 4px; min-height: 140px; align-content: space-between; }
.info i { width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--on-dark); display: grid; place-items: center; margin-bottom: 16px; }
.info i svg { width: 14px; height: 14px; }
.info b { font-size: 16px; font-weight: 500; }
.info span { font-size: 14px; color: var(--muted); }
.form-card { background: var(--paper); color: var(--text); border-radius: var(--r); padding: 40px; display: grid; gap: 22px; }
.field { display: grid; gap: 10px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid transparent; border-radius: var(--r-xs); padding: 13px 16px; transition: border-color var(--dur-fast); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { justify-self: start; border: 0; cursor: pointer; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 1224 / 582; }
.map img { width: 100%; height: 100%; object-fit: cover; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 288px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; background: var(--surface); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 340px; }
.review q { font-size: 16px; line-height: 1.5; quotes: "“" "”"; }
.review .author span { color: var(--muted); }

/* ── 404 ── */
.lost { text-align: center; display: grid; justify-items: center; gap: 24px; padding: 40px 0 120px; }
.lost__num { font-size: 260px; line-height: .8; letter-spacing: -.06em; color: var(--accent); }

/* ── Section library (variants.html only) ── */
.v-jump { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.v-jump a { padding: 6px 12px; border-radius: var(--r-pill); background: var(--dark-2); border: 1px solid var(--dark-line-2); color: var(--on-dark); font-family: var(--mono); font-size: 13px; transition: background var(--dur-fast), color var(--dur-fast); }
.v-jump a:hover { background: var(--accent); color: var(--on-accent); }
.v-var { padding: 48px 0 0; scroll-margin-top: 24px; }
.v-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 24px; padding: 14px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-2); }
.v-id { font-family: var(--mono); font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.v-name { color: var(--on-dark); font-weight: 500; font-size: 16px; }
.v-cls { width: 100%; font-family: var(--mono); font-size: 12.5px; color: var(--on-dark-3); }
.v-note { color: var(--on-dark-2); font-size: 15px; padding-bottom: 24px; }
.v-var > .panel, .v-var > .band, .v-var > .page-hero, .v-var > .hero { margin-top: 0; }
.v-cta-b { background: var(--accent); color: var(--on-accent); border-radius: var(--r); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.v-cta-b b { display: block; font-size: 28px; font-weight: 400; letter-spacing: -.025em; }
.v-cta-b span { font-size: 16px; }

/* ── Style guide (style-guide.html only) ── */
.sg { display: grid; gap: var(--gap); }
.sg-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); }
.sg-card { background: var(--surface); border-radius: var(--r); padding: 32px; display: grid; gap: 20px; align-content: start; }
.sg-card--paper { background: var(--paper-2); }
.sg-card--dark { background: var(--dark-2); color: var(--on-dark); }
.sg-k { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.sg-card--dark .sg-k { color: var(--on-dark-3); }
.sg-sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.sg-sw div { display: grid; gap: 6px; font-size: 13px; }
.sg-sw i { height: 64px; border-radius: 12px; border: 1px solid var(--line); background: var(--c); }
.sg-sw b { font-weight: 500; }
.sg-type { display: grid; gap: 14px; }
.sg-type > div { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sg-radii { display: flex; gap: 12px; flex-wrap: wrap; }
.sg-radii div { width: 76px; height: 76px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: end start; padding: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--text); }

/* ── Responsive ── */
@media (max-width: 1200px) {
  .folder__card { grid-template-columns: 1fr 1fr; gap: 48px; }
  .folder--flip .folder__card { grid-template-columns: 1fr 1fr; }
  .folder--flip .folder__copy { padding-left: 0; }
  .folder__tab { width: 25%; padding: 0 28px; }
  .folder:nth-child(2) { --tab-x: 25%; } .folder:nth-child(3) { --tab-x: 50%; } .folder:nth-child(4) { --tab-x: 75%; }
}
@media (max-width: 1024px) {
  :root { --section: 96px; }
  h1, .h1 { font-size: 64px; }
  h2, .h2 { font-size: 46px; }
  .nav { display: none; }
  .nav__toggle { display: grid; }
  .head-cta .btn { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .steps { height: auto; flex-direction: column; }
  .step { flex: none; min-height: 220px; gap: 48px; }
  .step.is-on { flex-grow: 1; }
  .step__d { display: block; }
  .step__plus { display: none; }
  .bar-col { width: 30%; }
}
@media (max-width: 820px) {
  :root { --section: 72px; --inset: 8px; --r-panel: 24px; --head-to-content: 40px; }
  h1, .h1 { font-size: 46px; line-height: 1; }
  h2, .h2 { font-size: 36px; line-height: 1.08; }
  h3, .h3 { font-size: 30px; }
  .hero { padding: 64px 0 56px; }
  .hero__lead { font-size: 18px; }
  .strip { margin-top: 48px; }
  .strip__item { width: 220px; height: 340px; border-radius: 48px; }
  .logos { margin-bottom: var(--section); height: 64px; }
  .pcards { grid-template-columns: 1fr; }
  .pcard { height: 360px; }
  .split, .stories { grid-template-columns: 1fr; gap: 40px; }
  .split__media { min-height: 0; aspect-ratio: 4 / 4.4; }
  .split--flip .split__media { order: 0; }
  .folders { gap: 32px; }
  .folder { position: static; }
  .folder__tab { width: auto; display: inline-flex; height: 52px; padding: 0 22px; font-size: 17px; margin-left: 0; }
  .folder:nth-child(n) .folder__card { border-radius: 0 var(--r) var(--r) var(--r); grid-template-columns: 1fr; gap: 24px; padding: 16px 16px 24px; min-height: 0; }
  .folder--flip .folder__img { order: 0; }
  .folder__img { min-height: 0; aspect-ratio: 4 / 3; }
  .folder__copy { padding: 0 8px; }
  .bars { gap: 8px; margin-top: 56px; }
  .bar-col { flex: 1 1 0; width: auto; padding: 24px 8px 28px; }
  .bar-col b { font-size: 32px; }
  .bar-col span { font-size: 14px; }
  .bar-col:nth-child(1) { --h: 180px; } .bar-col:nth-child(2) { --h: 240px; } .bar-col:nth-child(3) { --h: 320px; }
  .about-strip { grid-template-columns: 1fr; gap: 24px; }
  .about-strip__a, .about-strip__b { grid-column: 1; }
  .faq__q { padding: 18px 20px; font-size: 17px; min-height: 64px; }
  .faq__a p { padding: 0 20px 20px; }
  .cta { min-height: 520px; align-items: flex-start; padding-top: 64px; }
  .cta__swoosh { top: auto; bottom: 0; height: 55%; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__brand { gap: 40px; }
  .foot__brand h2 { font-size: 32px; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__bottom { flex-direction: column; margin-top: 56px; }
  .socials { justify-items: start; }
  .page-hero__media { grid-template-columns: 1fr; margin-top: 48px; }
  .page-hero__media figure { height: 300px; }
  .intro, .stats, .team, .cs-grid, .article, .post-hero, .contact-hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat b { font-size: 40px; }
  .values { grid-template-columns: 1fr; }
  .team__head { position: static; }
  .team__grid { gap: 12px; }
  .slide blockquote { font-size: 24px; }
  .facts { position: static; }
  .posts { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
  .lost__num { font-size: 140px; }
  .sg-grid { grid-template-columns: 1fr; }
  .sg-type > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 480px) {
  h1, .h1 { font-size: 40px; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
  .hero__ctas .btn--ghost { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .strip__track, .logos__track { animation: none; } }
.static .strip__track, .static .logos__track { animation: none; }
.on-photo-logo sup { display: none; }
.lost .hero__lead { font-size: 18px; }
