:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #222;
  --border-2: #2e2e2e;
  --text: #ededed;
  --muted: #a1a1a1;
  --dim: #6b6b6b;
  --accent: #38bdf8;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration-color: var(--dim); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
.ico, .logo-mark, .wx { display: block; flex: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.025em; margin: 0; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; text-wrap: balance; }
h3 { font-size: 17px; letter-spacing: -.01em; }
/* One word per title in an italic serif: the contrast does the styling */
h1 em, h2 em, .statement em, .marquee em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em { font-size: 1.08em; line-height: 0; color: #fff; }
::selection { background: var(--accent); color: #0a0a0a; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10,10,10,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .15s; }
.menu a:hover, .menu a.active { color: var(--text); }
.menu a.nav-cta { margin-left: 10px; color: #0a0a0a; background: var(--text); font-weight: 500; }
.menu a.nav-cta:hover { background: #fff; }
.menu-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 8px; background: none; color: var(--text); cursor: pointer; place-items: center; }

/* Hero */
.hero { position: relative; overflow: clip; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(56,189,248,.10), transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto; column-gap: 48px; }
.hero-inner > * { min-width: 0; }
.display { grid-column: 1; grid-row: 1; position: relative; z-index: 2; margin: 0;
  font-size: clamp(46px, 7.3vw, 112px); font-weight: 600; line-height: .92; letter-spacing: -.055em; pointer-events: none; }
.display .line { display: block; overflow: hidden; padding: 0 .12em .06em 0; margin-bottom: -.06em; }
.display .line > span { display: inline-block; }
.display .line:nth-child(2) { padding-left: .9em; }
.display em { font-size: 1.04em; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.hero-text { grid-column: 1; grid-row: 2; position: relative; z-index: 2; padding-top: 40px; max-width: 520px; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 42ch; text-wrap: pretty; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 30px; max-width: 500px; padding: 6px 6px 6px 16px; border: 1px solid var(--border-2); border-radius: 999px; background: rgba(17,17,17,.8); backdrop-filter: blur(8px); color: var(--dim); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(56,189,248,.12); }
.search input { flex: 1; min-width: 0; border: none; outline: none; background: none; color: var(--text); font: inherit; font-size: 16px; padding: 10px 0; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { display: inline-flex; align-items: center; gap: 8px; border: none; border-radius: 999px; padding: 11px 18px; background: var(--text); color: #0a0a0a; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s; }
.search button:hover { background: #fff; }
.search button .ico { transition: transform .25s var(--ease); }
.search button:hover .ico { transform: translateX(3px); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 0; font-size: 12.5px; color: var(--dim); }
.quick span { margin-right: 4px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.quick a { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.quick a:hover { color: var(--text); border-color: #3a3a3a; }

/* Radar scope: sits under the headline, partly behind it */
.scope-wrap { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: relative; z-index: 1; padding-bottom: 8px; }
.scope { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #050505; border: 1px solid var(--border-2); box-shadow: inset 0 0 60px rgba(56,189,248,.06), 0 40px 120px -40px rgba(56,189,248,.25); }
.grid { position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 calc(25% - 1px), #1d1d1d calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), #1d1d1d calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), #1d1d1d calc(75% - 1px) 75%, transparent 75%),
    linear-gradient(#1d1d1d, #1d1d1d) center / 1px 100% no-repeat,
    linear-gradient(#1d1d1d, #1d1d1d) center / 100% 1px no-repeat; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(56,189,248,.32), rgba(56,189,248,0) 60deg); animation: spin 5s linear infinite; }
.echo { position: absolute; border-radius: 50%; filter: blur(5px); opacity: .85; }
.e1 { width: 26%; height: 18%; left: 54%; top: 24%; background: radial-gradient(closest-side, #facc15 0 15%, #22c55e 40%, rgba(56,189,248,.7) 70%, transparent); }
.e2 { width: 18%; height: 14%; left: 24%; top: 58%; background: radial-gradient(closest-side, #22c55e 0 25%, rgba(56,189,248,.7) 65%, transparent); }
.e3 { width: 12%; height: 10%; left: 62%; top: 64%; background: radial-gradient(closest-side, rgba(56,189,248,.8) 0 40%, transparent); }
.target { position: absolute; left: 62%; top: 31%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.tick { position: absolute; font-size: 10px; color: var(--dim); }
.tick.n { top: 8px; left: 50%; transform: translateX(-50%); }
.tick.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.tick.e { right: 10px; top: 50%; transform: translateY(-50%); }
.tick.w { left: 10px; top: 50%; transform: translateY(-50%); }
/* Readout floats over the lower-left edge of the scope */
.scope-float { will-change: transform; }
.readout { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: center; width: 100%; margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--border-2); border-radius: 16px; background: rgba(14,14,14,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 11.5px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.readout div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.readout dt { color: var(--dim); }
.readout dd { margin: 0; text-align: right; }
.readout .readout-head { grid-row: 1 / span 5; justify-content: flex-start; align-items: center; gap: 10px; padding: 0 22px 0 0; height: 100%; border-right: 1px solid var(--border); }
.readout div:not(.readout-head) { grid-column: 2; }
.readout-head b { display: block; font-family: "Geist", sans-serif; font-size: 26px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.readout-head span:last-child { color: var(--muted); }
.readout .note { grid-column: 2; margin: 6px 0 0; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }

/* City marquee */
.marquee { position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; }
.marquee li::after { content: ""; width: 7px; height: 7px; margin: 0 28px; border-radius: 50%; border: 1px solid var(--accent); }
.marquee a { font-size: clamp(26px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; color: #4a4a4a; text-decoration: none; white-space: nowrap; transition: color .25s; }
.marquee a em { font-size: 1.06em; }
.marquee a:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 112px 0; }
.sec-label { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; margin-bottom: 56px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.sec-label::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border-2); transform-origin: left; }
.sec-label b { font-weight: 500; color: var(--accent); margin-right: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split > * { min-width: 0; }
.split > h2, .split > div:first-child { position: sticky; top: 104px; }

/* About statement */
.statement { margin: 0; max-width: 24em; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.16; letter-spacing: -.035em; font-weight: 500; color: var(--text); text-wrap: pretty; }
.statement em { font-size: 1.08em; letter-spacing: -.015em; }
.motion .statement .w { color: #333; transition: color .4s; }
.motion .statement .w.on { color: var(--text); }
.motion .statement em .w.on { color: var(--accent); }
.statement em { color: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
.facts span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--text); padding-left: 14px; position: relative; }
.facts span::before { content: ""; position: absolute; left: 0; top: .45em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.facts p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; max-width: 32ch; }

/* Feature rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.rows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.15fr) 20px; gap: 20px; align-items: baseline; padding: 26px 4px; cursor: default; transition: padding .35s var(--ease); }
.rows .idx { color: var(--dim); font-size: 12px; transition: color .25s; }
.rows h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; transition: color .25s; }
.rows p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.rows .ico { color: var(--dim); align-self: center; transition: transform .35s var(--ease), color .25s; }
.rows li:hover { padding-left: 14px; }
.rows li:hover .idx, .rows li:hover .ico { color: var(--accent); }
.rows li:hover .ico { transform: rotate(-45deg); }

/* Steps */
.wide { max-width: 16ch; }
.steps { list-style: none; margin: 64px 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.steps li { position: relative; padding: 32px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--border); }
.steps .num { display: block; font-size: clamp(64px, 7vw, 104px); font-weight: 600; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px #3a3a3a; transition: -webkit-text-stroke-color .3s, color .3s; }
.steps li:hover .num { -webkit-text-stroke-color: var(--accent); }
.steps h3 { margin: 26px 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--text); color: #0a0a0a; text-decoration: none; font-weight: 500; transition: background .15s; }
.btn:hover { background: #fff; }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

/* Data */
.data-note { margin: 28px 0 0; max-width: 38ch; color: var(--muted); font-size: 15px; }
.sources { width: 100%; border-collapse: collapse; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -.02em; }
.sources th, .sources td { text-align: left; padding: 20px 0; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.sources tr:first-child th, .sources tr:first-child td { border-top: 1px solid var(--border); }
.sources th { width: 40%; font-weight: 400; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-right: 16px; }
.sources td { color: var(--muted); }
.sources a { color: var(--text); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.sources a:hover { background-size: 100% 1px; }

/* CTA card */
.cta-section { padding: 96px 0; }
.cta-card {
  position: relative; overflow: hidden; padding: 72px 32px 80px; text-align: center;
  border: 1px solid var(--border); border-radius: 28px;
  background:
    radial-gradient(55% 75% at 50% 125%, rgba(56,189,248,.22), rgba(56,189,248,.05) 55%, transparent 75%),
    linear-gradient(180deg, #0c0c0c, #0b0d12);
}
.cta-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%); }
.cta-title { position: relative; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; }
.cta-title em { color: var(--accent); }
.cta-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 16px; border-radius: 12px;
  font-weight: 500; font-size: 15.5px; text-decoration: none; color: var(--text);
  background: #121212; border: 1px solid var(--border-2); transition: transform .2s, background .2s, border-color .2s;
}
.cta-btn:hover { transform: translateY(-1px); border-color: #3a3a3a; background: #161616; }
.cta-btn.primary { background: var(--text); color: #0a0a0a; border-color: var(--text); }
.cta-btn.primary:hover { background: #fff; }
.cta-ico { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--accent); color: #0a0a0a; }
.cta-ico.dark { background: #1f1f1f; color: var(--accent); border: 1px solid #2e2e2e; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 36px; }
.foot-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px 32px; }
.foot-brand p { margin: 18px 0 20px; max-width: 40ch; color: var(--muted); font-size: 15px; }
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: .28em; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h4 { display: flex; align-items: center; gap: 8px; height: 22px; margin: 4px 0 6px; font-size: 13px; font-weight: 500; color: var(--dim); }
.live-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid #1f3a2a; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #4ade80; }
.live-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; animation: blink 2.4s ease-in-out infinite; }
.foot-meta a { color: var(--muted); text-decoration: none; }
.foot-meta a:hover { color: var(--text); }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; width: fit-content; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.disclaimer { margin: 0; max-width: 92ch; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.foot-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; font-size: 13px; color: var(--dim); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.to-top .ico { transform: rotate(-90deg); transition: transform .2s; }
.to-top:hover { color: var(--text); }
.to-top:hover .ico { transform: rotate(-90deg) translateX(2px); }
@media (max-width: 1080px) {
  .foot-top { grid-template-columns: repeat(4, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .cta-section { padding: 64px 0; }
  .cta-card { padding: 52px 20px 56px; border-radius: 22px; }
  .cta-btn { width: 100%; justify-content: center; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 32px; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .display { font-size: clamp(46px, 11.5vw, 100px); }
  .display .line:nth-child(2) { padding-left: .5em; }
  .hero-text { grid-column: 1; grid-row: 2; padding-top: 32px; }
  .scope-wrap { grid-column: 1; grid-row: 3; justify-self: center; width: min(100%, 360px); margin-top: 56px; padding-bottom: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split > h2, .split > div:first-child { position: static; }
  .facts { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 28px 20px 28px 0; border-left: none; }
  .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--border); }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .menu-btn { display: grid; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 4px; font-size: 16px; }
  .menu a.nav-cta { margin: 8px 0 0; text-align: center; padding: 12px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .readout { grid-template-columns: 1fr; }
  .readout .readout-head { grid-row: auto; padding: 0 0 10px; margin-bottom: 6px; border-right: none; border-bottom: 1px solid var(--border); }
  .readout div:not(.readout-head), .readout .note { grid-column: 1; }
  .section { padding: 80px 0; }
  .sec-label { margin-bottom: 40px; font-size: 11px; }
  .sec-label span:last-child { display: none; }
  .lead { font-size: 17px; }
  .search button { padding: 11px 14px; }
  .search button .ico { display: none; }
  .rows li { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 12px; padding: 22px 0; }
  .rows li:hover { padding-left: 0; }
  .rows p { grid-column: 2; }
  .rows .ico { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(even) { padding: 28px 0; border-left: none; }
  .steps li + li { border-top: 1px solid var(--border); }
  .steps .num { font-size: 64px; }
  .sources th { width: 36%; font-size: 10.5px; }
  .sources { font-size: 17px; }
  .marquee { padding: 16px 0; }
  .marquee li::after { margin: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Scroll motion (only when html.motion is set) ---------- */
.nav { transition: border-color .2s, transform .35s cubic-bezier(.2,.7,.2,1); }
.nav.hide { transform: translateY(-100%); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.motion .intro { opacity: 0; animation: introUp .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) forwards; }
.motion .intro-scope { opacity: 0; animation: introScope 1.2s cubic-bezier(.2,.7,.2,1) .35s forwards; }
@keyframes introUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes introScope { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.scope { will-change: transform; }

.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.motion .reveal.from-left { transform: translateX(-18px); }
.motion .reveal.in { opacity: 1; transform: none; }

.reveal-h .mask { display: block; overflow: hidden; padding-bottom: .08em; }
.reveal-h .mask > span { display: inline-block; }
.motion .reveal-h .mask > span { transform: translateY(110%); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.motion .reveal-h.in .mask > span { transform: none; }

/* Headline lines rise on load */
.motion .display .line > span { transform: translateY(105%); animation: lineUp 1.1s var(--ease) var(--d, 0ms) forwards; }
@keyframes lineUp { to { transform: none; } }

/* Section label: the rule draws from left to right */
.motion .reveal.line { transform: none; }
.motion .sec-label::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.motion .sec-label.in::before { transform: scaleX(1); }

/* Feature rows: the divider draws from left to right */
.rows li { position: relative; }
.rows li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); transform-origin: left; }
.motion .rows li::after { transform: scaleX(0); transition: transform 1.1s var(--ease) calc(var(--d, 0ms) + 150ms); }
.motion .rows li.in::after { transform: scaleX(1); }

/* Steps: a short accent bar grows on top of each column */
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); transform-origin: left; }
.steps li + li::before { left: 28px; }
.motion .steps li::before { transform: scaleX(0); transition: transform .7s var(--ease) calc(var(--d, 0ms) + 300ms); }
.motion .steps li.in::before { transform: scaleX(1); }
@media (max-width: 900px) { .steps li + li::before { left: 0; } .steps li:nth-child(even)::before { left: 20px; } }
@media (max-width: 520px) { .steps li:nth-child(even)::before { left: 0; } }

@media (prefers-reduced-motion: reduce) {
  .nav.hide { transform: none; }
  .scope, .scope-float { transform: none !important; }
  .marquee { overflow-x: auto; }
}

/* ---------- Text pages (privacy, terms) ---------- */
.doc { padding: 72px 0 112px; }
.doc .wrap { max-width: 760px; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; color: var(--muted); text-decoration: none; font-size: 14px; }
.doc-back .ico { transform: rotate(180deg); transition: transform .2s; }
.doc-back:hover { color: var(--text); }
.doc-back:hover .ico { transform: rotate(180deg) translateX(3px); }
.doc h1 { font-size: clamp(44px, 7vw, 80px); line-height: .98; letter-spacing: -.05em; font-weight: 600; }
.doc .updated { margin: 18px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.doc .intro { margin: 40px 0 0; font-size: 21px; line-height: 1.5; letter-spacing: -.015em; color: var(--text); }
.doc h2 { margin: 56px 0 14px; padding-top: 16px; border-top: 1px solid var(--border-2); font-size: 24px; line-height: 1.2; letter-spacing: -.03em; font-weight: 500; }
.doc p, .doc li { color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); font-weight: 500; }
.doc a { text-decoration-color: var(--dim); }
.doc a:hover { text-decoration-color: var(--accent); }
@media (max-width: 520px) { .doc { padding: 48px 0 80px; } .doc .intro { font-size: 18px; } }
code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: #161616; border: 1px solid var(--border); color: var(--text); }
