/* GILESTEL.si — one visual world: night, old gold, starlight. Single theme by choice.
   Layout idea: a navigator's chart. A thin meridian runs down the left margin; the hero is an engraved star field
   with a live phone standing in the star; one Dawn (paper) band carries the investor thesis. */
:root {
  color-scheme: dark;
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='30 30 940 940'%3E%3Cpath d='M883.2 500C819.23 564.13 740.83 610.56 655.63 636.15C632.85 750.9 580.97 861.1 500 955.09C419.03 861.1 367.15 750.9 344.37 636.15C259.17 610.56 180.77 564.13 116.8 500C180.77 435.87 259.17 389.44 344.37 363.85C367.15 249.1 419.03 138.9 500 44.91C580.97 138.9 632.85 249.1 655.63 363.85C740.83 389.44 819.23 435.87 883.2 500ZM578.7 434.66C526.65 425.51 473.35 425.51 421.3 434.66C416.63 478.09 416.63 521.91 421.3 565.34C473.35 574.49 526.65 574.49 578.7 565.34C583.37 521.91 583.37 478.09 578.7 434.66Z'/%3E%3C/svg%3E");
  --night: #070B14;
  --night-2: #0B111E;
  --surface: #0F1624;
  --surface-2: #161E30;
  --surface-3: #1D283F;
  --line: rgba(167, 190, 236, 0.12);
  --line-2: rgba(167, 190, 236, 0.22);
  --ink: #F1F3F9;
  --ink-2: rgba(241, 243, 249, 0.74);
  --ink-3: rgba(241, 243, 249, 0.56);
  --gold: #EAC582;
  --gold-hi: #F5E7C3;
  --gold-deep: #CFA25A;
  --gold-soft: rgba(234, 197, 130, 0.12);
  --gold-line: rgba(234, 197, 130, 0.34);
  --ok: #76E9D4;
  --way: #7AACF6;
  --hold: #949FB2;
  --bad: #FA8469;
  --paper: #F5F2EB;
  --paper-2: #FEFDFB;
  --paper-ink: #0D162C;
  --paper-ink-2: rgba(13, 22, 44, 0.72);
  --paper-gold: #875D04;
  --paper-line: rgba(13, 22, 44, 0.14);
  --serif: "Newsreader", "New York", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gut: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --sec: clamp(88px, 12vw, 168px);
  --e-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --e-move: cubic-bezier(0.65, 0, 0.35, 1);
  --sp-press: cubic-bezier(0.3, 1.25, 0.5, 1);
  --sp-settle: cubic-bezier(0.25, 1.15, 0.4, 1);
  --sp-pop: cubic-bezier(0.3, 1.6, 0.5, 1);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
  --sp-press: linear(0, 0.036, 0.126, 0.245, 0.375, 0.502, 0.618, 0.719, 0.803, 0.869, 0.92, 0.958, 0.985, 1.002, 1.013, 1.019, 1.021, 1.021, 1.019, 1.016, 1.013, 1.01, 1.007, 1.005, 1.003, 1.001, 1);
  --sp-settle: linear(0, 0.031, 0.109, 0.216, 0.336, 0.459, 0.576, 0.682, 0.775, 0.853, 0.915, 0.964, 1, 1.025, 1.041, 1.05, 1.053, 1.052, 1.049, 1.043, 1.037, 1.03, 1.024, 1.018, 1.013, 1.009, 1.005, 1.002, 1);
  --sp-pop: linear(0, 0.067, 0.232, 0.445, 0.663, 0.858, 1.011, 1.117, 1.176, 1.195, 1.183, 1.152, 1.111, 1.068, 1.03, 0.999, 0.978, 0.966, 0.962, 0.964, 0.97, 0.978, 0.986, 0.994, 1, 1.004, 1.007, 1.007, 1.006, 1.004, 1.002, 1);
  }}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html { overflow-x: clip; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 16.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { max-width: 100%; display: block; }
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, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--night); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */
.d1 { font: 400 clamp(44px, 7.4vw, 108px)/0.98 var(--serif); letter-spacing: -0.025em; text-wrap: balance; font-optical-sizing: auto; }
.d2 { font: 400 clamp(34px, 4.8vw, 68px)/1.04 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.d3 { font: 400 clamp(26px, 2.8vw, 38px)/1.14 var(--serif); letter-spacing: -0.012em; text-wrap: balance; }
.h { font: 600 19px/1.3 var(--sans); letter-spacing: -0.005em; }
.lead { font: 400 clamp(18px, 1.5vw, 21px)/1.55 var(--sans); color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.label { font: 600 12.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.label.is-quiet { color: var(--ink-3); }
.num { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
em.g { font-style: italic; color: var(--gold-hi); }

/* ---------- Structure ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; position: relative; }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 860px; }
.view[hidden] { display: none; }

/* the meridian: a hairline with ticks down the left margin, on wide screens */

/* ---------- Symbol ---------- */
.sym { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wordmark { height: 1em; width: auto; fill: currentColor; }
.gstar { position: relative; display: inline-grid; place-items: center; width: var(--gs, 72px); height: var(--gs, 72px); color: var(--gold); flex: none; transition: color 240ms var(--e-move); }
.gstar-halo { position: absolute; inset: -38%; border-radius: 50%; background: radial-gradient(closest-side, rgba(234, 197, 130, 0.42), transparent 74%); opacity: 0.4; pointer-events: none; transition: opacity 240ms; }
.gstar svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.gstar-cut { fill: none; stroke: #000; stroke-width: 100; }
.gstar-loop, .gstar-light { fill: none; stroke: currentColor; stroke-width: 62; stroke-linejoin: miter; stroke-miterlimit: 14; }
.gstar-light { stroke: var(--gold-hi); stroke-linecap: round; opacity: 0; }
.gstar-light.is-v { stroke-dasharray: 148.4 1598; }
.gstar-light.is-h { stroke-dasharray: 125.6 1352.3; }
.gstar-ring { fill: none; stroke: currentColor; stroke-width: 13; stroke-linecap: round; stroke-dasharray: 3041.1; stroke-dashoffset: 3041.1; transform-origin: 500px 500px; transform: rotate(-90deg); opacity: 0; }
.gstar-body { transform-origin: 500px 500px; }
.gstar[data-state="working"] .gstar-halo, .gstar[data-state="listening"] .gstar-halo { animation: gs-breathe 3200ms var(--e-move) infinite; }
.gstar[data-state="working"] .gstar-light { opacity: 1; }
.gstar[data-state="working"] .gstar-light.is-v { animation: gs-run-v 2400ms linear infinite; }
.gstar[data-state="working"] .gstar-light.is-h { animation: gs-run-h 2400ms linear -1200ms infinite; }
.gstar[data-state="acting"] .gstar-body { animation: gs-pulse 600ms var(--sp-pop); }
.gstar[data-state="acting"] .gstar-halo { animation: gs-flare 600ms var(--e-out); }
.gstar[data-state="success"] .gstar-ring { opacity: 1; animation: gs-ring 500ms var(--e-out) both; }
.gstar[data-state="success"] .gstar-body { animation: gs-set 810ms var(--sp-pop); }
.gstar[data-state="success"] .gstar-halo { opacity: 0.7; }
.gstar[data-state="paused"] { color: var(--hold); }
.gstar[data-state="paused"] .gstar-halo { opacity: 0.1; }
.gstar[data-state="reveal"] .gstar-loop.is-v { stroke-dasharray: 1746.4; animation: gs-draw-v 900ms var(--e-move) 200ms both; }
.gstar[data-state="reveal"] .gstar-loop.is-h { stroke-dasharray: 1477.9; animation: gs-draw-h 900ms var(--e-move) 650ms both; }
.gstar[data-state="reveal"] .gstar-halo { animation: gs-ignite 900ms var(--e-out) 1500ms both; }
@keyframes gs-breathe { 0%, 100% { opacity: 0.32; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.06); } }
@keyframes gs-run-v { from { stroke-dashoffset: 1746.4; } to { stroke-dashoffset: 0; } }
@keyframes gs-run-h { from { stroke-dashoffset: 1477.9; } to { stroke-dashoffset: 0; } }
@keyframes gs-draw-v { from { stroke-dashoffset: 1746.4; } to { stroke-dashoffset: 0; } }
@keyframes gs-draw-h { from { stroke-dashoffset: 1477.9; } to { stroke-dashoffset: 0; } }
@keyframes gs-pulse { 0% { transform: scale(1); } 30% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes gs-set { from { transform: scale(0.9); } to { transform: scale(1); } }
@keyframes gs-flare { 0% { opacity: 0.4; transform: scale(1); } 35% { opacity: 0.9; transform: scale(1.16); } 100% { opacity: 0.4; transform: scale(1); } }
@keyframes gs-ring { from { stroke-dashoffset: 3041.1; } to { stroke-dashoffset: 0; } }
@keyframes gs-ignite { 0% { opacity: 0; transform: scale(0.8); } 45% { opacity: 0.9; transform: scale(1.12); } 100% { opacity: 0.4; transform: scale(1); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  background: #F4F0E4; color: var(--night); transition: transform 380ms var(--sp-press), background 160ms, box-shadow 240ms; }
.btn:hover { background: #FFFFFF; box-shadow: 0 10px 40px -12px rgba(234, 197, 130, 0.55); }
.btn:active { transform: scale(0.97); transition-duration: 90ms; }
.btn.is-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.is-quiet:hover { background: rgba(241, 243, 249, 0.06); box-shadow: none; }
.btn.is-ink { background: var(--paper-ink); color: var(--paper); }
.btn.is-ink:hover { background: #17233F; box-shadow: none; }
.btn.is-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold); border-bottom: 1px solid var(--gold-line); padding-bottom: 2px; transition: color 160ms, border-color 160ms; }
.link:hover { color: var(--gold-hi); border-color: var(--gold-hi); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px); height: 60px; padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(11, 17, 30, 0.72); border: 1px solid var(--line); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.8); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .sym { font-size: 24px; color: var(--gold); }
.brand .wordmark { font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); font: 500 14.5px/1 var(--sans); color: var(--ink-2); }
.nav-links a { padding: 10px 2px; transition: color 160ms; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 860px) { .nav-links .opt { display: none; } .nav-in { padding-left: 16px; gap: 12px; }}
.nav-links small { margin-left: 7px; padding: 3px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font: 600 10px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 1px; }
@media (max-width: 480px) { .brand .wordmark { font-size: 12px; } .nav-in { gap: 10px; padding-left: 14px; } .nav .btn.is-sm { padding: 0 14px; }}

/* ---------- Sky: one star, its light, a horizon. Nothing else is in the background. ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(62% 50% at 50% 0%, #142040 0%, rgba(20, 32, 64, 0) 72%); }
.sky-cone { position: absolute; left: 50%; top: var(--star-y, 128px); width: 240vmax; height: 130vh; margin-left: -120vmax; transform-origin: 50% 0;
  background: conic-gradient(from 180deg at 50% 0, rgba(245, 231, 195, 0.13) 0deg, rgba(245, 231, 195, 0.08) 10deg, rgba(245, 231, 195, 0.09) 17deg, rgba(245, 231, 195, 0.028) 30deg, rgba(245, 231, 195, 0) 42deg, rgba(245, 231, 195, 0) 318deg, rgba(245, 231, 195, 0.028) 330deg, rgba(245, 231, 195, 0.09) 343deg, rgba(245, 231, 195, 0.08) 350deg, rgba(245, 231, 195, 0.13) 360deg);
  -webkit-mask-image: radial-gradient(64% 80% at 50% 0, #000 0%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0) 100%); mask-image: radial-gradient(64% 80% at 50% 0, #000 0%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0) 100%); }
.sky::after { content: ""; position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sky-horizon { position: absolute; left: 50%; bottom: -50vh; width: 230vw; height: 66vh; margin-left: -115vw; border-radius: 50%; background: radial-gradient(closest-side, #0B1426 62%, rgba(11, 20, 38, 0) 100%); box-shadow: 0 -1px 0 rgba(167, 190, 236, 0.22), 0 -34px 100px -34px rgba(122, 172, 246, 0.26), 0 -10px 44px -18px rgba(234, 197, 130, 0.22); }

/* ---------- First screen: one axis. Star, headline, one sentence, the prompt. ---------- */
.story { position: relative; }
.story-pin { position: relative; }
.story .sky { height: min(100vh, 980px); -webkit-mask-image: linear-gradient(#000 82%, rgba(0, 0, 0, 0)); mask-image: linear-gradient(#000 82%, rgba(0, 0, 0, 0)); }
.story-wrap { position: relative; z-index: 2; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: clamp(11px, 1.8vh, 20px); max-width: 1160px; margin: 0 auto; padding: clamp(92px, 11.5vh, 124px) var(--gut) clamp(48px, 8vh, 96px); }
.hero-copy .d1 { font-size: clamp(40px, min(5.6vw, 9vh), 82px); }
.hero .hero-copy { padding-top: clamp(128px, 19vh, 200px); }
.hero .hero-copy .d1 { font-size: clamp(34px, min(5.4vw, 9.4vh), 78px); }
.hero-copy .lead { max-width: 60ch; }
.hero .hero-copy .lead { max-width: 62ch; }
.hero-star { --gs: clamp(40px, 5.2vh, 52px); }
.co-star { --gs: 54px; }
.hero .sky { --star-y: calc(clamp(128px, 19vh, 200px) + 27px); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.facts-sec { padding: clamp(36px, 5vw, 72px) 0 0; }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > div { padding: 26px 22px 26px 0; display: grid; gap: 6px; }
.strip > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.strip b { font: 400 24px/1.2 var(--serif); letter-spacing: -0.01em; }
.strip .small { font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .strip > div:nth-child(3) { padding-left: 0; border-left: 0; } .strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }}
@media (max-width: 420px) { .strip { grid-template-columns: 1fr; } .strip > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }}

/* ---------- The phone (real interface, drawn in HTML) ---------- */
.phone { --pw: 318px; width: var(--pw); aspect-ratio: 318 / 660; position: relative; flex: none; border-radius: 55px; transform-style: preserve-3d;
  /* a titanium band lit from the upper left: bright where the star's light lands, near black on the far side */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.2) 7%, rgba(255, 255, 255, 0) 20%), linear-gradient(135deg, #8A90A0 0%, #3C404B 24%, #17191F 56%, #07080B 100%);
  box-shadow: 0 0 0 1px #030408, inset 1.3px 1.3px 0 rgba(255, 255, 255, 0.46), inset -1.3px -1.3px 0 rgba(0, 0, 0, 0.75), inset 0 0 0 2.4px rgba(0, 0, 0, 0.3), 0 0 56px -8px rgba(96, 128, 214, 0.36), 0 70px 100px -44px rgba(0, 0, 0, 0.95), 0 30px 54px -28px rgba(0, 0, 0, 0.85);
  transform: perspective(1500px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); }
.phone::before { content: ""; position: absolute; inset: 3.5px; border-radius: 51.5px; background: #020306; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
/* the side keys: one pseudo-element, four small bars that stand proud of the band */
.phone::after { content: ""; position: absolute; inset: 0 -2.6px; pointer-events: none; transform: translateZ(-5px);
  background: linear-gradient(90deg, #7A8090, #2C303A) left 112px / 3.2px 24px no-repeat, linear-gradient(90deg, #7A8090, #2C303A) left 158px / 3.2px 46px no-repeat, linear-gradient(90deg, #7A8090, #2C303A) left 216px / 3.2px 46px no-repeat, linear-gradient(270deg, #7A8090, #2C303A) right 186px / 3.2px 74px no-repeat; }
/* thickness: script stacks a few of these behind the face, so a turn shows a real edge */

.phone-in { position: absolute; inset: 10px; border-radius: 45px; overflow: hidden; font-family: var(--sans); box-shadow: 0 0 0 1px rgba(130, 160, 235, 0.13);
  background: radial-gradient(120% 66% at 50% -12%, #26386A 0%, rgba(38, 56, 106, 0) 72%), linear-gradient(180deg, #131C36, #0D1429); }
/* the island: closed it is a camera; during approval it opens to read the face */
.ph-island { position: absolute; top: 10px; left: 50%; width: 94px; height: 28px; transform: translateX(-50%); border-radius: 16px; z-index: 6; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 77% 50%, #1D2843 0 2.2px, #0A0D16 2.6px 4.6px, rgba(0, 0, 0, 0) 5px), #000; transition: width 520ms var(--sp-settle), height 520ms var(--sp-settle), border-radius 520ms var(--sp-settle); }
.ph-island svg { width: 24px; height: 24px; fill: none; stroke: var(--way); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 200ms, stroke 240ms; }
.ph-island[data-face="scan"], .ph-island[data-face="ok"] { width: 150px; height: 44px; border-radius: 23px; background: #000; }
.ph-island[data-face="scan"] svg { opacity: 1; animation: ph-scan 900ms var(--e-move) infinite alternate; }
.ph-island[data-face="ok"] svg { opacity: 1; stroke: var(--ok); }
@keyframes ph-scan { from { opacity: 0.45; } to { opacity: 1; } }
/* a keyboard under the sentence being typed */

/* glass: one hard diagonal reflection and the star's light on the top of the screen */
.phone-in::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.018) 31%, rgba(255, 255, 255, 0) 31.3%), radial-gradient(70% 36% at var(--sx, 50%) var(--sy, -4%), rgba(245, 231, 195, 0.13), rgba(245, 231, 195, 0) 72%); }
.ph-eye { font: 600 9.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ph-ev { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding-bottom: 12px; position: relative; }
.ph-ev::before { content: ""; position: absolute; left: 12.5px; top: 28px; bottom: 0; width: 1px; background: var(--line-2); }
.ph-ev:last-child::before { display: none; }
.ph-ev[data-new="true"] { animation: ph-arrive 590ms var(--sp-settle) backwards; }
.ph-ev[data-new="true"] .ph-evt::after { content: ""; position: absolute; inset: -6px -8px; border-radius: 12px; background: var(--gold-soft); opacity: 0; animation: ph-wash 1400ms var(--e-move); pointer-events: none; }
.ph-evm { width: 26px; height: 26px; border-radius: 50%; background: rgba(118, 233, 212, 0.14); color: var(--ok); display: grid; place-items: center; }
.ph-evm[data-tone="gold"] { background: var(--gold-soft); color: var(--gold); } .ph-evm[data-tone="way"] { background: rgba(122, 172, 246, 0.14); color: var(--way); }
.ph-evm svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-evt { position: relative; display: grid; gap: 3px; }
.ph-evt b { font: 600 12.5px/1.3 var(--sans); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph-evt span { font: 400 11.5px/1.4 var(--sans); color: var(--ink-3); }
.ph-tag { padding: 3px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font: 600 9.5px/1 var(--sans); letter-spacing: 0.02em; }
.phone-cap { margin-top: 18px; text-align: center; }
@keyframes ph-arrive { from { opacity: 0; max-height: 0; padding-bottom: 0; transform: translateY(-8px); } to { opacity: 1; max-height: 110px; transform: none; } }
@keyframes ph-wash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- How it works: steps beside a sticky phone ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.how-phone { position: sticky; top: max(96px, calc(50vh - 340px)); display: grid; justify-items: center; }
.steps { display: grid; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 6px 20px; padding: clamp(26px, 4.4vw, 54px) 0; border-top: 1px solid var(--line); text-align: left; width: 100%; opacity: 0.7; transition: opacity 320ms; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step[data-on="true"] { opacity: 1; }
.step-n { font: 400 30px/1 var(--serif); color: var(--gold); font-variant-numeric: lining-nums; }
.step .d3 { grid-column: 2; }
.step .sp { grid-column: 2; }
.step q { quotes: none; font: italic 400 19px/1.45 var(--serif); color: var(--gold-hi); display: block; margin-top: 6px; }
@media (max-width: 940px) { .how { grid-template-columns: 1fr; } .how-phone { position: relative; top: 0; order: -1; } .step { opacity: 1; }}

/* ---------- Limits ---------- */
.limits { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.fence { border-radius: 32px; background: linear-gradient(180deg, var(--surface), var(--night-2)); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 26px; }
.fence-fig { font: 400 clamp(48px, 6.4vw, 84px)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.fence-fig small { font-size: 0.5em; color: var(--ink-2); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: grab; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) calc(var(--p, 20) * 1%), var(--surface-3) 0); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-3); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%; background: #F4F0E4; border: 0; box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.7), 0 0 0 6px var(--gold-soft); transition: transform 380ms var(--sp-press); }
.range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #F4F0E4; border: 0; box-shadow: 0 0 0 6px var(--gold-soft); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.facts { display: grid; }
.fact { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.fact b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; color: var(--ink-2); }
.ticks li::before { content: ""; width: 7px; height: 7px; margin: 10px 0 0 6px; border-radius: 50%; background: var(--gold); }
.ticks b { color: var(--ink); font-weight: 600; }
@media (max-width: 940px) { .limits { grid-template-columns: 1fr; }}

/* ---------- Cards and grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: border-color 240ms, transform 590ms var(--sp-settle); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgba(234, 197, 130, 0.1), transparent 60%); opacity: 0; transition: opacity 320ms; pointer-events: none; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card q { quotes: none; font: italic 400 20px/1.4 var(--serif); color: var(--gold-hi); }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; padding: 7px 11px; border-radius: 999px; background: var(--surface-2); font: 600 12px/1 var(--sans); color: var(--ink-2); }
.pill[data-tone="ok"] { background: rgba(118, 233, 212, 0.12); color: var(--ok); }
.pill[data-tone="gold"] { background: var(--gold-soft); color: var(--gold); }
.pill[data-tone="way"] { background: rgba(122, 172, 246, 0.13); color: var(--way); }
@media (max-width: 940px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; }}
.net { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); font: 500 14px/1 var(--sans); color: var(--ink-2); }
.net i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--gold)); }

/* why .si */
.si { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 6vw, 96px); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 88px) 0; }
.si-mark { font: italic 400 clamp(110px, 17vw, 250px)/1 var(--serif); letter-spacing: -0.04em; padding: 0.1em 0.08em 0.04em 0; color: transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, rgba(234, 197, 130, 0.12)); -webkit-background-clip: text; background-clip: text; }
.si .fact { display: grid; grid-template-columns: 130px 1fr; align-items: baseline; }
.si .fact b { max-width: 46ch; font-weight: 500; text-align: left; }
@media (max-width: 860px) { .si { grid-template-columns: 1fr; }}

/* never list */
.never { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 80px); }
.never li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.never li::before { content: "×"; font: 400 24px/1.1 var(--serif); color: var(--bad); }
.never b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 760px) { .never { grid-template-columns: 1fr; }}

/* ---------- Paper band (Dawn) ---------- */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .lead, .paper .body { color: var(--paper-ink-2); }
.paper .label { color: var(--paper-gold); }
.paper .small { color: rgba(13, 22, 44, 0.62); }
.paper .link { color: var(--paper-gold); border-color: rgba(135, 93, 4, 0.4); }
.paper .card { background: var(--paper-2); border-color: var(--paper-line); }
.paper .card::before { display: none; }
.paper .fact { border-color: var(--paper-line); color: var(--paper-ink-2); }
.paper .fact b { color: var(--paper-ink); }
.paper em.g { color: var(--paper-gold); }
.paper ::selection { background: var(--paper-ink); color: var(--paper); }

/* evidence: sourced figures */
.evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--paper-line); }
.ev { padding: clamp(22px, 3vw, 36px) clamp(16px, 2vw, 28px) clamp(22px, 3vw, 36px) 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--paper-line); }
.ev:not(:nth-child(3n + 1)) { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--paper-line); }
.ev-fig { font: 400 clamp(40px, 4.6vw, 64px)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.ev a { font: 500 12.5px/1.4 var(--sans); color: var(--paper-gold); border-bottom: 1px solid rgba(135, 93, 4, 0.3); justify-self: start; }
@media (max-width: 940px) { .evidence { grid-template-columns: 1fr; } .ev:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }}

/* thesis and plain rows */
.thesis { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.rows { display: grid; }
.rowx { display: grid; grid-template-columns: minmax(120px, 0.34fr) 1fr; gap: 12px 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.rowx:last-child { border-bottom: 1px solid var(--line); }
.paper .rowx { border-color: var(--paper-line); }
.rowx > :first-child { font-weight: 600; }
@media (max-width: 760px) { .thesis { grid-template-columns: 1fr; } .rowx { grid-template-columns: 1fr; gap: 6px; }}

.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line-2); }
.road li { padding: 0 18px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.road li::before { content: ""; width: 19px; height: 19px; background: var(--surface-3); -webkit-mask: var(--star-mask) center / contain no-repeat; mask: var(--star-mask) center / contain no-repeat; position: relative; }
.road li[data-now="true"]::before { background: var(--gold); }
.road li[data-done="true"]::before { background: var(--ok); }
@media (max-width: 860px) { .road { grid-template-columns: 1fr; gap: 26px; } .road::before { left: 9px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; } .road li { grid-template-columns: 19px 1fr; column-gap: 16px; } .road li > * { grid-column: 2; } .road li::before { grid-column: 1; grid-row: 1 / span 3; }}

/* ---------- A picture, full width ---------- */
.band { position: relative; min-height: clamp(320px, 46vw, 620px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--night) 0%, transparent 22%, transparent 55%, rgba(7, 11, 20, 0.92) 100%), linear-gradient(90deg, transparent 40%, rgba(7, 11, 20, 0.7) 100%); }
.band .wrap { padding-top: 40px; padding-bottom: clamp(36px, 6vw, 80px); display: grid; justify-items: end; text-align: right; }
.band .d2 { max-width: 16ch; }

/* ---------- Closing call ---------- */
.call { position: relative; border-radius: clamp(28px, 4vw, 48px); border: 1px solid var(--line); padding: clamp(40px, 7vw, 96px) clamp(22px, 5vw, 80px); overflow: hidden; display: grid; gap: 26px; justify-items: start; isolation: isolate;
  background: radial-gradient(80% 120% at 100% 0%, rgba(234, 197, 130, 0.14), transparent 55%), linear-gradient(180deg, var(--surface), var(--night-2)); }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.addr { font: 500 16px/1 var(--mono); padding: 16px 18px; border-radius: 14px; background: #0A0F19; border: 1px solid var(--line-2); user-select: all; }
.paper .addr { background: var(--paper-2); border-color: var(--paper-line); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.6fr)); gap: 32px; }
.foot h3 { font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot li { margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
.foot li a:hover { color: var(--ink); }
.foot-word { font-size: clamp(20px, 2.6vw, 28px); color: var(--ink); }
.legal { margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.legal p { font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 108ch; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; }}

/* ---------- Arrival on scroll: script adds .motion to <html> and marks blocks as they enter ---------- */
html.motion .rise { opacity: 0; transform: translateY(30px); }
html.motion .rise.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--e-out) calc(var(--i, 0) * 70ms), transform 950ms var(--sp-settle) calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .gstar-light { display: none; }}

/* ================================================================================================
   THE FIRST SCREEN, THE STORY AND THE MOTION
   Script adds .motion to <html> when motion is allowed. Without it (no script, or Reduce Motion)
   everything below falls back to a plain, complete page: a centred hero, five steps you can tap
   beside a still phone, lists in place of moving rows.
   ================================================================================================ */
@property --glow { syntax: "<color>"; inherits: true; initial-value: rgba(122, 172, 246, 0.1); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.ph-evt b [data-k] { font: inherit; color: inherit; }

/* ---------- The prompt: the one bright thing on the first screen besides the star ---------- */

.ask { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 22px; border-radius: 999px; background: rgba(10, 15, 25, 0.88); border: 1px solid var(--gold-line); box-shadow: 0 0 0 6px rgba(234, 197, 130, 0.05), 0 30px 90px -36px rgba(234, 197, 130, 0.55); transition: border-color 240ms, box-shadow 320ms; }
.ask::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--ang), rgba(245, 231, 195, 0) 0 72%, var(--gold-hi) 88%, rgba(245, 231, 195, 0) 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); }
html.motion .ask::before { animation: ask-orbit 5200ms linear infinite; }
.ask:focus-within { border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-soft), 0 30px 90px -30px rgba(234, 197, 130, 0.7); }
.ask:focus-within::before { animation-play-state: paused; opacity: 0; }
.ask input { flex: 1; min-width: 0; height: 52px; background: none; border: 0; outline: 0; color: var(--ink); font: 400 19px/1 var(--serif); text-align: left; }
.ask input::placeholder { color: var(--ink-3); font-style: italic; }
.ask .btn svg { width: 15px; height: 15px; }
@keyframes ask-orbit { to { --ang: 360deg; } }
@media (max-width: 560px) { .ask { padding-left: 16px; gap: 8px; } .ask input { font-size: 17px; height: 48px; } .ask .btn { padding: 0; width: 48px; min-height: 48px; } .ask .btn .t { display: none; }}

/* ---------- Opening: the symbol draws, then rises to become the star over the page ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; align-content: center; gap: 34px; cursor: pointer; }
.intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 30%, #101930, var(--night) 70%); transition: opacity 780ms var(--e-move); }
.intro > * { position: relative; }
html.intro-on .intro { display: grid; }
html.intro-on { overflow: hidden; }
html.intro-on .hero-star { opacity: 0; }
.intro .gstar { --gs: clamp(96px, 14vw, 150px); transition: transform 800ms var(--e-move); }
.intro .wordmark { height: clamp(18px, 2.4vw, 26px); color: var(--ink); opacity: 0; transform: translateY(16px); animation: intro-word 500ms var(--e-out) 700ms forwards; transition: opacity 260ms; }
.intro .gstar[data-state="reveal"] .gstar-loop.is-v { animation-duration: 600ms; animation-delay: 80ms; }
.intro .gstar[data-state="reveal"] .gstar-loop.is-h { animation-duration: 600ms; animation-delay: 380ms; }
.intro .gstar[data-state="reveal"] .gstar-halo { animation-duration: 600ms; animation-delay: 900ms; }
.intro.is-out { pointer-events: none; }
.intro.is-out::before { opacity: 0; }
.intro.is-out .wordmark { animation: none; opacity: 0; }
@keyframes intro-word { to { opacity: 1; transform: none; } }

/* ---------- First screen: lines rise, the rest follows, the phone comes up from below ---------- */
.ln { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.ln > span { display: block; }
html.motion .ln > span { transform: translateY(114%); transition: transform 1100ms var(--e-out); }
html.motion .ln + .ln > span { transition-delay: 110ms; }
html.motion.hero-in .ln > span { transform: none; }
html.motion .hero-copy > *:not(h1):not(.hero-star) { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--e-out), transform 900ms var(--sp-settle); }
html.motion.hero-in .hero-copy > *:not(h1):not(.hero-star) { opacity: 1; transform: none; }
html.motion.hero-in .hero-copy > *:nth-child(3) { transition-delay: 260ms; }
html.motion.hero-in .hero-copy > *:nth-child(4) { transition-delay: 380ms; }
html.motion.hero-in .hero-copy > *:nth-child(5) { transition-delay: 500ms; }
html.motion .story .how-phone { opacity: 0; transform: translateY(150px); transition: opacity 900ms var(--e-out) 420ms, transform 1500ms var(--sp-settle) 420ms; }
html.motion.hero-in .story .how-phone { opacity: 1; transform: none; }
html.motion .hero .hero-copy { translate: 0 calc(var(--hp, 0) * -70px); opacity: calc(1 - var(--hp, 0) * 1.5); }
html.no-tr .hero-copy > *, html.no-tr .how-phone, html.no-tr .ln > span { transition: none !important; }
html.motion .sky-cone { rotate: calc(var(--px, 0) * 3.2deg); animation: sky-breathe 7s var(--e-move) infinite; }
@keyframes sky-breathe { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }

/* ---------- The story: the first screen and one mission, pinned and driven by the scroll ---------- */
.stagebox { position: relative; display: grid; place-items: center; }
/* the phone stands on something: a contact shadow and the faint glow of its screen on the ground */
.stagebox::after { content: ""; position: absolute; left: var(--pcx, 50%); bottom: -6px; width: 330px; height: 44px; margin-left: -165px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0)), radial-gradient(closest-side, rgba(96, 128, 214, 0.22), rgba(96, 128, 214, 0)); background-size: 78% 60%, 100% 100%; background-position: 50% 30%, 50% 50%; background-repeat: no-repeat; filter: blur(9px); }
.fence-line, .chip-r, .fence-tag, .rail { display: none; }
html.motion .story { height: 640vh; }
html.motion .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; overflow: clip; --glow: rgba(122, 172, 246, 0.1); }
html.motion .story .sky { height: auto; opacity: var(--hero, 1); -webkit-mask-image: none; mask-image: none; }
html.motion .story .hero-copy { position: absolute; inset: 0; z-index: 3; max-width: none; align-content: start; padding-top: clamp(80px, 10vh, 98px); padding-bottom: 0; opacity: var(--hero, 1); translate: 0 calc((1 - var(--hero, 1)) * -80px); }
html.motion .story .hero-copy[data-off="true"] { visibility: hidden; }
html.motion .story .lede { display: none; }
html.motion .story-wrap { padding-top: 0; padding-bottom: 0; z-index: 4; pointer-events: none; }
html.motion .story-pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--in, 0); background: radial-gradient(46% 58% at var(--gx, 70%) 50%, var(--glow), transparent 72%); transition: --glow 900ms var(--e-move); }
html.motion .story-pin[data-ch="approve"] { --glow: rgba(234, 197, 130, 0.13); }
html.motion .story-pin[data-ch="work"] { --glow: rgba(118, 233, 212, 0.1); }
html.motion .story-pin[data-ch="stop"] { --glow: rgba(148, 159, 178, 0.1); }
html.motion .story .how { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: center; }
html.motion .story .how-phone { position: relative; top: auto; }
html.motion .story .steps { position: relative; min-height: 380px; opacity: var(--in, 0); }
html.motion .story .step { position: absolute; left: 0; right: 0; top: 50%; border: 0; padding: 0; opacity: 0; translate: 0 calc(-50% + 34px); pointer-events: none; grid-template-columns: 1fr; gap: 18px; transition: opacity 420ms var(--e-out), translate 800ms var(--sp-settle); }
html.motion .story .step[data-on="true"] { opacity: 1; translate: 0 -50%; }
html.motion .story .step[data-past="true"] { translate: 0 calc(-50% - 34px); }
html.motion .story .step-n { font: 600 14px/1 var(--sans); letter-spacing: 0.16em; }
html.motion .story .step-n::after { content: " / 5"; color: var(--ink-3); }
html.motion .story .step .d3 { grid-column: 1; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.025em; }
html.motion .story .step .sp { grid-column: 1; font-size: clamp(17px, 1.45vw, 20px); max-width: 36ch; }
html.motion .story .phone-cap { display: none; }
html.motion .stagebox { --pcx: 340px; width: 820px; height: 712px; justify-items: start; padding-left: 181px; flex: none; translate: var(--tx, 0px) var(--ty, 0px); scale: var(--k, 1); will-change: translate, scale; }
html.motion .fence-line { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
html.motion .fence-line rect { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 1000; stroke-dashoffset: calc(1000px - var(--fence, 0) * 1000px); filter: drop-shadow(0 0 10px rgba(234, 197, 130, 0.5)); }
html.motion .fence-line .hit { stroke: var(--bad); stroke-width: 3.4; stroke-linecap: round; opacity: var(--hit, 0); transition: opacity 180ms; filter: drop-shadow(0 0 12px rgba(250, 132, 105, 0.9)); }
html.motion .fence-line .glow { stroke: var(--gold-hi); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 22 978; stroke-dashoffset: calc(22px - var(--fence, 0) * 1000px); opacity: calc(var(--fence, 0) * (1 - var(--fence, 0)) * 4); }
html.motion .fence-tag { display: flex; align-items: center; gap: 7px; position: absolute; top: -17px; left: 50%; translate: -50% 0; padding: 9px 16px; border-radius: 999px; background: var(--night); border: 1px solid var(--gold-line); font: 600 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); white-space: nowrap; z-index: 4; opacity: clamp(0, calc(var(--fence, 0) * 3 - 2), 1); }
html.motion .fence-tag b { color: var(--gold-hi); font-weight: 600; }
html.motion .chip-r { display: grid; gap: 4px; position: absolute; width: 166px; padding: 12px 13px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.9); z-index: 3;
  opacity: var(--o, 0); translate: calc((1 - var(--o, 0)) * var(--dx, 0px)) calc((1 - var(--o, 0)) * var(--dy, 0px)); scale: calc(0.55 + 0.45 * var(--o, 0)); }
html.motion .chip-r b { font: 600 13.5px/1.3 var(--sans); }
html.motion .chip-r span { font: 400 12.5px/1.35 var(--sans); color: var(--ink-2); }
html.motion .chip-r i { font: 600 10.5px/1 var(--sans); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
html.motion .chip-r::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: rgba(118, 233, 212, 0.14) var(--tick) center / 11px no-repeat; }
.chip-r { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376E9D4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.chip-r[data-c="a"] { left: 6px; top: 104px; --dx: 250px; --dy: 250px; }
.chip-r[data-c="b"] { left: 6px; top: 244px; --dx: 250px; --dy: 120px; }
.chip-r[data-c="c"] { left: 6px; top: 432px; --dx: 250px; --dy: -50px; }
/* the step that is over the cap: the largest thing on this screen. It travels to the line and is stopped there. */
.chip-r[data-c="d"] { left: auto; right: 6px; top: 262px; --dx: -230px; --dy: 40px; }
html.motion .chip-r[data-c="d"] { width: 300px; padding: 22px 24px 24px; gap: 9px; border-radius: 24px; border-color: rgba(250, 132, 105, 0.55); background: linear-gradient(180deg, #211B25, #17141C); }
html.motion .chip-r[data-c="d"] i { font-size: 12px; letter-spacing: 0.12em; color: var(--bad); }
html.motion .chip-r[data-c="d"] b { font: 400 30px/1.06 var(--serif); letter-spacing: -0.02em; }
html.motion .chip-r[data-c="d"] span { font-size: 16px; line-height: 1.4; color: var(--ink-2); }
html.motion .chip-r[data-c="d"]::before { width: 28px; height: 28px; background: rgba(250, 132, 105, 0.16) var(--cross) center / 13px no-repeat; }
.chip-r { --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FA8469' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
html.motion .chip-r[data-c="d"][data-hit="true"] { animation: chip-stop 520ms var(--sp-pop); }
@keyframes chip-stop { 0% { transform: translateX(0); } 30% { transform: translateX(-16px); } 100% { transform: translateX(0); } }
/* the three limits, set large beside the plan; on approval they become the line */
.lim { display: none; }
html.motion .lim { display: grid; gap: 8px; position: absolute; width: 166px; z-index: 3; opacity: var(--o, 0); translate: calc((1 - var(--o, 0)) * var(--dx, 0px)) 0; }
html.motion .lim span { font: 600 11.5px/1.25 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
html.motion .lim b { font: 400 32px/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); white-space: nowrap; }
html.motion .lim b small { font-size: 0.55em; color: var(--ink-2); }
.lim[data-l="a"] { left: 6px; top: 138px; text-align: right; --dx: 44px; }
.lim[data-l="b"] { left: 523px; top: 300px; --dx: -44px; }
.lim[data-l="c"] { left: 6px; top: 462px; text-align: right; --dx: 44px; }
html.motion .lim[data-l="c"] b { font-size: 25px; }
.lim[data-l="bal"] { left: 523px; top: 244px; width: 284px; --dx: -44px; }
html.motion .lim[data-l="bal"] { gap: 12px; }
html.motion .lim[data-l="bal"] p { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); font: 400 17px/1.2 var(--sans); color: var(--ink-2); }
html.motion .lim[data-l="bal"] p span { font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
html.motion .lim[data-l="bal"] em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink); }
html.motion .lim[data-l="bal"] > span { margin-top: 6px; }
html.motion .lim[data-l="bal"] b { font-size: 54px; color: var(--ok); }
html.motion .rail { display: flex; gap: 10px; position: absolute; left: var(--gut); right: var(--gut); bottom: 12px; max-width: var(--max); margin: 0 auto; z-index: 5; opacity: var(--in, 0); }
html.motion .rail li { flex: 1; }
.rail-note { display: none; }
html.motion .rail .rail-note { display: block; flex: 1.7; padding: 9px 0 0 16px; font: 400 12.5px/1.4 var(--sans); color: var(--ink-3); }
html.motion .rail button { display: grid; gap: 10px; width: 100%; padding: 10px 0 6px; text-align: left; font: 600 11px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); transition: color 320ms; font-size: 12px; }
html.motion .rail button::before { content: ""; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--gold) calc(var(--f, 0) * 100%), var(--line-2) 0); }
html.motion .rail button:hover, html.motion .rail li[data-on="true"] button { color: var(--gold); }
html.motion .story-pin[data-idle="true"] .rail { visibility: hidden; }
@media (max-width: 1180px) {
  html.motion .story-wrap { position: absolute; inset: 0; display: grid; align-items: center; }
  html.motion .story .how { display: block; }
  html.motion .story .steps { position: absolute; inset: 78px var(--gut) 70px; min-height: 0; z-index: 4; pointer-events: none; }
  html.motion .story .step { inset: 0; top: 0; translate: 0 22px; grid-template-rows: auto auto 1fr auto; align-content: stretch; gap: 8px; }
  html.motion .story .step[data-on="true"] { translate: 0 0; }
  html.motion .story .step[data-past="true"] { translate: 0 -22px; }
  html.motion .story .step .d3 { font-size: clamp(27px, 7.6vw, 40px); }
  html.motion .story .step .sp { align-self: end; font-size: 15px; line-height: 1.45; max-width: none; }
  html.motion .story .step q { font-size: 16px; }
  html.motion .stagebox { --pcx: 50%; width: 500px; height: 720px; justify-items: center; align-items: start; padding: 30px 0 0; }
  html.motion .lim, html.motion .chip-r, html.motion .fence-line .hit { display: none; }
  html.motion .fence-tag { top: -15px; font-size: 11.5px; padding: 8px 13px; scale: calc(1 / var(--k, 1)); }
  html.motion .chip-r[data-c="d"] { display: grid; left: calc(50% - 150px); right: auto; top: auto; bottom: -44px; width: 300px; padding: 13px 18px 15px; gap: 3px; border-radius: 20px; --dx: 0px; --dy: -110px; scale: calc((0.6 + 0.4 * var(--o, 0)) / var(--k, 1)); }
  html.motion .chip-r[data-c="d"]::before { display: none; }
  html.motion .chip-r[data-c="d"] i { font-size: 10.5px; }
  html.motion .chip-r[data-c="d"] b { font-size: 22px; }
  html.motion .chip-r[data-c="d"] span { display: block; font-size: 14px; }
  html.motion .chip-r[data-c="d"][data-hit="true"] { animation: none; border-color: var(--bad); box-shadow: 0 0 0 4px rgba(250, 132, 105, 0.16), 0 20px 44px -22px rgba(0, 0, 0, 0.9); }
  html.motion .rail { bottom: 2px; gap: 6px; }
  html.motion .rail button { font-size: 0; gap: 0; padding: 21px 0; }
  html.motion .rail .rail-note { display: none; }
  html.motion .story .hero-copy { padding-top: clamp(84px, 11.5vh, 120px); gap: clamp(12px, 1.9vh, 20px); }}

/* ---------- Missions: each card shows what you would read when it is done ---------- */
.outcome { border-radius: 18px; background: #0A0F19; border: 1px solid var(--line); padding: 16px 16px 4px; display: grid; margin-top: 4px; }
.outcome .ph-ev { grid-template-columns: 28px 1fr; gap: 12px; }
.outcome .ph-evm { width: 28px; height: 28px; }
.outcome .ph-evt b { font-size: 14.5px; }
.outcome .ph-evt span { font-size: 13.5px; color: var(--ink-2); }
.outcome .ph-tag { font-size: 10.5px; color: var(--gold); }
.card[data-hit="true"] { animation: card-hit 2200ms var(--e-out); }
@keyframes card-hit { 0%, 30% { border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-soft), 0 30px 80px -40px rgba(234, 197, 130, 0.6); } 100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } }

/* ---------- Errands: three tickets on a stage, inside the same gold line as the story ---------- */
.pay-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.pay-title { display: grid; gap: 22px; }
.pay-lead { display: grid; gap: 18px; }
.x402 { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: clamp(26px, 3.4vw, 44px); }
@media (max-width: 940px) { .pay-head { grid-template-columns: 1fr; }}

/* ---------- The agent's sentences, passing by; they move faster when you scroll ---------- */

/* ---------- Words that light as you read; figures that count; a course that is drawn ---------- */
html.motion [data-words] .wd { opacity: calc(0.2 + 0.8 * var(--w, 0)); transition: opacity 180ms linear; }
html.motion .road::before { transform-origin: 0 50%; transform: scaleX(var(--rp, 0)); }
@media (max-width: 860px) { html.motion .road::before { transform-origin: 50% 0; transform: scaleY(var(--rp, 0)); }}
html.motion .band img { scale: calc(1.16 - var(--bp, 0) * 0.16); translate: 0 calc((var(--bp, 0) - 0.5) * -60px); }
html.motion .si-mark { background-size: 100% calc(30% + var(--sp, 0) * 170%); background-repeat: no-repeat; background-position: 50% 100%; }
html.motion .never li { opacity: 0; translate: -18px 0; }
html.motion .never.is-in li { opacity: 1; translate: 0 0; transition: opacity 600ms var(--e-out) calc(var(--n, 0) * 90ms), translate 900ms var(--sp-settle) calc(var(--n, 0) * 90ms); }

/* ---------- Small responses: a follower for the pointer, buttons that lean, a bar that steps aside ---------- */

html.motion .btn[data-mag] { translate: var(--tx, 0px) var(--ty, 0px); transition: translate 590ms var(--sp-settle), transform 380ms var(--sp-press), background 160ms, box-shadow 240ms; }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%); transform: translateX(-130%); pointer-events: none; }
.btn:not(.is-quiet):hover::after { transform: translateX(130%); transition: transform 800ms var(--e-out); }
.nav-in { transition: translate 590ms var(--sp-settle), opacity 240ms; }
html.motion .nav[data-away="true"] .nav-in { translate: 0 -140%; opacity: 0; }
html.motion .nav:focus-within .nav-in { translate: none; opacity: 1; }
/* on the first screen the prompt owns the only filled button; the bar's button fills in once you have moved on */
.nav .btn { transition: background 320ms, color 320ms, box-shadow 320ms, transform 380ms var(--sp-press); }
html.motion .nav[data-top="true"] .btn { background: rgba(241, 243, 249, 0.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.wipe { position: fixed; inset: 0; z-index: 80; background: var(--night-2); pointer-events: none; visibility: hidden; translate: 0 101%; display: grid; place-items: center; color: var(--gold); font-size: 64px; }
.wipe[data-on] { visibility: visible; }
.wipe[data-on="in"] { translate: 0 0; transition: translate 460ms var(--e-move); }
.wipe[data-on="out"] { translate: 0 -101%; transition: translate 520ms var(--e-move); }

/* ---------- Looping pictures rest while they cannot be seen ---------- */
[data-live="false"], [data-live="false"] *, [data-live="false"]::before, [data-live="false"]::after, [data-live="false"] *::before, [data-live="false"] *::after { animation-play-state: paused !important; }
html.motion .story .hero-copy[data-off="true"] *, html.motion .story .hero-copy[data-off="true"] *::before { animation-play-state: paused !important; }
/* ---------- Fingers: targets of at least 44px ---------- */
@media (pointer: coarse) { .btn.is-sm { min-height: 44px; } .nav-links a { padding: 15px 2px; } .foot li a { display: inline-block; padding: 9px 0; } .foot li { margin-bottom: 0; }}

/* ================================================================================================
   REAL OBJECTS (gl.js): a rendered body under the HTML screen, the star as an object, a coin.
   Script adds .gl to <html> when the body is being rendered; without it the drawn phone above stands.
   ================================================================================================ */

html.gl .phone { background: none; box-shadow: none; }
html.gl .phone::before, html.gl .phone::after { display: none; }
html.gl .phone-in { box-shadow: 0 0 0 1px rgba(130, 160, 235, 0.08); }
.gstar-3d { position: absolute; left: 50%; top: 50%; max-width: none; translate: -50% -50%; opacity: 0; transition: opacity 800ms var(--e-out); pointer-events: none; }
.gstar[data-3d="on"] .gstar-3d { opacity: 1; }
.gstar[data-3d="on"] > svg { opacity: 0; transition: opacity 600ms var(--e-out) 200ms; }

/* ---------- Agent payments: two parties and a wire. A request, a price, a coin, a delivery. ---------- */
.wire { position: relative; isolation: isolate; border-radius: 40px; border: 1px solid var(--line-2); padding: clamp(26px, 4vw, 52px) clamp(16px, 4vw, 56px) clamp(22px, 3vw, 40px); display: grid; gap: clamp(22px, 3vw, 38px);
  background: radial-gradient(60% 60% at 50% 0%, rgba(234, 197, 130, 0.09), rgba(234, 197, 130, 0) 68%), linear-gradient(180deg, var(--surface), var(--night-2)); }
@media (max-width: 760px) {
  .wire { border-radius: 30px; }}

/* ---------- The course, and the legal view ---------- */
#next .road { border-top: 0; }
.legal-page { padding-top: clamp(130px, 18vh, 190px); }
.legal-page .rowx .link { display: inline; font-weight: 500; }

/* ---------- The symbol at full size: beside the closing call, and across the company view ---------- */
.call > *:not(.call-star) { position: relative; z-index: 1; }
.call-star { position: absolute; right: clamp(-30px, 5vw, 90px); top: 50%; translate: 0 -50%; --gs: clamp(190px, 27vw, 350px); }
.band-star { position: absolute; left: clamp(4%, 11vw, 15%); top: 50%; translate: 0 -50%; --gs: clamp(220px, 33vw, 440px); }
.band { background: radial-gradient(48% 70% at 28% 50%, rgba(234, 197, 130, 0.13), rgba(234, 197, 130, 0) 70%), var(--night-2); }
.band::after { background: linear-gradient(180deg, var(--night) 0%, rgba(7, 11, 20, 0) 26%, rgba(7, 11, 20, 0) 74%, var(--night) 100%); }
@media (max-width: 860px) { .call-star { --gs: 150px; right: -34px; top: 74px; translate: 0 0; opacity: 0.55; } .band-star { left: 50%; top: 38%; translate: -50% -50%; --gs: 200px; } .band .wrap { justify-items: center; text-align: center; }}

/* ---------- The wire has a centre: one large figure that changes with each step ---------- */

/* ================================================================================================
   AFTER THE FOURTH REVIEW: more light on the phone, a quieter top, a clearer payment, phone-size fixes.
   ================================================================================================ */
.ask input, .ask input::placeholder { text-overflow: ellipsis; }
/* at the very top the bar has no capsule, so the star is not hung from it */
.nav-in { transition: translate 590ms var(--sp-settle), opacity 240ms, background 320ms, border-color 320ms, box-shadow 320ms; }
html.motion .nav[data-top="true"] .nav-in { background: rgba(11, 17, 30, 0); border-color: rgba(167, 190, 236, 0); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* the screen is the brightest face of the object, and its reflection travels as it turns */
.phone-in { background: radial-gradient(120% 62% at 50% -10%, #33509A 0%, rgba(51, 80, 154, 0) 72%), linear-gradient(180deg, #17234A, #0E1630); }
.phone-in::after { background: linear-gradient(118deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.024) calc(31% + var(--ry, 0) * 1.5%), rgba(255, 255, 255, 0) calc(31.4% + var(--ry, 0) * 1.5%)), radial-gradient(70% 36% at var(--sx, 50%) var(--sy, -4%), rgba(245, 231, 195, 0.17), rgba(245, 231, 195, 0) 72%); }
/* the plan's limits arrive from outside, never across the phone */
.lim[data-l="a"], .lim[data-l="c"] { left: -8px; --dx: -28px; }
/* the receipts stand in the phone's own order, newest on top, evenly spaced */
html.motion .chip-r { width: 154px; }
.chip-r[data-c="c"] { left: 12px; top: 112px; --dx: 240px; --dy: 220px; }
.chip-r[data-c="b"] { left: 12px; top: 240px; --dx: 240px; --dy: 130px; }
.chip-r[data-c="a"] { left: 12px; top: 400px; --dx: 240px; --dy: 30px; }
html.motion .fence-tag { display: block; }
/* agent payments: built is a solid flag; the roadmap's is dashed */

.road li::before { background: var(--hold); opacity: 0.5; }
.road li[data-now="true"]::before { opacity: 1; }
/* the limits card: the line stands still and carries the figure; beyond it is out of bounds */

[data-fence] { --cap: 72; }
/* the symbol at full size: a small hot glow, never a grey haze */
.call-star .gstar-halo, .band-star .gstar-halo { display: none; }
.call-star::before, .band-star::before { content: ""; position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 72, 0.3), rgba(255, 160, 60, 0.09) 46%, rgba(255, 160, 60, 0) 72%); pointer-events: none; }
.band { background: var(--night-2); }
.call { background: radial-gradient(70% 110% at 100% 0%, rgba(255, 170, 70, 0.1), rgba(255, 170, 70, 0) 58%), linear-gradient(180deg, var(--surface), var(--night-2)); }
.co-star { margin-bottom: 12px; }
.hero .hero-copy .label { margin-bottom: 6px; }
@media (max-width: 1180px) {
  /* the story at phone size: a larger phone, one-line titles, one-sentence captions, the stopped step as a pill on the line */
  html.motion .story-wrap { padding-bottom: 30px; }
  html.motion .stagebox { width: 400px; height: 690px; padding: 15px 0 0; }
  html.motion .story .steps { inset: 16px var(--gut) 62px; }
  html.motion .story .step { gap: 5px; }
  html.motion .story .step .d3 { font-size: clamp(22px, 6.3vw, 30px); white-space: nowrap; }
  html.motion .story .step .sp { font-size: 0; line-height: 0; }
  html.motion .story .step .sp::after { content: attr(data-short); display: block; font-size: 14.5px; line-height: 1.4; }
  html.motion .story .step q { display: none; }
  html.motion .fence-tag .ft-a, html.motion .fence-tag .ft-c { display: none; }
  html.motion .fence-line .hit { display: block; }
  html.motion .chip-r[data-c="d"] { display: flex; align-items: center; gap: 9px; left: 0; right: 0; top: auto; bottom: -19px; margin: 0 auto; width: max-content; padding: 10px 15px; border-radius: 999px; white-space: nowrap; --dx: 0px; --dy: -70px; }
  html.motion .chip-r[data-c="d"] span { display: none; }
  html.motion .chip-r[data-c="d"] b { font: 600 14px/1 var(--sans); letter-spacing: 0; }
  html.motion .chip-r[data-c="d"] i { font-size: 10.5px; }}
@media (max-width: 860px) { .call-star { --gs: 96px; right: 18px; top: 22px; translate: 0 0; opacity: 1; } .si .fact { grid-template-columns: 1fr; gap: 4px; }}

/* ---------- Missions: a fifth card across the row for what you do by hand ---------- */

.hand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; border-top: 1px solid var(--line); }
.hand > div { display: grid; gap: 5px; align-content: start; padding: 18px 20px 2px 0; }
.hand > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hand b { font: 400 23px/1.15 var(--serif); letter-spacing: -0.012em; }
.hand span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .hand { grid-template-columns: 1fr; } .hand > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 14px; }}

/* ---------- After the code review ---------- */
.step .sp { display: block; }
.gstar > svg { fill: currentColor; }
.band .wrap { position: relative; z-index: 1; }
/* without script every view can be read; with a deep link the right view is on screen before the script runs */
html:not(.js) .view[hidden] { display: block; }
html.v-co #view-home, html.v-legal #view-home { display: none; }
html.v-co #view-investors[hidden], html.v-legal #view-legal[hidden] { display: block; }

/* ================================================================================================
   THE FINAL BUILD: a rendered device with the app's own screens, one payment stage, few words.
   ================================================================================================ */
/* ---------- The device: a rendered body (tools/blender) over the app's screens, turned by the same angles ---------- */
.device { position: relative; width: 318px; height: 660px; flex: none; }
.device .phone { position: absolute; inset: 0; width: auto; background: none; box-shadow: none; }
.device .phone::before, .device .phone::after { display: none; }
.device .phone-in { background: #05070D; box-shadow: none; }
.device .phone-in::after { display: none; }                    /* the render carries the glass's own reflections */
.device::before { content: ""; position: absolute; inset: -9% -22%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(72, 108, 205, 0.3), rgba(72, 108, 205, 0) 72%); pointer-events: none; }
.ph-body, .ph-frame { position: absolute; left: -60px; top: -60px; width: 438px; height: 780px; max-width: none; pointer-events: none; z-index: 2; }
.ph-shot { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transition: opacity 440ms var(--e-out); }
.ph-shot[data-on="true"] { opacity: 1; }
.device .ph-island { top: 8px; width: 90px; height: 26px; opacity: 0; transition: opacity 200ms, width 520ms var(--sp-settle), height 520ms var(--sp-settle), border-radius 520ms var(--sp-settle); }
.device .ph-island[data-face] { opacity: 1; }
html.motion .device[data-device] { opacity: 0; transition: opacity 600ms var(--e-out); }
html.motion .device[data-device].dev-on { opacity: 1; }
html.motion .device[data-device] .ph-body { visibility: hidden; }            /* the canvas draws the sequence */
html.motion .device[data-device].dev-still .ph-body { visibility: visible; }
html.motion .device[data-device].dev-still .ph-frame { display: none; }
html:not(.motion) .ph-frame { display: none; }
.phone-cap { margin-top: 34px; }

/* ---------- First screen: a headline, one line, two buttons, the device ---------- */
.story .hero-copy .lead { font-size: clamp(19px, 1.7vw, 24px); max-width: 30ch; }
.story .hero-cta { margin-top: clamp(6px, 1.4vh, 16px); }
html.motion .story .hero-copy { padding-top: clamp(92px, 12vh, 132px); gap: clamp(14px, 2.2vh, 24px); }
html.motion .story .hero-copy .d1 { font-size: clamp(44px, min(6.6vw, 10.5vh), 96px); }

/* ---------- The story's captions are one line now ---------- */
html.motion .story .step .sp { font-size: clamp(18px, 1.5vw, 21px); max-width: 30ch; color: var(--ink-2); }
html.motion .story .step .d3 { font-size: clamp(42px, 5vw, 76px); }
@media (max-width: 1180px) {
  html.motion .story .step .sp { font-size: 15px; line-height: 1.4; max-width: none; }
  html.motion .story .step .sp::after { content: none; }
  html.motion .story .step .d3 { font-size: clamp(26px, 7.4vw, 36px); white-space: nowrap; }}

/* ---------- x402: tabs for what it buys, the app's own screen, and one purchase played ---------- */
.wire { padding-top: clamp(22px, 3vw, 36px); }

/* ---------- Missions: the sentence and what comes back; by hand in one line ---------- */
.card q { font-size: clamp(21px, 1.9vw, 26px); }
.byhand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; margin-top: 16px; padding: 22px clamp(20px, 2.6vw, 32px); border-radius: 24px; border: 1px solid var(--line); }
.byhand b { font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.byhand span { font: 400 clamp(22px, 2vw, 28px)/1.1 var(--serif); letter-spacing: -0.012em; }
.byhand em { margin-left: auto; font-style: normal; font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .byhand em { margin-left: 0; flex-basis: 100%; }}

/* ---------- The list, and what is next ---------- */
.next { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.next::before { content: "Next"; margin-right: 6px; font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.next li { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 14px/1 var(--sans); color: var(--ink-2); }
.next li[data-now="true"] { border-color: var(--gold-line); color: var(--gold-hi); }
.si { border-bottom: 0; }

/* Without scripts a button that copies does nothing, so it is not shown; the address beside it can be selected. */
html:not(.js) [data-copy] { display: none; }

/* Tablets: the stacked story has room, so its title does not sit against the top edge. */
@media (min-width: 600px) and (max-width: 1180px) { html.motion .story .steps { inset: 38px var(--gut) 62px; }}

/* A receipt row with nothing to show is left out (an example purchase shows its price alone). */
.fact[hidden] { display: none; }

/* ================================================================================================
   AFTER THE FIFTH REVIEW (design, technical, factual): one focal figure on the payment stage, a story that holds its
   place at every width and ends on the money returned, and the last loose ends of spacing and type.
   ================================================================================================ */

/* ---------- The story, wide: the phone a little right of where it was, receipts that come out from behind it ---------- */
@media (min-width: 1181px) {
  html.motion .stagebox { --pcx: 376px; height: 744px; padding-left: 217px; }
  html.motion .stagebox .device { z-index: 2; }
  html.motion .chip-r:not([data-c="d"]) { display: flex; align-items: center; gap: 9px; width: 196px; padding: 11px 13px; z-index: 1; }
  html.motion .chip-r:not([data-c="d"])::before { flex: none; }
  html.motion .chip-r p { display: grid; gap: 5px; min-width: 0; margin: 0; }
  html.motion .chip-r:not([data-c="d"]) b { white-space: nowrap; }
  html.motion .chip-r i { font-size: 11.5px; letter-spacing: 0.05em; }
  .chip-r[data-c="c"] { left: 6px; top: 288px; --dx: 250px; --dy: 62px; }
  .chip-r[data-c="b"] { left: 6px; top: 344px; --dx: 250px; --dy: 0px; }
  .chip-r[data-c="a"] { left: 6px; top: 412px; --dx: 250px; --dy: -62px; }
  html.motion .chip-r[data-c="d"] { right: 0; top: 278px; width: 268px; padding: 20px 22px 22px; }
  .lim[data-l="a"], .lim[data-l="c"] { left: 28px; --dx: -28px; }
  .lim[data-l="a"] { top: 154px; }
  .lim[data-l="c"] { top: 478px; }
  .lim[data-l="b"] { left: 559px; top: 316px; }
  .lim[data-l="bal"] { left: 559px; top: 262px; width: 250px; }
  html.motion .lim span { font-size: 12px; }
  html.motion .lim[data-l="c"] b { font-size: 32px; }
  /* chapter one's sentence, large, beside the phone it is typed into */
  html.motion .say { display: grid; gap: 14px; position: absolute; left: 559px; top: 262px; width: 252px; z-index: 3; opacity: var(--o, 0); translate: calc((1 - var(--o, 0)) * -28px) 0; }
  html.motion .say span { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
  html.motion .say q { quotes: "\201C" "\201D"; font: italic 400 28px/1.22 var(--serif); letter-spacing: -0.012em; color: var(--gold-hi); }
  /* every chapter's words start at the same height */
  html.motion .story .step { top: calc(50% - 150px); translate: 0 34px; }
  html.motion .story .step[data-on="true"] { translate: 0 0; }
  html.motion .story .step[data-past="true"] { translate: 0 -34px; }
  html.motion .rail { bottom: 28px; }
  html.motion .rail .rail-note { padding: 22px 0 0 16px; line-height: 1; }}
.say { display: none; }
.step .sp { text-wrap: balance; }

/* ---------- The story, stacked (phones, tablets, small laptop windows): room above the phone for the limits' tag ---------- */
@media (max-width: 1180px) {
  html.motion .stagebox { height: 720px; padding: 44px 0 0; }
  html.motion .fence-tag { opacity: var(--tag, 0); }
  html.motion .fence-tag .ft-c { display: inline; }
  html.motion .fence-tag .ft-for { display: none; }}
@media (min-width: 761px) and (max-width: 1180px) {
  html.motion .story .steps { inset: 44px var(--gut) 84px; }
  html.motion .story .step .d3 { font-size: 56px; }
  html.motion .story .step .sp { font-size: 19px; max-width: 36ch; }}

/* ---------- First screen: the line under the headline sits on one line where there is room ---------- */
.story .hero-copy .lead { max-width: 44ch; line-height: 1.35; text-wrap: balance; }

/* ---------- The limits: the figure, the slider, four rows ---------- */
.fence { gap: 30px; }
@media (pointer: coarse) { .range { height: 44px; } .ev a { display: inline-block; padding: 6px 0; }}

/* ---------- Agent payments: tabs, one wire with one figure, the steps, the receipt ---------- */
.pw { position: relative; isolation: isolate; display: grid; gap: clamp(22px, 2.8vw, 36px); padding: clamp(18px, 2.6vw, 34px); border-radius: 48px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), var(--night-2)); }
.pw-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pw-tabs button { display: grid; gap: 9px; align-content: start; padding: 16px 18px 17px; border-radius: 16px; border: 1px solid var(--line); background: rgba(7, 11, 20, 0.5); text-align: left; transition: border-color 240ms, background 240ms, transform 380ms var(--sp-press); }
.pw-tabs button:hover { border-color: var(--gold-line); }
.pw-tabs button:active { transform: scale(0.98); }
.pw-tabs button[aria-pressed="true"] { border-color: var(--gold); background: rgba(234, 197, 130, 0.06); }
.pw-tabs small { font: 600 12px/1 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); }
.pw-tabs small[data-tone="ok"] { color: var(--ok); }
.pw-tabs small[data-tone="gold"] { color: var(--gold); }
.pw-tabs b { font: italic 400 clamp(17px, 1.5vw, 21px)/1.3 var(--serif); letter-spacing: -0.005em; color: var(--ink-2); transition: color 240ms; }
.pw-tabs button[aria-pressed="true"] b { color: var(--ink); }
.pw-stage { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 210px); align-items: stretch; gap: clamp(8px, 1.6vw, 22px); }
.pw-end { position: relative; display: grid; justify-items: center; align-content: center; text-align: center; gap: 7px; padding: 22px 14px 16px; border-radius: 28px; border: 1px solid var(--line-2); background: rgba(7, 11, 20, 0.62); transition: border-color 320ms, box-shadow 320ms; }
.pw-end[data-hit="true"] { border-color: var(--gold); box-shadow: 0 0 0 6px var(--gold-soft); }
.pw-end b { font: 400 21px/1.12 var(--serif); letter-spacing: -0.012em; }
.pw-end em { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.pw-sum { width: 100%; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font: 500 12.5px/1.3 var(--sans); color: var(--ink-3); }
.pw-end .pw-sum em { color: var(--gold-hi); }
.pw-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(122, 172, 246, 0.14); color: var(--way); }
.pw-ico svg { width: 22px; height: 22px; }
.pw-line { position: relative; z-index: 1; height: 210px; }
.pw-rail { position: absolute; left: -6px; right: -6px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 7px, rgba(0, 0, 0, 0) 7px 14px); -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 12%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, #000 88%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, #000 12%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, #000 88%, #000 100%); }
.pw-big { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; pointer-events: none; }
.pw-big b { font: italic 400 clamp(72px, 9vw, 124px)/0.86 var(--serif); letter-spacing: -0.045em; padding: 0 0.08em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--gold-line); background: linear-gradient(180deg, var(--gold-hi), var(--gold) 58%, rgba(234, 197, 130, 0.18)); -webkit-background-clip: text; background-clip: text; font-variant-numeric: lining-nums; }
.pw-big[data-long="true"] b { font-size: clamp(54px, 6.4vw, 92px); }
.pw-big span { font: 600 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; color: var(--gold); }
.pw-big[data-tone="ink"] b { -webkit-text-stroke-color: var(--line-2); background-image: linear-gradient(180deg, var(--ink), rgba(241, 243, 249, 0.6) 58%, rgba(241, 243, 249, 0.12)); }
.pw-big[data-tone="ink"] span { color: var(--ink-3); }
.pw-big[data-tone="ok"] b { -webkit-text-stroke-color: rgba(118, 233, 212, 0.4); background-image: linear-gradient(180deg, #C9FBF1, var(--ok) 58%, rgba(118, 233, 212, 0.16)); }
.pw-big[data-tone="ok"] span { color: var(--ok); }
.pw-msg { position: absolute; left: 6%; top: 50%; z-index: 2; padding: 9px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font: 500 13px/1 var(--mono); color: var(--ink); white-space: nowrap; translate: -50% -50%; opacity: 0; pointer-events: none; }
.pw-msg i { font-style: normal; }
.pw-msg[data-dir="out"] { margin-top: -88px; }
.pw-msg[data-dir="in"] { margin-top: 88px; border-color: var(--gold-line); color: var(--gold-hi); }
.pw-msg[data-msg="data"] { border-color: rgba(118, 233, 212, 0.42); color: var(--ok); }
.pw-coin { position: absolute; left: 6%; top: 50%; z-index: 2; width: 96px; height: 96px; translate: -50% -50%; opacity: 0; pointer-events: none; }
.pw-coin canvas { position: absolute; inset: 0; max-width: none; }
.pw-coin i { position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, var(--gold-hi), var(--gold) 46%, var(--gold-deep)); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25), 0 6px 20px -6px rgba(234, 197, 130, 0.7); }
.pw-coin[data-gl] i { display: none; }
.pw-run { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; margin-top: 6px; }
.pw-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: w; }
.pw-steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 16px 0 0; border-top: 1px solid var(--line-2); counter-increment: w; transition: border-color 360ms; }
.pw-steps li::before { content: counter(w); position: absolute; left: 0; top: -13px; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); border: 1px solid var(--line-2); font: 600 12px/1 var(--sans); color: var(--ink-3); transition: background 360ms, color 360ms, border-color 360ms; }
.pw-steps li b { font: 400 19px/1.15 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.pw-steps code { font: 400 12.5px/1.35 var(--mono); color: var(--ink-3); }
.pw-steps li[data-on="true"] { border-color: var(--gold); }
.pw-steps li[data-on="true"]::before { background: var(--gold); border-color: var(--gold); color: var(--night); }
html.motion .pw-steps li > * { opacity: 0.34; transition: opacity 360ms; }
html.motion .pw-steps li[data-on="true"] > * { opacity: 1; }
.pw-ctl { width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--night-2); color: var(--ink-2); transition: border-color 240ms, color 240ms; }
.pw-ctl:hover { border-color: var(--gold-line); color: var(--ink); }
.pw-ctl svg { width: 16px; height: 16px; }
.pw-ctl .i-play, .pw-ctl[data-state="paused"] .i-pause { display: none; }
.pw-ctl[data-state="paused"] .i-play { display: block; }
html:not(.motion) .pw-ctl { display: none; }
html:not(.motion) .pw-run { grid-template-columns: 1fr; }
.pw-receipt { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(18px, 3vw, 44px); padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: #0A0F19; }
.pw-rc-what { display: grid; gap: 8px; margin-right: auto; }
.pw-rc-what b { font: 400 24px/1.1 var(--serif); letter-spacing: -0.015em; }
.pw .ph-eye { font-size: 12px; }
.pw-rc-fig { display: grid; gap: 8px; justify-items: end; }
.pw-rc-fig[hidden] { display: none; }
.pw-rc-fig span { font: 500 12.5px/1 var(--sans); color: var(--ink-3); white-space: nowrap; }
.pw-rc-fig b { font: 600 17px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.pw-rc-fig.is-total b { color: var(--gold-hi); }
html.motion .pw-receipt .pill { transition: opacity 320ms, scale 520ms var(--sp-pop); }
html.motion .pw-receipt[data-on="false"] .pill[data-tone="ok"] { opacity: 0; scale: 0.8; }
.pw-notes { display: grid; gap: 10px; }
.pw-notes p { margin: 0; max-width: 96ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pw-notes p[hidden] { display: none; }
.pw-notes b { font-weight: 600; color: var(--ink); }
.pw-notes .link { display: inline; font-weight: 500; }
@media (max-width: 940px) {
  .pay-head { grid-template-columns: 1fr; }
  .pw-steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .pw-rc-what { flex-basis: 100%; }
  .pw-rc-fig { justify-items: start; }}
@media (max-width: 760px) {
  .pw { border-radius: 28px; padding: 14px; gap: 22px; }
  .pw-tabs { grid-template-columns: 1fr; gap: 8px; }
  .pw-tabs button { padding: 13px 15px 14px; gap: 7px; }
  .pw-tabs b { font-size: 16.5px; }
  .pw-stage { grid-template-columns: 88px minmax(0, 1fr) 88px; gap: 6px; }
  .pw-end { padding: 14px 6px 12px; border-radius: 16px; }
  .pw-end b { font-size: 14.5px; }
  .pw-end .small, .pw-sum { display: none; }
  .pw-end .gstar { --gs: 34px !important; }
  .pw-ico { width: 34px; height: 34px; }
  .pw-line { height: 150px; }
  .pw-big { gap: 8px; }
  .pw-big b { font-size: 46px; }
  .pw-big[data-long="true"] b { font-size: min(34px, 7.4vw); }
  .pw-big span { font-size: 10px; letter-spacing: 0.12em; max-width: 15ch; }
  .pw-rail { display: none; }
  .pw-msg { font-size: 11px; padding: 7px 9px; }
  .pw-msg i { display: none; }
  .pw-msg[data-dir="out"] { margin-top: -58px; }
  .pw-msg[data-dir="in"] { margin-top: 60px; }
  .pw-coin { width: 68px; height: 68px; }
  .pw-coin i { inset: 15px; }
  .pw-run { grid-template-columns: 1fr; }
  .pw-steps { grid-template-columns: 1fr; gap: 0; }
  .pw-steps li { gap: 5px; padding: 15px 0 14px 40px; }
  .pw-steps li::before { top: 13px; }
  .pw-ctl { margin: 6px 0 0; }
  .pw-receipt { padding: 16px; gap: 14px 22px; }
  .pw-notes p { font-size: 14.5px; }}

/* ---------- Missions: what comes back sits under a hairline, level across a row ---------- */
.outcome { margin-top: auto; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.outcome .ph-evt b { min-height: 21px; }
.card q { margin-bottom: 8px; }

/* ---------- Why .si: the mark is not clipped, and the section keeps the page's spacing ---------- */
.si { padding: 0; border: 0; }
.si-mark { margin-left: -0.07em; padding: 0.16em 0.1em 0.06em 0.07em; background-image: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, rgba(234, 197, 130, 0.5)); }

/* ---------- The list: three controls of one height, and what is next as a line of text ---------- */
.call { background: linear-gradient(180deg, var(--surface), var(--night-2)); }
.addr { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 999px; }
.next { display: block; position: relative; z-index: 1; margin: 8px 0 0; font: 400 15px/1.7 var(--sans); color: var(--ink-2); }
.next::before { content: none; }
.next span { margin-right: 12px; font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.next b { font-weight: 500; color: var(--gold-hi); }

/* ---------- The company view ---------- */
.band .d2 span { display: block; }
em.g { font-family: var(--serif); font-size: 1.08em; }
.paper :focus-visible { outline-color: var(--paper-ink); }

/* line breaks that do not strand a word */
.nb { white-space: nowrap; }
@media (max-width: 340px) { .nb { white-space: normal; }}
html.motion .say q, html.motion .chip-r[data-c="d"] span { text-wrap: balance; }

/* ---------- The story on a landscape tablet or a small laptop window: words on the left, the phone on the right, at a size that can be read ---------- */
@media (min-width: 761px) and (max-width: 1180px) and (min-aspect-ratio: 5/4) {
  html.motion .story .how-phone { justify-items: end; padding-right: clamp(24px, 8vw, 96px); }
  html.motion .story .steps { inset: 0 auto 0 var(--gut); width: min(42%, 430px); }
  html.motion .story .step { grid-template-rows: none; align-content: center; gap: 14px; }
  html.motion .story .step .sp { align-self: auto; }}
.outcome .ph-evt b { min-height: 25px; }
.band .d2 { max-width: none; }
.band .d2 span { white-space: nowrap; }
@media (max-width: 760px) { .band .d2 span { white-space: normal; }}@media (max-width: 760px) { .pw-big span { font-size: 11px; letter-spacing: 0.1em; } }
