@font-face { font-family: "Yekan"; src: url(fonts/IRANYekanXFaNum-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yekan"; src: url(fonts/IRANYekanXFaNum-Medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Yekan"; src: url(fonts/IRANYekanXFaNum-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }

:root {
  --navy: #001958;
  --pulse-from: #2B7FFF;
  --pulse-to: #1148E5;
  --pulse-soft: #8fbaff;
  --ember-text: #f2a39c;
  --bg: #07080c;
  --bg-2: #0c0f17;
  --surface: rgba(255 255 255 / .035);
  --surface-2: rgba(255 255 255 / .06);
  --line: rgba(255 255 255 / .09);
  --line-2: rgba(255 255 255 / .16);
  --text: #eef1f7;
  --muted: #9aa3b5;
  --grad: linear-gradient(135deg, var(--pulse-from), var(--pulse-to));
  --grad-text: linear-gradient(180deg, #cfe0ff 0%, #6aa6ff 55%, #2B7FFF 100%);
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.85 "Yekan", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } body.has-cursor input { cursor: text; } }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
mark { background: none; color: inherit; }
::selection { background: var(--pulse-from); color: #fff; }
:focus-visible { outline: 2px solid var(--pulse-soft); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── layers ─────────────────────────────────────────── */
#globe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .nav, .foot { position: relative; z-index: 2; }
/* Chrome Android sizes its zoom from content width and ignores body's clip: any bleed here zooms the whole page out. */
main { overflow-x: clip; }
.grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .045; overflow: hidden; }
/* the oversized noise lives inside a clipped box: a fixed layer bleeding past the viewport zooms Chrome Android out */
.grain::before {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-4%,3%) } 40% { transform: translate(3%,-5%) } 60% { transform: translate(-6%,-2%) } 80% { transform: translate(5%,4%) } }

/* ── cursor ─────────────────────────────────────────── */
.cursor { display: none; }
body.has-cursor .cursor { display: block; opacity: 0; }
.cursor > span { position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%; will-change: transform; }
.cursor-dot { z-index: 101; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring {
  z-index: 100; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(255 255 255 / .45); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s;
}
.cursor.is-hover .cursor-ring { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: rgba(255 255 255 / .9); border-color: transparent; }
.cursor.is-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.cursor.is-grab .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1.5px dashed rgba(143 186 255 / .8); mix-blend-mode: normal; animation: spin 7s linear infinite; }
.cursor.is-grab.is-down .cursor-ring { width: 52px; height: 52px; margin: -26px 0 0 -26px; animation-duration: 1.4s; }
.cursor-glow {
  z-index: 1; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  background: radial-gradient(closest-side, rgba(43 127 255 / .13), transparent); mix-blend-mode: screen;
}

/* ── nav ────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: max(14px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left)); transition: transform .5s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(7 8 12 / .62); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.3rem/1 "Yekan", sans-serif; }
.brand-mark { width: 26px; height: 28px; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; font-size: .95rem; color: var(--muted); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-progress { position: absolute; inset: auto 0 -1px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: right; opacity: 0; transition: opacity .4s; }
.nav.is-solid .nav-progress { opacity: 1; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-inline-start: auto; } }

/* ── buttons ────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; overflow: hidden;
  font: 700 1rem/1 "Yekan", sans-serif; color: #fff; background: var(--grad); cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 40px -10px rgba(43 127 255 / .7), inset 0 1px 0 rgba(255 255 255 / .25);
  transition: box-shadow .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255 255 255 / .35) 50%, transparent 70%); transform: translateX(120%); transition: transform .8s var(--ease); }
@media (hover: hover) { .btn:hover::before { transform: translateX(-120%); } }
.btn:hover { box-shadow: 0 16px 50px -8px rgba(43 127 255 / .9), inset 0 1px 0 rgba(255 255 255 / .3); }
.btn > span { position: relative; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .9rem; }

/* ── type ───────────────────────────────────────────── */
.display, .h2, .step h3, .card h3 { text-wrap: balance; }
.lede, .step p, .card p { text-wrap: pretty; }
.display { font: 800 clamp(2.5rem, 6.2vw, 5.8rem)/1.22 "Yekan", sans-serif; }
.h2 { font: 800 clamp(2rem, 4.4vw, 3.9rem)/1.28 "Yekan", sans-serif; }
.display em, .h2 em, .manifesto mark { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--pulse-soft); margin-bottom: 18px; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.95; color: var(--muted); max-width: 36em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pulse-from); box-shadow: 0 0 0 0 rgba(43 127 255 / .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(43 127 255 / 0) } 100% { box-shadow: 0 0 0 0 rgba(43 127 255 / 0) } }

/* split text: gradient moves from the parent onto each word (background-clip can't see through transformed children) */
.is-split em, .is-split mark { background: none; color: inherit; }
.is-split em .wi, .is-split mark .mw { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* word split mask: extra bottom room so Persian descenders are not clipped */
.w { display: inline-block; overflow: hidden; padding: .08em 0 .22em; margin: -.08em 0 -.22em; vertical-align: top; }
.wi { display: inline-block; will-change: transform; }

/* ── hero ───────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  padding: 120px var(--gutter) 90px;
}
.hero-copy { max-width: 640px; }
.hero .display { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; }
.hero-live {
  position: absolute; inset-inline-end: calc(var(--gutter) + 4vw); top: 22%;
  display: grid; gap: 4px; padding: 14px 18px; border-radius: 16px;
  background: rgba(10 14 26 / .55); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  min-width: 190px;
}
.hero-live-k { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.hero-live-v { font-weight: 700; font-size: 1.02rem; }
.legend { position: absolute; inset-inline-end: var(--gutter); bottom: 40px; display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pulse-soft); }
.lg-beam { width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--pulse-from), #fff); }
.lg-core { width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(43 127 255 / .9); }
.lg-hint { color: var(--pulse-soft); }
.lg-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0) } 30% { transform: translateX(-3px) } 60% { transform: translateX(3px) } }
.hero { touch-action: pan-y; }
.scroll-cue { position: absolute; inset-inline-start: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 20px; translate: 50% 0; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(14px); opacity: 0 } }
@media (max-width: 820px) {
  .hero { align-items: end; padding-top: 44svh; padding-bottom: 40px; }
  .hero .display { font-size: clamp(2.1rem, 9.5vw, 3rem); margin-bottom: 16px; }
  .hero .lede { font-size: 1rem; line-height: 1.85; margin-bottom: 24px; }
  .hero-live { top: calc(44svh - 76px); inset-inline-end: var(--gutter); padding: 10px 14px; min-width: 0; }
  .hero-live-v { font-size: .92rem; }
  .legend, .scroll-cue { display: none; }
}

/* ── form ───────────────────────────────────────────── */
.lead-form { max-width: 520px; }
.field {
  position: relative; display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(12 16 28 / .7); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s;
}
.field:focus-within { border-color: rgba(43 127 255 / .7); box-shadow: 0 0 0 5px rgba(43 127 255 / .14); }
.field.is-ready .btn { animation: ready 1.6s var(--ease) infinite; }
@keyframes ready { 0% { box-shadow: 0 0 0 0 rgba(43 127 255 / .7) } 100% { box-shadow: 0 0 0 14px rgba(43 127 255 / 0) } }
.field input {
  flex: 1; min-width: 0; padding: 0 20px; border: 0; background: none; outline: none;
  font: 500 1.12rem/1 "Yekan", sans-serif; color: var(--text); text-align: right;
}
.field input::placeholder { color: rgba(255 255 255 / .3); }
.field input:focus-visible { outline: none; }
.btn-spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255 255 255 / .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.lead-form.is-busy .btn-spin { display: block; }
.lead-form.is-busy .btn-label { opacity: .6; }
.form-msg { min-height: 1.85em; margin-top: 10px; font-size: .92rem; color: var(--muted); }
.form-msg.is-error { color: var(--ember-text); }
.form-msg.is-ok { color: #9fe0b8; }
.form-note { font-size: .84rem; color: rgba(154 163 181 / .8); }
.lead-form.is-done .field { border-color: rgba(120 220 160 / .45); }
.lead-form.is-done .field input { color: var(--muted); }
.lead-form.is-done .btn { background: linear-gradient(135deg, #22a565, #117a47); box-shadow: 0 10px 40px -10px rgba(34 165 101 / .7); pointer-events: none; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px) } 40%, 80% { transform: translateX(8px) } }
@media (max-width: 480px) {
  .field { flex-direction: column; border-radius: 22px; }
  .field input { min-height: 52px; text-align: center; }
  .field .btn { width: 100%; }
}

/* ── manifesto ──────────────────────────────────────── */
.manifesto { min-height: 110vh; display: grid; place-items: center; padding: 18vh var(--gutter); }
.manifesto-text { max-width: 1100px; font: 700 clamp(1.7rem, 3.6vw, 3.3rem)/1.7 "Yekan", sans-serif; text-align: center; }
.manifesto-text .mw { opacity: .14; transition: none; }

/* ── story ──────────────────────────────────────────── */
.story { position: relative; height: 520vh; }
.story-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 4vw;
  padding: 90px var(--gutter) 40px;
}
.story-copy { position: relative; z-index: 1; }
.story-copy .h2 { margin-bottom: clamp(28px, 5vh, 48px); }
.story-rail { display: grid; gap: 12px; max-width: 30em; margin-bottom: clamp(22px, 4vh, 36px); }
.rail-k { font-size: .95rem; color: var(--muted); }
.rail-k b { color: var(--text); font-weight: 700; }
.rail-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rail-bars button { position: relative; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.rail-bars button::before { content: ""; position: absolute; inset: 9px 0; border-radius: 2px; background: var(--line-2); transition: background-color .3s; }
.rail-bars button:hover::before { background: rgba(143 186 255 / .4); }
.rail-bars i { position: absolute; inset: 9px 0; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; box-shadow: 0 0 10px rgba(43 127 255 / .6); }
.steps { position: relative; list-style: none; margin: 0; padding: 0; min-height: 13em; }
.step { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; }
.step.is-active { opacity: 1; visibility: visible; }
.step h3 { font: 800 clamp(1.6rem, 2.6vw, 2.3rem)/1.4 "Yekan", sans-serif; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.story-visual { height: 100%; max-height: 820px; min-height: 0; }
.story-svg { width: 100%; height: 100%; overflow: visible; direction: ltr; }
.story-track { fill: none; stroke: rgba(255 255 255 / .08); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.story-path { fill: none; stroke: url(#pathGrad); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(43 127 255 / .8)); }
.snode circle.ring { fill: var(--bg); stroke: rgba(255 255 255 / .2); stroke-width: 1.5; transition: stroke .4s, fill .4s; }
.snode circle.core { fill: rgba(255 255 255 / .25); transition: fill .4s; }
.snode { cursor: pointer; }
.snode text { font: 700 18px "Yekan", sans-serif; fill: var(--muted); transition: fill .4s; }
.snode:hover circle.ring { stroke: var(--pulse-soft); }
.snode:hover text { fill: var(--text); }
.snode.is-on circle.ring { stroke: var(--pulse-from); fill: #0b1633; }
.snode.is-on circle.core { fill: #fff; }
.snode.is-on text { fill: var(--text); }
.snode .halo { fill: none; stroke: var(--pulse-from); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.snode.is-on .halo { animation: halo 2.2s var(--ease) infinite; }
@keyframes halo { 0% { opacity: .8; transform: scale(1) } 100% { opacity: 0; transform: scale(2.6) } }
@media (max-width: 820px) {
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding-top: 76px; }
  .story-visual { order: -1; }
  .story-copy .h2 { font-size: 1.7rem; }
  .story-copy .h2 { margin-bottom: 14px; }
  .story-rail { gap: 6px; margin-bottom: 14px; }
  .steps { min-height: 10.5em; }
  .step h3 { font-size: 1.45rem; margin-bottom: 4px; }
  .step p { font-size: .98rem; }
  .snode text { font-size: 28px; }
}

/* ── marquee ────────────────────────────────────────── */
.marquee { padding: 10vh 0; overflow: hidden; }
.marquee-row { direction: ltr; white-space: nowrap; }
.marquee-inner { display: inline-flex; align-items: center; gap: .45em; padding-inline-end: .45em; will-change: transform; font: 800 clamp(3.4rem, 10vw, 9.5rem)/1.3 "Yekan", sans-serif; }
.marquee-inner span { direction: rtl; unicode-bidi: isolate; }
.marquee-inner svg { width: .42em; height: .46em; flex: none; }
.marquee-row.outline .marquee-inner { color: transparent; -webkit-text-stroke: 1.2px rgba(255 255 255 / .28); }

/* ── horizontal ─────────────────────────────────────── */
.hscroll { position: relative; background: radial-gradient(120% 70% at 50% 45%, rgba(0 25 88 / .85), transparent 70%); }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 5vh, 56px); }
.hscroll-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); }
.hbar { width: min(260px, 30vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.hbar span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: right; }
.hscroll-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; perspective: 1400px; }

/* ── cards ──────────────────────────────────────────── */
.card { --mx: 50%; --my: 50%; position: relative; perspective: 1000px; }
.hscroll .card { width: min(400px, 80vw); height: min(500px, 62svh); transform: translateY(calc(var(--d, 0) * var(--d, 0) * 40px)) rotate(calc(var(--d, 0) * -3deg)); }
.card-in {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255 255 255 / .06), rgba(255 255 255 / .015)), rgba(9 12 22 / .82);
  border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0 0 0 / .8), inset 0 1px 0 rgba(255 255 255 / .06);
  transform-style: preserve-3d; will-change: transform;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card-in::before { /* spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(43 127 255 / .16), transparent 45%);
}
.card-in::after { /* border glow */
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(143 186 255 / .95), transparent 60%);
  -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);
}
.card:hover .card-in::before, .card:hover .card-in::after { opacity: 1; }
.card h3 { font: 800 1.6rem/1.45 "Yekan", sans-serif; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.85; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tag { font: 700 .95rem/1 "Yekan", sans-serif; color: var(--pulse-soft); }
.chip { display: inline-flex; align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: .78rem; color: var(--pulse-soft); background: rgba(43 127 255 / .1); border: 1px solid rgba(43 127 255 / .25); }
.viz { margin-top: auto; }

.viz-insight { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.viz-title { font-weight: 700; font-size: 1.02rem; line-height: 1.7; margin-bottom: 10px; }
.viz-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.viz-meta span { font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.viz-lines { display: grid; gap: 8px; }
.viz-lines i, .viz-brief i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(255 255 255 / .04), rgba(255 255 255 / .12)); }
.viz-lines i:nth-child(2) { width: 86%; } .viz-lines i:nth-child(3) { width: 58%; }
.viz-lines i, .viz-brief li, .split-bar span, .viz-matrix circle { transition: transform .9s var(--ease), opacity .9s var(--ease); }
.hscroll .card:not(.is-in) .viz-lines i, .hscroll .card:not(.is-in) .split-bar span { transform: scaleX(0); }
.viz-lines i { transform-origin: right; }
.hscroll .card:not(.is-in) .viz-brief li { opacity: 0; transform: translateY(14px); }
.hscroll .card:not(.is-in) .viz-matrix circle { opacity: 0; transform: scale(0); }
.viz-matrix circle { transform-box: fill-box; transform-origin: center; }
.viz-brief li:nth-child(2), .viz-lines i:nth-child(2), .s-b { transition-delay: .12s; }
.viz-brief li:nth-child(3), .viz-lines i:nth-child(3), .s-c { transition-delay: .24s; }

.viz-brief { list-style: none; padding: 0; display: grid; gap: 12px; }
.viz-brief li { display: grid; grid-template-columns: 5.5em 1fr; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; }
.viz-brief li:first-child { border-color: rgba(43 127 255 / .45); background: rgba(43 127 255 / .08); }
.viz-brief li:nth-child(2) i { width: 75%; } .viz-brief li:nth-child(3) i { width: 55%; }

.split-bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 3px; margin-bottom: 14px; }
.split-bar span { transform-origin: right; }
.s-a { flex: 6; background: var(--grad); } .s-b { flex: 3; background: #6a4ad8; } .s-c { flex: 1.4; background: rgba(255 255 255 / .12); }
.split-keys { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.split-keys span { display: inline-flex; align-items: center; gap: 6px; }
.split-keys i { width: 9px; height: 9px; border-radius: 3px; }
.k-a { background: var(--pulse-from); } .k-b { background: #6a4ad8; } .k-c { background: rgba(255 255 255 / .2); }

.viz-matrix { width: 100%; height: auto; }
.viz-matrix path { stroke: var(--line-2); stroke-width: 1; fill: none; }
.viz-matrix circle { fill: rgba(143 186 255 / .45); }
.viz-matrix circle.hot { fill: var(--pulse-from); filter: drop-shadow(0 0 8px var(--pulse-from)); animation: hot 2.6s var(--ease) infinite; }
@keyframes hot { 50% { r: 9px } }
.viz-matrix { cursor: crosshair; }


.depth { --i: 0; display: grid; gap: 16px; }
.depth[data-depth="1"] { --i: 1; } .depth[data-depth="2"] { --i: 2; }
.depth-preview { display: grid; gap: 7px; height: 82px; align-content: start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: height .6s var(--ease); }
.depth[data-depth="1"] .depth-preview { height: 110px; } .depth[data-depth="2"] .depth-preview { height: 152px; }
.depth-preview i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(255 255 255 / .05), rgba(255 255 255 / .16)); transform-origin: right; transition: transform .6s var(--ease), opacity .6s; }
.depth-preview i:first-child { background: rgba(143 186 255 / .55); width: 70%; height: 8px; margin-bottom: 4px; }
.depth-preview i:nth-child(3) { width: 80%; } .depth-preview i:nth-child(5) { width: 90%; } .depth-preview i:nth-child(6) { width: 55%; }
.depth[data-depth="0"] .depth-preview i:nth-child(n+4), .depth[data-depth="1"] .depth-preview i:nth-child(n+6) { transform: scaleX(0); opacity: 0; }
.depth-switch { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.depth-switch button { position: relative; padding: 9px 0; border: 0; border-radius: 999px; background: none; font: 500 .85rem/1.4 "Yekan", sans-serif; color: var(--muted); cursor: pointer; transition: color .3s; }
.depth-switch button[aria-pressed="true"] { color: #fff; }
.depth-switch button:hover { color: var(--text); }
.depth-thumb { position: absolute; top: 5px; bottom: 5px; right: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(43 127 255 / .8); transform: translateX(calc(var(--i) * -100%)); transition: transform .55s var(--ease); }

.card-end .card-in { justify-content: center; align-items: center; text-align: center; gap: 22px; background: radial-gradient(90% 70% at 50% 30%, rgba(43 127 255 / .28), transparent 70%), rgba(9 12 22 / .82); }
.card-end-mark { width: 56px; height: 62px; }
.card-end h3 { font-size: 2rem; }

/* ── readers ────────────────────────────────────────── */
.readers { padding: 22vh var(--gutter) 16vh; text-align: center; }
.readers .h2 { margin-bottom: 64px; }
.reader-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; text-align: start; }
.reader .card-in { min-height: 330px; gap: 16px; }
.r-ico { width: 52px; height: 52px; margin-bottom: 18px; fill: none; stroke: var(--pulse-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reader .chip { margin-top: auto; }
@media (max-width: 900px) { .reader-grid { grid-template-columns: 1fr; } .reader .card-in { min-height: 0; } }

/* ── join ───────────────────────────────────────────── */
.join { overflow: clip; min-height: 100svh; display: grid; place-items: start center; padding: 18vh var(--gutter) 40vh; text-align: center; }
.join-in { position: relative; display: grid; justify-items: center; gap: 24px; max-width: 760px; }
.join-in::before { content: ""; position: absolute; inset: -12% -22% -18%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(7 8 12 / .88), rgba(7 8 12 / .55) 60%, transparent); }
.join-mark { width: 46px; height: 50px; }
.join-title { font-size: clamp(2.3rem, 5.6vw, 5rem); }
.join .lede { margin-bottom: 8px; }
.join .lead-form { width: 100%; }

/* ── footer ─────────────────────────────────────────── */
.foot { display: flex; align-items: center; gap: 24px; padding: 28px var(--gutter); border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .9rem; }
.foot .brand { color: var(--text); font-size: 1.1rem; }
.foot-c { margin-inline-start: auto; }
@media (max-width: 600px) { .foot { flex-wrap: wrap; gap: 8px 18px; } }

/* ── burst particles ────────────────────────────────── */
.spark { position: fixed; z-index: 60; width: 14px; height: 15px; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .grain::before, .live-dot, .scroll-cue span, .snode.is-on .halo, .lg-hint svg, .viz-matrix circle.hot, .field.is-ready .btn, .cursor-ring { animation: none !important; }
  .depth-thumb, .depth-preview, .depth-preview i { transition: none; }
}
