/* =========================================================
   Tumblrr AI — tumblrr.tech
   Palette: Obsidian / Graphite / Bone / Haze / Signal Blue → Ultraviolet / Fracture Red
   Type: Outfit (display+body) · Instrument Serif (accent) · JetBrains Mono (data)
   ========================================================= */

:root {
  --bg: #07070b;
  --bg-2: #0b0b11;
  --surface: #101017;
  --surface-2: #16161f;
  --line: rgba(236, 234, 255, 0.08);
  --line-2: rgba(236, 234, 255, 0.15);
  --text: #f2f1f5;
  --muted: #8c8a9e;
  --dim: #5f5d72;
  --blue: #3d7bff;
  --indigo: #6d5bff;
  --violet: #9b4dff;
  --magenta: #c84dff;
  --red: #ff3b5c;
  --green: #3ddc97;
  --amber: #ffb547;
  --grad: linear-gradient(100deg, #3d7bff 0%, #6d5bff 42%, #9b4dff 72%, #c84dff 100%);
  --grad-soft: linear-gradient(100deg, rgba(61,123,255,.18), rgba(155,77,255,.18));

  --f-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
::selection { background: rgba(155, 77, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 150px); position: relative; }

/* ---------- type helpers ---------- */
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.red-serif { color: var(--red); }
.red { color: var(--red); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono-label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grad); }
.section-head { display: grid; gap: 0; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(36px, 5.4vw, 72px); max-width: 16ch; }
.section-head.split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
.section-head.split h2 { max-width: 14ch; }
.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 46ch; line-height: 1.65; }
.hint { margin-top: 18px; font-family: var(--f-mono); font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.source { margin-top: 28px; font-size: 12.5px; color: var(--dim); max-width: 90ch; line-height: 1.6; }

/* ---------- grain / progress / cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 300; pointer-events: none; }
  .cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
  .cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.35); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; display: grid; place-items: center; }
  .cursor-ring em { font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
  .cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(155,77,255,.12); border-color: rgba(155,77,255,.6); }
  .cursor.is-drag .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(61,123,255,.14); border-color: rgba(61,123,255,.7); }
  .cursor.is-drag .cursor-ring em { opacity: 1; }
}

/* ---------- buttons ---------- */
.btn {
  --pad: 16px 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: var(--pad); border-radius: 999px; font-weight: 500; font-size: 15.5px; letter-spacing: -.005em;
  isolation: isolate; overflow: hidden; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
}
.btn i { font-style: normal; transition: transform .45s var(--ease); display: inline-block; }
.btn:hover i { transform: translateX(5px); }
.btn-sm { --pad: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-grad { color: #fff; background: var(--grad); box-shadow: 0 10px 40px -12px rgba(109, 91, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-grad::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn-grad:hover::after { transform: translateX(120%); }
.btn-grad:hover { box-shadow: 0 18px 60px -12px rgba(155, 77, 255, .85), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .4s var(--ease); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px transparent; }
.btn-ghost:hover::before { opacity: 1; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-size: 18px; transition: background .3s, transform .4s var(--ease-spring); }
.round-btn:hover { background: var(--grad); transform: scale(1.08); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, backdrop-filter .4s, box-shadow .4s, transform .5s var(--ease); }
.nav.is-scrolled { background: rgba(7,7,11,.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { transition: transform .8s var(--ease-spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: -.035em; }
.wordmark b { font-weight: 800; margin-left: 2px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 14px; font-size: 14.5px; color: var(--muted); font-weight: 400; transition: color .3s; overflow: hidden; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; margin-left: 8px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(110px, 14vw, 150px); padding-bottom: 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 75% 40%, rgba(109,91,255,.16), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(61,123,255,.08), transparent 70%); pointer-events: none; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 30px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

.hero-title { font-size: clamp(46px, 6.4vw, 100px); font-weight: 700; letter-spacing: -.045em; line-height: .96; }
.hero-title .line { display: block; }
.hero-title .line:last-child { font-weight: 300; color: #d9d7e3; }
.hero-title .serif { font-weight: 400; letter-spacing: -.02em; padding-right: .06em; }
.wd { display: inline-block; white-space: nowrap; }
.tw { display: inline-block; transform-origin: 50% 80%; transition: color .3s; }
.tw.tumble { animation: tumble .9s var(--ease-spring); color: var(--violet); }
@keyframes tumble {
  0% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-.28em) rotate(-18deg); }
  60% { transform: translateY(.06em) rotate(8deg); }
  100% { transform: translateY(0) rotate(0); }
}
.hero-title .line.is-in .tw { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes rise { from { transform: translateY(40%) rotateX(-70deg); opacity: .2; } to { transform: none; opacity: 1; } }

.hero-sub { margin-top: 30px; font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 52ch; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 44px 0 0; border-top: 1px solid var(--line); padding-top: 22px; max-width: 520px; }
.hero-meta div { flex: 1 1 0; min-width: 120px; padding-right: 16px; }
.hero-meta div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-meta dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.hero-meta dd { margin: 6px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.hero-stage { position: relative; perspective: 1400px; }
.stage-inner { position: relative; transform-style: preserve-3d; transition: transform .8s var(--ease); aspect-ratio: 1037 / 1227; max-width: 560px; margin-inline: auto; }
.stage-art {
  position: relative; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 88%, transparent 100%);
  mask-composite: intersect;
  mix-blend-mode: lighten; animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -10px; } }
.stage-halo { position: absolute; inset: 18% 10% 10% 14%; border-radius: 50%; background: radial-gradient(circle at 60% 60%, rgba(155,77,255,.35), rgba(61,123,255,.12) 45%, transparent 70%); filter: blur(30px); transform: translateZ(-80px); }
.stage-orbit { position: absolute; left: 50%; top: 52%; width: 110%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(155,77,255,.22); transform: translate(-50%, -50%) translateZ(-40px) rotateX(74deg); animation: orbit 30s linear infinite; }
@keyframes orbit { to { transform: translate(-50%, -50%) translateZ(-40px) rotateX(74deg) rotateZ(360deg); } }
.stage-side { position: absolute; display: grid; gap: 6px; font-family: var(--f-display); font-size: 11.5px; letter-spacing: .42em; text-transform: uppercase; color: #cfcde0; font-weight: 400; }
.stage-side.left { left: -4%; top: 40%; }
.stage-side.right { right: -6%; top: 50%; text-align: left; }
.stage-side b { color: var(--violet); font-weight: 500; }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 14px;
  background: rgba(16,16,23,.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(0,0,0,.8);
  font-size: 13.5px; line-height: 1.25; white-space: nowrap; animation: floaty 6s ease-in-out infinite;
}
.float b { font-weight: 500; display: block; }
.float small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.float.f1 { left: -8%; top: 12%; }
.float.f2 { right: -4%; top: 24%; animation-delay: -2s; }
.float.f3 { left: 2%; bottom: 8%; animation-delay: -4s; }
@keyframes floaty { 50% { translate: 0 -8px; } }
.ico-x, .ico-ok { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; flex: none; }
.ico-x { color: var(--red); background: rgba(255,59,92,.14); box-shadow: inset 0 0 0 1px rgba(255,59,92,.35); }
.ico-ok { color: #8fb0ff; background: rgba(61,123,255,.14); box-shadow: inset 0 0 0 1px rgba(61,123,255,.35); }

.hero-foot { position: relative; display: grid; justify-items: center; gap: 18px; margin-top: clamp(40px, 6vw, 70px); padding-top: 34px; border-top: 1px solid var(--line); text-align: center; }
.tagline { font-size: clamp(11px, 1.15vw, 14px); letter-spacing: .34em; text-transform: uppercase; color: #cfcde0; }
.tagline i { font-style: normal; margin-inline: .8em; color: var(--dim); }
.tagline .red { font-weight: 500; }
.bri-mini { display: inline-flex; align-items: center; gap: clamp(18px, 3vw, 44px); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .6em; text-transform: uppercase; color: #e6e4ee; padding-left: .6em; }
.bri-mini i { width: 5px; height: 5px; border-radius: 50%; }
.bri-mini.small { font-size: 11px; letter-spacing: .4em; gap: 14px; color: var(--muted); }
.dot-red { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot-blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }

/* ---------- marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-block: 22px; transform: rotate(-1.2deg); margin-block: 40px 20px; margin-inline: -2%; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee-row span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; color: #d7d5e2; transition: color .3s; }
.marquee-row span:nth-child(4n+1) { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.marquee-row span:hover { color: var(--red); }
.marquee-row i { font-style: normal; color: var(--red); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { padding-block: clamp(90px, 14vw, 180px); }
.manifesto-text { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; }
.manifesto-text .w { color: var(--text); transition: color .5s var(--ease); }
.manifesto-text.armed .w { color: #2b2a36; }
.manifesto-text.armed .w.on { color: var(--text); }
.manifesto-text strong { font-weight: 400; }
.manifesto-text strong .w { font-family: var(--f-serif); font-style: italic; }
.manifesto-text.armed strong .w.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- reveal (only below-the-fold at load) ---------- */
.rv { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.rv-wait { opacity: 0; transform: translateY(40px); }

/* ---------- stats bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.gap-card { grid-column: span 2; grid-row: span 2; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.gap-card h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; margin-top: 10px; max-width: 24ch; }
.gap-chart { position: relative; display: grid; gap: 26px; margin-top: auto; padding-right: 70px; }
.gap-row p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; max-width: 40ch; }
.gap-bar { position: relative; height: 44px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 25%); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; }
.gap-bar .fill { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 8px; transition: width 1.6s var(--ease); min-width: 6px; }
.gap-chart.pending .fill { width: 0; }
.gap-bar .fill.blue { background: var(--grad); box-shadow: 0 0 30px -4px rgba(109,91,255,.6); }
.gap-bar .fill.red { background: var(--red); box-shadow: 0 0 24px -2px rgba(255,59,92,.7); }
.gap-bar b { margin-left: 14px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gap-axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--dim); margin-top: -12px; }
.gap-axis span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.gap-foot { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.gap-foot b { color: var(--text); font-weight: 600; }

.flip { perspective: 1200px; text-align: left; min-height: 250px; display: block; width: 100%; }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease-spring); }
.flip:hover .flip-inner, .flip:focus-visible .flip-inner, .flip.is-flipped .flip-inner { transform: rotateX(180deg); }
.face { position: absolute; inset: 0; border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.face.back { transform: rotateX(180deg); background: radial-gradient(120% 120% at 0% 0%, rgba(61,123,255,.28), transparent 60%), radial-gradient(120% 120% at 100% 100%, rgba(155,77,255,.3), transparent 60%), var(--surface-2); box-shadow: inset 0 0 0 1px rgba(155,77,255,.35); justify-content: flex-start; }
.face.back .cap { color: var(--text); font-size: 17px; }
.big { font-size: clamp(46px, 5vw, 68px); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .08em; }
.big.duo { font-size: clamp(38px, 3.7vw, 54px); }
.big small { font-size: .38em; font-weight: 300; color: var(--dim); margin-inline: .25em; letter-spacing: 0; }
.cap { font-size: 15px; line-height: 1.5; color: var(--muted); }
.face.front::after { content: "↻"; position: absolute; right: 22px; top: 22px; font-size: 14px; color: var(--dim); transition: transform .6s var(--ease); }
.flip:hover .face.front::after { transform: rotate(180deg); }

/* ---------- trajectory ---------- */
.traj { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.traj-tabs { display: grid; gap: 10px; align-content: start; }
.traj-tab { text-align: left; padding: 18px 20px; border-radius: 14px; font-size: 16px; line-height: 1.4; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, background .3s, box-shadow .3s, transform .4s var(--ease); display: grid; gap: 6px; }
.traj-tab:hover { color: var(--text); transform: translateX(4px); }
.traj-tab.is-on { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255,59,92,.4); }
.traj-tab.is-on .mono-label { color: var(--red); }
.traj-board { border-radius: var(--radius); background: radial-gradient(80% 100% at 50% 0%, rgba(109,91,255,.08), transparent 60%), var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 36px); display: grid; gap: 26px; overflow: hidden; }
.traj-chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; perspective: 900px; }
.node { position: relative; border-radius: 14px; padding: 16px 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 150px; display: flex; flex-direction: column; gap: 8px; transition: transform .5s var(--ease), box-shadow .4s, background .4s, opacity .4s; opacity: .35; }
.node::after { content: ""; position: absolute; right: -12px; top: 32px; width: 12px; height: 1px; background: var(--line-2); }
.node:last-child::after { display: none; }
.node .n-step { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); letter-spacing: .1em; }
.node h4 { font-size: 15px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.node code { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); line-height: 1.5; word-break: break-word; }
.node .n-mark { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; opacity: 0; transition: opacity .3s; }
.node.lit { opacity: 1; }
.node.lit .n-mark { opacity: 1; }
.node.ok .n-mark { color: var(--green); background: rgba(61,220,151,.12); }
.node.ok.lit::after { background: rgba(61,220,151,.5); }
.node.bad.lit { background: linear-gradient(180deg, rgba(255,59,92,.16), var(--surface)); box-shadow: inset 0 0 0 1px rgba(255,59,92,.6), 0 0 40px -10px rgba(255,59,92,.6); animation: shake .5s; }
.node.bad .n-mark { color: #fff; background: var(--red); }
.node.bad code { color: #ffb3c0; }
.node.after.lit { background: repeating-linear-gradient(135deg, rgba(255,59,92,.05) 0 6px, transparent 6px 12px), var(--surface); }
.node:hover { transform: translateY(-6px) rotateX(10deg); }
@keyframes shake { 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }
.traj-verdict { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 14px 18px; border-radius: 12px; background: rgba(255,59,92,.07); box-shadow: inset 0 0 0 1px rgba(255,59,92,.22); font-size: 15.5px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.traj-verdict.show { opacity: 1; transform: none; }
.traj-verdict .pill { flex: none; }
.handoff-callout { margin-top: 20px; display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: baseline; padding: 26px 30px; border-radius: var(--radius); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(109,91,255,.25); }
.handoff-callout p:last-child { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.45; font-weight: 300; }

/* ---------- Break / Reach / Improve ---------- */
.bri { position: relative; height: 330vh; background: radial-gradient(60% 40% at 70% 50%, rgba(61,123,255,.06), transparent 70%); }
.bri-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#bri-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bri-layout { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.bri-steps { pointer-events: auto; max-width: 440px; }
.bri-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bri-step { border-radius: 14px; padding: 12px 0; }
.bri-label { display: flex; align-items: baseline; gap: 18px; font-size: clamp(44px, 6vw, 88px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #24232e; transition: color .5s var(--ease), transform .6s var(--ease); }
.bri-num { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; color: var(--dim); transform: translateY(-2.2em); }
.bri-step p { max-height: 0; overflow: hidden; opacity: 0; color: var(--muted); font-size: 17px; line-height: 1.6; padding-left: 40px; transition: max-height .7s var(--ease), opacity .5s, margin .5s; }
.bri-step.is-on .bri-label { color: var(--text); transform: translateX(8px); }
.bri-step[data-step="0"].is-on .bri-label { color: var(--red); text-shadow: 0 0 40px rgba(255,59,92,.35); }
.bri-step[data-step="1"].is-on .bri-label { background: linear-gradient(90deg, #ff6a86, #b56bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bri-step[data-step="2"].is-on .bri-label { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bri-step.is-on p { max-height: 160px; opacity: 1; margin-top: 12px; }
.bri-bar { margin-top: 30px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-left: 40px; }
.bri-bar span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--red), var(--violet), var(--blue)); }
.bri-caption { position: absolute; right: var(--gutter); bottom: 36px; }

/* ---------- tilt cards ---------- */
.tilt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; perspective: 1400px; }
.tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); padding: 28px; min-height: 300px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), box-shadow .4s, opacity 1s var(--ease);
}
.tilt.is-tilting { transition: transform .12s linear, box-shadow .4s, opacity 1s var(--ease); box-shadow: inset 0 0 0 1px rgba(155,77,255,.4), 0 40px 80px -40px rgba(109,91,255,.55); }
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(155,77,255,.22), transparent 45%); }
.tilt.is-tilting .tilt-glare { opacity: 1; }
.tilt header { display: flex; justify-content: space-between; align-items: center; transform: translateZ(30px); }
.tid { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--red); padding: 5px 9px; border-radius: 6px; background: rgba(255,59,92,.1); }
.tilt svg { width: 30px; height: 30px; fill: none; stroke: #c9c2ff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-spring), stroke .3s; }
.tilt:hover svg { transform: translateZ(40px) scale(1.15) rotate(-8deg); stroke: #fff; }
.tilt h3 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin-top: 22px; transform: translateZ(45px); }
.tilt p { color: var(--muted); font-size: 15.5px; line-height: 1.55; transform: translateZ(25px); }
.tilt code { margin-top: auto; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.5; color: #ffb3c0; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(255,59,92,.18); transform: translateZ(60px); opacity: .55; transition: opacity .4s, box-shadow .4s; }
.tilt code span { color: var(--red); margin-right: 6px; }
.tilt:hover code { opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,59,92,.5); }

.consistency { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 30px; border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.consistency h3 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; margin-top: 10px; max-width: 26ch; }
.runs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.run { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; transition: transform .5s var(--ease-spring); }
.run.ok { color: var(--green); background: rgba(61,220,151,.1); box-shadow: inset 0 0 0 1px rgba(61,220,151,.3); }
.run.bad { color: var(--red); background: rgba(255,59,92,.1); box-shadow: inset 0 0 0 1px rgba(255,59,92,.35); }
.runs:hover .run { transform: translateY(-6px) rotate(-6deg); }
.runs:hover .run:nth-child(even) { transform: translateY(6px) rotate(6deg); }
.runs-score { margin-left: 12px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- sessions / terminal ---------- */
.sess { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.sess-tabs { display: grid; gap: 6px; }
.sess-tab { text-align: left; padding: 15px 18px; border-radius: 12px; display: grid; gap: 2px; position: relative; overflow: hidden; transition: background .3s, transform .4s var(--ease); }
.sess-tab b { font-weight: 500; font-size: 16px; color: var(--muted); transition: color .3s; }
.sess-tab small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.sess-tab::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; background: var(--grad); transform: scaleY(0); transition: transform .4s var(--ease); }
.sess-tab:hover b { color: var(--text); }
.sess-tab.is-on { background: var(--surface); }
.sess-tab.is-on b { color: var(--text); }
.sess-tab.is-on::before { transform: scaleY(1); }
.term-wrap { perspective: 1600px; }
.term { border-radius: 16px; background: #09090e; box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 120px -50px rgba(109,91,255,.45); overflow: hidden; transform: rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)); transition: transform .5s var(--ease); }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #0e0e15; }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a35; }
.term:hover .lights i:nth-child(1) { background: #ff5f57; } .term:hover .lights i:nth-child(2) { background: #febc2e; } .term:hover .lights i:nth-child(3) { background: #28c840; }
.term-title { font-family: var(--f-mono); font-size: 12px; color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; color: var(--green); }
.term-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1s steps(2) infinite; }
.term-live.done { color: var(--muted); } .term-live.done i { background: var(--muted); animation: none; }
@keyframes blink { 50% { opacity: .2; } }
.term-body { margin: 0; padding: 22px 22px 10px; min-height: 360px; font-family: var(--f-mono); font-size: 13px; line-height: 1.85; color: #c9c7d6; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.term-body .t-cmd { color: #fff; } .term-body .t-cmd::before { content: "$ "; color: var(--violet); }
.term-body .t-dim { color: var(--dim); }
.term-body .t-case { color: #8fb0ff; }
.term-body .t-bad { color: var(--red); }
.term-body .t-ok { color: var(--green); }
.term-body .t-sum { color: var(--amber); }
.term-body .caret { display: inline-block; width: 8px; height: 15px; background: var(--violet); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.term-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.term-foot div { padding: 14px 18px; display: grid; gap: 2px; }
.term-foot div + div { border-left: 1px solid var(--line); }
.term-foot b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.term-foot span { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.term-foot .c-red { color: var(--red); } .term-foot .c-amber { color: var(--amber); }

/* ---------- process accordion ---------- */
.accordion { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; height: 380px; }
.acc { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; overflow: hidden; cursor: pointer; transition: flex-grow .8s var(--ease), background .5s, box-shadow .5s; display: flex; flex-direction: column; justify-content: space-between; }
.acc.is-open { flex-grow: 3.2; background: radial-gradient(100% 90% at 100% 100%, rgba(155,77,255,.22), transparent 60%), radial-gradient(80% 80% at 0% 0%, rgba(61,123,255,.14), transparent 60%), var(--surface-2); box-shadow: inset 0 0 0 1px rgba(155,77,255,.35); }
.acc-num { font-size: 64px; font-weight: 200; letter-spacing: -.05em; line-height: 1; color: var(--dim); transition: color .5s; font-variant-numeric: tabular-nums; }
.acc.is-open .acc-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.acc-body { display: grid; gap: 12px; }
.acc-body h3 { font-size: 26px; font-weight: 500; white-space: nowrap; }
.acc-body p, .acc-tag { opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .6s var(--ease); max-width: 42ch; color: var(--muted); }
.acc.is-open .acc-body p, .acc.is-open .acc-tag { opacity: 1; transform: none; transition-delay: .25s; }
.acc-tag { color: #b9a8ff; }

/* ---------- report sheets ---------- */
.report-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.report-copy h2 { font-size: clamp(36px, 5vw, 64px); max-width: 12ch; }
.checks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; transition: color .3s, padding .4s var(--ease); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 14px; color: var(--violet); }
.checks li b { color: var(--text); font-weight: 500; }
.checks li:hover { color: var(--text); padding-left: 42px; }
.sheets { position: relative; height: 560px; perspective: 1800px; transform-style: preserve-3d; }
.sheet { position: absolute; left: 50%; top: 50%; width: min(440px, 88%); height: 500px; margin-left: calc(min(440px, 88%) / -2); margin-top: -250px; border-radius: 16px; padding: 26px; background: linear-gradient(180deg, #14141c, #0e0e14); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0,0,0,.9); transition: transform 1s var(--ease-spring); overflow: hidden; }
.sheet.s1 { transform: rotateY(-18deg) rotateX(8deg) translateZ(40px); }
.sheet.s2 { transform: rotateY(-18deg) rotateX(8deg) translateZ(0) translate(26px, -22px); opacity: .9; }
.sheet.s3 { transform: rotateY(-18deg) rotateX(8deg) translateZ(-40px) translate(52px, -44px); opacity: .75; }
.sheets:hover .sheet.s1, .sheets:focus-visible .sheet.s1, .sheets.tapped .sheet.s1 { transform: rotateY(-8deg) rotateX(4deg) translateZ(80px) translate(-26%, 6%) rotateZ(-4deg); }
.sheets:hover .sheet.s2, .sheets:focus-visible .sheet.s2, .sheets.tapped .sheet.s2 { transform: rotateY(-8deg) rotateX(4deg) translateZ(20px) translate(4%, -4%) rotateZ(2deg); opacity: 1; }
.sheets:hover .sheet.s3, .sheets:focus-visible .sheet.s3, .sheets.tapped .sheet.s3 { transform: rotateY(-8deg) rotateX(4deg) translateZ(-20px) translate(30%, -12%) rotateZ(8deg); opacity: 1; }
.sheet pre { margin: 16px 0 0; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.7; color: var(--muted); white-space: pre-wrap; }
.dims { display: grid; gap: 14px; margin-top: 22px; }
.dims div { display: grid; grid-template-columns: 80px 1fr 40px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.dims i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--grad-soft)), var(--line); position: relative; overflow: hidden; }
.dims i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--grad); border-radius: 4px; }
.dims i.lo::after { background: var(--red); }
.dims b { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-align: right; color: var(--text); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sheet-head > span:nth-child(2) { font-weight: 600; font-size: 16px; }
.sheet-head .mono-label { margin-left: auto; font-size: 10px; }
.sev-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.sev { border-radius: 10px; padding: 10px; display: grid; gap: 0; }
.sev b { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sev span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sev.crit { background: rgba(255,59,92,.12); } .sev.crit b { color: var(--red); }
.sev.high { background: rgba(255,181,71,.1); } .sev.high b { color: var(--amber); }
.sev.med { background: rgba(155,77,255,.1); } .sev.med b { color: #b98bff; }
.sev.low { background: rgba(255,255,255,.04); } .sev.low b { color: var(--muted); }
.finding { border-radius: 12px; padding: 16px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; margin-bottom: 10px; }
.finding.muted { opacity: .55; }
.finding-top { display: flex; justify-content: space-between; align-items: center; }
.finding h4 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.finding p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.finding-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--dim); }
.finding-meta b { color: var(--text); font-weight: 500; }
.pill { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.pill.crit { color: #fff; background: var(--red); }
.pill.high { color: #1a1206; background: var(--amber); }

/* ---------- packs carousel ---------- */
.carousel-scene { --cw: 300px; --r: 380px; position: relative; height: 470px; perspective: 1700px; overflow: hidden; touch-action: pan-y; cursor: grab; margin-top: 10px; }
.carousel-scene:active { cursor: grabbing; }
.carousel { position: absolute; left: 50%; top: 50%; width: var(--cw); height: 380px; margin: -190px 0 0 calc(var(--cw) / -2); transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateX(-6deg) rotateY(0deg); }
.pack {
  position: absolute; inset: 0; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; user-select: none;
  background: radial-gradient(120% 70% at 100% 0%, hsla(var(--hue), 90%, 60%, .28), transparent 60%), linear-gradient(180deg, #15151e, #0c0c12);
  box-shadow: inset 0 0 0 1px hsla(var(--hue), 90%, 70%, .25);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: box-shadow .5s, filter .5s, opacity .5s;
  filter: brightness(.55) saturate(.7);
}
.pack.is-front { filter: none; box-shadow: inset 0 0 0 1px hsla(var(--hue), 90%, 70%, .6), 0 40px 90px -30px hsla(var(--hue), 90%, 60%, .55); }
.pack h3 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.pack ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pack li { font-size: 15px; color: #c9c7d6; padding-left: 20px; position: relative; }
.pack li::before { content: "✕"; position: absolute; left: 0; font-size: 11px; top: 3px; color: var(--red); }
.pack footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.carousel-ctrl { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
.carousel-ctrl .mono-label { font-variant-numeric: tabular-nums; min-width: 60px; text-align: center; }

/* ---------- comparison table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.ctable { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.ctable th, .ctable td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable thead th { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.ctable thead th.us { color: #fff; background: linear-gradient(180deg, rgba(109,91,255,.35), rgba(109,91,255,.12)); font-weight: 500; }
.ctable tbody th { font-weight: 400; color: var(--text); width: 32%; }
.ctable td { color: var(--muted); font-size: 14px; }
.ctable td.us { color: var(--text); background: rgba(109,91,255,.07); }
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: 0; }
.ctable tbody tr { transition: background .25s; }
.ctable tbody tr:hover { background: rgba(255,255,255,.025); }
.ctable tbody tr:hover td.us { background: rgba(109,91,255,.16); }
.yes, .no, .part { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; margin-right: 10px; font-size: 11px; }
.yes { color: #fff; background: var(--grad); }
.no { color: var(--dim); box-shadow: inset 0 0 0 1px var(--line-2); }
.part { color: var(--amber); }

/* ---------- engage ladder ---------- */
.engage-side { display: grid; gap: 22px; justify-items: start; }
.currency { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.cur { position: relative; z-index: 1; padding: 8px 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted); transition: color .3s; }
.cur.is-on { color: #fff; }
.cur-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--grad); transition: transform .5s var(--ease-spring); }
.currency.inr .cur-pill { transform: translateX(100%); }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; padding-bottom: 72px; }
.rung { position: relative; border-radius: var(--radius); padding: 28px 24px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; isolation: isolate; }
.rung { transition: translate .6s var(--ease); }
.rung:nth-child(1) { translate: 0 72px; } .rung:nth-child(2) { translate: 0 48px; } .rung:nth-child(3) { translate: 0 24px; }
.rung:hover { translate: 0 calc(var(--lift, 0px) - 8px); }
.rung:nth-child(1):hover { --lift: 72px; } .rung:nth-child(2):hover { --lift: 48px; } .rung:nth-child(3):hover { --lift: 24px; }
.spot { --sx: 50%; --sy: 50%; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(360px circle at var(--sx) var(--sy), rgba(155,77,255,.9), rgba(61,123,255,.4) 30%, var(--line) 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; pointer-events: none; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(300px circle at var(--sx) var(--sy), rgba(109,91,255,.12), transparent 60%); opacity: 0; transition: opacity .4s; z-index: -1; pointer-events: none; }
.spot:hover::after { opacity: 1; }
.rung.featured { background: radial-gradient(120% 60% at 50% 0%, rgba(109,91,255,.2), transparent 70%), var(--surface-2); }
.badge { position: absolute; top: -12px; right: 20px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; }
.rung h3 { font-size: 26px; font-weight: 500; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-height: 58px; }
.price span { font-size: 42px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price s { color: var(--dim); font-size: 17px; }
.price small { color: var(--muted); font-size: 14px; }
.price span.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(12px) rotateX(-60deg); } }
.rung ul { list-style: none; padding: 16px 0 0; margin: 0 0 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.rung li { font-size: 14.5px; color: var(--muted); padding-left: 22px; position: relative; line-height: 1.45; }
.rung li::before { content: "→"; position: absolute; left: 0; color: var(--violet); }

/* ---------- compliance coins ---------- */
.compliance-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.compliance h2 { font-size: clamp(36px, 5vw, 64px); max-width: 13ch; margin-bottom: 24px; }
.coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.coin { perspective: 1000px; aspect-ratio: 1; width: 100%; max-width: 210px; justify-self: center; }
.coin:nth-child(2) { transform: translateY(40px); }
.coin-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease-spring); }
.coin:hover .coin-inner, .coin:focus-visible .coin-inner, .coin.is-flipped .coin-inner { transform: rotateY(180deg); }
.coin-face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 18%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-face.front { background: radial-gradient(circle at 30% 25%, #2a2a38, #0d0d13 70%); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 0 8px #0d0d13, inset 0 0 0 9px rgba(155,77,255,.35), 0 30px 60px -30px rgba(109,91,255,.6); }
.coin-face.front b { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.coin-face.front span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.coin-face.back { transform: rotateY(180deg); background: var(--grad); font-size: clamp(12px, 1.1vw, 14px); line-height: 1.35; color: #fff; font-weight: 400; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.faq .section-head h2 { font-size: clamp(36px, 4.6vw, 60px); }
.faq-list { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative; font-size: clamp(18px, 1.7vw, 22px); font-weight: 400; letter-spacing: -.01em; transition: color .3s, padding .4s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 300; font-size: 20px; transition: transform .5s var(--ease-spring), background .3s; }
.faq summary:hover { padding-left: 10px; color: #fff; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--grad); box-shadow: none; }
.faq details p { color: var(--muted); padding: 0 50px 26px 0; max-width: 62ch; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact-glow { position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; max-width: 140vw; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(109,91,255,.18), transparent 60%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.contact-title { font-size: clamp(36px, 5.2vw, 76px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin-bottom: 26px; }
.contact-title .red { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 400; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: border-color .3s, gap .4s var(--ease); }
.mail-link:hover { border-color: var(--violet); gap: 18px; }
.mail-link i { font-style: normal; color: var(--violet); }
.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: rgba(16,16,23,.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 120px -60px rgba(109,91,255,.5); }
.field { position: relative; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: rgba(255,255,255,.03); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 24px 16px 10px; resize: vertical; transition: box-shadow .3s, background .3s; }
.field textarea { min-height: 100px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--violet); background: rgba(155,77,255,.05); }
.field label { position: absolute; left: 16px; top: 17px; font-size: 16px; color: var(--muted); pointer-events: none; transition: top .3s var(--ease), font-size .3s var(--ease), color .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; right: 16px; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 11.5px; color: #b9a8ff; }
.field.invalid input { box-shadow: inset 0 0 0 1.5px var(--red); }
.field-chips { border: 0; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.field-chips legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.field-chips label { cursor: pointer; }
.field-chips input { position: absolute; opacity: 0; pointer-events: none; }
.field-chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease-spring); }
.field-chips label:hover span { transform: translateY(-2px); color: var(--text); }
.field-chips input:checked + span { background: var(--grad); color: #fff; box-shadow: none; }
.field-chips input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.form-msg { min-height: 22px; font-size: 14px; color: var(--muted); }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--green); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 70px; background: var(--bg-2); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand p { color: var(--muted); margin-top: 16px; max-width: 34ch; font-size: 15px; }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot-col .mono-label { margin-bottom: 6px; }
.foot-col a, .foot-col span { color: var(--muted); transition: color .3s, transform .4s var(--ease); justify-self: start; }
.foot-col a:hover { color: var(--text); transform: translateX(4px); }
.giant { display: flex; justify-content: space-between; margin: 60px 0 0; font-size: clamp(64px, 17vw, 260px); font-weight: 800; letter-spacing: -.04em; line-height: .85; user-select: none; }
.giant span { color: transparent; -webkit-text-stroke: 1px rgba(236,234,255,.16); transition: -webkit-text-stroke-color .4s, transform .7s var(--ease-spring); display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; background-size: 0% 100%; background-repeat: no-repeat; background-position: 0 100%; }
.giant span { transition: background-size .6s var(--ease), transform .7s var(--ease-spring), -webkit-text-stroke-color .4s; }
.giant span:hover { background-size: 100% 100%; -webkit-text-stroke-color: transparent; transform: translateY(-10%) rotate(-6deg); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 26px 34px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.to-top { color: var(--muted); transition: color .3s; }
.to-top:hover { color: var(--text); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-row > .btn { margin-left: auto; }
  .burger { display: block; }
  .mobile-menu { display: grid; gap: 4px; padding: 0 var(--gutter); max-height: 0; overflow: hidden; background: rgba(7,7,11,.96); backdrop-filter: blur(18px); transition: max-height .6s var(--ease), padding .6s var(--ease); }
  .mobile-menu.open { max-height: 520px; padding-block: 10px 24px; }
  .mobile-menu a { padding: 12px 0; font-size: 22px; font-weight: 400; border-bottom: 1px solid var(--line); }
  .mobile-menu a.btn { margin-top: 14px; border: 0; justify-content: center; font-size: 16px; padding: 16px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .gap-card { grid-row: auto; }
  .traj { grid-template-columns: 1fr; }
  .traj-tabs { grid-template-columns: repeat(3, 1fr); }
  .traj-chain { grid-template-columns: repeat(3, 1fr); }
  .node:nth-child(3n)::after { display: none; }
  .tilt-grid { grid-template-columns: repeat(2, 1fr); }
  .sess { grid-template-columns: 1fr; }
  .sess-tabs { grid-template-columns: repeat(3, 1fr); }
  .ladder { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .ladder { padding-bottom: 0; }
  .rung:nth-child(n) { translate: none; }
  .rung:nth-child(n):hover { translate: 0 -6px; }
  .report-grid, .compliance-grid, .faq-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .stage-side { display: none; }
  .float.f1 { left: 0; } .float.f2 { right: 0; } .float.f3 { left: 6%; }
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .accordion { flex-direction: column; height: auto; }
  .acc { flex: none; padding: 20px 22px; }
  .acc-num { font-size: 36px; }
  .acc .acc-body p, .acc .acc-tag { display: none; }
  .acc.is-open .acc-body p, .acc.is-open .acc-tag { display: block; }
  .handoff-callout, .consistency { grid-template-columns: 1fr; }
  .bri { height: 280vh; }
  .bri-layout { align-items: flex-end; padding-bottom: 60px; }
  .bri-label { font-size: 44px; }
  .bri-caption { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .carousel-scene { --cw: 260px; --r: 300px; height: 440px; }
  .sheets { height: 520px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-meta dd { font-size: 18px; }
  .hero-meta div { min-width: 0; }
  .float { font-size: 12px; padding: 8px 12px 8px 8px; }
  .float small { font-size: 10px; }
  .float.f3 { display: none; }
  .tagline { letter-spacing: .18em; line-height: 2; }
  .tagline i { display: block; height: 0; overflow: hidden; }
  .bri-mini { letter-spacing: .36em; }
  .bento { grid-template-columns: 1fr; }
  .gap-card { grid-column: auto; }
  .gap-chart { padding-right: 0; }
  .traj-tabs, .sess-tabs { grid-template-columns: 1fr 1fr; }
  .traj-chain { grid-template-columns: 1fr 1fr; }
  .node:nth-child(3n)::after { display: block; }
  .node:nth-child(2n)::after { display: none; }
  .tilt-grid { grid-template-columns: 1fr; }
  .tilt { min-height: 0; }
  .ladder { grid-template-columns: 1fr; }
  .term-body { font-size: 11.5px; min-height: 380px; padding: 16px; }
  .term-foot { grid-template-columns: 1fr 1fr; }
  .term-foot div:nth-child(3) { border-left: 0; }
  .term-foot div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .coins { gap: 10px; }
  .coin-face.back { font-size: 10.5px; padding: 14%; }
  .coin-face.front b { font-size: 22px; }
  .coin-face.front span { font-size: 9px; }
  .sheet { height: 470px; margin-top: -235px; padding: 20px; }
  .sheets:hover .sheet.s1 { transform: rotateY(-6deg) rotateX(4deg) translateZ(60px) translate(-6%, 8%) rotateZ(-3deg); }
  .sheets:hover .sheet.s3 { transform: rotateY(-8deg) rotateX(4deg) translateZ(-20px) translate(10%, -12%) rotateZ(6deg); }
  .foot-top { grid-template-columns: 1fr; }
  .faq summary { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .grain { display: none; }
}
