/* =====================================================================
   LegalConnect — marketing site
   Palette + type stack are LegalConnect's own (legalconnect.org.uk).
   ===================================================================== */

/* PP Mori — the brand typeface. Only local() sources for now: the licensed files aren't in /fonts yet,
   and requesting them would 404 on every page load for anyone without the font installed.
   Once the web-licensed files are in /fonts, add the file source back to each rule, e.g.
   src: local("PP Mori Regular"), local("PPMori-Regular"), url("../fonts/PPMori-Regular.woff2") format("woff2"); */
@font-face { font-family: "PP Mori"; src: local("PP Mori Extralight"), local("PPMori-Extralight"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: local("PP Mori Regular"), local("PPMori-Regular"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: local("PP Mori SemiBold"), local("PPMori-Semibold"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: local("PP Mori Black"), local("PPMori-Black"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* LegalConnect tokens (verbatim) */
  --bg: #07060a;
  --bg-2: #0d0b14;
  --surface: #14121d;
  --surface-2: #1c1a26;
  --border: #ffffff14;
  --border-strong: #ffffff24;
  --text: #f5f3ee;
  --text-dim: #a8a39a;
  --text-faint: #6e6a62;
  --brand: #e6834c;
  --brand-2: #e64c86;
  --brand-3: #f2a96b;
  --accent-glow: #e6834c8c;
  --ink: #1a0e07;

  --grad-text: linear-gradient(100deg, #ffd5b3 0%, #ffae7a 22%, #e6834c 50%, #e64c86 90%);
  --grad-btn: linear-gradient(120deg, #ffc28a 0%, #e6834c 50%, #e64c86 100%);
  --grad-brand: linear-gradient(120deg, #e6834c, #e64c86);
  --grad-soft: linear-gradient(135deg, rgba(230, 131, 76, .18), rgba(230, 76, 134, .18));
  --glass: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .016));

  --font: "PP Mori", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --pad: clamp(16px, 3.05vw, 44px);
  /* shape: three radius steps, plus pills (999px) and circles (50%).
     App-icon corners (brand mark, dock, loader) scale with the icon on purpose. */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --radius: var(--r-lg);
  /* elevation: one floating shadow. The orange glows are the brand's light, not elevation. */
  --shadow-float: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  /* controls: one height per size */
  --ctl-md: 44px;
  --ctl-lg: 52px;
  /* section rhythm: standard sections, and the statement bands (the stat and the closing CTA) */
  --section: clamp(72px, 8vw, 128px);
  --section-lg: clamp(100px, 14vw, 220px);
  /* the smallest text on the site: labels, eyebrows, small print */
  --fs-label: 12px;
  /* one gap between cards, at every card grid */
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* width/height attributes reserve the space; CSS sets the actual size */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { stroke: none; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

/* ---------- type ---------- */
.display, .h2-xl, .h2, .h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.display { font-size: clamp(2.9rem, 8.3vw, 9.4rem); }
.h2-xl { font-size: clamp(2.6rem, 6.5vw, 7.8rem); line-height: .98; }
.h2 { font-size: clamp(2.3rem, 5.4vw, 5.9rem); }
.h3 { font-size: clamp(1.45rem, 2.3vw, 2.25rem); line-height: 1.12; letter-spacing: -0.03em; }
.text-gradient-brand { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--text-faint); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); font-weight: 400; text-transform: uppercase; letter-spacing: .32em; color: var(--text-dim);
}
.eyebrow--light { color: rgba(245, 243, 238, .7); }
.eyebrow__num { font-family: var(--mono); letter-spacing: .08em; color: var(--brand-3); }
.eyebrow__num::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: .5; }
strong { color: var(--text); font-weight: 600; }

/* Lenis 1.3.26 base styles (MIT, github.com/darkroomengineering/lenis), inlined so a third-party stylesheet
   doesn't block the first paint */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical], .lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* line breaking: headings and short lines balance, paragraphs avoid a lone last word */
h1, h2, h3, .qa button span, .hero__sub, .stat__text, .cta__text { text-wrap: balance; }
p { text-wrap: pretty; }

/* line-mask reveal */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line__in { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad-btn); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  border-radius: 999px; min-height: var(--ctl-md); padding: .68rem 1.25rem; white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(230, 131, 76, .55), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), filter .3s;
}
.btn-primary:hover { transform: translateY(-1px); filter: saturate(1.1) brightness(1.04); box-shadow: 0 16px 40px -12px rgba(230, 131, 76, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: var(--ctl-lg); padding: 0 22px 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .5s var(--ease), background .3s, box-shadow .5s var(--ease);
}
.btn .i { font-size: 22px; }
.btn__stack { display: flex; flex-direction: column; line-height: 1.05; }
.btn__stack small { font-size: var(--fs-label); font-weight: 400; opacity: .75; letter-spacing: .01em; }
.btn--light { background: var(--text); color: var(--bg); box-shadow: 0 10px 30px -14px rgba(245, 243, 238, .5); }
.btn--light:hover { transform: translateY(-2px); background: #fff; }
.btn--sm { height: var(--ctl-md); padding: 0 22px; font-size: 14px; }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn.is-disabled { opacity: .7; cursor: default; }  /* still reads as unavailable; its text stays at 5.3:1 */
.icon-btn {
  display: inline-grid; place-items: center; width: var(--ctl-md); height: var(--ctl-md); border-radius: 999px; flex: none;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border); color: var(--text);
  transition: background .3s, transform .5s var(--ease), border-color .3s;
}
.icon-btn .i { font-size: 18px; }
.hero__actions .icon-btn { width: var(--ctl-lg); height: var(--ctl-lg); }
.icon-btn:hover { background: rgba(255, 255, 255, .12); border-color: var(--border-strong); transform: translateY(-2px); }

.live-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--brand); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 12px; color: var(--text-dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
}
.live-pill--sm { font-size: 11px; padding: 4px 10px 4px 8px; gap: 8px; color: var(--text); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; box-shadow: 0 0 12px var(--c, var(--brand)); }
.dot--brand { --c: var(--brand); }

/* =====================================================================
   PRELOADER
   ===================================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  padding: var(--pad); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  clip-path: inset(0 0 0 0);
}
.loader__brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.loader__brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.loader__tag { grid-column: 1; grid-row: 3; align-self: end; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(22px, 2.2vw, 32px); }
.loader__count {
  grid-column: 2; grid-row: 3; align-self: end; justify-self: end;
  font-weight: 200; font-size: clamp(110px, 19vw, 300px); line-height: .78; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.lc-seen .loader { display: none; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad-btn); box-shadow: 0 0 20px var(--brand); }

/* =====================================================================
   DOCK + MENU
   ===================================================================== */
.dock {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(20, 18, 29, .72); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-float);
  transition: opacity .5s, translate .7s var(--ease);
}
.dock.is-hidden { opacity: 0; translate: 0 140%; pointer-events: none; }
/* tabbing past the footer wraps focus to the dock: bring it back rather than focusing something invisible */
.dock.is-hidden:focus-within { opacity: 1; translate: 0 0; pointer-events: auto; }
.dock__menu {
  position: relative; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  display: grid; place-content: center; gap: 5px; transition: background .3s;
}
.dock__menu span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease), width .5s var(--ease); }
.dock__menu span:last-child { width: 12px; }
.dock__menu:hover { background: rgba(255, 255, 255, .14); }
.dock__menu:hover span:last-child { width: 18px; }
.dock.menu-open .dock__menu span:first-child { transform: translateY(3.25px) rotate(45deg); }
.dock.menu-open .dock__menu span:last-child { width: 18px; transform: translateY(-3.25px) rotate(-45deg); }
/* the dock carries the logo only once the header logo has scrolled away, so the hero never shows it twice */
.dock__logo {
  display: flex; align-items: center; padding: 0 4px; max-width: 42px; overflow: hidden;
  transition: max-width .7s var(--ease), padding .7s var(--ease), margin .7s var(--ease), opacity .4s, visibility 0s;
}
/* hidden at the top of the page: visibility also takes it out of the tab order (after the collapse finishes) */
.dock:not(.is-compact) .dock__logo {
  max-width: 0; padding: 0; margin-right: -6px; opacity: 0; pointer-events: none; visibility: hidden;
  transition: max-width .7s var(--ease), padding .7s var(--ease), margin .7s var(--ease), opacity .4s, visibility 0s .7s;
}
.dock__logo img { width: 32px; height: 32px; border-radius: 9px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.dock__cta { max-width: 160px; overflow: hidden; transition: max-width .7s var(--ease), padding .7s var(--ease), opacity .4s, transform .5s var(--ease); }
.dock.is-compact:not(:hover):not(:focus-within):not(.menu-open) .dock__cta { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; }

.menu {
  position: fixed; inset: 0; z-index: 55; visibility: hidden; pointer-events: none;
  background: rgba(7, 6, 10, .82); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 10%, rgba(230, 76, 134, .14), transparent 60%), radial-gradient(1000px 600px at 10% 100%, rgba(230, 131, 76, .16), transparent 60%); }
.menu.is-open { visibility: visible; pointer-events: auto; opacity: 1; transition: opacity .6s var(--ease); }
.menu__inner { position: relative; height: 100%; padding: var(--pad) var(--pad) 120px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.menu__links { margin-top: 18px; }
.menu__links li { overflow: hidden; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.04;
  font-size: clamp(2.4rem, 6.4vw, 6.6rem); color: var(--text); transition: color .3s, transform .6s var(--ease);
}
.menu__links a span { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; font-weight: 400; color: var(--text-faint); transform: translateY(-1.6em); }
.menu__links a:hover { color: var(--brand-3); transform: translateX(14px); }
.menu__aside { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; width: 300px; }
.menu__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); }

.qr-card { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--border); }
.qr-card p { font-size: 13px; line-height: 1.35; color: var(--text-dim); }
.qr { width: 84px; height: 84px; padding: 9px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); flex: none; }
.qr svg { width: 100%; height: 100%; }
.qr svg rect { fill: transparent; }
.qr svg path { fill: currentColor; }
.qr--lg { width: 240px; height: 240px; padding: 18px; border-radius: var(--r-md); }

.qr-pop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(7, 6, 10, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.qr-pop[hidden] { display: none; }
.qr-pop__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-strong); text-align: center; animation: pop .6s var(--ease); }
.qr-pop__card p { font-size: 15px; color: var(--text-dim); }
.qr-pop__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }

/* =====================================================================
   TRACK + STAGE (sticky 3D phone)
   ===================================================================== */
.track { position: relative; }
.stage {
  position: sticky; top: 0; height: 100vh; z-index: 0;
  pointer-events: none; overflow: hidden; perspective: 1700px;
}
.stage__bg { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 10%, transparent 70%);
}
.stage__glow {
  position: absolute; left: 50%; top: 50%; width: 46vw; height: 46vw; margin: -23vw 0 0 -4.6vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 131, 76, .28), transparent 70%), radial-gradient(closest-side at 70% 60%, rgba(230, 76, 134, .2), transparent 70%);
  filter: blur(20px);
}

/* phone geometry */
.stage, .device { --pw: clamp(210px, min(20.5vw, 33vh), 300px); }
.phone-pos { --ph: calc(var(--pw) * 2.07); --pr: calc(var(--pw) * .165); --pd: 13px; }
.phone-pos {
  position: absolute; left: 50%; top: 50%; width: var(--pw); height: var(--ph);
  margin: calc(var(--ph) / -2) 0 0 calc(var(--pw) / -2);
  transform-style: preserve-3d;
}
.phone-intro, .phone-bob, .phone-tilt, .phone { position: absolute; inset: 0; transform-style: preserve-3d; }
/* WebGL phone (js/phone3d.js) takes over once the GLB is ready; the CSS phone stays as the animation rig */
.phone-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.stage.is-3d .phone-gl { opacity: 1; }
/* the CSS phone stays until the WebGL one has faded in over it, so a late model crossfades instead of popping */
.stage.is-3d .phone, .stage.is-3d .phone * { visibility: hidden !important; transition: visibility 0s .5s; }
/* without GSAP nothing positions the phone, so it would sit on the headline */
.no-gsap .phone-pos, .no-gsap .float { display: none; }
.phone-pos { z-index: 1; }
.phone__body i {
  position: absolute; inset: 0; border-radius: var(--pr);
  background: linear-gradient(160deg, #3b3746 0%, #15131c 45%, #3b3746 100%);
  transform: translateZ(calc((var(--i) - 6) * 1px));
}
.phone__side { position: absolute; background: linear-gradient(90deg, #2a2733, #4a4556 50%, #2a2733); }
.phone__side--l, .phone__side--r { width: var(--pd); height: calc(var(--ph) - var(--pr) * 2); top: var(--pr); left: calc(var(--pd) / -2); }
.phone__side--l { transform: rotateY(-90deg); }
.phone__side--r { left: auto; right: calc(var(--pd) / -2); transform: rotateY(90deg); }
.phone__side--t, .phone__side--b { height: var(--pd); width: calc(var(--pw) - var(--pr) * 2); left: var(--pr); top: calc(var(--pd) / -2); transform: rotateX(90deg); background: linear-gradient(180deg, #2a2733, #4a4556 50%, #2a2733); }
.phone__side--b { top: auto; bottom: calc(var(--pd) / -2); transform: rotateX(-90deg); }

.phone__front, .phone__back {
  position: absolute; inset: 0; border-radius: var(--pr);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.phone__front {
  transform: translateZ(6.6px);
  background: #050408; padding: calc(var(--pw) * .032);
  box-shadow: inset 0 0 0 1.5px #4a4556, inset 0 0 0 3px #0a0910, 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone__back {
  transform: rotateY(180deg) translateZ(6.6px);
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(160deg, #2a2733 0%, #0f0d15 40%, #2a2733 100%);
  box-shadow: inset 0 0 0 1.5px #4a4556, inset 0 0 0 4px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.phone__back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 45%, transparent 55%); }
.phone__cam {
  position: absolute; top: 4%; left: 7%; width: 44%; aspect-ratio: 1; border-radius: 24%;
  background: linear-gradient(145deg, #3a3644, #18161f); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 6px 18px rgba(0, 0, 0, .5);
}
.lens { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5b5670 0 8%, #0b0a12 26%, #1d1a2b 50%, #050408 72%); box-shadow: 0 0 0 3px #22202b, 0 0 0 4px rgba(255, 255, 255, .12); }
.lens--1 { top: 8%; left: 8%; } .lens--2 { bottom: 8%; left: 8%; } .lens--3 { top: 30%; right: 8%; }
.flash { position: absolute; width: 11%; aspect-ratio: 1; right: 16%; bottom: 14%; border-radius: 50%; background: radial-gradient(#f5f3ee, #a8a39a); }
.phone__backlogo { position: absolute; left: 50%; top: 52%; width: 22%; height: auto; translate: -50% -50%; border-radius: 22%; opacity: .92; box-shadow: 0 0 40px rgba(230, 131, 76, .35); }
.phone__backword { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-size: calc(var(--pw) * .036); letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 243, 238, .35); }

.phone__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pr) - var(--pw) * .032); overflow: hidden; background: #0a0810; }
.island { position: absolute; z-index: 5; top: 1.6%; left: 50%; width: 31%; height: 4.4%; translate: -50% 0; border-radius: 999px; background: #000; }

/* floating chips (positioned in phone box space) */
.float { position: absolute; font-size: max(calc(var(--pw) * .043), 14px); transform: translateZ(70px); }
.float__in {
  display: flex; align-items: center; gap: .8em; padding: .85em 1.1em; border-radius: var(--r-md); white-space: nowrap;
  background: rgba(20, 18, 29, .92); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-float);
}
.float__ico { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: var(--r-sm); background: var(--grad-btn); color: var(--ink); font-size: 1em; }
.float__ico .i { font-size: 1.15em; }
.float__txt { display: flex; flex-direction: column; line-height: 1.25; }
.float small { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .16em; color: var(--text-dim); }
.float b { font-weight: 600; font-size: 1em; letter-spacing: -0.01em; }
.float em { font-style: normal; font-family: var(--mono); font-size: var(--fs-label); color: var(--text-dim); }
.float__col { display: flex; flex-direction: column; gap: .2em; padding: 0 .4em; }
.float__col + .float__col { border-left: 1px solid var(--border); padding-left: 1.2em; }
.float__col b { font-size: 1.35em; letter-spacing: -0.03em; }
.float .i { color: var(--brand-3); }
.float--interest { left: -62%; top: 16%; }
.float--live { right: -54%; top: 9%; transform: translateZ(50px); }
/* step chips — hidden until their step comes round (driven by the scroll timeline) */
.float--s1, .float--s2, .float--s3 { opacity: 0; }
.float--s1a { right: -66%; top: 15%; }
.float--s1b { right: -50%; bottom: 20%; transform: translateZ(40px); }
.float--s2a { left: -58%; top: 11%; transform: translateZ(40px); }
.float--s2b { left: -72%; top: 42%; }
.float--s2c { right: -38%; bottom: 24%; transform: translateZ(90px); }
.float--s3a { left: -50%; top: 30%; transform: translateZ(90px); }
.float--s3b { right: -64%; top: 14%; }
.float--s3c { right: -54%; bottom: 18%; transform: translateZ(40px); }
.tap { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 1.1em; padding: .2em .4em; color: var(--ink); }
.float--pill .float__in { background: var(--grad-btn); border: 0; padding: .7em 1.3em; box-shadow: 0 10px 30px -10px rgba(230, 131, 76, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.float--pill .i { color: var(--ink); }
.float__stars { display: inline-flex; gap: .15em; }
.float__stars .i { fill: #f5a50e; stroke: none; color: #f5a50e; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  margin-top: -100vh; /* sits over the sticky stage, which then releases exactly when the track ends */
  padding: calc(var(--pad) * .8) var(--pad) calc(var(--pad) + 4px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hero__head { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 26px); }
.hero__title { margin-left: -.04em; }
.hero__sub { max-width: min(27rem, 30vw); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.38; letter-spacing: -0.015em; color: var(--text); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; padding-top: 6px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__intro { max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__paths { display: flex; flex-wrap: wrap; gap: 8px; }
.path {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong);
  transition: background .3s, border-color .3s, transform .5s var(--ease);
}
.path .i { font-size: 14px; color: var(--brand-3); transition: transform .5s var(--ease); }
.path:hover { background: rgba(255, 255, 255, .08); border-color: rgba(242, 169, 107, .55); }
.path:hover .i { transform: translateY(2px); }
.hero__lede { font-size: 15.5px; line-height: 1.55; color: var(--text-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero__note { font-size: 12px; color: var(--text-dim); }

.hero__cards { display: flex; gap: 10px; align-items: stretch; }
.hcard { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.hcard--text {
  width: 232px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  background: rgba(20, 18, 29, .6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hcard--text p { font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; }
.hcard__stores { display: flex; gap: 8px; }
.store-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid var(--border); transition: background .3s, transform .5s var(--ease); }
.store-dot .i { font-size: 17px; }
a.store-dot:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.store-dot.is-soon { opacity: .5; }
.hcard--photo { width: 150px; min-height: 172px; background: var(--surface); }
.hcard--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.hcard--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 6, 10, .75), transparent 55%); }
.hcard--photo:hover img { transform: scale(1.06); }
.hcard__tag { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.hcard__go { position: absolute; z-index: 1; right: 10px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); transition: transform .5s var(--ease); }
.hcard--photo:hover .hcard__go { transform: rotate(45deg); }

/* =====================================================================
   HOW IT WORKS — three steps inside the track; the sticky 3D phone
   flips to the matching app screen for each one.
   Spacing is tuned to the phone timeline in js/main.js
   (60vh before each step, step 3 holds for an extra 84vh).
   ===================================================================== */
.steps { position: relative; z-index: 1; }
.step {
  position: relative; min-height: 100vh; margin-top: 60vh;
  padding: var(--pad) var(--pad) calc(var(--pad) + 84px);
  display: flex; flex-direction: column;
}
.step--1 { justify-content: space-between; gap: 40px; }
.step__intro { max-width: 46vw; display: flex; flex-direction: column; gap: 22px; }
.step__intro .h2-xl { font-size: clamp(2.6rem, 6.1vw, 7.2rem); }
.step__lede { max-width: 380px; font-size: 15.5px; line-height: 1.55; color: var(--text-dim); }
.step__body { max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.step__meta { display: flex; align-items: center; gap: 14px; }
.step__dots { display: flex; gap: 6px; }
.step__dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.step__dots i.is-on { width: 30px; background: var(--grad-btn); box-shadow: 0 0 14px rgba(230, 131, 76, .6); }
.step__count { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--brand-3); }
.step__title { font-size: clamp(2rem, 3.5vw, 4.1rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.step__title--xl { font-size: clamp(2.6rem, 6.4vw, 7.6rem); }
.step__text { max-width: 400px; font-size: 15.5px; line-height: 1.55; color: var(--text-dim); }
/* inline chips so text-wrap can balance the rows (3 + 2, never 4 + 1) */
.step__chips { text-wrap: balance; margin-bottom: -6px; }
.step__chips li { display: inline-flex; margin: 0 6px 6px 0; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); font-size: 12.5px; color: var(--text-dim); }
.step--2 { justify-content: center; align-items: flex-end; }
.step--2 .step__body { max-width: 440px; margin-right: 3vw; }
.step--3 { min-height: 0; height: 184vh; padding: 0; }
.step__pin {
  position: sticky; top: 0; height: 100vh;
  padding: var(--pad) var(--pad) calc(var(--pad) + 84px);
  display: flex; flex-direction: column; justify-content: space-between;
}
/* sits above the next body's mobile scrim, which reaches 36px up over it */
.step__body--top { max-width: none; position: relative; z-index: 1; }

.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text); }
.ticks .i { color: var(--brand); font-size: 17px; }

/* =====================================================================
   EXPAND (firms & chambers)
   ===================================================================== */
.expand { position: relative; height: 300vh; }
.expand__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.expand__title { position: relative; z-index: 1; text-align: center; font-size: clamp(2.8rem, 9vw, 10.5rem); line-height: 1; will-change: opacity, filter; }
.expand__title > span { display: block; }
.expand__pill {
  display: inline-block; width: 1.9em; height: .8em; vertical-align: -.02em; border-radius: 999px;
  background: var(--surface-2);
}
.expand__card {
  position: absolute; z-index: 2; inset: 4vh var(--pad); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); will-change: clip-path;
}
.expand__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; will-change: transform; }
.expand__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 10, .88) 0%, rgba(7, 6, 10, .55) 45%, rgba(7, 6, 10, .25) 100%),
    linear-gradient(0deg, rgba(7, 6, 10, .7), transparent 50%),
    radial-gradient(80% 120% at 100% 100%, rgba(230, 76, 134, .35), transparent 60%),
    radial-gradient(60% 90% at 0% 0%, rgba(230, 131, 76, .3), transparent 60%);
}
.expand__content {
  position: absolute; inset: 0; padding: clamp(24px, 4vw, 64px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.expand__copy { max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.expand__copy p { color: rgba(245, 243, 238, .78); font-size: 16px; max-width: 420px; }

.org {
  width: min(380px, 100%); padding: 18px; border-radius: var(--r-lg);
  background: rgba(14, 12, 21, .78); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 14px;
}
.org__head { display: flex; align-items: center; gap: 12px; }
.org__av { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--grad-btn); color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.org__name { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.org__name b { font-weight: 600; } .org__name small { font-size: 12px; color: var(--text-dim); }
.firm { display: inline-flex; align-items: center; gap: .35em; padding: .15em .5em; border-radius: .5em; font-size: max(.85em, var(--fs-label)); font-weight: 600; color: var(--brand-3); background: rgba(242, 169, 107, .12); }
.firm--lg { font-size: 12px; padding: 5px 9px; border-radius: var(--r-sm); }
.org__list { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.org__list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm); font-size: 14px; }
.org__list b { flex: 1; font-weight: 600; }
.mav { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-strong); font-size: var(--fs-label); font-weight: 600; letter-spacing: .02em; color: var(--text-dim); flex: none; }
.role { font-style: normal; font-size: 12px; color: var(--text-dim); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); }
.role--owner { color: var(--ink); background: var(--grad-btn); border-color: transparent; font-weight: 600; }
.role--admin { color: var(--brand-3); border-color: rgba(242, 169, 107, .35); }
.org__new { background: rgba(230, 131, 76, .08); }
.org__invite { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 999px; background: var(--grad-btn); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.org__post { display: flex; flex-direction: column; gap: 8px; }
.org__postlabel { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .28em; color: var(--text-dim); }
.org__postcard { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--border); font-size: 13px; }
.org__postcard p { grid-column: 1 / -1; color: var(--text-dim); }
.org__postcard small { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 12px; }

/* =====================================================================
   FIRMS COPY
   ===================================================================== */
.firms { position: relative; padding: var(--section) var(--pad); }
.firms__lead { max-width: 1240px; font-size: clamp(1.8rem, 3.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.firms__lead span { color: var(--text-faint); }
.firms__grid { margin-top: clamp(48px, 6vw, 90px); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.fcard {
  position: relative; padding: 22px; border-radius: var(--r-lg); min-height: 240px; display: flex; flex-direction: column; gap: 10px;
  background: var(--glass); border: 1px solid var(--border); overflow: hidden;
  transition: transform .7s var(--ease), border-color .4s, background .4s;
}
.fcard:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.fcard__top { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.fcard__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--grad-soft); border: 1px solid rgba(230, 131, 76, .3); color: var(--brand-3); }
.fcard__ico .i { font-size: 20px; }
.fcard h3 { position: relative; margin-top: 40px; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.fcard p { position: relative; font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }

/* =====================================================================
   STAT
   ===================================================================== */
.stat { position: relative; padding: var(--section-lg) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.stat__glow { position: absolute; left: -10%; bottom: -30%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(230, 131, 76, .22), transparent 70%), radial-gradient(closest-side at 70% 30%, rgba(230, 76, 134, .14), transparent 70%); filter: blur(30px); pointer-events: none; }
.stat__big { position: relative; font-weight: 200; font-size: clamp(3.4rem, 10.4vw, 12rem); line-height: .98; letter-spacing: -0.055em; }
.roll { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; position: relative; top: -.02em; }
.roll__col { display: block; white-space: pre; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 400; }
/* three runs of 0-9, one per line (the space after each \A ends the escape and is not printed) */
.roll__col::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stat__text { position: relative; max-width: 620px; font-size: clamp(17px, 1.5vw, 21px); color: var(--text-dim); line-height: 1.5; }
.stat__small { position: relative; font-size: 13px; color: var(--text-dim); }

/* =====================================================================
   REVEAL + ROLES
   ===================================================================== */
.reveal { position: relative; padding: var(--section) var(--pad); }
.reveal__text { max-width: 1500px; font-size: clamp(2rem, 5.3vw, 6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; }
.reveal__text .w { display: inline-block; opacity: .14; transition: none; }
.reveal__text .w.hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roles { margin-top: clamp(60px, 7vw, 110px); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.role-card { position: relative; aspect-ratio: 3 / 3.6; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); isolation: isolate; }
.role-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.85) contrast(1.05); transition: transform 1.4s var(--ease), filter .6s; }
.role-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 6, 10, .95) 0%, rgba(7, 6, 10, .55) 40%, rgba(7, 6, 10, .05) 70%); transition: opacity .6s; }
.role-card:hover img { transform: scale(1.07); filter: saturate(1) contrast(1.05); }
.role-card__body { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.role-card__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(7, 6, 10, .6); border: 1px solid var(--border-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.role-card__body p { font-size: 14px; line-height: 1.45; color: rgba(245, 243, 238, .86); min-height: calc(1.45em * 3); } /* three lines reserved, so every tag sits on one line across the row */

/* =====================================================================
   PRODUCT — six features, one calm card each
   ===================================================================== */
.product { position: relative; padding: var(--section) var(--pad); }
.product__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.product__head > p { max-width: 320px; font-size: 15.5px; color: var(--text-dim); }
.feats { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.feat {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .8s var(--ease), border-color .4s;
}
.feat:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feat__visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; padding: 8% 24px 0; /* 24px: the screenshot starts on the copy's text edge */
  background:
    radial-gradient(90% 70% at 50% 115%, rgba(230, 131, 76, .26), transparent 65%),
    radial-gradient(60% 50% at 100% 0%, rgba(230, 76, 134, .12), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.feat__visual img { width: 100%; height: auto; align-self: start; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); transition: transform 1s var(--ease); }
.feat:hover .feat__visual img { transform: translateY(-8px) scale(1.02); }
/* the map fills its frame edge to edge */
.feat__visual--bleed { padding: 0; }
.feat__visual--bleed img { height: 100%; object-fit: cover; }
.feat__visual::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, var(--bg-2)); pointer-events: none; }
.feat__copy { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.feat h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.feat p { font-size: 15px; line-height: 1.5; color: var(--text-dim); }

/* small status / badge pieces still used by the fallback phone screens */
.ref { font-family: var(--mono); font-size: .86em; color: var(--text-faint); letter-spacing: .02em; }
.st { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st .i { font-size: 1em; }
.st--live { color: var(--brand-3); background: rgba(230, 131, 76, .14); }
.st--done { color: var(--ink); background: var(--grad-btn); }

.bdg { display: inline-block; font-size: .62em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .3em .6em; border-radius: .45em; white-space: nowrap; line-height: 1.2; }
.org__postcard .bdg { font-size: 10px; }
.bdg--imm { background: rgba(228, 60, 70, .95); color: #fff; }
.bdg--same { background: rgba(245, 158, 11, .92); color: var(--ink); }
.bdg--next { background: var(--brand-3); color: var(--ink); }

/* =====================================================================
   MATTERS (giant marquee)
   ===================================================================== */
.matters { position: relative; padding: var(--section) 0; overflow: hidden; }
.matters__eyebrow { display: block; text-align: center; padding: 0 var(--pad); }
.giant { margin: 18px 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.giant__track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
/* each track holds its content twice, so sliding by half its width loops seamlessly */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.giant__track span { font-size: clamp(4rem, 13vw, 15rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; padding: 0 .12em; color: var(--text); white-space: nowrap; }
.giant__track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px rgba(245, 243, 238, .4); }
.sep { flex: none; width: clamp(16px, 1.9vw, 30px); aspect-ratio: 1; margin: 0 clamp(22px, 3.4vw, 56px); border-radius: 50%; background: var(--grad-btn); box-shadow: 0 0 26px rgba(230, 131, 76, .5); }
.pills-marquee { margin-top: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.pills-marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 45s linear infinite reverse; padding-right: 10px; }
.pills-marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); font-size: 16px; white-space: nowrap; }
.pills-marquee .i { color: var(--brand-3); font-size: 18px; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { position: relative; padding: var(--section) var(--pad); display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq__aside { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 26px; max-width: 460px; }
.faq__aside .h3 { color: var(--text); }
.faq__actions { display: flex; gap: 8px; }
.faq__list { border-top: 1px solid var(--border-strong); }
.qa { border-bottom: 1px solid var(--border-strong); }
.qa button { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 26px 0; text-align: left; font-size: clamp(19px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.025em; transition: color .3s; }
.qa button:hover { color: var(--brand-3); }
.qa__pm { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); flex: none; transition: background .4s, border-color .4s, transform .6s var(--ease); }
.qa__pm::before, .qa__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .6s var(--ease); }
.qa__pm::after { transform: rotate(90deg); }
.qa.is-open .qa__pm { background: var(--grad-btn); border-color: transparent; color: var(--ink); transform: rotate(180deg); }
.qa.is-open .qa__pm::after { transform: rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 60px 26px 0; font-size: 16px; color: var(--text-dim); line-height: 1.6; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

/* =====================================================================
   CTA + FOOTER
   ===================================================================== */
.cta { position: relative; padding: var(--section-lg) var(--pad) var(--section); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; overflow: hidden; }
.cta__title { position: relative; font-size: clamp(2.7rem, 7.4vw, 8.4rem); }
.cta__title .line { display: block; }
.cta__text { position: relative; max-width: 520px; font-size: 17px; color: var(--text-dim); }
.cta__actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.footer { position: relative; padding: clamp(40px, 5vw, 70px) var(--pad) 0; overflow: hidden; border-top: 1px solid var(--border); }
.footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 15% 0%, rgba(230, 131, 76, .14), transparent 60%), radial-gradient(700px 400px at 90% 30%, rgba(230, 76, 134, .1), transparent 60%); pointer-events: none; }
.footer__top { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(30px, 6vw, 100px); align-items: start; }
.qr-card--footer { padding: 10px; }
.qr-card--footer p { color: var(--text); font-size: 14px; }
.qr-card--footer button { display: flex; align-items: center; min-height: 24px; margin-top: 4px; font-size: 12px; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer__nav { display: flex; gap: clamp(30px, 6vw, 110px); flex-wrap: wrap; }
.footer__nav > div { display: flex; flex-direction: column; gap: 10px; }
.footer__nav .eyebrow { margin-bottom: 6px; }
.footer__nav a { font-size: 16px; transition: color .3s; width: fit-content; }
.footer__nav a:hover { color: var(--brand-3); }
.footer__muted { font-size: 16px; color: var(--text-dim); }
.footer__mid { position: relative; margin-top: clamp(50px, 6vw, 90px); padding: 22px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); }
.footer__legal { max-width: 520px; }
.footer__credit { width: 100%; font-size: var(--fs-label); }
.footer__credit a { text-decoration: underline; text-underline-offset: 2px; transition: color .3s; }
.footer__credit a:hover { color: var(--brand-3); }
.footer__word { position: relative; margin: 0 calc(var(--pad) * -1); line-height: .78; overflow: hidden; padding-top: 10px; text-align: center; }
/* background-clip: text only paints inside the span's box, and line-height .78 makes that box shorter
   than the letters, so the padding (cancelled by the margin, so nothing moves) keeps their tops painted */
.footer__word span { display: inline-block; padding-top: .2em; margin-top: -.2em; font-size: 16vw; font-weight: 600; letter-spacing: -0.065em; background: linear-gradient(180deg, var(--text) 44%, rgba(245, 243, 238, .08) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(28.6%); white-space: nowrap; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1320px) {
  .hcard--text { display: none; }
}
@media (max-width: 1180px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .firms__grid { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .role-card { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 899px) {
  .stage, .device { --pw: clamp(210px, 30vw, 250px); }
  .hero { gap: 20px; }
  .hero__top { flex-direction: column-reverse; gap: 22px; }
  .brand { font-size: 16px; } .brand img { width: 34px; height: 34px; }
  .hero__title { font-size: clamp(2.7rem, 12.4vw, 5rem); }
  .hero__sub { font-size: 16.5px; max-width: 34ch; }
  .hero__lede { display: none; } /* the line under the headline already says it; keeps the CTA clear of the dock */
  .hero { padding-bottom: 0; }
  .hero__bottom {
    flex-direction: column; align-items: stretch;
    margin: 0 calc(var(--pad) * -1); padding: 110px var(--pad) 104px;
    background: linear-gradient(to bottom, transparent 0, rgba(7, 6, 10, .86) 90px, var(--bg) 100%);
  }
  .hero__lede { font-size: 14.5px; }
  .step__intro::before, .step__body::before {
    content: ""; position: absolute; z-index: -1; inset: -36px calc(var(--pad) * -1) -40px;
    background: linear-gradient(to bottom, rgba(7, 6, 10, .9), rgba(7, 6, 10, .78) 75%, transparent);
  }
  .step__intro, .step__body { position: relative; }
  .hero__cards { display: none; }
  .float { display: none; }
  .step { padding-top: calc(var(--pad) + 30px); }
  .step--1 { justify-content: flex-start; gap: 56px; }
  .step__intro { max-width: none; }
  .step__intro .h2-xl { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .step--2 { justify-content: flex-start; align-items: stretch; }
  .step--2 .step__body { margin-right: 0; }
  .step__pin { padding-top: calc(var(--pad) + 30px); justify-content: flex-start; gap: 26px; }
  .step__text { max-width: 320px; }
  .expand__content { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .expand__copy p { font-size: 14.5px; }
  .org { width: 100%; padding: 14px; gap: 10px; }
  .org__list li { padding: 5px 8px; font-size: 13px; }
  .org__post { display: none; }
  .feats { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__aside { position: static; }
  .menu__inner { grid-template-columns: 1fr; align-content: end; }
  .menu__aside { width: auto; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__up { position: absolute; top: 0; right: 0; }
  .qr-card--footer { width: fit-content; max-width: calc(100% - 60px); }
}
@media (max-width: 560px) {
  .firms__grid { grid-template-columns: 1fr; }
  .fcard { min-height: 0; }
  .fcard h3 { margin-top: 24px; }
  .roles { grid-template-columns: 1fr; gap: 10px; }
  .role-card { aspect-ratio: auto; display: grid; grid-template-columns: 96px 1fr; align-items: center; min-height: 112px; border-radius: var(--r-md); }
  .role-card img { position: static; width: 96px; height: 100%; z-index: auto; }
  .role-card::after { display: none; }
  .role-card__body { position: static; padding: 14px 16px; gap: 6px; }
  .role-card__body p { font-size: 13.5px; min-height: 0; }
  .role-card__tag { padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 15px; }
  .qa__a p { padding-right: 0; }
  .expand__card { inset: 2vh var(--pad); border-radius: var(--r-lg); }
  .expand__copy .h2 { font-size: 2rem; }
  .expand__copy p { display: none; }
  :root { --ctl-lg: 48px; }
  .menu__links a span { display: none; }
}
@media (max-height: 700px) and (min-width: 900px) {
  .hero__lede { font-size: 14px; }
  .hcard--photo { min-height: 150px; }
}
/* narrowest desktop layout: the hero line runs up to where this card floats */
@media (min-width: 900px) and (max-width: 1000px) {
  .float--hero.float--interest { display: none; }
}
/* short phones (320×568 and similar): tighten the hero so the App Store button clears the dock */
@media (max-width: 899px) and (max-height: 640px) {
  .hero__head { gap: 12px; }
  .hero__sub { font-size: 15px; }
  .hero__intro { gap: 12px; }
  .hero__bottom { padding-top: 20px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .reveal__text .w { opacity: 1 !important; }
}
.no-gsap .reveal__text .w { opacity: 1; }

/* touch screens: a QR code is for scanning with a phone, so don't offer one to the phone itself */
@media (hover: none) and (pointer: coarse) {
  [data-qr-open], .qr-card { display: none; }
}
@media (hover: none) and (pointer: coarse) and (min-width: 900px) {
  .footer__top { grid-template-columns: 1fr auto; }
}
/* Android: the dock's "Get the app" becomes "Coming to Android", which needs a little more room */
.is-android .dock__cta { max-width: 200px; }
