/* ============================================================
   π — every swap discovers the next digit of π
   Monochrome system, three switchable directions:
   observatory · protocol · cult
   ============================================================ */

:root {
  --ink:      #070709;
  --ink-2:    #0c0c10;
  --paper:    #ecedf1;
  --paper-dim:#c3c4cb;
  --muted:    #87888f;
  --faint:    #54555d;
  --line:     rgba(255,255,255,0.10);
  --line-2:   rgba(255,255,255,0.05);
  --glow:     rgba(255,255,255,0.92);

  --font-display: 'Spectral', Georgia, serif;
  --font-body:    'Spectral', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 72px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fixed grid background from the provided plate + vignette */
.bg-plate {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.04), transparent 55%),
    url('assets/hero-bg.jpg') center top / cover no-repeat,
    var(--ink);
}
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 35%, transparent 40%, rgba(0,0,0,0.55) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- shared eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--line);
}
.eyebrow.no-rule::before { display: none; }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,7,9,0.86), rgba(7,7,9,0.35));
  border-bottom: 1px solid var(--line-2);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .glyph { font-size: 26px; line-height: 1; font-family: var(--font-display); }
.brand-logo { height: 30px; width: auto; filter: drop-shadow(0 0 14px rgba(255,255,255,0.18)); }
.brand .word {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted);
}
.nav-hook { display: inline-flex; align-items: center; }
.nav-hook img {
  height: 26px; width: auto; opacity: 0.78;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.16));
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-hook:hover img { opacity: 1; transform: translateY(-1px); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-dim);
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 10px 18px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s var(--ease);
}
.nav-cta:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.10); }
.nav-cta .arr { transition: transform .25s var(--ease); }
.nav-cta:hover .arr { transform: translate(2px,-2px); }
@media (max-width: 720px){ .nav-links a:not(.nav-cta){ display:none; } }

/* ============================================================
   BUTTONS — soft frosted grey pills (euphoria style, monochrome)
   ============================================================ */
.btn {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -9px 20px rgba(255,255,255,0.022), 0 6px 22px rgba(0,0,0,0.45);
  transition: all .3s var(--ease);
  cursor: pointer; color: var(--paper);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 8px 30px rgba(0,0,0,0.5), 0 0 34px rgba(255,255,255,0.07);
}
.btn:hover .arr { transform: translate(3px,-3px); }
.btn.solid {
  background: var(--paper); color: var(--ink);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 22px rgba(0,0,0,0.45);
}
.btn.solid:hover { background: #fff; box-shadow: 0 0 40px rgba(255,255,255,0.28), 0 8px 30px rgba(0,0,0,0.5); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* icon-only pill (socials) */
.btn.icon { padding: 0; width: 50px; height: 50px; }
.btn.icon svg { width: 17px; height: 17px; fill: currentColor; }

/* ============================================================
   HERO SHELL — the grid background lives ONLY here
   ============================================================ */
.hero-shell { position: relative; isolation: isolate; }
.hero-shell::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.05), transparent 55%),
    url('assets/hero-bg.jpg') center top / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
          mask: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}
.hero-shell > .wrap { position: relative; z-index: 1; }

/* hero is just the π logo, centered on the grid */
.hero-logo {
  position: relative; z-index: 1;
  min-height: clamp(540px, 82vh, 860px);
  display: grid; place-items: center;
  padding: clamp(40px, 8vh, 110px) var(--gutter);
}
.hero-logo .pi-logo {
  width: min(720px, 84vw);
  filter: drop-shadow(0 0 70px rgba(255,255,255,0.18));
  animation: rise 1.1s var(--ease) both;
}
[data-glow="off"] .hero-logo .pi-logo { filter: none; }
@media (prefers-reduced-motion: reduce){ .hero-logo .pi-logo { animation: none; } }

/* ============================================================
   HERO (variants toggled per direction)
   ============================================================ */
.hero { display: none; }

/* --- observatory hero --- */
.hero--obs { padding: clamp(48px, 9vh, 110px) 0 70px; text-align: center; }
.hero--obs .pi-logo {
  width: min(560px, 78vw);
  margin: 0 auto 6px;
  filter: drop-shadow(0 0 60px rgba(255,255,255,0.16));
  animation: rise 1.1s var(--ease) both;
}
.hero--obs h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 18px auto 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero--obs h1 em { font-style: italic; }
.hero--obs .lede {
  color: var(--paper-dim);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 56ch; margin: 22px auto 0;
  text-wrap: pretty;
}
.hero--obs .hero-meta {
  margin: 30px auto 0;
  display: inline-flex; gap: 26px; flex-wrap: wrap; justify-content: center;
}
.hero--obs .btn-row { justify-content: center; margin-top: 34px; }

/* --- protocol hero --- */
.hero--pro { padding: clamp(40px, 7vh, 80px) 0 60px; }
.hero--pro .grid2 {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.hero--pro .sysline {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase;
  display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 28px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.hero--pro .sysline .ok { color: var(--paper); }
.hero--pro h1 {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; text-transform: uppercase;
  margin: 0; text-wrap: balance;
}
.hero--pro h1 .lc { text-transform: none; }
.hero--pro .lede { color: var(--paper-dim); max-width: 46ch; margin-top: 22px; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
.hero--pro .readout {
  margin-top: 28px; border: 1px solid var(--line); padding: 18px 20px;
  font-family: var(--font-mono); font-size: 12.5px; background: rgba(255,255,255,0.015);
}
.hero--pro .readout .row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--muted); }
.hero--pro .readout .row b { color: var(--paper); font-weight: 500; }
.hero--pro .btn-row { margin-top: 26px; }
.hero--pro .hook-art {
  position: relative;
}
.hero--pro .hook-art img {
  width: 100%; filter: drop-shadow(0 0 70px rgba(255,255,255,0.10));
  animation: rise 1.2s var(--ease) both;
}

/* --- cult hero --- */
.hero--cult {
  position: relative; min-height: clamp(560px, 84vh, 820px);
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
.hero--cult .spiral {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 0;
}
.hero--cult .spiral img {
  width: min(900px, 130vw);
  opacity: 0.9;
  filter: drop-shadow(0 0 80px rgba(255,255,255,0.10));
  animation: breathe 9s ease-in-out infinite, rise 1.4s var(--ease) both;
}
.hero--cult .cult-copy { position: relative; z-index: 2; padding: 0 var(--gutter); }
.hero--cult h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 8vw, 110px); line-height: 0.98;
  letter-spacing: -0.01em; margin: 0; text-wrap: balance;
}
.hero--cult h1 em { font-style: italic; }
.hero--cult .lede {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--paper-dim); margin-top: 26px;
}
.hero--cult .btn-row { justify-content: center; margin-top: 36px; }
.hero--cult .cult-fade {
  position: absolute; left:0; right:0; bottom:0; height: 200px; z-index: 1;
  background: linear-gradient(180deg, transparent, var(--ink));
}

@media (max-width: 860px){
  .hero--pro .grid2 { grid-template-columns: 1fr; }
  .hero--pro .hook-art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ============================================================
   LIVE TICKER / COUNTER
   ============================================================ */
.live { padding: clamp(56px, 9vh, 96px) 0; position: relative; }
.live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 0; }
.live-head .ttl { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.01em; }

/* looping brain clip — bare, resting on the grid box below */
.live-brain { display: flex; align-items: flex-end; margin-bottom: -1px; }
.brain-vid {
  display: block;
  width: clamp(170px, 24vw, 260px);
  height: clamp(150px, 20vw, 230px);
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  border: 0;
  mix-blend-mode: screen;
}
@media (max-width: 620px){
  .live-brain { width: 100%; justify-content: center; }
}

.live-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 300px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.digit-panel { padding: clamp(24px,4vw,44px); border-right: 1px solid var(--line); min-width: 0; }
.stat-panel { display: grid; grid-template-rows: repeat(3, 1fr); }
.stat-cell { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.stat-cell:last-child { border-bottom: 0; }
.stat-cell .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.stat-cell .v { font-family: var(--font-mono); font-size: clamp(24px,3vw,34px); margin-top: 8px; font-variant-numeric: tabular-nums; }

.latest-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.latest-wrap { display: flex; align-items: center; gap: clamp(20px,4vw,52px); margin: 14px 0 10px; flex-wrap: wrap; }
.latest-digit {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(96px, 17vw, 184px); line-height: 0.82;
  letter-spacing: -0.04em;
  text-shadow: 0 0 60px rgba(255,255,255,0.28);
}
.latest-digit.flash { animation: flash 1.1s var(--ease); }
.latest-side { font-family: var(--font-mono); font-size: 13px; color: var(--muted); line-height: 1.9; }
.latest-side b { color: var(--paper); font-weight: 500; }
.latest-side .hashv { color: var(--paper-dim); word-break: break-all; }

.stream {
  margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px;
  font-family: var(--font-mono); font-size: clamp(15px,1.7vw,19px);
  line-height: 1.9; letter-spacing: 0.04em;
  color: var(--faint); word-break: break-all;
  font-variant-numeric: tabular-nums;
}
.stream .lead { color: var(--paper-dim); }
.stream .seen { color: var(--paper-dim); }
.stream .cur { color: #fff; text-shadow: 0 0 18px rgba(255,255,255,0.6); }
.stream .pending { color: var(--faint); }
.stream .cursor { color:#fff; animation: blink 1s steps(1) infinite; }

@media (max-width: 760px){
  .live-grid { grid-template-columns: 1fr; }
  .digit-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-panel { grid-template-rows: none; grid-template-columns: repeat(3,1fr); }
  .stat-cell { border-bottom: 0; border-right: 1px solid var(--line); }
  .stat-cell:last-child { border-right: 0; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section { padding: clamp(64px, 11vh, 130px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(40px,6vw,64px); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.015em;
  margin: 18px 0 0; text-wrap: balance;
}
.section-head p { color: var(--paper-dim); margin: 18px 0 0; font-size: 18px; max-width: 52ch; text-wrap: pretty; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 26px 36px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step .no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.step .ico { height: 64px; margin: 22px 0 18px; display: flex; align-items: center; }
.step .ico svg { width: 52px; height: 52px; stroke: var(--paper); fill: none; stroke-width: 1.25; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin: 0 0 10px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }
.step .arrow { position: absolute; top: 36px; right: -8px; color: var(--faint); font-family: var(--font-mono); }
@media (max-width: 880px){ .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2){border-right:0;} .step{border-bottom:1px solid var(--line);} }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } .step{border-right:0;} }

/* ============================================================
   THE HOOK MECHANIC
   ============================================================ */
.hook-sec { position: relative; }
.hook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,5vw,72px); align-items: center; }
.hook-copy h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px,4.4vw,54px); line-height: 1.05; letter-spacing: -0.015em; margin: 16px 0 0; }
.hook-copy .p { color: var(--paper-dim); margin: 20px 0 0; font-size: 17px; text-wrap: pretty; }
.hook-copy .p b { color: var(--paper); font-weight: 500; }
.spec-list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 13px; }
.spec-list li .k { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.spec-list li .v { color: var(--paper); text-align: right; }

.hook-visual { position: relative; }
.hook-visual img { width: 100%; filter: drop-shadow(0 0 70px rgba(255,255,255,0.10)); }

.code {
  margin-top: 0; border: 1px solid var(--line); background: rgba(255,255,255,0.015);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.85; overflow: hidden;
}
.code .code-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.code .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.code pre { margin: 0; padding: 20px 20px; overflow-x: auto; color: var(--paper-dim); }
.code .kw { color: #fff; }
.code .cm { color: var(--faint); font-style: italic; }
.code .fn { color: #fff; }
.code .str { color: var(--paper-dim); }
@media (max-width: 880px){ .hook-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: clamp(34px,5vw,56px) 0 clamp(40px,5vw,60px); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: clamp(42px,5vw,58px); width: auto; opacity: 0.95; }
[data-glow="off"] .footer-logo img { filter: none; }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-fine { margin-top: clamp(26px,4vw,40px); padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.06em; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { color:#fff; text-shadow: 0 0 90px rgba(255,255,255,0.7); transform: scale(1.04);} 100% { transform: scale(1);} }
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 0%,100% { transform: scale(1); opacity:.9;} 50% { transform: scale(1.025); opacity:1;} }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .hero--obs .pi-logo, .hero--pro .hook-art img, .hero--cult .spiral img { animation: none; }
}

/* ============================================================
   DIRECTION THEMES
   ============================================================ */
/* observatory = default (serif). Show its hero. */
[data-direction="observatory"] .hero--obs { display: block; }

/* protocol — everything monospace, tighter, uppercased headings */
[data-direction="protocol"] {
  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'JetBrains Mono', monospace;
  font-size: 15.5px;
}
[data-direction="protocol"] body { line-height: 1.7; }
[data-direction="protocol"] .hero--pro { display: block; }
[data-direction="protocol"] .section-head h2,
[data-direction="protocol"] .hook-copy h2,
[data-direction="protocol"] .live-head .ttl,
[data-direction="protocol"] .footer .big {
  text-transform: uppercase; letter-spacing: -0.01em; font-weight: 700;
  font-size: clamp(24px, 3.4vw, 42px);
}
[data-direction="protocol"] .section-head p,
[data-direction="protocol"] .hook-copy .p,
[data-direction="protocol"] .footer .big { font-size: 15px; }
[data-direction="protocol"] .step h3 { text-transform: uppercase; font-size: 16px; letter-spacing: 0.02em; }

/* cult — dramatic serif display, sparse */
[data-direction="cult"] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'JetBrains Mono', monospace;
  font-size: 15px;
}
[data-direction="cult"] .hero--cult { display: grid; }
[data-direction="cult"] .section-head h2,
[data-direction="cult"] .hook-copy h2,
[data-direction="cult"] .live-head .ttl,
[data-direction="cult"] .footer .big {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(34px, 5vw, 64px); letter-spacing: 0;
}
[data-direction="cult"] .step h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 24px; }
[data-direction="cult"] .section-head p { font-family: var(--font-body); font-size: 14px; }

/* accent glow toggle (tweak) */
[data-glow="off"] .latest-digit { text-shadow: none; }
[data-glow="off"] .hero--obs .pi-logo,
[data-glow="off"] .hero--pro .hook-art img,
[data-glow="off"] .hero--cult .spiral img,
[data-glow="off"] .hook-visual img { filter: none; }

/* ============================================================
   MOBILE BREAKPOINT
   ============================================================ */
@media (max-width: 640px){
  :root { --gutter: 18px; }
  [data-direction="protocol"] { font-size: 14.5px; }

  /* nav — brand left, Contract pill right */
  .nav-inner { padding: 12px var(--gutter); }
  .nav-links { gap: 14px; }
  .brand { gap: 9px; }
  .brand-logo { height: 25px; }
  .brand .word { font-size: 10px; letter-spacing: 0.28em; }
  .nav-cta { padding: 9px 15px; font-size: 11px; letter-spacing: 0.08em; }

  /* hero — logo fills the width, grid fades sooner */
  .hero-logo { min-height: 60vh; padding: 36px var(--gutter) 26px; }
  .hero-logo .pi-logo { width: 88vw; }
  .hero-shell::before {
    -webkit-mask: linear-gradient(180deg,#000 0%,#000 66%,transparent 100%);
            mask: linear-gradient(180deg,#000 0%,#000 66%,transparent 100%);
  }

  /* live discovery stream */
  .live { padding: 46px 0; }
  .live-head { gap: 14px; }
  .live-brain { width: 100%; justify-content: center; margin: 2px 0 -1px; }
  .brain-vid { width: clamp(150px, 54vw, 210px); height: clamp(140px, 50vw, 200px); }
  .digit-panel { padding: 24px 20px; }
  .latest-wrap { gap: 16px; }
  .latest-side { font-size: 12px; line-height: 1.8; }
  .stat-cell { padding: 15px 14px; }
  .stat-cell .k { font-size: 9.5px; letter-spacing: 0.12em; }
  .stat-cell .v { font-size: 21px; }

  /* steps */
  .step { padding: 24px 20px 26px; }
  .step .ico { height: 52px; margin: 18px 0 14px; }
  .step .ico svg { width: 44px; height: 44px; }

  /* hook mechanic */
  .hook-grid { gap: 30px; }
  .spec-list li { font-size: 12px; }
  .code pre { font-size: 12px; padding: 16px; }

  /* footer — stack logo over the action pills */
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-logo img { height: 44px; }
  .footer-actions { width: 100%; gap: 10px; }
  .footer-fine { flex-direction: column; gap: 8px; }
  .footer-fine span:last-child { word-break: break-all; }
}

@media (max-width: 380px){
  .btn { padding: 12px 18px; font-size: 11px; letter-spacing: 0.08em; }
  .stat-cell .v { font-size: 18px; }
  .latest-digit { font-size: 92px; }
}
