/* ==========================================================================
   Coinbase — onboarding for seven markets (2022–23)
   Loads after site.css (tokens, nav, section nav, footer, project intro, button).

   The case study is told on the site's white ground, in six chapters: context, friction, approach, continuity,
   integrations, impact. Each scene is a tall bay whose 100vh stage sticks while scroll scrubs it.
   Typography follows the site system for everything the page says:
   · serif (Light 300) only for the voice — the headline, chapter titles, captions, quotes, the statement
   · sans 400 to read and navigate, labels in the project-label pattern (a Coinbase-blue dot)
   · sans 500 to press — the principles, the rail, the tabs
   · sans 600 tracked tight for the figures you scan: 3×, 34+, 45%, the tiles and the market codes
     (45% runs Geist's variable weight, heavy to light, as the path gets shorter)
   The phones are screenshots, so Coinbase's own UI type is untouched.
   Colour stays in Coinbase's world: one electric blue, rationed to data and progress. The only dark
   surfaces are the devices themselves and the trust wall's screen panel.
   ========================================================================== */

:root {
  --accent: #0052FF;
  --tint: #DCE5FF;
}

.cb {
  --ground: #FFFFFF;        /* the page */
  --band: #F5F5F7;          /* the results band */
  --polar: var(--ink);      /* the page's ink (the source's name for its foreground) */
  --white: #FFFFFF;
  --divider: #C7C7CC;       /* the US bars */
  --panel: #F2F2F4;         /* principle cards */
  --hair: rgba(15, 15, 13, 0.18);
  --chip: rgba(15, 15, 13, 0.06);
  --dim: rgba(15, 15, 13, 0.14);   /* unlit meters, dots and segments */
  --signal: #0052FF;        /* Coinbase blue: rationed to data, progress and calls to action */
  --signal-text: #0052FF;   /* the same blue for dots, hairlines and small text */
  --content: 980px;
  --chrome-b: 0px;          /* room for the section nav when it sits on the bottom edge (phones) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--polar);
}
/* zero-specificity reset, so every component's own spacing wins (site.css already zeroes h1, h2, p, figure) */
:where(.cb) :where(h3, blockquote) { margin: 0; }
.cb [id] { scroll-margin-top: calc(var(--chrome) + 16px); }
.cb .chapter { scroll-margin-top: 0; }   /* chapters open on full-bleed stages */
.cb .wrap { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ==========================================================================
   Type — what the page says
   ========================================================================== */
/* eyebrow: a project label — sentence case, ink-2, led by a blue dot */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 15px/1.3 var(--font-sans);
  letter-spacing: 0;
  color: var(--ink-2);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-text);
}
/* the voice: the headline, chapter titles, captions, quotes and the statement */
.hero-title, .display-xl, .display-l, .display-m, .cap, .fr-title, .quote p, .statement__text,
.cont__title, .iq__q, .imp__label {
  font-family: var(--font-serif);
  font-weight: 300;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}
.hero-title em, .display-xl em { font-style: italic; color: var(--signal-text); }
.display-xl { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.06; letter-spacing: -0.03em; }
.display-l { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -0.028em; }
.display-m { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.022em; }
.lead {
  font: 400 clamp(18px, 1.6vw, 22px)/1.45 var(--font-sans);
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lead strong { font-weight: 500; color: var(--polar); }
.micro { font: 400 13px/1.38 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 36px;
  background: var(--chip);
  font: 400 13px/1.3 var(--font-sans);
  letter-spacing: 0;
  color: #3B3B37;
}
/* figures you scan: Geist 600, tracked tight */
.big3__num, .bar__val, .fr-num, .tile__num, .mk__code {
  font-family: var(--font-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- light glass for callouts and partner pills ---------- */
.lg { position: relative; isolation: isolate; border-radius: 999px; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: 0 0 0 0.5px rgba(15, 15, 13, 0.1), 0 12px 28px -14px rgba(30, 26, 12, 0.34), 0 2px 6px -2px rgba(30, 26, 12, 0.12), inset 0 1px 0 #fff; }
.lg::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.2) 22%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.3) 84%, rgba(255, 255, 255, 0.85) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.lg::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(180px 70px at var(--mx, 22%) var(--my, 0%), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 70%); pointer-events: none; }

/* ---------- device ---------- */
.phone { --w: 300px; position: relative; flex: none; width: var(--w); container-type: inline-size; }
.phone__frame { position: relative; padding: 1.15cqw; border-radius: 15.4cqw; background: linear-gradient(145deg, #7a7b80 0%, #2f3034 12%, #18191c 33%, #4a4b50 52%, #151618 70%, #2c2d31 86%, #66676c 100%); }
.phone__frame::before, .phone__frame::after { content: ""; position: absolute; width: 0.95cqw; }
.phone__frame::before { left: -0.8cqw; top: 16%; height: 23%; background: linear-gradient(to bottom, #3d3e42 0 10%, transparent 10% 30%, #3d3e42 30% 62%, transparent 62% 70%, #3d3e42 70% 100%); border-radius: 0.6cqw 0 0 0.6cqw; }
.phone__frame::after { right: -0.8cqw; top: 27%; height: 11%; background: #3d3e42; border-radius: 0 0.6cqw 0.6cqw 0; }
.phone__bezel { padding: 3.2cqw; border-radius: 14.25cqw; background: #050506; box-shadow: inset 0 0 0 0.3cqw #111214; }
.phone__screen { position: relative; aspect-ratio: 1000 / 2162; border-radius: 11.05cqw; overflow: hidden; background: var(--white); isolation: isolate; }
.phone__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.phone__notch { position: absolute; z-index: 5; top: 0; left: 30%; right: 30%; height: 6.4cqw; background: #050506; border-radius: 0 0 3.6cqw 3.6cqw; }
.phone__notch::before, .phone__notch::after { content: ""; position: absolute; top: 0; width: 1.6cqw; height: 1.6cqw; }
.phone__notch::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 1.55cqw, #050506 1.62cqw); }
.phone__notch::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 1.55cqw, #050506 1.62cqw); }

/* ==========================================================================
   Scenes — a static flow by default (reduced motion), cinematic under .motion
   ========================================================================== */
.scene { position: relative; }
.stage { position: relative; }

/* ---------- Context: launch, dive, and the signup paradox ---------- */
.act1 .stage { display: flex; flex-direction: column; align-items: center; padding-top: calc(var(--nav-top) + var(--nav-h) + 8vh); padding-bottom: 12vh; text-align: center; }
.act1__copy { position: relative; z-index: 3; display: grid; justify-items: center; }
.act1 .eyebrow { justify-content: center; }
.hero-title { margin: 18px auto 0; max-width: 11em; font-size: clamp(44px, min(6.8vw, 11.5vh), 104px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-sub { margin: 22px auto 0; max-width: 26em; }
.act1__device { position: relative; z-index: 2; margin-top: clamp(36px, 6vh, 72px); }
.act1__device .phone { --w: clamp(200px, min(25vw, 38vh), 330px); }
.act1__device .phone__screen { background: #0052FF; }
.splash { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.act1__flood, .act1__big { display: none; }
.act1__caps { display: grid; gap: 28px; margin-top: 14vh; }
.cap { margin-inline: auto; width: min(880px, 100% - 2 * var(--gutter)); font-size: clamp(28px, 3.5vw, 50px); line-height: 1.1; letter-spacing: -0.025em; }
.big3__num { display: block; font-size: clamp(150px, 30vw, 440px); line-height: 0.86; letter-spacing: -0.06em; color: var(--white); }
.big3__cap { display: block; margin-top: 0.8em; font: 400 clamp(19px, 2vw, 28px)/1.3 var(--font-sans); letter-spacing: -0.015em; color: rgba(255, 255, 255, 0.9); }

.chart { --H: min(36vh, 360px); --bw: clamp(30px, 5.4vw, 80px); width: 100%; margin-top: 10vh; }
.chart__plot { display: flex; justify-content: center; gap: clamp(48px, 11vw, 190px); }
.chart__group { position: relative; display: flex; gap: clamp(10px, 1.6vw, 22px); padding-bottom: 62px; }
.chart__base { position: absolute; left: -14px; right: -14px; top: var(--H); height: 1px; background: var(--hair); }
.bar-col { position: relative; width: var(--bw); height: var(--H); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--H) * var(--v) / 3); border-radius: 8px 8px 0 0; transform-origin: 50% 100%; }
.bar--us { background: var(--divider); }
.bar--intl { background: var(--signal); }
.bar--drain { transform: scaleY(0.16667); }
.bar__ghost { position: absolute; left: 0; right: 0; bottom: 0; height: var(--H); border: 1.5px dashed rgba(87, 139, 250, 0.55); border-bottom: 0; border-radius: 8px 8px 0 0; }
.bar__val { position: absolute; left: -30px; right: -30px; bottom: calc(var(--H) * var(--at) / 3 + 10px); text-align: center; font-size: clamp(17px, 1.9vw, 28px); line-height: 1; letter-spacing: -0.03em; }
.bar__lab { position: absolute; left: -34px; right: -34px; top: calc(100% + 12px); text-align: center; font: 400 13px/1.3 var(--font-sans); color: var(--ink-2); }
.chart__glabel { position: absolute; left: -60px; right: -60px; bottom: 0; text-align: center; font: 500 15px/1.3 var(--font-sans); letter-spacing: -0.01em; }
.chart__note { margin-top: 22px; text-align: center; }

/* ---------- Friction: the 34-step journey ---------- */
.friction .stage { padding-block: 16vh 12vh; }
.fr-count { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.fr-num { display: flex; align-items: flex-start; margin-top: 10px; font-size: clamp(120px, 19vw, 280px); line-height: 0.86; letter-spacing: -0.06em; }
.fr-num__plus { margin: 0.06em 0 0 0.04em; font-size: 0.4em; line-height: 1; letter-spacing: 0; color: var(--signal-text); }
.fr-title { margin-top: 28px; max-width: 18em; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.16; letter-spacing: -0.02em; }
.fr-ledger ol { display: grid; gap: 5px; margin-top: 14px; counter-reset: step; }
.fr-ledger li { display: grid; grid-template-columns: 2.4em 1fr; font-size: 15px; line-height: 1.35; letter-spacing: -0.005em; color: rgba(15, 15, 13, 0.82); transition: color 0.3s; }
.fr-ledger li::before { content: counter(step, decimal-leading-zero); counter-increment: step; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.fr-ticks { margin-top: 7vh; }
.fr-ticks__row { display: flex; justify-content: space-between; align-items: flex-end; height: 30px; }
.tick { width: 2px; height: 16px; border-radius: 1px; background: var(--polar); }
.tick:nth-child(5n), .tick:last-child { height: 30px; }
.fr-ticks__ends { display: flex; justify-content: space-between; margin-top: 12px; }
.fr-gates { margin-top: 16vh; }
.fr-gates__title { max-width: 17em; }
.gates { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 48px; }
.gates__line { position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 7px; height: 2px; background: var(--polar); transform-origin: 0 50%; }
.gate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 4px; text-align: center; }
.gate__dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--ground); border: 2px solid var(--polar); }
.gate:last-child .gate__dot { background: var(--signal); border-color: var(--signal); }
.gate__name { font: 500 15px/1.25 var(--font-sans); letter-spacing: -0.015em; }
.gate__abbr { font: 400 12px/1.3 var(--font-sans); letter-spacing: 0.04em; color: var(--ink-2); }

/* ---------- Before: the old screens, pixelated and dulled ---------- */
.before .stage { padding-block: 14vh 10vh; text-align: center; }
.before__head { display: grid; justify-items: center; gap: 16px; }
.before__head .lead { max-width: 26em; }
.before__row { display: flex; justify-content: center; gap: clamp(14px, 4.5vw, 72px); margin-top: 6vh; }
.old { display: grid; justify-items: center; gap: 18px; }
.old .phone { --w: clamp(96px, min(24vw, 23vh), 240px); }
.pix { filter: saturate(0.3) brightness(0.82) contrast(0.92); }
.pix__c { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; image-rendering: pixelated; }
.pix__grid { position: absolute; inset: 0; opacity: 0; pointer-events: none; background-image: linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1px, transparent 1px); background-size: var(--px, 10px) var(--px, 10px); }

/* ---------- Voices ---------- */
.voices .stage { padding-block: 14vh; }
.voices__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.voices__meter { display: flex; gap: 6px; }
.voices__meter span { position: relative; width: 28px; height: 3px; border-radius: 2px; background: var(--dim); overflow: hidden; }
.voices__meter span::after { content: ""; position: absolute; inset: 0; background: var(--polar); transform-origin: 0 50%; transform: scaleX(var(--f, 1)); }
.voices__quotes { display: grid; gap: 12vh; margin-top: 8vh; }
.quote p { max-width: 15em; font-size: clamp(32px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -0.03em; }
.quote figcaption { margin-top: 28px; }
.statement { padding-block: 22vh; }
.statement__text { max-width: 20em; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.14; letter-spacing: -0.025em; text-wrap: pretty; }

/* ---------- Approach + principles ---------- */
.approach-intro { display: grid; gap: 22px; padding-block: 18vh 10vh; }
.approach-intro .display-xl { max-width: 14em; }
.approach-intro .lead { max-width: 33em; }
.principles .stage { padding-block: 6vh 14vh; }
.pr { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pr__title { margin-bottom: 28px; }
.pr__tabs { display: none; }
.acc { display: grid; gap: 12px; }
.acc__item { position: relative; isolation: isolate; border-radius: 28px; }
/* liquid-glass cards: clear while closed, frosted enough to read once open */
.acc__item .glass__tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.22)); transition: background 0.6s var(--ease); }
.acc__item.is-active .glass__tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.52)); }
/* …over a slow field of the splash colours, so the glass has something to bend; the blue follows the open card */
.pr__list { position: relative; isolation: isolate; }   /* keeps the field behind the cards in every mode */
.pr__field { position: absolute; z-index: -1; inset: 40px -90px -70px -110px; pointer-events: none; }
.pr__field i { position: absolute; border-radius: 50%; animation: pr-drift 14s ease-in-out infinite alternate; }
.pr__field i:nth-child(1) { width: 360px; height: 360px; left: -30px; top: calc(-50px + var(--pi, 0) * 68px); background: radial-gradient(closest-side, rgba(0, 82, 255, 0.62), rgba(0, 82, 255, 0)); transition: top 1.3s var(--ease); }
.pr__field i:nth-child(2) { width: 280px; height: 280px; right: -10px; top: 70px; background: radial-gradient(closest-side, rgba(93, 226, 248, 0.7), rgba(93, 226, 248, 0)); animation-duration: 17s; animation-delay: -6s; }
.pr__field i:nth-child(3) { width: 190px; height: 190px; left: 52%; top: calc(320px - var(--pi, 0) * 40px); background: radial-gradient(closest-side, rgba(255, 210, 0, 0.42), rgba(255, 210, 0, 0)); transition: top 1.6s var(--ease); animation-duration: 12s; animation-delay: -3s; }
.pr__field i:nth-child(4) { width: 170px; height: 170px; left: 8%; bottom: 0; background: radial-gradient(closest-side, rgba(0, 209, 127, 0.34), rgba(0, 209, 127, 0)); animation-duration: 19s; animation-delay: -9s; }
@keyframes pr-drift { 0% { translate: 0 0; } 50% { translate: 34px -22px; } 100% { translate: -26px 28px; } }
.acc__btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 22px 15px 16px; border: 0; border-radius: 28px; background: none; cursor: pointer; text-align: left; font: 500 17px/1.24 var(--font-sans); letter-spacing: -0.015em; color: var(--ink-2); transition: color 0.3s; }
.acc__btn:hover, .acc__item.is-active .acc__btn { color: var(--polar); }
.acc__icon { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; transition: transform 0.55s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px; border-radius: 1px; background: currentColor; }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-active .acc__icon { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-active .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { padding: 0 24px 22px 56px; font-size: 16px; line-height: 1.5; color: var(--polar); }
.acc__spec { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.pr__media { display: grid; justify-items: center; gap: 22px; }
.pr__media .phone { --w: clamp(170px, min(26vw, calc((100vh - var(--chrome) - 160px) / 2.07)), 320px); }
.pr__media .phone__screen > img { opacity: 0; transform: scale(1.04); transition: opacity 0.6s ease, transform 0.9s var(--ease); }
.pr__media .phone__screen > img.is-on { opacity: 1; transform: none; }
.pr__caption { display: grid; text-align: center; }
.pr__caption span { grid-area: 1 / 1; opacity: 0; transition: opacity 0.4s; }
.pr__caption span.is-on { opacity: 1; }

/* ---------- fixed-frame sequences (continuity, integrations) ---------- */
.seq-phone .phone__screen { background: #050506; }
.callouts, .dots { display: none; }
.co { position: static; }
.co__dot, .co__line, .co__label { position: absolute; left: 0; top: 0; visibility: hidden; }
.co__dot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 2px var(--white), 0 0 0 7px rgba(0, 82, 255, 0.3); }
.co__dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(87, 139, 250, 0.9); animation: co-pulse 2.4s ease-out infinite; }
@keyframes co-pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.3); opacity: 0; } }
.co__line { height: 1.5px; margin-top: -0.75px; background: var(--signal-text); transform-origin: 0 50%; }
.co--left .co__line { transform-origin: 100% 50%; }
.co__label { display: flex; align-items: center; height: 36px; margin-top: -18px; padding: 0 16px; white-space: nowrap; font: 500 14px/1 var(--font-sans); letter-spacing: -0.01em; color: var(--polar); }
.dots li { position: relative; width: 24px; height: 3px; border-radius: 2px; background: var(--dim); overflow: hidden; }
.dots li::after { content: ""; position: absolute; inset: 0; background: var(--polar); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }

/* ---------- Continuity ---------- */
.cont .stage { padding-block: 14vh 10vh; }
.cont__left { display: grid; gap: 14px; }
.cont__title { font-size: clamp(30px, 3vw, 46px); line-height: 1.08; letter-spacing: -0.028em; }
.rail { display: none; }
.rail__btn { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 7px 0; border: 0; background: none; cursor: pointer; text-align: left; font: 500 17px/1.24 var(--font-sans); letter-spacing: -0.015em; color: rgba(15, 15, 13, 0.3); transition: color 0.35s; }
.rail__btn .n { min-width: 22px; font-size: 12px; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; transition: color 0.35s; }
.rail__btn:hover { color: var(--ink-2); }
.rail__btn.is-active { color: var(--polar); }
.rail__btn.is-active .n { color: var(--signal-text); }
.cont__device { display: none; }
.cont__phone { --w: clamp(180px, min(25vw, calc((100vh - var(--chrome) - 60px) / 2.07)), 330px); }
.cont__list { display: grid; gap: 10px; margin-top: 28px; max-width: 34em; }
.cont__list li { display: flex; gap: 12px; color: var(--ink-2); }
.cont__list b { min-width: 9em; font-weight: 500; color: var(--polar); }
.lineup { display: flex; justify-content: center; gap: 2vw; margin-top: 8vh; }
.lineup .phone { --w: clamp(96px, 15vw, 220px); }
.lineup__cap { margin-top: 5vh; text-align: center; }

/* ---------- Trust wall ---------- */
.wall .stage { padding-block: 16vh 10vh; }
.wall__copy { display: grid; justify-items: center; gap: 14px; text-align: center; }
.wall__copy h2 { max-width: 12em; }
.wall__slot { width: min(var(--content), 100% - 2 * var(--gutter)); height: min(56vh, 540px); margin: 6vh auto 0; }
.wall__media { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 28px; background: #000; }
.wall__media img { width: 100%; height: 100%; object-fit: cover; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; width: min(var(--content), 100% - 2 * var(--gutter)); margin: 6vh auto 0; }
.tp { display: flex; align-items: center; gap: 12px; padding: 9px 20px 9px 9px; border-radius: 999px; }
.tp__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--signal); color: var(--white); }
.tp__ico svg { width: 19px; height: 19px; }
.tp b { display: block; font: 600 15px/1.25 var(--font-sans); letter-spacing: -0.02em; color: var(--polar); }
.tp small { display: block; font: 400 12px/1.35 var(--font-sans); color: var(--ink-2); }

/* ---------- Integrations, step by step ---------- */
.integ .stage { padding-block: 10vh; }
.integ__copy { display: grid; gap: 9vh; }
.iq__k { display: flex; align-items: center; gap: 10px; font: 400 15px/1.3 var(--font-sans); color: var(--ink-2); }
.iq__k::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal-text); }
.iq__q { margin-top: 12px; max-width: 14em; font-size: clamp(26px, 2.7vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
.iq__a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.integ__device { display: flex; justify-content: center; margin-top: 8vh; }
.integ__phone { --w: clamp(150px, min(24vw, calc((100vh - var(--chrome) - 60px) / 2.07)), 320px); }
.integ__phone .phone__screen > img:not(:first-of-type) { display: none; }

/* ---------- Impact ---------- */
@property --g1x { syntax: '<percentage>'; inherits: false; initial-value: 18%; }
@property --g1y { syntax: '<percentage>'; inherits: false; initial-value: 22%; }
@property --g2x { syntax: '<percentage>'; inherits: false; initial-value: 82%; }
@property --g2y { syntax: '<percentage>'; inherits: false; initial-value: 28%; }
@property --g3x { syntax: '<percentage>'; inherits: false; initial-value: 42%; }
@property --g3y { syntax: '<percentage>'; inherits: false; initial-value: 92%; }
.impact .stage { padding-block: 16vh; text-align: center; }
.imp { display: grid; justify-items: center; gap: 6px; }
/* 45%: Geist's variable weight runs heavy to light as the path gets shorter; the fluid runs through mid blues and cyan, so it holds on white */
.imp__num {
  display: flex;
  align-items: flex-start;
  margin-top: 8px;
  padding-inline: 0.04em;
  font: 300 clamp(130px, 25vw, 350px)/0.92 var(--font-sans);
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  background-image:
    radial-gradient(45% 65% at var(--g1x) var(--g1y), #6E9BFF 0%, rgba(110, 155, 255, 0) 70%),
    radial-gradient(55% 75% at var(--g2x) var(--g2y), #19B8E6 0%, rgba(25, 184, 230, 0) 72%),
    radial-gradient(60% 80% at var(--g3x) var(--g3y), #3A6CFF 0%, rgba(58, 108, 255, 0) 75%),
    linear-gradient(165deg, #1F5EFF 0%, #0052ff 50%, #0033B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fluid 11s ease-in-out infinite alternate;
}
.imp__pct { font-size: 0.56em; margin: 0.1em 0 0 0.04em; letter-spacing: 0; }
@keyframes fluid { 0% { --g1x: 18%; --g1y: 22%; --g2x: 82%; --g2y: 28%; --g3x: 42%; --g3y: 92%; } 33% { --g1x: 64%; --g1y: 12%; --g2x: 28%; --g2y: 72%; --g3x: 86%; --g3y: 58%; } 66% { --g1x: 34%; --g1y: 80%; --g2x: 72%; --g2y: 16%; --g3x: 14%; --g3y: 38%; } 100% { --g1x: 82%; --g1y: 56%; --g2x: 20%; --g2y: 34%; --g3x: 56%; --g3y: 10%; } }
.imp__label { max-width: 18em; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.14; letter-spacing: -0.022em; }
.meter-wrap { display: grid; gap: 14px; width: min(720px, 100%); margin-top: 6vh; }
.meter { --sg: 6px; --sw: calc((min(720px, 100vw - 2 * var(--gutter)) - 200px) / 20); position: relative; display: flex; align-items: center; height: 12px; }
.meter::before { content: ""; position: absolute; inset: -9px -10px; border: 1px dashed var(--hair); border-radius: 15px; }
.seg { flex: none; width: var(--sw); height: 10px; margin-right: var(--sg); border-radius: 5px; background: var(--signal); }
.seg.x { width: 0; margin-right: 0; opacity: 0; background: var(--dim); }
.meter__end { flex: none; margin-left: 8px; font: 500 12px/1 var(--font-sans); color: var(--polar); white-space: nowrap; }
.meter__ends { display: flex; justify-content: space-between; }
.band { background: var(--band); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 12vh; }
.tile { display: grid; align-content: space-between; gap: clamp(40px, 8vh, 88px); min-height: min(42vh, 360px); padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--ground); box-shadow: 0 0 0 0.5px rgba(15, 15, 13, 0.06), 0 18px 40px -28px rgba(30, 26, 12, 0.3); }
.tile__num { font-size: clamp(64px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.05em; color: var(--signal-text); }
.tile__lab { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.tile__lab strong { font-weight: 500; color: var(--polar); }
.markets { padding-block: 4vh 16vh; text-align: center; }
.markets .lead { margin-top: 16px; }
.markets__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3.4vw, 48px); margin-top: 7vh; }
.mk { display: grid; justify-items: center; gap: 8px; }
.mk__code { font-size: clamp(44px, 7vw, 104px); line-height: 1; letter-spacing: -0.05em; }
.mk__name { font: 400 13px/1.3 var(--font-sans); color: var(--ink-2); }

/* ---------- Next case (the site's project intro, on black) ---------- */
.next { padding-block: clamp(120px, 20vh, 220px) 0; }
.next .wrap { width: auto; max-width: calc(1200px + 2 * var(--gutter)); padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.next-tag { padding-top: 14px; border-top: 1px solid var(--line); font: 400 15px/1.3 var(--font-sans); color: var(--ink-2); }
.next .project { --accent: #E1323A; max-width: 720px; }

/* ==========================================================================
   Cinematic mode
   ========================================================================== */
.motion .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.motion .act1 { height: 520vh; }
.motion .friction { height: 400vh; }
.motion .before { height: 260vh; }
.motion .voices { height: 440vh; }
.motion .principles { height: 380vh; }
.motion .cont { height: 820vh; }
.motion .wall { height: 320vh; }
.motion .integ { height: 820vh; }
.motion .impact { height: 300vh; }

/* hero: hidden until the intro runs; a CSS fallback reveals it if scripts stall */
.motion .act1__copy > *, .motion .act1__device .phone { opacity: 0; animation: reveal-fallback 0.01s 2.6s forwards; }
@keyframes reveal-fallback { to { opacity: 1; } }
.motion .hero-title .w { display: inline-block; }
.motion .splash .sp-arc { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.motion .splash .sp-tok, .motion .splash .sp-globe { opacity: 0; }

.motion .act1 .stage { padding-top: calc(var(--nav-top) + var(--nav-h) + 4vh); padding-bottom: 0; }
.motion .act1__flood { display: block; position: absolute; inset: 0; z-index: 4; background: #0052FF; visibility: hidden; opacity: 0; }
.motion .act1__big { display: grid; position: absolute; inset: 0; z-index: 5; place-items: center; align-content: center; text-align: center; pointer-events: none; }
.motion .act1__big > * { visibility: hidden; }
.motion .act1__caps { position: absolute; left: 0; right: 0; top: calc(var(--chrome) + 4vh); z-index: 6; margin: 0; display: grid; }
.motion .act1__caps .cap { grid-area: 1 / 1; visibility: hidden; }
.motion .chart { position: absolute; left: 0; right: 0; bottom: max(7vh, var(--chrome-b) + 16px); z-index: 3; margin: 0; visibility: hidden; }

.motion .friction .stage { display: flex; flex-direction: column; justify-content: center; padding: var(--chrome) 0 var(--chrome-b); }
.motion .fr-ledger li { color: rgba(15, 15, 13, 0.22); }
.motion .fr-ledger li.is-done { color: rgba(15, 15, 13, 0.55); }
.motion .fr-ledger li.is-on { color: var(--polar); }
.motion .fr-num__plus, .motion .fr-title { visibility: hidden; }
.motion .fr-gates { position: absolute; left: 0; right: 0; top: calc(var(--chrome) + 14vh); margin-block: 0; visibility: hidden; }

.motion .before .stage { display: flex; flex-direction: column; justify-content: center; padding: var(--chrome) 0 var(--chrome-b); }
.motion .before .lead, .motion .old figcaption { visibility: hidden; }

.motion .voices .stage { display: flex; flex-direction: column; justify-content: center; padding: var(--chrome) 0 var(--chrome-b); }
.motion .voices__quotes { gap: 0; margin-top: 7vh; }
.motion .voices__quotes > .quote { grid-area: 1 / 1; }
.motion .voices__quotes > .quote:not(:first-child) { visibility: hidden; }
.motion .quote figcaption { visibility: hidden; }
.motion .quote .w, .motion .statement__text .w { opacity: 0.15; }

.motion .principles .stage { display: flex; align-items: center; padding: var(--chrome) 0 0; }

.motion .callouts { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.motion .dots { display: flex; position: absolute; left: 0; right: 0; bottom: calc(var(--chrome-b) + 4.5vh); z-index: 5; justify-content: center; gap: 6px; }

.motion .cont .stage { padding: 0; }
.motion .cont__left { position: absolute; z-index: 3; left: max(var(--gutter), calc(50% - 620px)); top: var(--chrome); bottom: 0; width: min(26vw, 360px); display: flex; flex-direction: column; justify-content: center; }
.motion .rail { display: grid; gap: 2px; margin-top: 30px; }
.motion .cont__list { display: none; }
.motion .cont__device { position: absolute; z-index: 2; left: 0; right: 0; top: var(--chrome); bottom: 0; display: flex; align-items: center; justify-content: center; }
.motion .seq-phone .phone__screen > img { visibility: hidden; }
.motion .seq-phone .phone__screen > img:first-of-type { visibility: visible; }
.motion .cont .dots { display: none; }
.motion .lineup { position: absolute; z-index: 3; left: 0; right: 0; top: var(--chrome); bottom: 0; margin: 0; align-items: center; padding-top: 10vh; }
.motion .lineup .phone { visibility: hidden; }
.motion .lineup__cap { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--chrome) + 3vh); margin: 0; padding-inline: var(--gutter); visibility: hidden; }

.motion .wall .stage { display: flex; flex-direction: column; align-items: center; padding: calc(var(--chrome) + 4vh) 0 0; }
.motion .wall__copy { position: relative; z-index: 3; }
/* ink on white while the screens are a card; white once they fill the screen (the colour is scripted) */
.motion .wall__copy :is(.eyebrow, .lead) { color: color-mix(in srgb, currentColor 74%, transparent); }

.motion .wall__sub { visibility: hidden; }
.motion .wall__media { position: absolute; inset: 0; z-index: 1; border-radius: 0; clip-path: inset(40% 10% 6% 10% round 28px); }
.motion .wall__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42) 70%), linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55)); opacity: var(--scrim, 0); }
.motion .trust { position: absolute; inset: var(--chrome) 0 0; z-index: 4; display: block; width: auto; margin: 0; pointer-events: none; }
.motion .tp { position: absolute; visibility: hidden; pointer-events: auto; }

.motion .integ .stage { padding: 0; }
.motion .integ__copy { position: absolute; z-index: 3; left: max(var(--gutter), calc(50% - 620px)); top: var(--chrome); bottom: 0; width: min(30vw, 440px); display: grid; align-content: center; gap: 0; }
.motion .iq { grid-area: 1 / 1; }
.motion .iq:not(:first-child) { visibility: hidden; }
.motion .iq__a { display: none; }
.motion .integ__device { position: absolute; z-index: 2; left: 46%; right: 0; top: var(--chrome); bottom: 0; margin: 0; align-items: center; }
.motion .integ__phone .phone__screen > img:not(:first-of-type) { display: block; }

.motion .impact .stage { display: flex; align-items: center; justify-content: center; padding: var(--chrome) 0 var(--chrome-b); }
.motion .seg.x { width: var(--sw); margin-right: var(--sg); opacity: 1; }
html:not(.motion) .imp__num, html:not(.motion) .co__dot::after { animation: none; }

/* tablets: the integrations phone moves right so the left-hand callouts clear the copy */
@media (min-width: 820px) and (max-width: 1099px) {
  .motion .integ__device { left: 50%; }
  .motion .integ__copy { width: min(28vw, 440px); }
}

/* ==========================================================================
   Narrow screens (the site's breakpoint: the section nav moves to the bottom edge)
   ========================================================================== */
@media (max-width: 819px) {
  .cb { --chrome-b: calc(68px + env(safe-area-inset-bottom, 0px)); font-size: 16px; }
  .chart { --H: 30vh; --bw: 30px; }
  .chart__plot { gap: 44px; }
  .fr-count { grid-template-columns: 1fr; gap: 26px; align-items: start; }
  .fr-ledger ol { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .fr-ledger li { font-size: 13px; }
  .gates { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .gates__line { left: 7px; right: auto; top: 11px; bottom: 11px; width: 2px; height: auto; transform-origin: 50% 0; }
  .gate { flex-direction: row; align-items: center; gap: 14px; min-height: 22px; padding-inline: 0; text-align: left; }
  .gate__dot { flex: none; }
  .gate__abbr::before { content: "· "; }
  .old .phone { --w: clamp(90px, 27vw, 140px); }
  .before__row { gap: 10px; }
  .old .chip { padding: 4px 10px; font-size: 11px; }
  .pr { grid-template-columns: 1fr; gap: 24px; }
  .pr__title { margin-bottom: 16px; }
  .acc { gap: 8px; }
  .acc__btn { padding: 11px 18px 11px 12px; font-size: 16px; }
  .acc__panel p { padding: 0 18px 16px 50px; font-size: 15px; }
  .pr__media .phone { --w: clamp(120px, min(42vw, calc((100vh - 545px) / 2.07)), 220px); }
  .lineup { gap: 0; }
  .lineup .phone { --w: 26vw; }
  .lineup .phone + .phone { margin-left: -7vw; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile { min-height: 0; }
  .next .wrap { grid-template-columns: minmax(0, 1fr); }
  .motion .act1 { height: 460vh; }
  .motion .friction { height: 360vh; }
  .motion .before { height: 240vh; }
  .motion .voices { height: 400vh; }
  .motion .principles { height: 340vh; }
  .motion .cont { height: 740vh; }
  .motion .wall { height: 280vh; }
  .motion .integ { height: 740vh; }
  .motion .impact { height: 260vh; }
  .motion .fr-gates { top: calc(var(--chrome) + 4vh); }
  /* principles on phones: title, a segmented control, the device, then one principle card at a time */
  .motion .principles .stage { display: flex; flex-direction: column; align-items: stretch; padding: calc(var(--chrome) + 4px) 0 calc(var(--chrome-b) + 8px); }
  .motion .pr { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .motion .pr__list { display: contents; }
  .motion .pr { position: relative; }
  .motion .pr__field { inset: auto -50px -40px -50px; height: 300px; }
  .motion .pr__field i:nth-child(1) { width: 260px; height: 260px; top: 30px; left: calc(-20px + var(--pi, 0) * 50px); transition: left 1.3s var(--ease); }
  .motion .pr__field i:nth-child(2) { width: 220px; height: 220px; top: 10px; }
  .motion .pr__field i:nth-child(3) { width: 150px; height: 150px; top: 150px; }
  .motion .pr__title { order: 1; margin: 0; font-size: 30px; }
  .motion .pr__tabs { order: 2; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); }
  .motion .pr__tabs button { flex: 1 1 auto; height: 32px; padding: 0 6px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 500 12px/1 var(--font-sans); letter-spacing: -0.005em; color: var(--ink-2); transition: background-color 0.35s, color 0.35s, box-shadow 0.35s; }
  .motion .pr__tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 15, 13, 0.08), 0 4px 10px -4px rgba(15, 15, 13, 0.18); }
  .motion .pr__media { order: 3; flex: 1; min-height: 0; container-type: size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
  .motion .pr__media .phone { --w: min(60cqw, calc((100cqh - 46px) / 2.07)); }
  .motion .pr__caption { padding: 6px 14px; border-radius: 36px; background: var(--chip); color: var(--ink); }
  .motion .acc { order: 4; display: grid; gap: 0; }
  .motion .acc__item { grid-area: 1 / 1; padding: 16px 18px 18px; border-radius: 24px; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s 0.2s; }
  .motion .acc__item.is-active { opacity: 1; visibility: visible; transition: opacity 0.4s ease 0.2s, visibility 0s 0.2s; }
  .motion .acc__btn { padding: 0; font: 600 20px/1.2 var(--font-sans); letter-spacing: -0.03em; color: var(--polar); pointer-events: none; }
  .motion .acc__icon { display: none; }
  .motion .acc__panel { grid-template-rows: 1fr; transition: none; }
  .motion .acc__panel p { padding: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
  .motion .acc__spec { font-size: 13px; line-height: 1.4; }
  .motion .cont__left { left: var(--gutter); right: var(--gutter); top: calc(var(--chrome) + 8px); bottom: auto; width: auto; display: block; }
  .motion .cont__title { margin-top: 10px; font-size: 26px; }
  .motion .rail { display: none; }
  .motion .cont .dots { display: flex; }
  .motion .cont__device { top: calc(var(--chrome) + 108px); bottom: auto; height: auto; }
  .motion .cont__phone { --w: clamp(130px, min(44vw, calc((100vh - var(--chrome) - var(--chrome-b) - 270px) / 2.07)), 220px); }
  .motion .lineup { padding-top: 6vh; }
  .motion .lineup .phone { --w: 26vw; }
  .motion .lineup__cap { font-size: 26px; }
  .co__dot { width: 20px; height: 20px; margin: -10px 0 0 -10px; display: grid; place-items: center; font: 600 11px/1 var(--font-sans); color: var(--white); }
  .co__dot::before { content: attr(data-n); }
  .co__label { height: 32px; margin-top: 0; padding: 0 14px; font-size: 13px; }
  .motion .wall__copy h2 { font-size: 36px; }
  .motion .trust { inset: auto 0 calc(var(--chrome-b) + 2vh); display: grid; gap: 8px; padding-inline: var(--gutter); }
  .motion .tp { position: relative; left: auto !important; right: auto !important; top: auto !important; padding: 7px 16px 7px 7px; }
  .tp__ico { width: 32px; height: 32px; }
  .tp b { font-size: 14px; }
  .motion .integ__device { left: 0; top: calc(var(--chrome) + 8px); bottom: auto; }
  .motion .integ__phone { --w: clamp(120px, min(40vw, calc((100vh - var(--chrome) - var(--chrome-b) - 300px) / 2.07)), 200px); }
  .motion .integ__copy { left: var(--gutter); right: var(--gutter); width: auto; bottom: auto; align-content: start; }
  .iq__q { font-size: 24px; }
}
