/* ==========================================================================
   Estrella — design system
   Tokens → primitives → motion → sections

   Every colour lives in the two token blocks below. Light is the default;
   `<html data-theme="dark">` swaps the same names. Nothing outside those two
   blocks should hardcode a colour, so a theme is one edit, not forty.
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;

  /* Surfaces */
  --bg:            #F5F5F7;
  --band:          #ECECEF;   /* recessed full-width sections */
  --surface:       #FFFFFF;
  --surface-sunk:  #EDEDF0;

  /* Text */
  --text:          #1D1D1F;
  --text-muted:    #6E6E73;
  --text-faint:    #9A9AA0;

  /* Accent — `accent` is for text and marks, `accent-solid` for filled buttons */
  --accent:        #0A66E0;
  --accent-bright: #3D8EF0;
  --accent-solid:  #0A66E0;
  --accent-wash:   rgba(10, 102, 224, 0.08);
  --accent-line:   rgba(10, 102, 224, 0.22);
  --btn-shadow:       0 1px 2px rgba(10,102,224,.20), 0 8px 24px rgba(10,102,224,.22);
  --btn-shadow-hover: 0 2px 4px rgba(10,102,224,.22), 0 16px 38px rgba(10,102,224,.30);

  /* Status */
  --ok:      #12874A;
  --ok-ring: rgba(18, 135, 74, 0.45);
  --warn:    #B4700B;

  /* Lines & tints */
  --hairline:        rgba(0, 0, 0, 0.09);
  --hairline-soft:   rgba(0, 0, 0, 0.055);
  --hairline-strong: rgba(0, 0, 0, 0.20);
  --tint-hover:      rgba(0, 0, 0, 0.04);

  /* Elevation */
  --lift-1: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  --lift-2: 0 2px 6px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.07);
  --lift-3: 0 8px 20px rgba(0,0,0,.07), 0 32px 70px rgba(0,0,0,.11);
  --lift-4: 0 20px 50px rgba(0,0,0,.13), 0 60px 120px rgba(0,0,0,.16);

  /* Atmosphere */
  --nav-bg:        rgba(245, 245, 247, 0.72);
  --nav-bg-stuck:  rgba(245, 245, 247, 0.86);
  --sheet-bg:      rgba(245, 245, 247, 0.97);
  --grid-line:     rgba(0, 0, 0, 0.028);
  --aura-1:        rgba(10, 102, 224, 0.14);
  --aura-2:        rgba(140, 90, 255, 0.09);
  --cta-glow:      rgba(61, 142, 240, 0.16);
  --bezel:         rgba(0, 0, 0, 0.14);

  /* Browser frame chrome */
  --chrome-bg:        #FBFBFD;
  --chrome-border:    rgba(0, 0, 0, 0.13);
  --chrome-bar:       linear-gradient(#F7F7F9, #EFEFF2);
  --chrome-bar-line:  rgba(0, 0, 0, 0.09);
  --chrome-url-bg:    #FFFFFF;
  --chrome-url-line:  rgba(0, 0, 0, 0.07);
  --chrome-thumb:     rgba(96, 96, 108, 0.38);
  --chrome-thumb-on:  rgba(96, 96, 108, 0.66);
  --glare:            rgba(255, 255, 255, 0.24);

  /* Portfolio cards — each card supplies `--tint` as `R G B` */
  --card-base:     #FFFFFF;
  --card-tint-amt: 5%;
  --card-glow-a:   0.13;

  /* Radii */
  --r-sm: 10px;  --r-md: 16px;  --r-lg: 24px;  --r-xl: 34px;  --r-pill: 999px;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 1240px;
  --measure-wide: 1560px;
  --section-y: clamp(88px, 13vw, 190px);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft:  cubic-bezier(0.33, 1, 0.68, 1);
  --dur:   .7s;
  --dur-s: .38s;

  /* Type */
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;

  --nav-h: 56px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #08080A;
  --band:          #0E0E12;
  --surface:       #131317;
  --surface-sunk:  #1A1A20;

  --text:          #F2F2F4;
  --text-muted:    #9A9AA4;
  --text-faint:    #6E6E78;

  --accent:        #6AA5FF;
  --accent-bright: #9CC4FF;
  --accent-solid:  #1B72EA;
  --accent-wash:   rgba(106, 165, 255, 0.11);
  --accent-line:   rgba(106, 165, 255, 0.30);
  --btn-shadow:       0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(27,114,234,.30);
  --btn-shadow-hover: 0 2px 4px rgba(0,0,0,.5), 0 16px 38px rgba(27,114,234,.42);

  --ok:      #45D48A;
  --ok-ring: rgba(69, 212, 138, 0.42);
  --warn:    #E9B45C;

  --hairline:        rgba(255, 255, 255, 0.10);
  --hairline-soft:   rgba(255, 255, 255, 0.06);
  --hairline-strong: rgba(255, 255, 255, 0.28);
  --tint-hover:      rgba(255, 255, 255, 0.06);

  --lift-1: 0 1px 2px rgba(0,0,0,.5),  0 4px 12px rgba(0,0,0,.4);
  --lift-2: 0 2px 6px rgba(0,0,0,.5),  0 12px 32px rgba(0,0,0,.48);
  --lift-3: 0 8px 20px rgba(0,0,0,.5), 0 32px 70px rgba(0,0,0,.55);
  --lift-4: 0 20px 50px rgba(0,0,0,.55), 0 60px 120px rgba(0,0,0,.6);

  --nav-bg:        rgba(8, 8, 10, 0.66);
  --nav-bg-stuck:  rgba(8, 8, 10, 0.84);
  --sheet-bg:      rgba(8, 8, 10, 0.97);
  --grid-line:     rgba(255, 255, 255, 0.035);
  --aura-1:        rgba(76, 143, 245, 0.17);
  --aura-2:        rgba(150, 90, 255, 0.12);
  --cta-glow:      rgba(76, 143, 245, 0.18);
  --bezel:         rgba(255, 255, 255, 0.10);

  --chrome-bg:        #17171C;
  --chrome-border:    rgba(255, 255, 255, 0.13);
  --chrome-bar:       linear-gradient(#232329, #1A1A20);
  --chrome-bar-line:  rgba(255, 255, 255, 0.09);
  --chrome-url-bg:    #0E0E12;
  --chrome-url-line:  rgba(255, 255, 255, 0.09);
  --chrome-thumb:     rgba(190, 190, 205, 0.30);
  --chrome-thumb-on:  rgba(190, 190, 205, 0.55);
  --glare:            rgba(255, 255, 255, 0.10);

  --card-base:     #121216;
  --card-tint-amt: 7%;
  --card-glow-a:   0.18;
}

html {
  background: var(--bg);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-solid); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* theme swap — crossfade where the browser supports it, instant everywhere else */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .38s; animation-timing-function: var(--ease-out); }

/* ---------- 2. Layout primitives ---------- */
.wrap      { width: 100%; max-width: var(--measure);      margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: var(--measure-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); position: relative; }

/* A full-bleed band, one step away from the page. Same idea in both themes. */
.section-band { background: var(--band); }

/* ---------- 3. Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.eyebrow.no-dot::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.03;
  text-wrap: balance;
}
.d1 { font-size: clamp(32px, 8.6vw, 96px); }
.d2 { font-size: clamp(29px, 6vw, 68px); }
.d3 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }

.display em {
  font-style: normal;
  background: linear-gradient(96deg, var(--accent) 8%, var(--accent-bright) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: -0.012em;
  max-width: 56ch;
  text-wrap: pretty;
}
.body-sm { font-size: 15px; line-height: 1.65; color: var(--text-muted); font-weight: 300; }

.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(44px, 6vw, 76px); }
.section-head .lede { margin-top: 2px; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--accent-solid); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 50px; padding: 0 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform var(--dur-s) var(--ease-out), box-shadow var(--dur-s) var(--ease-out), background var(--dur-s) var(--ease-out);
  box-shadow: var(--btn-shadow);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 70%);
  opacity: 0; transition: opacity var(--dur-s) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(.985); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border: 1px solid var(--hairline);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  box-shadow: none; border-color: var(--hairline-strong);
  background: var(--tint-hover);
}

.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 500; color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--dur-s) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 5. Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 450; color: var(--text-muted);
  letter-spacing: -0.005em; white-space: nowrap;
}
.chip-link { transition: border-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out); }
.chip-link:hover { color: var(--accent); border-color: var(--accent-line); }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
}
.status.live      { color: var(--ok); }
.status.live::before { animation: pulse 2.4s var(--ease-out) infinite; }
.status.beta      { color: var(--warn); }
.status.soon      { color: var(--text-faint); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--ok-ring); }
  70%  { box-shadow: 0 0 0 7px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ---------- 6. Motion primitives ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* line-by-line masked headline reveal */
.lines { display: block; }
.line  { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms);
  will-change: transform;
}
.lines.in .line > span { transform: none; }

/* ---------- 7. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
  padding-inline: clamp(16px, 4vw, 44px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.nav.stuck { background: var(--nav-bg-stuck); border-bottom-color: var(--hairline); }

.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  opacity: .9;
}

.nav-brand { display: flex; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: 0.03em; }
.nav-brand img { width: 24px; height: 24px; object-fit: contain; margin-right: 9px; }
.nav-brand i { font-style: normal; color: var(--accent); }

.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 450; color: var(--text-muted);
  transition: color var(--dur-s) var(--ease-out), background var(--dur-s) var(--ease-out);
}
.nav-links a:hover { color: var(--text); background: var(--tint-hover); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--accent); border-radius: 2px;
}
.nav .btn { margin-left: 4px; }

/* light / dark switch */
.theme-toggle {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-muted);
  border: 1px solid var(--hairline);
  transition: color var(--dur-s) var(--ease-out), background var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.theme-toggle:hover { color: var(--text); background: var(--tint-hover); border-color: var(--hairline-strong); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 17px; height: 17px;
  transition: opacity .3s var(--ease-out), transform .55s var(--ease-out);
}
.theme-toggle .tt-sun  { opacity: 0; transform: rotate(-80deg) scale(.55); }
.theme-toggle .tt-moon { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .tt-sun  { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .tt-moon { opacity: 0; transform: rotate(80deg) scale(.55); }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; flex: none; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease-out), opacity .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-sheet {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 190;
  background: var(--sheet-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hairline);
  padding: 14px var(--gutter) 30px;
  display: grid; gap: 2px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out);
  pointer-events: none;
}
body.menu-open .nav-sheet { clip-path: inset(0 0 0 0); pointer-events: auto; }
.nav-sheet a { padding: 14px 4px; font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: -0.025em; border-bottom: 1px solid var(--hairline-soft); }
.nav-sheet .btn { margin-top: 20px; width: 100%; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(58px, 9vw, 118px));
  padding-bottom: clamp(0px, 4vw, 40px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-aura {
  position: absolute; z-index: -2; left: 50%; top: -14vw;
  width: min(1500px, 145vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, var(--aura-1), transparent 68%),
    radial-gradient(closest-side, var(--aura-2), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-grid {
  position: absolute; z-index: -2; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 78% 58% at 50% 26%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 78% 58% at 50% 26%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero h1 { margin: 22px auto 0; max-width: 15ch; }
.hero .lede { margin: 26px auto 0; max-width: 50ch; text-align: center; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

.hero-stats {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: 46px;
}
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat b {
  font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat span { font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.03em; }

/* phone cluster */
.hero-stage {
  --pw: clamp(104px, 13vw, 186px);
  position: relative;
  margin-top: clamp(48px, 7vw, 82px);
  height: calc(var(--pw) * 2.28);
  perspective: 1600px;
  transform-style: preserve-3d;
}
.hero-phone {
  position: absolute; left: 50%; top: 0;
  width: var(--pw);
  aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--pw) * 0.14);
  overflow: hidden;
  background: #111;
  border: 1px solid var(--bezel);
  box-shadow: var(--lift-4);
  transform:
    translate3d(calc(-50% + var(--x) + var(--px, 0px)), calc(var(--y) + var(--py, 0px)), 0)
    rotate(var(--rot)) scale(var(--s, 1));
  transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
  opacity: var(--o, 1);
}
.hero-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-phone::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.34), rgba(255,255,255,0) 38%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
/* pre-animation state */
.hero-stage:not(.in) .hero-phone { --o: 0; transform: translate3d(-50%, 60px, 0) scale(.9); }

.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  margin-top: clamp(26px, 4vw, 46px);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
}
.hero-scroll i { display: block; width: 1px; height: 42px; background: linear-gradient(var(--hairline), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after {
  content: ''; position: absolute; inset: 0 auto auto 0; width: 1px; height: 14px;
  background: var(--accent); animation: trickle 2.2s var(--ease-inout) infinite;
}
@keyframes trickle { 0% { transform: translateY(-16px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(44px); opacity: 0; } }

/* ---------- 9. Ticker ---------- */
.ticker {
  border-block: 1px solid var(--hairline);
  padding-block: 20px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 54px; animation: slide 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--text-muted);
  white-space: nowrap;
}
.ticker-item s { text-decoration: none; width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 10. Statement ---------- */
.statement { text-align: center; }
.statement p {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.1;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.statement .word {
  display: inline-block;
  opacity: .18;
  transition: opacity .5s var(--ease-out), color .5s var(--ease-out);
}
.statement .word.lit { opacity: 1; }

/* ---------- 11. Two surfaces ---------- */
.surfaces { display: grid; gap: clamp(18px, 2.4vw, 26px); grid-template-columns: repeat(2, 1fr); }
.surface-card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 46px);
  min-height: 340px;
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.surface-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), var(--accent-wash), transparent 62%);
  transition: opacity var(--dur) var(--ease-out);
}
.surface-card:hover { transform: translateY(-4px); box-shadow: var(--lift-3); border-color: var(--accent-line); }
.surface-card:hover::before { opacity: 1; }
.surface-card h3 { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; letter-spacing: -0.03em; margin-top: 14px; }
.surface-card p  { margin-top: 12px; }
.surface-card .surface-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 26px; }

.surface-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-wash); color: var(--accent); }
.surface-icon svg { width: 21px; height: 21px; }

/* ---------- 12. Websites / browser frame ----------
   The concept sites are real pages, scaled to fit the frame. The frame itself
   is the scroll container, so the visitor scrolls each site directly. */
.web-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}

.browser {
  position: relative;
  border-radius: 14px;
  background: var(--chrome-bg);
  border: 1px solid var(--chrome-border);
  box-shadow: var(--lift-4);
  overflow: hidden;
  transform: perspective(1800px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
}
.browser-bar {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding-inline: 14px;
  background: var(--chrome-bar);
  border-bottom: 1px solid var(--chrome-bar-line);
}
.browser-lights { display: flex; gap: 7px; flex: none; }
.browser-lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-lights i:nth-child(1) { background: #FF5F57; }
.browser-lights i:nth-child(2) { background: #FEBC2E; }
.browser-lights i:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1; height: 24px; max-width: 400px; margin-inline: auto;
  display: flex; align-items: center; gap: 7px; padding-inline: 11px;
  background: var(--chrome-url-bg); border: 1px solid var(--chrome-url-line); border-radius: 7px;
  font-size: 11.5px; color: var(--text-muted); letter-spacing: -0.01em;
  overflow: hidden; white-space: nowrap;
}
.browser-url svg { width: 10px; height: 10px; flex: none; color: var(--ok); }

.browser-viewport {
  position: relative;
  aspect-ratio: 16 / 10.4;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--chrome-bg);
  scrollbar-width: thin;
  scrollbar-color: var(--chrome-thumb) transparent;
}
.browser-viewport:focus-visible { outline-offset: -3px; }
.browser-viewport::-webkit-scrollbar { width: 10px; }
.browser-viewport::-webkit-scrollbar-track { background: transparent; }
.browser-viewport::-webkit-scrollbar-thumb {
  background: var(--chrome-thumb);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
.browser-viewport::-webkit-scrollbar-thumb:hover { background: var(--chrome-thumb-on); background-clip: content-box; }

/* Height is set by JS to the active demo's scaled height. `overflow: hidden`
   is load-bearing: the inactive demos are still laid out (they only fade out),
   and a taller one would otherwise push the viewport's scroll range past the
   end of the page you are actually looking at — dead space at the bottom. */
.browser-stage { position: relative; width: 100%; overflow: hidden; }
.demo {
  position: absolute; left: 0; top: 0;
  width: 1280px;
  transform-origin: 0 0;   /* scale set by JS */
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease-out);
}
.demo.on { opacity: 1; visibility: visible; }

.browser-glare {
  position: absolute; inset: 40px 0 0 0; z-index: 3;
  pointer-events: none;
  background: linear-gradient(115deg, var(--glare) 0%, rgba(255,255,255,0) 34%);
  mix-blend-mode: overlay;
}

.browser-hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px; border-radius: var(--r-pill);
  background: rgba(10,10,14,.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-size: 11.5px; font-weight: 450; letter-spacing: -0.005em;
  pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.browser-hint svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; animation: nudge 2.4s var(--ease-inout) infinite; }
.browser.scrolled .browser-hint { opacity: 0; transform: translateY(8px); }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }

.web-tabs { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.web-tab {
  position: relative; display: flex; align-items: baseline; gap: 14px;
  padding: 15px 18px 15px 20px; border-radius: var(--r-md);
  text-align: left; width: 100%;
  transition: background var(--dur-s) var(--ease-out);
}
.web-tab::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleY(0); transform-origin: 50% 50%;
  transition: transform .5s var(--ease-out);
}
.web-tab[aria-selected="true"] { background: var(--surface); box-shadow: var(--lift-1); }
.web-tab[aria-selected="true"]::before { transform: scaleY(1); }
.web-tab:hover { background: var(--tint-hover); }
.web-tab b { font-family: var(--font-display); font-size: 16.5px; font-weight: 550; letter-spacing: -0.02em; }
.web-tab span { font-size: 13px; color: var(--text-muted); font-weight: 300; }

.cap-grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 78px);
  padding-top: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--hairline);
}
.cap-grid li { display: flex; flex-direction: column; gap: 9px; }
.cap-grid b {
  font-family: var(--font-display); font-size: 16px; font-weight: 550; letter-spacing: -0.02em;
  padding-bottom: 9px; border-bottom: 1px solid var(--hairline-soft);
}
.cap-grid span { font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.55; }

.note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-faint); letter-spacing: -0.005em;
  margin-top: 18px;
}
.note svg { width: 13px; height: 13px; flex: none; }

/* ---------- 13. Portfolio rail ---------- */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  transition: background var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), opacity var(--dur-s);
}
.rail-btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.rail-btn:hover { background: var(--surface); border-color: var(--hairline-strong); }
.rail-btn[disabled] { opacity: .3; pointer-events: none; }

.rail {
  display: flex; gap: clamp(14px, 1.8vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 6px 30px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging * { pointer-events: none; }

.app-card {
  /* each card carries `--tint: R G B`; the theme decides how it is applied */
  --tint: 120 120 130;
  --card-bg:   color-mix(in srgb, rgb(var(--tint)) var(--card-tint-amt), var(--card-base));
  --card-glow: rgb(var(--tint) / var(--card-glow-a));

  scroll-snap-align: center;
  flex: 0 0 min(880px, 88vw);
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(16px, 2vw, 34px);
  align-items: center;
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: var(--card-bg);
  overflow: hidden; position: relative; isolation: isolate;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.app-card::before {
  content: ''; position: absolute; z-index: -1; inset: -30% -10% auto -10%; height: 70%;
  background: radial-gradient(ellipse at 50% 0%, var(--card-glow), transparent 70%);
  pointer-events: none;
}
.app-card-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.app-card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-card-cat { font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); }
.app-card h3 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.038em; line-height: 1; }
.app-card p { font-size: 15.5px; line-height: 1.6; color: var(--text-muted); font-weight: 300; max-width: 40ch; }
.app-card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }

.app-shots { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.2vw, 18px); min-width: 0; }
.phone {
  position: relative; flex: none;
  width: var(--w, 150px); aspect-ratio: 9 / 19.5;
  border-radius: calc(var(--w, 150px) * 0.145);
  overflow: hidden;
  background: #0A0A0C;
  border: 1px solid var(--bezel);
  box-shadow: var(--lift-3);
  transform: translateY(var(--ty, 0)) rotate(var(--r, 0deg));
  transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  background: linear-gradient(155deg, rgba(255,255,255,.22), transparent 40%);
}
.phone.side { --w: 124px; opacity: .92; }
.app-card:hover .phone.lead { --ty: -8px; }
.app-card:hover .phone.side:first-child { --r: -7deg; }
.app-card:hover .phone.side:last-child  { --r: 7deg; }

.rail-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
.rail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hairline); border: 0;
  transition: width .45s var(--ease-out), background .45s var(--ease-out);
}
.rail-dot.on { width: 24px; border-radius: 4px; background: var(--accent); }

/* ---------- 14. Social ---------- */
.social-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; }

.marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(38px, 5vw, 62px);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row { display: flex; width: max-content; gap: 18px; }
.marquee-row + .marquee-row { margin-top: 18px; }
.marquee-row.a { animation: slide 64s linear infinite; }
.marquee-row.b { animation: slide 78s linear infinite reverse; }
.marquee:hover .marquee-row,
.marquee:focus-within .marquee-row { animation-play-state: paused; }

.post {
  position: relative; flex: none;
  width: clamp(178px, 20vw, 250px);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #16161A;
  border: 1px solid var(--hairline);
  box-shadow: var(--lift-1);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .55s var(--ease-out);
  cursor: pointer;
  display: block;
}
.post img, .post video { width: 100%; height: 100%; object-fit: cover; }
.post:hover { transform: translateY(-6px) scale(1.022); box-shadow: var(--lift-3); border-color: var(--hairline-strong); }
.post-badge {
  position: absolute; left: 11px; top: 11px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding-inline: 9px; border-radius: var(--r-pill);
  background: rgba(8,8,10,.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: #fff;
}
.post-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.post:hover .post-play { opacity: 1; }
.post-play i {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center;
}
.post-play svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }

.social-foot {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(38px, 5vw, 58px);
}
.ig-card {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px 13px 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--lift-1);
  transition: background var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}
.ig-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: var(--lift-2); }
.ig-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: conic-gradient(from 210deg, #F9CE34, #EE2A7B, #6228D7, #F9CE34);
  display: grid; place-items: center;
}
.ig-avatar span { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--text); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.ig-card b { display: block; font-size: 14.5px; font-weight: 500; }
.ig-card i { display: block; font-style: normal; font-size: 12.5px; color: var(--text-muted); }

/* lightbox — always dark, it sits over the page */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6,6,8,.86);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; max-height: 100%; }
.lightbox-media {
  max-height: min(74vh, 780px); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  transform: scale(.94); transition: transform .5s var(--ease-out);
}
.lightbox.on .lightbox-media { transform: none; }
.lightbox-media img, .lightbox-media video { max-height: min(74vh, 780px); width: auto; }
.lightbox-caption { color: rgba(255,255,255,.62); font-size: 13.5px; letter-spacing: -0.005em; text-align: center; }
.lightbox-caption b { color: #fff; font-weight: 500; }
.lb-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; color: #fff;
  transition: background var(--dur-s) var(--ease-out);
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.lb-prev { left: clamp(-64px, -5vw, -18px); }
.lb-next { right: clamp(-64px, -5vw, -18px); }
.lb-close { position: fixed; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; }
.lb-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---------- 15. Process ---------- */
.process-line { position: relative; display: grid; gap: 0; max-width: 1000px; }
.process-step {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 34px); align-items: center;
  padding: clamp(22px, 2.6vw, 32px) 4px;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.process-step:last-child { border-bottom: 1px solid var(--hairline); }
.process-step::after {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .8s var(--ease-out);
}
.process-step.lit::after { transform: scaleX(1); }
.process-num {
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  color: var(--hairline);
  font-variant-numeric: tabular-nums;
  transition: color .7s var(--ease-out);
}
.process-step.lit .process-num { color: var(--accent); }
.process-body h4 { font-family: var(--font-display); font-size: clamp(19px, 2vw, 25px); font-weight: 550; letter-spacing: -0.028em; }
.process-body p  { font-size: 15px; color: var(--text-muted); font-weight: 300; margin-top: 5px; max-width: 62ch; }
.process-when { font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.03em; white-space: nowrap; }

/* ---------- 16. Model / pricing ---------- */
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(30px, 5vw, 76px); align-items: center; }
.model-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: clamp(34px, 4vw, 52px); text-align: center;
  box-shadow: var(--lift-2);
}
.model-card::before {
  content: ''; position: absolute; z-index: -1; inset: -50% -20% auto -20%; height: 100%;
  background: radial-gradient(ellipse at 50% 0, var(--accent-wash), transparent 68%);
}
.model-figure {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.055em; line-height: .92;
  font-size: clamp(76px, 11vw, 132px);
  background: linear-gradient(170deg, var(--accent) 12%, var(--accent-bright) 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.model-card .sub { font-size: 15px; color: var(--text-muted); font-weight: 300; margin-top: 12px; }
.model-card .rule { height: 1px; background: var(--hairline); margin: 28px 0 18px; }
.model-card .tag { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- 17. CTA / form ---------- */
.cta { text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -30%;
  width: min(1100px, 130vw); aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(closest-side, var(--cta-glow), transparent 70%);
}
.cta .lede { margin-inline: auto; text-align: center; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.form-shell {
  max-width: 620px; margin: clamp(44px, 6vw, 72px) auto 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px);
  text-align: left;
  box-shadow: var(--lift-2);
}
.form-shell > .eyebrow { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 17px 16px 8px;
  background: var(--surface-sunk);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: 15px; color: var(--text);
  transition: border-color var(--dur-s) var(--ease-out), background var(--dur-s) var(--ease-out);
}
.field textarea { min-height: 110px; resize: vertical; padding-top: 24px; }
.field label {
  position: absolute; left: 17px; top: 15px;
  font-size: 15px; color: var(--text-faint); pointer-events: none;
  transform-origin: 0 0;
  transition: transform .3s var(--ease-out), color .3s var(--ease-out);
}
.field input:focus, .field textarea:focus { outline: none; background: var(--surface); border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-wash); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-9px) scale(.76); color: var(--text-muted);
}
.field.wide { grid-column: 1 / -1; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; }
.consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent-solid); flex: none; cursor: pointer; }
.consent span { font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.55; }
.consent a { color: var(--accent); }

.form-shell .btn { width: 100%; margin-top: 20px; }
.form-done { display: none; text-align: center; padding: 34px 0; }
.form-done.on { display: block; }
.form-done .tick {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent); display: grid; place-items: center;
}
.form-done .tick svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* ---------- 18. Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: clamp(40px, 5vw, 64px) 34px; }
.footer-top { display: flex; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.footer-brand .nav-brand { font-size: 19px; }
.footer-cols { display: flex; gap: clamp(34px, 6vw, 84px); flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { font-size: 14.5px; color: var(--text-muted); font-weight: 300; transition: color var(--dur-s) var(--ease-out); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(38px, 5vw, 58px); padding-top: 24px; border-top: 1px solid var(--hairline-soft);
  font-size: 13px; color: var(--text-faint);
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .web-layout { grid-template-columns: 1fr; }
  .model { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; text-align: left; }
  .app-shots { order: -1; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav > .btn { display: none; }
  .nav-toggle { display: block; }
  .theme-toggle { margin-left: auto; }
  .surfaces { grid-template-columns: 1fr; }
  .app-card { flex-basis: 86vw; padding: 22px; }
  .phone { --w: 128px; }
  .phone.side { --w: 108px; }
  .process-step { grid-template-columns: 56px minmax(0, 1fr); }
  .process-when { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stage { --pw: clamp(74px, 15.5vw, 104px); }
  .hero-stats { gap: 22px 30px; }
  .app-shots .phone.side:first-child { display: none; }
  .footer-top { flex-direction: column; }
  .browser-hint { right: 10px; bottom: 10px; height: 26px; padding: 0 10px; font-size: 10.5px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .hero-stage:not(.in) .hero-phone { --o: 1; }
  .statement .word { opacity: 1; }
  .ticker-track, .marquee-row { animation: none; }
  .marquee { overflow-x: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
