/* ============================================================
   Homepage — sky-themed layout, own type system.
   All fonts self-hosted from /fonts (Geist + Geist Italic —
   all OFL-licensed). No external font dependencies.
   ============================================================ */

/* ---------- Fonts (self-hosted, OFL — files in /fonts) ----------
   Geist            → everything: body, UI, section heads, display headlines
   Geist Italic     → italic accent words       (same family, real italic — no font switch)
   Geist SemiBold   → display headlines + big stat numbers (weight 600 — heaviest cut)
   No external dependencies — fully owned + self-hosted. */

/* Body + UI */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* Italic accent words ("AI scale.", "what works") — real Geist italic */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-MediumItalic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --black: #1b1b1b;
  --white: #fff;
  --page-bg: #fff8dc;
  --accent: #4c96f7;
  --sky: #1095ed;
  --altitude: #0563e9;
  --altitude-rgb: 5, 99, 233;
  --header-height: 72px;
  /* Always 0 since viewport-fit=cover was dropped (the chosen approach:
     the page never extends under the status bar; iOS chrome is tinted by
     the root/body color instead — see html/body comments). The var and
     its calc() plumbing stay so a future PWA manifest or viewport-fit
     revival degrades gracefully. */
  --safe-top: env(safe-area-inset-top, 0px);
  /* the sky shader's bright top color: topCol at the light state,
     vec3(.10,.38,.82) → rgb(26,97,209) (see js/sky.js) — a single fixed
     color that blends into the live sky at the top of the page, so the
     inset strip and the sky behind the header read as one. */
  --inset-fill: #1a61d1;
  --row-margin: 24px;
  --content-width: 1150px;
  --page-width: 1600px;
  --fg: var(--white);
  --radius-card: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* root color = what iOS 26 Safari tints its chrome with (html is the
   fallback when body is overridden) and the letterbox color outside the
   page (landscape side bars, overscroll). The recipe: a solid html
   background-color with NO viewport-fit and NO theme-color at all. */
html { scroll-behavior: initial; background-color: #1a61d1; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  /* MUST stay transparent: #sky/#clouds are fixed at z-index -1/-2, which
     paints them above the html background but below the body's own box —
     any opaque body background hides the WebGL sky on every canvas page.
     The mobile inset color lives on html (above): iOS 26 samples the body
     first and falls back to html when the body is transparent — same
     blue either way (inner.css must never set a body background either;
     a white one made the chrome white on sheet pages). */
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* 0 without viewport-fit=cover — kept for graceful degradation only.
     In landscape the page letterboxes inside the safe area and the html
     blue fills the notch-side bars (matches the sky). */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

#sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  display: block;
}

#clouds {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

::selection { background: rgba(255,255,255,.9); color: var(--altitude); }

/* ---------- Typography utilities ---------- */
.u-h1 {
  font-family: "Geist", Arial, Helvetica, sans-serif;
  /* Geist is wider than a condensed display face — keep the size capped so
     lines fit, taller line-height so stacked lines don't collide, weight 600
     (SemiBold, the heaviest Geist cut) and tight tracking for display weight */
  font-size: min(13.5vw, 230px);
  text-transform: uppercase;
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.02em;
}
.u-h2-large {
  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.05em;
}
.cursive {
  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-style: italic;
  font-weight: 500;
}
.serif-it {
  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-style: italic;
  font-weight: 400;
}
p { font-family: "Geist", Arial, sans-serif; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;       /* reserved so the fill→border swap never shifts layout */
  font-size: .875rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .55s ease, color .55s ease,
              border-color .55s ease, opacity .3s ease;
  flex-shrink: 0;
}
/* keep label + icons above the corner glow */
.btn > * { position: relative; z-index: 1; color: inherit; }
/* soft aesthetic glow blooming from the top-right + bottom-left corners */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(125,182,255,.95) 0%, rgba(125,182,255,.45) 35%, transparent 75%),
    radial-gradient(120% 120% at 0% 100%, rgba(76,150,247,.95) 0%, rgba(76,150,247,.45) 35%, transparent 75%);
}
.btn:hover::after { opacity: 1; }

/* --- white fill: dissolves into a clean outline on hover --- */
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }

/* dark stays dark — the sky glow blooms inside it, the night-sky
   inverse of .btn-primary's dissolve */
.btn-dark { background: var(--black); color: var(--white); border-radius: 8px; border-color: var(--black); }
.btn-dark::after {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(125,182,255,.8) 0%, rgba(76,150,247,.3) 35%, transparent 75%),
    radial-gradient(120% 120% at 0% 100%, rgba(5,99,233,.85) 0%, rgba(5,99,233,.35) 35%, transparent 75%);
}
.btn-dark:hover { border-color: rgba(76,150,247,.7); }

.btn-glass {
  background: rgba(255,255,255,.85);
  color: var(--black);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.85);
}
.btn-glass:hover { background: rgba(255,255,255,.08); color: var(--black); border-color: rgba(27,27,27,.4); }

/* --- outline + ghost: stay a border, just gain the corner glow --- */
.btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-ghost { color: var(--white); }
.btn-ghost:hover { border-color: rgba(255,255,255,.35); }

.btn-lg { height: 44px; padding: 0 22px; font-size: 1rem; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after { transition-duration: .15s; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  /* the border IS the safe-area fill: it pushes the nav row (and the
     blur/scrim pseudos, which hang off the padding box) below the notch,
     while painting the strip itself solid --inset-fill */
  height: calc(var(--header-height) + var(--safe-top));
  border-top: var(--safe-top) solid var(--inset-fill);
  /* seam bridge: the strip ends hard but the scrim under it is only ~65%
     opaque there, which draws a faint line against the sky. This short
     solid→transparent fade hangs off the strip and dissolves the edge.
     Sized by the inset, so it's 0 (nonexistent) on desktop. */
  background: linear-gradient(180deg, var(--inset-fill), transparent) 0 0 / 100% calc(var(--safe-top) * 1.2) no-repeat;
  display: flex;
  align-items: center;
  z-index: 100;
  /* border-color snaps rather than eases: the bridge gradient can't
     transition, and a strip mid-blend against a finished bridge would
     show its own seam */
  transition: all .85s cubic-bezier(.22,1,.36,1), border-color 0s;
  pointer-events: none;
}
/* Frosted glass: a backdrop blur that fades out with eased mask stops —
   full strength behind the nav, dissolving to nothing below it, so the
   blur has no visible bottom edge. */
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 -70% 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom,
    #000 0,
    #000 35%,
    rgba(0,0,0,.813) 45%,
    rgba(0,0,0,.651) 52%,
    rgba(0,0,0,.512) 58%,
    rgba(0,0,0,.3944) 64%,
    rgba(0,0,0,.2963) 70%,
    rgba(0,0,0,.216) 75%,
    rgba(0,0,0,.1517) 80%,
    rgba(0,0,0,.1016) 85%,
    rgba(0,0,0,.064) 89%,
    rgba(0,0,0,.037) 92%,
    rgba(0,0,0,.019) 95%,
    rgba(0,0,0,.008) 97%,
    rgba(0,0,0,.0024) 99%,
    transparent 100%);
          mask-image: linear-gradient(to bottom,
    #000 0,
    #000 35%,
    rgba(0,0,0,.813) 45%,
    rgba(0,0,0,.651) 52%,
    rgba(0,0,0,.512) 58%,
    rgba(0,0,0,.3944) 64%,
    rgba(0,0,0,.2963) 70%,
    rgba(0,0,0,.216) 75%,
    rgba(0,0,0,.1517) 80%,
    rgba(0,0,0,.1016) 85%,
    rgba(0,0,0,.064) 89%,
    rgba(0,0,0,.037) 92%,
    rgba(0,0,0,.019) 95%,
    rgba(0,0,0,.008) 97%,
    rgba(0,0,0,.0024) 99%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Eased gradient scrim on the header. Runs from solid color
   above the viewport to fully transparent ~1.4× header height down, with
   smoothstep stops so there's no visible edge. */
.header::after {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 200%;
  background: linear-gradient(to top,
    rgba(var(--altitude-rgb), 0) 0,
    rgba(var(--altitude-rgb), .0003) 6.7%,
    rgba(var(--altitude-rgb), .0024) 13.3%,
    rgba(var(--altitude-rgb), .008) 20%,
    rgba(var(--altitude-rgb), .019) 26.7%,
    rgba(var(--altitude-rgb), .037) 33.3%,
    rgba(var(--altitude-rgb), .064) 40%,
    rgba(var(--altitude-rgb), .1016) 46.7%,
    rgba(var(--altitude-rgb), .1517) 53.3%,
    rgba(var(--altitude-rgb), .216) 60%,
    rgba(var(--altitude-rgb), .2963) 66.7%,
    rgba(var(--altitude-rgb), .3944) 73.3%,
    rgba(var(--altitude-rgb), .512) 80%,
    rgba(var(--altitude-rgb), .651) 86.7%,
    rgba(var(--altitude-rgb), .813) 93.3%,
    rgba(var(--altitude-rgb), 1) 100%);
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.header > * { position: relative; z-index: 2; pointer-events: auto; }
.header-grid {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  /* the header is fixed, so body's safe-area padding doesn't reach it */
  padding: 0 max(var(--row-margin), env(safe-area-inset-right))
           0 max(var(--row-margin), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.nav-item { position: relative; display: flex; align-items: center; height: var(--header-height); }
.nav-item > a {
  display: flex; align-items: center; gap: 6px;
  font-size: .875rem;
}
.nav-item .chev { width: 14px; height: 14px; transition: rotate .3s; }
.nav-item:hover .chev { rotate: 180deg; }
.nav-item > a span {
  position: relative;
  transition: opacity .25s;
}
.nav-item > a span::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-item > a:hover span::after,
.nav-item.has-sub:hover > a span::after { transform: scaleX(1); }

.nav-sub {
  position: absolute;
  top: calc(var(--header-height) - 10px);
  left: -20px;
  min-width: 300px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(27,27,27,.06);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(10,40,90,.06),
    0 12px 32px rgba(10,40,90,.12),
    0 32px 80px rgba(10,40,90,.18);
  opacity: 0;
  scale: .97;
  translate: 0 -8px;
  transform-origin: top left;
  transition: opacity .3s, scale .3s, translate .3s;
  pointer-events: none;
}
.nav-item:hover .nav-sub { opacity: 1; scale: 1; translate: 0 0; pointer-events: auto; }
.nav-sub a:not(.btn) {
  color: var(--black);
  font-size: .9375rem;
  line-height: 1.3;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background-color .2s, opacity .2s;
}
/* dim siblings while one link is hovered — keeps focus on the active row */
.nav-sub:hover a:not(.btn) { opacity: .55; }
.nav-sub a:not(.btn):hover { background: rgba(27,27,27,.05); opacity: 1; }
/* the "view all" CTA is a standard .btn — only its placement lives here */
.nav-sub .btn { margin: 8px 0 2px; }
.nav-sub-label {
  color: rgba(27,27,27,.45);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px 10px;
  font-family: "Geist", sans-serif;
}

.header-logo { display: flex; justify-content: center; align-items: center; }
.logo-svg { width: 80px; height: auto; color: var(--white); }
.header-ctas { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

/* ---------- Mobile menu (≤900px; toggle hidden on desktop) ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--white);
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .25s ease;
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* full-screen overlay in the site's own sky: gradient matches the shader's
   top-of-page colors so opening the menu reads as the sky coming forward */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99; /* under the header (100): logo + toggle stay on top */
  background: linear-gradient(180deg, #1a61d1 0%, #2e8de4 70%, #57a8ef 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.mobile-menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + var(--safe-top) + 16px)
           max(28px, env(safe-area-inset-right))
           calc(40px + env(safe-area-inset-bottom))
           max(28px, env(safe-area-inset-left));
}
/* top-level rows — accordion heads and plain links share one look,
   mirroring the desktop nav's top level */
.mm-acc-head,
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.mm-acc-head .chev {
  width: 18px;
  height: 18px;
  opacity: .7;
  transition: rotate .4s cubic-bezier(.22,1,.36,1);
}
.mm-acc.open .mm-acc-head .chev { rotate: 180deg; }
/* collapsible panel: 0fr→1fr grid rows, animatable without measuring */
.mm-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.22,1,.36,1);
}
.mm-acc.open .mm-acc-panel { grid-template-rows: 1fr; }
.mm-acc-list {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mm-acc-list a:not(.btn) {
  font-size: 1.05rem;
  padding: 9px 0 9px 14px;
  opacity: .92;
}
/* the "view all" CTA is a standard .btn — only its placement lives here */
.mm-acc-list .btn { align-self: flex-start; margin: 8px 0 16px 14px; }
.mm-acc-list > a:not(.btn):last-child { padding-bottom: 16px; }
.mm-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  padding: 12px 0 5px 14px;
}
.mm-ctas {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* rows ride in as a cascade (delay only while opening — closing snaps
   everything out with the overlay fade) */
.mobile-menu-inner > * {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .6s cubic-bezier(.22,1,.36,1), translate .6s cubic-bezier(.22,1,.36,1);
}
body.menu-open .mobile-menu-inner > * { opacity: 1; translate: 0 0; }
body.menu-open .mobile-menu-inner > *:nth-child(1) { transition-delay: .07s; }
body.menu-open .mobile-menu-inner > *:nth-child(2) { transition-delay: .11s; }
body.menu-open .mobile-menu-inner > *:nth-child(3) { transition-delay: .15s; }
body.menu-open .mobile-menu-inner > *:nth-child(4) { transition-delay: .19s; }
body.menu-open .mobile-menu-inner > *:nth-child(5) { transition-delay: .23s; }
body.menu-open .mobile-menu-inner > *:nth-child(6) { transition-delay: .27s; }
body.menu-open .mobile-menu-inner > *:nth-child(7) { transition-delay: .31s; }
@media (min-width: 901px) {
  .mobile-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu-inner > *, .mm-acc-panel, .mm-acc-head .chev {
    transition-duration: .15s;
    transition-delay: 0s !important;
    translate: 0 0;
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: calc(var(--row-margin) * 4) var(--row-margin);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centered group: headline + sub + CTA + stats, biased slightly above true center */
  justify-content: center;
  padding-top: calc(var(--header-height) + var(--safe-top));
  padding-bottom: 6svh;
  gap: 48px;
}
.hero-text { text-align: center; }
.hero-text .u-h2-large { font-size: clamp(2.5rem, 3.9vw, 3.5rem); }
.hero-sub {
  margin-top: 18px;
  margin-inline: auto;
  max-width: 46ch;
  font-size: 1.125rem;
  line-height: 1.5;
  opacity: .85;
}
.hero-cta { margin-top: 28px; display: flex; justify-content: center; }

/* Hero stats — quiet proof row under the CTA */
.hero-stats { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); margin-top: 64px; }
.stat { text-align: center; }
.stat-num { display: block; font-family: "Geist", Arial, sans-serif; font-weight: 600; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -.01em; opacity: .92; }
.stat-num em { font-family: "Geist", Arial, sans-serif; font-style: italic; font-weight: 500; font-size: .55em; margin-left: .04em; }
.stat-label { display: block; margin-top: 8px; font-size: .85rem; opacity: .7; }
.stat-divider { width: 1px; height: clamp(36px, 4vw, 52px); background: rgba(255,255,255,.3); }
/* mobile: same proof row, miniaturized — stacking it vertically made the
   hero a tall column and lost the desktop read */
@media (max-width: 760px) {
  .hero-stats { gap: 14px; margin-top: 44px; align-items: flex-start; }
  .stat { flex: 1 1 0; min-width: 0; }
  .stat-num { font-size: clamp(24px, 7vw, 32px); }
  .stat-label { font-size: .72rem; line-height: 1.35; margin-top: 6px; }
  .stat-divider { height: 44px; margin-top: 2px; }
}

.demo-frame {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(8,40,90,.45);
  background: #f5f7fa;
}
.demo-frame video { width: 100%; display: block; }
.demo-frame-sm { width: min(860px, 84vw); margin: 40px auto 0; border-radius: 12px; }

/* ---------- Logos / marquees ---------- */
.logos { text-align: center; padding-top: calc(var(--row-margin) * 6); }
.logos-title {
  font-family: "Geist", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  margin-bottom: 40px;
}
.marquee-group { display: flex; flex-direction: column; gap: 36px; }
.marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.marquee-inner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 80px;
  padding-right: 80px;
  will-change: transform;
}
.marquee-inner img {
  height: 30px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: .9;
}
.marquee-inner span {
  font-family: "Geist", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--white);
  opacity: .9;
}
.stack { text-align: center; padding-bottom: calc(var(--row-margin) * 6); }
.stack .marquee-inner img { filter: none; opacity: 1; height: 34px; background: rgba(255,255,255,0); }

/* ---------- Supersize text ---------- */
.supersize {
  padding: calc(var(--row-margin) * 8) var(--row-margin);
  overflow: hidden;
}
.supersize .u-h1 {
  width: 100%;
  /* longest line ("YOU RUN THE BUSINESS.") is 21 chars vs the hero's 14 —
     scale down so it stays on one line, same cap ratio as the base u-h1 */
  font-size: min(9vw, 155px);
}

/* ---------- Tabbed demos ---------- */
.tabbed { text-align: center; padding-top: calc(var(--row-margin) * 5); }
.tabbar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(120,160,215,.44);
  border: 1px solid rgba(255,255,255,.18);
  margin-bottom: 64px;
}
.tabbar-item {
  position: relative;
  padding: 9px 22px;
  border-radius: 9px;
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  overflow: hidden;
  transition: background-color .35s, color .35s;
}
.tabbar-item.is-active { background: var(--white); color: var(--black); }
.tab-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  /* scaleX, not width: a width animation dirties layout every frame for
     13s straight, which turns every scroll-position read into a forced
     reflow — the cause of jumpy scrolling around this section */
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--altitude);
  border-radius: 2px;
}
.tabbar-item.is-active .tab-progress { animation: tabProgress 13s linear forwards; }
@keyframes tabProgress { from { transform: scaleX(0) } to { transform: scaleX(1) } }

/* panels stack in one grid cell so the section keeps the height of the
   tallest panel — display:none/block swaps changed the document height on
   every 13s rotation, which made the cloud layer rebuild and flicker */
.tab-panels { display: grid; position: relative; }
.tab-panel {
  grid-area: 1 / 1;
  visibility: hidden;
}
.tab-panel.is-active {
  visibility: visible;
  /* on .is-active (not .tab-panel) so re-adding the class restarts it */
  animation: panelIn .6s cubic-bezier(.22,1,.36,1);
}
/* heading leads (word cascade, main.js playWords), sub and demo follow —
   `backwards` holds them invisible through their delay. Restarted by the
   same .is-active re-add that restarts panelIn. */
.tab-panel.is-active .tab-sub { animation: panelIn .9s cubic-bezier(.22,1,.36,1) .4s backwards; }
.tab-panel.is-active .demo-frame { animation: panelIn .9s cubic-bezier(.22,1,.36,1) .65s backwards; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-panel .u-h2-large { font-size: clamp(2rem, 3.5vw, 3.25rem); max-width: 880px; margin: 0 auto; }
.tab-sub {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: 1rem;
  color: rgba(255,255,255,.92);
}

/* ---------- Bento ---------- */
.bento { padding-top: calc(var(--row-margin) * 7); }
.bento-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.bento-head .u-h2-large { font-size: clamp(2.25rem, 3.7vw, 3.5rem); }
.bento-head p { margin-top: 20px; color: rgba(255,255,255,.92); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: var(--content-width);
  margin: 0 auto;
}
.card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-card);
  /* backdrop blur over the animated sky canvas re-filters every visible
     card per frame — watch for scroll jank; drop the blur if it returns */
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22);
  overflow: hidden;
  min-height: 280px;
}
.card-third { grid-column: span 2; min-height: 200px; }
.card-wide { grid-column: span 6; flex-direction: row; align-items: flex-end; }
.card h5 {
  font-family: "Geist", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.card p { font-size: .9rem; color: rgba(255,255,255,.88); max-width: 420px; }
.card-img { margin: 0 -28px -28px; }
.card-img img { width: 100%; border-radius: 0; }

.card-iridescent {
  background:
    radial-gradient(120% 160% at 12% 20%, rgba(244,140,180,.45) 0%, rgba(244,140,180,0) 45%),
    radial-gradient(110% 150% at 50% 0%, rgba(250,220,130,.40) 0%, rgba(250,220,130,0) 50%),
    radial-gradient(120% 160% at 88% 30%, rgba(120,230,170,.40) 0%, rgba(120,230,170,0) 50%),
    rgba(255,255,255,.18);
  min-height: 220px;
}
.iridescent-title { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin-bottom: 6px; line-height: 1.1; }
.iridescent-sub {
  font-family: "Geist", Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: var(--white);
}

/* ---------- Process: numbered editorial rows (Discover / Implement / Partner) ----------
   Normal-flow replacement for the old pinned word stack: each row is
   number | word | description on a hairline divider, revealed once on
   entry via data-reveal. Word sits in Geist like the section headings. */
.process { padding-top: calc(var(--row-margin) * 6); padding-bottom: calc(var(--row-margin) * 6); }
.process-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.process-head .u-h2-large { font-size: clamp(2.25rem, 3.7vw, 3.5rem); }
.process-head p { margin-top: 20px; color: rgba(255, 255, 255, .92); }
/* rows sit on one frosted panel (same glass as .card) — hairlines and
   body text were hard to read directly over the moving sky */
.process-panel {
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 6px 40px;
}
.process-row {
  display: grid;
  grid-template-columns: 96px 1fr 1fr;
  align-items: baseline;
  gap: 32px;
  padding: 44px 8px;
}
.process-row + .process-row { border-top: 1px solid rgba(255, 255, 255, .3); }
.process-num {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  opacity: .6;
}
.process-word {
  font-family: "Geist", Arial, Helvetica, sans-serif;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.05em;
}
.process-sub {
  max-width: 480px;
  font-size: 1rem;
  color: rgba(255, 255, 255, .95);
  justify-self: end;
}

/* ---------- Reviews ---------- */
.reviews { padding-top: calc(var(--row-margin) * 6); }
.reviews-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.reviews-head .u-h2-large { font-size: clamp(2.25rem, 3.7vw, 3.5rem); }
.reviews-head p { margin-top: 20px; color: rgba(255,255,255,.92); }

/* featured quote fills the left column for two rows, the two short ones
   stack on the right — balances OPTRON's long quote against the others */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  max-width: var(--content-width);
  margin: 0 auto;
}
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-card);
  /* same glass recipe as the bento cards — see the blur note there */
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22);
  overflow: hidden;
}
.review-featured { grid-row: span 2; }
/* oversized serif quote mark as a watermark behind the text */
.review-card::before {
  content: "\201C";
  position: absolute;
  top: -8px; right: 18px;
  font-family: "Geist", Arial, sans-serif;
  font-style: italic;
  font-size: 7.5rem;
  line-height: 1;
  color: var(--white);
  opacity: .16;
  pointer-events: none;
}
.review-card blockquote {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,.94);
  max-width: 52ch;
}
.review-featured blockquote {
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -.01em;
}
.review-card figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.review-who { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-weight: 500; font-size: .95rem; }
.review-role { font-size: .82rem; opacity: .7; }
.review-logo { height: 24px; width: auto; opacity: .9; flex-shrink: 0; }
.reviews-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq { padding-top: calc(var(--row-margin) * 6); }
.faq-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.faq-head .u-h2-large { font-size: clamp(2.25rem, 3.7vw, 3.5rem); }
.faq-head p { margin-top: 20px; color: rgba(255,255,255,.92); }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: var(--radius-card);
  /* same glass recipe as the bento cards — see the blur note there */
  background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.22);
  overflow: hidden;
  transition: background-color .35s ease;
}
.faq-item.open { background: rgba(255,255,255,.22); }
/* the h3 wraps the button (a heading inside a button is invalid HTML);
   the button inherits its type styles via font: inherit */
.faq-item h3 {
  font-family: "Geist", Arial, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
}
/* plus that folds into a minus — two strokes, one rotates away */
.faq-ico {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: .8;
}
.faq-ico::before,
.faq-ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--white);
  translate: -50% -50%;
  transition: rotate .45s cubic-bezier(.22,1,.36,1);
}
.faq-ico::after { rotate: 90deg; }
.faq-item.open .faq-ico::after { rotate: 0deg; }
/* collapsible answer: 0fr→1fr grid rows, animatable without measuring
   (same trick as the mobile menu accordions) */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-a-inner p {
  padding: 0 24px 22px;
  max-width: 64ch;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}
.faq-a-inner p + p { padding-top: 0; margin-top: -10px; }
.faq-cta { display: flex; justify-content: center; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-ico::before, .faq-ico::after, .faq-item { transition-duration: .15s; }
}

/* ---------- CTA / form ---------- */
.cta { text-align: center; padding-top: calc(var(--row-margin) * 6); }
.cta-head .u-h2-large { font-size: clamp(2.25rem, 3.7vw, 3.5rem); }
.cta-head p { max-width: 460px; margin: 22px auto 0; color: rgba(255,255,255,.95); }
.cta-form {
  width: min(640px, 92vw);
  margin: 48px auto 0;
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  box-shadow: 0 40px 120px rgba(8,40,90,.35);
}
.form-row { display: flex; gap: 14px; }
.form-row > * { flex: 1; }
.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: .9rem;
  color: var(--black);
  background: #f3f3f3;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  appearance: none;
  transition: border-color .25s, background-color .25s;
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid #1b1b1b;
  border-bottom: 1.5px solid #1b1b1b;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.cta-form textarea { resize: vertical; }
.budget-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.budget-field legend { font-size: .8rem; color: #6a6a6a; padding: 0; margin-bottom: 8px; }
.budget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.budget-pill { position: relative; display: block; }
.budget-pill input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.budget-pill span {
  display: block;
  text-align: center;
  font-family: "Geist", sans-serif;
  font-size: .9rem;
  color: var(--black);
  background: #f3f3f3;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.budget-pill:hover span { border-color: #cfcfcf; }
.budget-pill input:checked + span { border-color: var(--accent); background: #fff; color: var(--accent); font-weight: 500; }
.budget-pill input:focus-visible + span { border-color: var(--accent); }
.cta-form .btn-dark { margin-top: 6px; width: 100%; }
.form-legal {
  font-size: .75rem;
  color: #8a8a8a;
  text-align: center;
}
.form-legal a { text-decoration: underline; }
.form-status {
  font-family: "Geist", sans-serif;
  font-size: .85rem;
  line-height: 1.45;
  color: #6a6a6a;
  margin: 0;
}
.form-status.is-error { color: #c0392b; }
.cta-form button[disabled] { opacity: .6; cursor: progress; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success h3 {
  font-size: 1.4rem;
  color: var(--black);
  margin: 0 0 8px;
}
.form-success p {
  font-family: "Geist", sans-serif;
  font-size: .95rem;
  color: #6a6a6a;
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  --hill-h: clamp(170px, 28vw, 360px);
  position: relative;
  /* generous top headroom: keeps the flying logo's landing zone clear of the
     CTA form above, so the flight happens over open sky */
  padding: clamp(180px, 24vh, 280px) var(--row-margin) 0;
  text-align: center;
  overflow: hidden;
}
.footer-logo { display: flex; justify-content: center; margin-bottom: 64px; }
.logo-svg-big { width: min(300px, 50vw); color: var(--white); }

/* the one shared logo (js/main.js logoFlight): a fixed copy that lives in
   the header at the top of the page and glides down into the footer slot
   as the page bottoms out. The header/footer imgs are invisible
   placeholders that define its two endpoints. */
.logo-flight {
  position: fixed;
  top: 0; left: 0;
  margin: 0;
  z-index: 100;
  pointer-events: none;
  will-change: transform;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  /* desktop: let the block sit lower, into the hill band's open sky —
     the crest dips at center so the content clears the grass */
  padding-bottom: calc(var(--hill-h) - 56px);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: .875rem; opacity: .92; transition: opacity .2s; }
.footer-links a:hover { opacity: .6; }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-top: 6px; }
.footer-social a { display: inline-flex; padding: 4px; opacity: .92; transition: opacity .2s; }
.footer-social a:hover { opacity: .6; }
.footer-social svg { width: 18px; height: 18px; }
.footer-copy {
  font-size: .8rem;
  opacity: .75;
  margin-top: 10px;
}

/* grass hill — one pre-rendered painterly strip (assets/grass-hill.webp,
   built by scripts/make-grass-hill.py: white sky keyed to alpha + graded
   into the scene, so the hazy crest blends into the live sky/clouds
   behind it). Static composited layer — zero per-frame cost. `cover` +
   `top center` keeps the crest and crops surplus foreground when wide. */
.grass {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: var(--hill-h);
  background-image: url("../assets/grass-hill.webp");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

/* ---------- Reveal helper ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Word-by-word reveal (main.js wordReveals) ----------
   Statement-text look: every word sits at 10% opacity / 98% scale
   until the heading enters the viewport, then the words light up once in
   a cascade — JS sets a per-word transition-delay (i×45ms) and this .75s
   bezier carries each one in. The .w spans only exist once JS has split
   the heading, so the text renders whole without JS or reduced motion. */
[data-words] .w {
  display: inline-block;
  opacity: .1;
  scale: .98;
  transform-origin: 0 50%;
  transition:
    opacity .75s cubic-bezier(.22, 1, .36, 1),
    scale .75s cubic-bezier(.22, 1, .36, 1),
    translate .75s cubic-bezier(.22, 1, .36, 1);
}
[data-words] .w.on { opacity: 1; scale: 1; }
/* hero h1: slower, statelier cascade than the in-page headings (pacing in
   index.html: data-words-delay / data-words-stagger) — and unlike them the
   words start fully invisible and rise into place: a 10% ghost up front
   would spoil the title before the entrance plays */
.hero-text [data-words] .w {
  transition-duration: 1.6s;
  opacity: 0;
  translate: 0 0.45em;
}
/* opacity repeated here: the hero base rule above out-cascades the generic
   .w.on (equal specificity, later in file) and would pin the words at 0 */
.hero-text [data-words] .w.on { opacity: 1; translate: 0 0; }

/* ---------- Supersize lines (main.js supersizeFill) ----------
   Animated fill: the line slides up into its slot while a
   full-color clone wipes in bottom-to-top through a gradient mask,
   over a 20%-opacity ghost. One --progress var per line drives both.
   Defaults to 1 so the text is whole without JS / reduced motion. */
.split-line {
  --progress: 1;
  display: block;
  position: relative;
  overflow: hidden;
  translate: 0 calc((1 - var(--progress)) * 100%);
}
.split-line .line-base { display: block; color: rgba(255,255,255,.2); }
.split-line .line-fill {
  position: absolute;
  inset: 0;
  color: var(--white);
  --top: calc(100% - var(--progress) * 150%);
  --bottom: calc(100% - var(--progress) * 100%);
  -webkit-mask-image: linear-gradient(transparent var(--top), #000 var(--bottom));
          mask-image: linear-gradient(transparent var(--top), #000 var(--bottom));
}

/* offscreen demo stages / bento minis (main.js pauseOffscreenAnims) —
   halts their infinite keyframes so they stop costing paint time */
.anim-off, .anim-off * { animation-play-state: paused !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-grid { grid-template-columns: auto 1fr; }
  .header-logo { justify-content: flex-start; }
  .header-ctas { gap: 10px; }
  .menu-toggle { display: flex; }
  /* CTA lives inside the open menu (.mm-ctas) — fade the header copy out
     so it doesn't show twice while the overlay is up */
  .header-ctas .btn-primary { transition: opacity .3s ease, visibility .3s; }
  body.menu-open .header-ctas .btn-primary { opacity: 0; visibility: hidden; }
  .bento-grid { grid-template-columns: 1fr; }
  .card, .card-third, .card-wide { grid-column: span 1; }
  .reviews-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .review-featured { grid-row: auto; }
  .card-wide { flex-direction: column; align-items: flex-start; }
  .form-row { flex-direction: column; }
  .u-h1 { font-size: 17vw; }
  .supersize .u-h1 { font-size: 11vw; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; --row-margin: 20px; }

  /* hero: same composition, tightened vertical rhythm */
  .hero { gap: 36px; padding-bottom: 8svh; }
  .hero-text .u-h2-large { font-size: clamp(2.1rem, 8.6vw, 2.6rem); }
  .hero-sub { font-size: 1.05rem; max-width: 32ch; margin-top: 14px; }
  .hero-cta { margin-top: 22px; }

  /* large section headings share one mobile scale */
  .tab-panel .u-h2-large,
  .bento-head .u-h2-large,
  .process-head .u-h2-large,
  .reviews-head .u-h2-large,
  .faq-head .u-h2-large,
  .cta-head .u-h2-large { font-size: clamp(1.9rem, 7.8vw, 2.6rem); }
  .tab-sub, .bento-head p, .process-head p, .reviews-head p, .faq-head p, .cta-head p, .process-sub { font-size: .95rem; }

  .logos { padding-top: calc(var(--row-margin) * 5); }
  .logos-title { margin-bottom: 28px; }
  .marquee-inner { gap: 48px; padding-right: 48px; }
  .marquee-group { gap: 26px; }

  /* tabbar: scrolls if the labels outgrow the viewport, never wraps */
  .tabbar {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 44px;
  }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar-item { padding: 11px 14px; font-size: .82rem; white-space: nowrap; }

  /* demo stages go full column width — paired with the camera zoom boost
     in js/demos.js so the close-ups stay legible at phone scale */
  .demo-frame-sm { width: 100%; margin-top: 32px; box-shadow: 0 24px 70px rgba(8,40,90,.4); }

  .bento-head { margin-bottom: 44px; }
  .bento-grid { gap: 12px; }
  .card { padding: 22px; gap: 20px; min-height: 0; }
  .card-third { min-height: 0; }
  .card-img { margin: 0 -22px -22px; }
  .iridescent-sub { font-size: 1.1rem; }

  .supersize { padding-top: calc(var(--row-margin) * 6); padding-bottom: calc(var(--row-margin) * 6); }

  .reviews-head { margin-bottom: 40px; }
  .reviews-grid { gap: 12px; }
  .review-card { padding: 24px 22px; gap: 20px; }
  .review-card::before { font-size: 6rem; right: 12px; }
  .review-featured blockquote { font-size: 1.1rem; }
  .reviews-cta { margin-top: 32px; }

  .faq-head { margin-bottom: 40px; }
  .faq-q { padding: 17px 18px; }
  .faq-q h3 { font-size: .98rem; }
  .faq-a-inner p { padding: 0 18px 18px; font-size: .92rem; }
  .faq-cta { margin-top: 32px; }

  /* process rows stack: number above word, description below */
  .process { padding-top: calc(var(--row-margin) * 4); padding-bottom: calc(var(--row-margin) * 4); }
  .process-head { margin-bottom: 36px; }
  .process-panel { padding: 4px 22px; }
  .process-row { grid-template-columns: 1fr; gap: 12px; padding: 30px 2px; }
  .process-sub { justify-self: start; }

  .cta-form { padding: 24px 18px; margin-top: 36px; }
  /* 16px floor: anything smaller makes iOS Safari zoom the page on focus */
  .cta-form input, .cta-form select, .cta-form textarea { font-size: 16px; }

  .footer { padding-top: clamp(120px, 18vh, 180px); }
  .footer-logo { margin-bottom: 48px; }
  /* small screens: the hill is short (170px floor) and the crest fills
     more of the frame — keep the content clear above it */
  .footer-grid { padding-bottom: calc(var(--hill-h) + 40px); }
  .footer-links { gap: 16px; }
  .footer-links a { padding: 6px 2px; }
}

@media (max-width: 640px) {
  /* the statement re-splits to four short lines on phones
     (data-lines-mobile in index.html + main.js supersizeFill), so it can
     run at 15vw instead of 11vw and land with the desktop version's weight */
  .supersize .u-h1 { font-size: 15vw; }
}

@media (max-width: 420px) {
  .header-ctas .btn { height: 34px; padding: 0 12px; font-size: .8rem; }
  /* header only — the footer logo also carries .logo-svg and must keep
     its own .logo-svg-big/.logo-foot size (unscoped, this shrank the
     homepage footer logo to 72px while inner.css re-asserted .logo-foot) */
  .header-logo .logo-svg { width: 72px; }
  .tabbar-item { padding: 10px 12px; font-size: .78rem; }
}
