/* ==========================================================================
   andrudoes — landing page
   Slate carries the brand. Brass is precious (≤10% of any view).
   Sora for the human voice, JetBrains Mono for the machine voice.
   ========================================================================== */

:root {
  --bg-deep: #121820;
  --bg: #1C2530;
  --bg-2: #243040;
  --harbor: #3C4A5A;
  --ink: #FBFBFC;
  --ink-2: #E4E6EA;
  --soft: #C7CDD4;
  --muted: #8A94A0;
  --faint: #5A6675;
  --line: rgba(251,251,252,0.06);
  --line-2: rgba(251,251,252,0.11);
  --brass: #A98A4B;
  --brass-light: #C7A85E;
  --brass-deep: #8F723A;
  --brass-grad: linear-gradient(180deg, #DCC484 0%, #C7A85E 32%, #A98A4B 68%, #8F723A 100%);
  --frost-grad: linear-gradient(180deg, #FFFFFF 0%, #F4F5F7 30%, #E4E6EA 68%, #C7CDD4 100%);
  --surface: radial-gradient(130% 130% at 50% 0%, rgba(251,251,252,0.06) 0%, rgba(251,251,252,0.015) 60%, rgba(0,0,0,0.35) 100%);
  --surface-shadow:
    inset 0 1px 0 0 rgba(251,251,252,0.12),
    inset 0 0 0 1px rgba(251,251,252,0.05),
    0 30px 60px -12px rgba(0,0,0,0.8);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
}
/* diagonal slate stripes, drifting slowly */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 200%; height: 200%; left: -30%; top: -20%;
  background: repeating-linear-gradient(135deg, #172029 0px, #172029 60px, rgba(23,32,41,0.6) 70px, #222E3B 130px);
  opacity: 0.7;
  animation: patternDrift 18s linear infinite alternate;
  will-change: transform;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(36,48,64,0.35) 0%, rgba(28,37,48,0.72) 38%, rgba(18,24,32,0.96) 100%);
}
@keyframes patternDrift { from { transform: translateY(0) scale(1); } to { transform: translateY(-20%) scale(1.02) rotate(1deg); } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }
::selection { background: rgba(169,138,75,0.35); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 120px 0; }
@media (max-width: 760px) { section { padding: 88px 0; } .wrap { padding: 0 16px; } }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo lockup: brass prompt, lowercase name, brass caret ---------- */
.lockup { display: inline-flex; align-items: center; gap: .32em; font-size: 18px; line-height: 1; color: var(--ink); white-space: nowrap; }
.lockup .prompt { font-family: var(--mono); font-weight: 500; font-size: .95em; color: var(--brass); }
.lockup .name { font-weight: 600; letter-spacing: -.04em; text-transform: lowercase; }
.lockup .caret { display: inline-block; width: .16em; height: .9em; background: var(--brass); animation: adBlink 1.1s steps(1, end) infinite; }
@keyframes adBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- Shared surfaces ---------- */
.surface { background: var(--surface); box-shadow: var(--surface-shadow); border-radius: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(28,37,48,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 0 rgba(251,251,252,0.08), 0 0 0 1px rgba(251,251,252,0.06), 0 16px 32px -8px rgba(0,0,0,0.7);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brass); }
.h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600; margin: 18px 0 18px; }
.accent { background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--soft); font-size: 17px; max-width: 560px; }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.45s var(--ease), box-shadow 0.35s ease, background 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn-frost {
  color: var(--bg); background: var(--frost-grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.12), 0 12px 28px -10px rgba(251,251,252,0.25), 0 2px 6px rgba(0,0,0,0.5);
}
.btn-frost:hover { transform: translateY(-2px) scale(1.015); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(0,0,0,0.15), 0 18px 36px -10px rgba(251,251,252,0.32), 0 2px 6px rgba(0,0,0,0.6); }
.btn-ghost { color: var(--ink-2); background: rgba(251,251,252,0.03); box-shadow: inset 0 1px 0 rgba(251,251,252,0.08), inset 0 0 0 1px rgba(251,251,252,0.1); }
.btn-ghost:hover { color: var(--ink); background: rgba(251,251,252,0.08); transform: translateY(-2px); }
.btn-lg { height: 58px; padding: 0 32px; font-size: 16px; }
.btn .arrow { font-family: var(--mono); font-weight: 500; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn .play { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: calc(100% - 32px); max-width: 920px;
  display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 22px;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a { font-size: 13.5px; font-weight: 400; color: var(--muted); padding: 9px 18px; border-radius: 999px; transition: color 0.25s ease, background 0.25s ease; }
.nav-links a:hover { color: var(--ink-2); background: rgba(251,251,252,0.04); }
.nav .btn { height: 42px; padding: 0 20px; font-size: 14px; }
.nav .btn .short { display: none; }
@media (max-width: 760px) { .nav-links { display: none; } .nav { padding-left: 16px; } .nav .btn .long { display: none; } .nav .btn .short { display: inline; } .nav .btn { padding: 0 16px; font-size: 13px; } }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 130px 0 80px; overflow: hidden; }
.hero .wrap { max-width: 1400px; padding: 0 clamp(16px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(560px, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  font-size: 13px; color: var(--soft);
  background: rgba(251,251,252,0.03); box-shadow: inset 0 1px 0 rgba(251,251,252,0.08), inset 0 0 0 1px var(--line-2);
  transition: background 0.25s ease;
}
.badge:hover { background: rgba(251,251,252,0.06); }
.badge b { font-family: var(--mono); font-weight: 500; color: var(--bg); background: var(--brass-grad); padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: 0.04em; }
.badge .chev { color: var(--muted); margin-left: 2px; transition: transform 0.4s var(--ease); }
.badge:hover .chev { transform: translateX(3px); }
.hero .descriptor { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); margin-top: 26px; }
.hero h1 { font-size: clamp(46px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; margin: 14px 0 26px; }
.hero h1 .accent { display: inline-block; padding-bottom: 0.08em; }
.hero .lede { font-size: clamp(16px, 1.3vw, 19px); max-width: 560px; line-height: 1.6; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .cta-row { margin-top: 40px; }
@media (max-width: 1180px) { .hero .cta-row { justify-content: center; } }

/* chips: the three phases, driving the scene */
.chips { display: flex; margin-top: 56px; }
.chip {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 26px 18px 0; text-align: left;
  color: var(--muted); transition: color 0.3s;
}
.chip + .chip { padding-left: 26px; }
.chip + .chip::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 18px; width: 1px; background: var(--line-2); }
.chip-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(251,251,252,0.04); box-shadow: inset 0 1px 0 rgba(251,251,252,0.08), inset 0 0 0 1px var(--line-2);
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s;
}
.chip-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip b { display: block; font-size: 15.5px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; transition: color 0.3s; }
.chip small { white-space: nowrap; display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.chip:hover .chip-ico { transform: translateY(-2px); }
.chip.active { color: var(--ink); }
.chip.active b { color: var(--ink); }
.chip.active .chip-ico { color: var(--brass-light); background: rgba(169,138,75,0.12); box-shadow: inset 0 1px 0 rgba(251,251,252,0.1), inset 0 0 0 1px rgba(169,138,75,0.35); }
.bar { position: absolute; left: 0; right: 26px; bottom: 6px; height: 1.5px; background: var(--brass); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity 0.3s; }
.chip + .chip .bar { left: 26px; }
.chip.active .bar { opacity: 1; }
@media (max-width: 1180px) {
  .chips { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 44px; width: 100%; max-width: 320px; }
  .chip, .chip + .chip { padding: 6px 0 12px; }
  .chip + .chip::before { display: none; }
  .chip .bar, .chip + .chip .bar { left: 54px; right: 0; }
}

/* ---------- Hero 3D scene ---------- */
.hero-scene { --s: 1; position: relative; height: calc(640px * var(--s)); display: flex; justify-content: center; align-items: center; }
@media (max-width: 1320px) { .hero-scene { --s: 0.86; } }
@media (max-width: 1180px) { .hero-scene { --s: 0.8; margin-top: 24px; } }
@media (max-width: 640px)  { .hero-scene { --s: 0.56; } }
.scene3d {
  position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px;
  transform: scale(var(--s)); perspective: 2200px; perspective-origin: 50% 38%;
}
.world { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, -19deg)) rotateY(var(--ry, -34deg)); }
.world > * { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.floor {
  width: 1100px; height: 1100px;
  transform: translate(-50%, -50%) translate3d(0, 150px, 0) rotateX(90deg);
  background-image: linear-gradient(rgba(251,251,252,0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(251,251,252,0.09) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.5) 28%, transparent 56%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,0.5) 28%, transparent 56%);
}
.floor-glow { width: 700px; height: 700px; transform: translate(-50%, -50%) translate3d(0, 151px, 0) rotateX(90deg); background: radial-gradient(circle, rgba(169,138,75,0.12), transparent 55%); }
.ped { width: 320px; height: 112px; transform: translate(-50%, -50%) translate3d(0, 94px, 0); }
.ped .f { position: absolute; left: 50%; top: 50%; background-color: var(--bg-2); }
.ped .f::after { content: ""; position: absolute; inset: 0; background: var(--shade); }
.ped .front { width: 320px; height: 112px; transform: translate(-50%, -50%) translateZ(140px); --shade: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.85)); box-shadow: inset 0 1px 0 rgba(251,251,252,0.14); }
.ped .side { width: 280px; height: 112px; transform: translate(-50%, -50%) rotateY(90deg) translateZ(160px); --shade: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.92)); box-shadow: inset 0 1px 0 rgba(251,251,252,0.08); }
.ped .top { width: 320px; height: 280px; transform: translate(-50%, -50%) rotateX(90deg) translateZ(56px); --shade: radial-gradient(circle at 45% 45%, rgba(0,0,0,0.1), rgba(0,0,0,0.55) 80%); box-shadow: inset 0 0 0 1px rgba(251,251,252,0.08); }
.ped-shadow { width: 520px; height: 440px; transform: translate(-50%, -50%) translate3d(20px, 150px, 0) rotateX(90deg); background: radial-gradient(closest-side, rgba(0,0,0,0.9), transparent); }

/* the extruded mark: brass prompt, frost caret */
.mark3d { width: 270px; height: 270px; transform: translate(-50%, -50%) translate3d(0, -97px, -30px); cursor: pointer; }
.mark3d .m3d { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; transition: transform 0.6s var(--ease); }
.mark3d .m3d svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark3d.pop .m3d { animation: markPop 0.7s var(--ease); }
@keyframes markPop { 0% { transform: scale(0.92) rotateY(-14deg); } 100% { transform: scale(1) rotateY(0); } }
.mark-flare { width: 220px; height: 220px; pointer-events: none; transform: translate(-50%, -50%) translate3d(112px, -214px, -26px); background: radial-gradient(circle, rgba(251,251,252,0.45) 0%, rgba(251,251,252,0.1) 18%, transparent 50%); animation: flare 6s ease-in-out infinite alternate; }
@keyframes flare { from { opacity: 0.5; } to { opacity: 1; } }

.panel { border-radius: 8px; background: linear-gradient(160deg, rgba(251,251,252,0.06), rgba(251,251,252,0.012) 60%); box-shadow: inset 0 0 0 1px rgba(251,251,252,0.1), inset 0 1px 0 rgba(251,251,252,0.14), 0 30px 60px -20px rgba(0,0,0,0.9); }
.panel .plus { position: absolute; font-size: 12px; line-height: 1; color: rgba(251,251,252,0.4); font-family: var(--mono); }
.panel .plus.tl { top: 8px; left: 9px; } .panel .plus.tr { top: 8px; right: 9px; } .panel .plus.bl { bottom: 8px; left: 9px; } .panel .plus.br { bottom: 8px; right: 9px; }
.p-back { width: 300px; height: 440px; transform: translate(-50%, -50%) translate3d(-30px, -70px, -230px); opacity: 0.7; }
.p-back::before, .p-back::after { content: ""; position: absolute; background: rgba(251,251,252,0.06); }
.p-back::before { left: 50%; top: 0; bottom: 0; width: 1px; } .p-back::after { top: 34%; left: 0; right: 0; height: 1px; }
.p-tile { width: 128px; height: 150px; transform: translate(-50%, -50%) translate3d(-240px, -150px, -70px); display: grid; place-items: center; }
.p-tile .tile { width: 78px; height: 78px; border-radius: 16px; display: grid; place-items: center; background: rgba(0,0,0,0.35); box-shadow: inset 0 0 0 1px rgba(251,251,252,0.12), inset 0 2px 8px rgba(0,0,0,0.6); }
.p-tile .tile svg { width: 46px; height: 46px; overflow: visible; opacity: 0.8; }
.p-term { width: 230px; height: 260px; transform: translate(-50%, -50%) translate3d(-255px, 75px, 50px); padding: 30px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: rgba(251,251,252,0.55); }
.p-term .l { white-space: nowrap; overflow: hidden; }
.p-term .l b { color: var(--brass-light); font-weight: 500; }
.p-term .l i { font-style: normal; color: var(--ink); }
.p-term .l.cur::after { content: ""; display: inline-block; width: 6px; height: 11px; background: var(--ink); vertical-align: -1px; margin-left: 4px; animation: adBlink 1.1s steps(1, end) infinite; }
.p-list { width: 180px; height: 270px; transform: translate(-50%, -50%) translate3d(285px, -20px, -40px); display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 0 22px; }
.p-list span { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: rgba(251,251,252,0.5); transition: color 0.4s; }
.p-list span::before { content: ""; width: 14px; height: 1px; background: rgba(251,251,252,0.35); transition: background 0.4s; }
.p-list span::after { content: ""; flex: 1; height: 1px; background: rgba(251,251,252,0.18); }
.p-list span.on { color: var(--ink); } .p-list span.on::before { background: var(--brass); }
.ray { width: 1px; height: 520px; background: linear-gradient(180deg, transparent, rgba(251,251,252,0.14), transparent); }
.spark { width: 3px; height: 3px; border-radius: 50%; background: var(--brass-light); box-shadow: 0 0 6px 2px rgba(199,168,94,0.5); animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--t, 0s); }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

/* ---------- Marquee strip ---------- */
.strip { padding: 0 0 40px; }
.strip-inner { display: flex; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.strip-track { display: flex; gap: 56px; padding: 22px 28px; white-space: nowrap; animation: marquee 38s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }
.strip-track span::before { content: ">"; font-family: var(--mono); font-weight: 500; color: var(--brass); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento > *, .wide > *, .tiers > * { min-width: 0; }
@media (max-width: 920px) { .bento { grid-template-columns: 1fr; } }
.card { position: relative; padding: 32px; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--surface-shadow); transition: transform 0.5s var(--ease), box-shadow 0.4s ease; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 0 rgba(251,251,252,0.2), inset 0 0 0 1px rgba(251,251,252,0.08), 0 36px 70px -12px rgba(0,0,0,0.9); }
.card .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 32px; color: var(--ink-2); background: rgba(0,0,0,0.3); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(251,251,252,0.08); transition: transform 0.6s var(--ease); }
.card .icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .icon { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
.card h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--soft); font-size: 15px; }
.card ul { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; }
.card li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.card li::before { content: ">"; font-family: var(--mono); font-weight: 500; color: var(--brass); flex: none; }
.card .num { position: absolute; top: 32px; right: 32px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .wide { grid-template-columns: 1fr; } }
.wide h3 { font-size: 28px; margin: 14px 0 12px; letter-spacing: -0.03em; }
.code { font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--soft); background: rgba(0,0,0,0.45); border-radius: 20px; padding: 22px 24px; overflow-x: auto; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(251,251,252,0.04); }
.code .k { color: var(--ink); } .code .s { color: var(--brass-light); } .code .c { color: var(--faint); } .code .n { color: var(--ink-2); }
.code-top { display: flex; gap: 6px; margin-bottom: 16px; }
.code-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--harbor); }
.code-top i:first-child { background: var(--brass); }

/* ---------- Approach lab ---------- */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lab > * { min-width: 0; }
@media (max-width: 920px) { .lab { grid-template-columns: 1fr; } }
.lab-stage-wrap { padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.lab-controls { padding: 36px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 640px) { .lab-stage-wrap { padding: 28px 16px; } .lab-controls { padding: 28px 22px; } }
.stage {
  position: relative; width: min(300px, 70vw); aspect-ratio: 1; border-radius: 22%;
  background: var(--surface); box-shadow: var(--surface-shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.stage::after { content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(169,138,75,0.08) 0%, transparent 55%); }
.stage:hover { transform: translateY(-2px) scale(1.015); }
.stage:active { transform: scale(0.97); }
.stage svg { width: 48%; height: 48%; overflow: visible; }
.stage.pop svg { animation: markPop 0.7s var(--ease); }
.stage .phase { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.stage .phase b { color: var(--brass-light); font-weight: 500; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 400; color: var(--muted); overflow: hidden; transition: color 0.25s, background 0.25s; }
.tab:hover { color: var(--ink-2); }
.tab.active { color: var(--ink); background: rgba(251,251,252,0.08); box-shadow: inset 0 1px 0 0 rgba(251,251,252,0.1); }
.tab i { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--brass); }
.tab .bar { left: 12px; right: 12px; bottom: 4px; }
.tab.active .bar { opacity: 1; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { padding: 9px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.25s, background 0.25s; }
.presets button:hover { color: var(--ink-2); }
.presets button.on { color: var(--ink); background: rgba(251,251,252,0.08); box-shadow: inset 0 0 0 1px rgba(169,138,75,0.5); }
.ctrl label { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); margin-bottom: 10px; }
.ctrl .out { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.ctrl input[type=range] { width: 100%; accent-color: var(--brass); }
.timeline { display: grid; gap: 10px; }
.timeline .row { display: grid; grid-template-columns: 70px 1fr 60px; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.timeline .row .track { height: 6px; border-radius: 3px; background: rgba(251,251,252,0.06); overflow: hidden; }
.timeline .row .track i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--harbor), var(--soft)); transition: width 0.7s var(--ease); }
.timeline .row.brass .track i { background: var(--brass-grad); background: linear-gradient(90deg, var(--brass-deep), var(--brass-light)); }
.timeline .row .wk { text-align: right; color: var(--ink-2); }
.lab-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.lab-summary div b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.lab-summary div span { font-size: 12px; color: var(--muted); }
.lab-out { font-size: 14px; color: var(--soft); }
.lab-out b { color: var(--ink); font-weight: 500; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { padding: 44px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
@media (max-width: 760px) { .stat:nth-child(2) { border-right: none; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat b { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat b em { font-style: normal; color: var(--brass-light); }
.stat > span { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Engagements (tiers) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 920px) { .tiers { grid-template-columns: 1fr; } }
.tier { display: flex; flex-direction: column; padding: 32px; }
.tier .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 26px; color: var(--ink-2); background: rgba(0,0,0,0.3); box-shadow: inset 0 0 0 1px var(--line-2); }
.tier .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tier h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 8px; }
.price b { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
.price span { color: var(--muted); font-size: 14px; }
.tier p { color: var(--soft); font-size: 14px; min-height: 44px; }
.tier ul { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; flex: 1; }
.tier li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tier li::before { content: ">"; font-family: var(--mono); color: var(--brass); font-weight: 500; flex: none; }
.tier .btn { justify-content: center; }
.tier.featured { box-shadow: inset 0 1px 0 0 rgba(251,251,252,0.22), inset 0 0 0 1px rgba(169,138,75,0.35), 0 40px 80px -16px rgba(0,0,0,1), 0 0 80px -30px rgba(169,138,75,0.25); }
.tier .tag { position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); background: var(--brass-grad); padding: 5px 10px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.q { border-bottom: 1px solid var(--line); }
.q button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; text-align: left; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); transition: color 0.2s; }
.q button:hover { color: var(--ink); }
.q .plus { position: relative; width: 14px; height: 14px; flex: none; color: var(--brass); }
.q .plus::before, .q .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.q .plus::after { transform: rotate(90deg); }
.q.open .plus::after { transform: rotate(0); }
.q.open .plus::before { transform: rotate(180deg); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.q.open .a { grid-template-rows: 1fr; }
.a > div { overflow: hidden; }
.a p { padding: 0 40px 26px 0; color: var(--soft); font-size: 15px; line-height: 1.65; }

/* ---------- Terminus ---------- */
.terminus { padding: 40px 0 40px; }
.term {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 44px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(251,251,252,0.055) 0%, rgba(251,251,252,0.012) 45%, rgba(0,0,0,0.5) 100%);
  box-shadow: inset 0 1px 0 0 rgba(251,251,252,0.14), inset 0 0 0 1px rgba(251,251,252,0.05), 0 60px 120px -30px rgba(0,0,0,1);
}
.term::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(199,168,94,0.6), transparent); }
.term-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgba(169,138,75,0.08), transparent 60%); transition: opacity 0.6s ease; }
.term:hover .term-glow { opacity: 1; }
.term-ghost { position: absolute; z-index: -1; pointer-events: none; width: 760px; height: 760px; right: -220px; top: -160px; overflow: visible; opacity: 0.08; animation: ghostSpin 90s linear infinite; }
.term-ghost path, .term-ghost rect { fill: none; stroke: var(--brass-light); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
@keyframes ghostSpin { to { transform: rotate(360deg); } }
.term-top { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; padding: 88px 72px 72px; }
@media (max-width: 920px) { .term-top { grid-template-columns: 1fr; padding: 64px 24px 48px; text-align: center; } .term-copy { display: flex; flex-direction: column; align-items: center; } }
.term-top .h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; line-height: 0.98; margin: 20px 0 20px; }
.term-top .lede { margin-bottom: 36px; }
.join { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 480px; padding: 6px 6px 6px 22px; border-radius: 999px; background: rgba(0,0,0,0.45); box-shadow: inset 0 0 0 1px rgba(251,251,252,0.08), inset 0 2px 6px rgba(0,0,0,0.6), 0 1px 0 rgba(251,251,252,0.06); transition: box-shadow 0.35s ease; }
.join:focus-within { box-shadow: inset 0 0 0 1px rgba(169,138,75,0.6), inset 0 2px 6px rgba(0,0,0,0.6), 0 0 0 6px rgba(169,138,75,0.08); }
.join input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--ink); font-size: 14px; font-weight: 300; }
.join input::placeholder { color: var(--muted); }
.join .btn { height: 42px; flex: none; }
.join .btn .done { display: none; }
.join.sent .btn .label { display: none; }
.join.sent .btn .done { display: inline; }
@media (max-width: 520px) { .join { flex-direction: column; border-radius: 24px; padding: 12px; } .join input { width: 100%; padding: 10px 10px 6px; } .join .btn { width: 100%; } }
.assure { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 12px; color: var(--muted); }
@media (max-width: 920px) { .assure { justify-content: center; } }
.assure span { display: inline-flex; align-items: center; gap: 8px; }
.assure span::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--brass); border-radius: 1px; }
.term-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.term-visual .stage { width: min(260px, 64vw); border-radius: 26%; }
.term-visual small { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }

/* live hours band */
.regions { margin: 0 32px; border-radius: 24px; background: rgba(0,0,0,0.38); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
@media (max-width: 920px) { .regions { margin: 0 16px; } }
.regions-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--soft); }
.regions-head .mono { font-size: 11px; color: var(--muted); }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-light); display: inline-block; margin-right: 10px; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(199,168,94,0.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.region-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
@media (max-width: 920px) { .region-grid { grid-template-columns: repeat(3, 1fr); } .region:nth-child(3) { border-right: none; } .region:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .region-grid { grid-template-columns: repeat(2, 1fr); } .region:nth-child(3) { border-right: 1px solid var(--line); } .region:nth-child(even) { border-right: none; } .region:nth-child(-n+4) { border-bottom: 1px solid var(--line); } }
.region { padding: 18px 22px; border-right: 1px solid var(--line); font-family: var(--mono); transition: background 0.3s ease; }
.region:hover { background: rgba(251,251,252,0.025); }
.region:last-child { border-right: none; }
.region .rcode { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.region .time { display: block; font-size: 18px; color: var(--ink); margin: 6px 0 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.region .lat { font-size: 11px; color: var(--soft); }
.region.in .lat { color: var(--brass-light); }
.lat-bar { display: block; height: 2px; margin-top: 10px; border-radius: 2px; background: rgba(251,251,252,0.06); overflow: hidden; }
.lat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--harbor), var(--soft)); transform-origin: left; transition: transform 0.9s var(--ease); }
.region.in .lat-bar i { background: linear-gradient(90deg, var(--brass-deep), var(--brass-light)); }

.term-links { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding: 64px 72px 48px; }
@media (max-width: 920px) { .term-links { grid-template-columns: 1fr 1fr; padding: 48px 24px 32px; } .term-manifesto { grid-column: 1 / -1; } }
.term-manifesto p { font-size: 15px; color: var(--soft); max-width: 280px; line-height: 1.6; }
.term-manifesto .sig { margin-top: 22px; }
.term-links h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.term-links nav a { position: relative; display: table; font-size: 14px; color: var(--soft); padding: 5px 0; transition: color 0.25s ease, transform 0.45s var(--ease); }
.term-links nav a::before { content: ">"; position: absolute; left: -16px; top: 5px; font-family: var(--mono); font-size: 12px; color: var(--brass); transform: translateX(-6px); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; }
.term-links nav a:hover { color: var(--ink); transform: translateX(12px); }
.term-links nav a:hover::before { transform: none; opacity: 1; }
.term-legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 32px; padding: 22px 8px 26px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 920px) { .term-legal { margin: 0 16px; } }
.term-legal .legal-links { display: flex; gap: 20px; }
.term-legal a:hover { color: var(--ink-2); }
.to-top { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 12px; color: var(--soft); background: rgba(251,251,252,0.04); box-shadow: inset 0 1px 0 rgba(251,251,252,0.08), inset 0 0 0 1px var(--line); transition: color 0.25s, background 0.25s, transform 0.45s var(--ease); }
.to-top:hover { color: var(--ink); background: rgba(251,251,252,0.08); transform: translateY(-2px); }
.to-top b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--frost-grad); color: var(--bg); font-size: 13px; font-family: var(--mono); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  body::before, .strip-track, .spark, .mark-flare, .term-ghost, .pulse::after, .lockup .caret, .p-term .l.cur::after { animation: none; }
  html { scroll-behavior: auto; }
}
