/* gizmo2463 dashboard. Dark, one vivid accent (violet), readable on a 1080p stream.
   MOTION RULES (the host gets nauseous from flicker): nothing blinks, strobes or
   flashes. Transitions >= 600 ms, ambient loops >= 12 s, transforms/opacity only,
   no hue animation. prefers-reduced-motion: everything static (bottom of file). */
:root {
  --bg: #07070c;
  --panel: rgba(16, 16, 26, 0.78);
  --panel-solid: #10101a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f7;
  --muted: #a6a6bc;
  --dim: #74748c;
  --accent: #7c5cff;
  --accent-hover: #8b6eff;
  --accent-soft: #b6a6ff;
  --accent-glow: rgba(124, 92, 255, 0.5);
  --live: #ff4d5e;
  --server: #ffb067;
  --t: 600ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 88px; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-soft); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -0.025em; }

/* ---------- Ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.a1 {
  width: 75vmax; height: 75vmax; top: -38vmax; left: -18vmax;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.36), transparent);
  animation: drift-a 34s ease-in-out infinite alternate;
}
.a2 {
  width: 65vmax; height: 65vmax; top: -30vmax; right: -26vmax;
  background: radial-gradient(closest-side, rgba(84, 112, 255, 0.26), transparent);
  animation: drift-b 42s ease-in-out infinite alternate;
}
.a3 {
  width: 60vmax; height: 60vmax; top: 40vh; left: 25vw;
  background: radial-gradient(closest-side, rgba(150, 90, 255, 0.14), transparent);
  animation: drift-c 52s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-8vw, 10vh, 0) scale(1.12); } }
@keyframes drift-c { to { transform: translate3d(-12vw, -8vh, 0) scale(0.92); } }
.gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 25%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--text);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.btn .arrow { display: inline-block; transition: transform var(--t) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 32px -10px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 48px -12px var(--accent-glow);
}
.btn-secondary { background: rgba(255, 255, 255, 0.07); border-color: var(--border-strong); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }
.btn-lg { padding: 16px 26px; font-size: 18px; border-radius: 14px; }
.btn-sm { padding: 9px 15px; font-size: 15px; border-radius: 10px; }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.18);
  margin-right: 8px; vertical-align: 1px; flex: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px;
  padding: 12px var(--gutter);
  background: rgba(7, 7, 12, 0.66);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand-logo {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: #fff; font: 800 13px/1 var(--mono);
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}
.edition {
  padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-soft); border: 1px solid rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.14);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color var(--t) var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-live { display: inline-flex; align-items: center; }

/* ---------- Hero ---------- */
main { display: block; }
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(48px, 9vh, 104px) var(--gutter) clamp(40px, 7vh, 80px);
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  font-size: 15px; font-weight: 650; color: #d9d0ff;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.2), rgba(124, 92, 255, 0.06));
}
.pill-spark { color: var(--accent-soft); }
.hero h1 { font-size: clamp(44px, 4.9vw, 78px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 820; margin: 0 0 22px; }
.grad {
  background: linear-gradient(92deg, #cbbfff 0%, #8f74ff 45%, #6d8bff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.watch { margin: 22px 0 0; color: var(--muted); font-size: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.watch-link { color: var(--text); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 4px; transition: text-decoration-color var(--t) var(--ease); }
.watch-link:hover { text-decoration-color: var(--accent-soft); }

/* Hero visual: terminal + slowly floating glyphs */
.hero-visual { position: relative; min-width: 0; }
.terminal {
  position: relative;
  border-radius: 18px; overflow: hidden;
  background: rgba(13, 13, 22, 0.86);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(124, 92, 255, 0.45), 0 0 0 1px rgba(124, 92, 255, 0.08);
  animation: bob 16s ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translateY(-8px); } }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3a4c; }
.term-bar .dot:nth-child(1) { background: #e0625a; }
.term-bar .dot:nth-child(2) { background: #d9a73f; }
.term-bar .dot:nth-child(3) { background: #4fb466; }
.term-title { margin-left: 10px; font: 600 13px/1 var(--mono); color: var(--dim); }
.term-body {
  margin: 0; padding: 20px 22px 24px;
  font: 14px/1.7 var(--mono); color: var(--muted);
  white-space: pre-wrap; word-break: break-word;
  min-height: calc(6 * 1.7em + 44px);
  transition: opacity 900ms ease;
}
.term-body.fading { opacity: 0; }
.tl-cmd { color: #fff; }
.tl-cmd .tl-prefix, .tl-ok { color: var(--accent-soft); }
.tl-note { color: var(--dim); font-style: italic; }
.tl.fade-in { animation: line-in 700ms ease-out backwards; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }
.caret {
  display: inline-block; width: 0.55em; height: 1.1em; margin-left: 2px; vertical-align: -0.18em;
  background: var(--accent-soft); border-radius: 2px; /* steady: never blinks */
}
.terminal { z-index: 1; }
.glyph {
  position: absolute; z-index: 0; pointer-events: none;
  font: 700 18px/1 var(--mono); color: rgba(182, 166, 255, 0.4);
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(124, 92, 255, 0.22); background: rgba(16, 16, 26, 0.7);
  animation: float 20s ease-in-out infinite alternate;
}
.g1 { top: -26px; left: 6%; }
.g2 { top: 18%; right: -18px; animation-duration: 24s; }
.g3 { bottom: 14%; left: -28px; animation-duration: 28s; }
.g4 { bottom: -22px; right: 12%; animation-duration: 22s; }
.g5 { top: -18px; right: 22%; animation-duration: 30s; border: 0; background: none; font-size: 22px; }
.g6 { bottom: -26px; left: 18%; animation-duration: 26s; font-size: 14px; }
@keyframes float { to { transform: translate3d(8px, -16px, 0); } }

/* ---------- Stats ---------- */
.stats {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats > div { padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.stats strong { display: block; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { color: var(--dim); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Sections ---------- */
.how, .projects { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 11vh, 120px) var(--gutter) 0; }
.eyebrow { margin: 0 0 10px; color: var(--accent-soft); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.how h2, .projects h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; margin: 0; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: none; }
.step {
  position: relative; padding: 28px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--border);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.step-n { display: inline-block; font: 700 14px/1 var(--mono); color: var(--accent-soft); background: rgba(124, 92, 255, 0.14); padding: 6px 10px; border-radius: 8px; }
.step h3 { font-size: 24px; margin: 18px 0 8px; }
.step p { margin: 0 0 18px; color: var(--muted); }
.step-link { font-weight: 700; text-decoration: none; }
.perks { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--muted); }
.perks strong { color: var(--text); margin-right: 4px; }
.perks span { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); font-size: 15px; }
.perks span::before { content: "✓  "; color: var(--accent-soft); font-weight: 800; }

/* ---------- Projects ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.count {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--accent-soft);
  padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(124, 92, 255, 0.4); background: rgba(124, 92, 255, 0.12);
}
.controls { display: grid; gap: 12px; justify-items: end; }
#search {
  width: min(100%, 400px); padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(16, 16, 26, 0.85); border: 1px solid var(--border-strong); border-radius: 12px; outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
#search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2); }
#search::placeholder { color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip {
  font: inherit; font-size: 14px; font-weight: 600; padding: 5px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--muted);
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.grid > li { display: flex; }
.card {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); text-decoration: none;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: hsl(var(--hue) 40% 14%); border-bottom: 1px solid var(--border); }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1200ms var(--ease); }
.art-generated {
  display: grid; place-items: center;
  background:
    radial-gradient(90% 110% at 15% 0%, hsl(var(--hue) 80% 60% / 0.75), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, hsl(calc(var(--hue) + 50) 75% 50% / 0.6), transparent 60%),
    #11111b;
}
.art-generated::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px; opacity: 0.6;
}
.art-emoji { position: relative; z-index: 1; font-size: 68px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); transition: transform 1200ms var(--ease); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.card h3 { font-size: 23px; line-height: 1.2; margin: 0; }
.by { margin: 3px 0 10px; color: var(--dim); font-size: 14px; font-weight: 600; }
.desc { margin: 0 0 16px; color: #cfcfe0; flex: 1; }
.card-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }
.flag { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid; }
.flag-members { color: var(--accent-soft); border-color: rgba(124, 92, 255, 0.5); }
.flag-server { color: var(--server); border-color: rgba(255, 176, 103, 0.5); }
.play {
  align-self: flex-start; margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 11px; font-weight: 750;
  color: #dcd3ff; background: rgba(124, 92, 255, 0.16); border: 1px solid rgba(124, 92, 255, 0.35);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.play .arrow { transition: transform var(--t) var(--ease); }
.card:hover, .card:focus-visible,
.js-reveal .card.in:hover, .js-reveal .card.in:focus-visible {
  transform: translateY(-6px); border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 30px 70px -30px var(--accent-glow);
}
.card:hover .art img { transform: scale(1.04); }
.card:hover .art-emoji { transform: translateY(-4px) scale(1.06); }
.card:hover .play { background: var(--accent); color: #fff; border-color: var(--accent); }
.card:hover .play .arrow { transform: translateX(4px); }
.step:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.4); box-shadow: 0 24px 60px -30px var(--accent-glow); }
.empty { color: var(--muted); }
.slot {
  flex: 1; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 28px; text-align: center; text-decoration: none; color: var(--text);
  border-radius: 22px; border: 1.5px dashed rgba(124, 92, 255, 0.4);
  background: radial-gradient(80% 80% at 50% 0%, rgba(124, 92, 255, 0.12), transparent 70%);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.slot strong { font-size: 21px; }
.slot .muted { max-width: 22em; }
.slot-plus {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 16px;
  font: 300 34px/1 var(--mono); color: var(--accent-soft); background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(124, 92, 255, 0.35);
}
.slot-cta { margin-top: 10px; font-weight: 750; color: var(--accent-soft); }
.slot:hover { border-color: rgba(124, 92, 255, 0.75); transform: translateY(-4px); background-color: rgba(124, 92, 255, 0.05); }

/* ---------- CTA band ---------- */
.band {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: clamp(80px, 12vh, 128px) auto 0;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 28px; border: 1px solid rgba(124, 92, 255, 0.3); text-align: center;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(124, 92, 255, 0.34), transparent 60%),
    radial-gradient(60% 110% at 100% 100%, rgba(84, 112, 255, 0.22), transparent 60%),
    rgba(14, 14, 23, 0.9);
}
.band h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; margin: 0 0 14px; }
.band p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); margin: 0 auto 30px; max-width: 34em; }
.band .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { max-width: var(--wrap); margin: 96px auto 0; padding: 32px var(--gutter) 56px; border-top: 1px solid var(--border); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-claim { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 750; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color var(--t) var(--ease); }
.footer-links a:hover { color: var(--text); }
.credits { margin-top: 26px; }
.credits h2 { font-size: 13px; margin: 0 0 8px; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; }
.credit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 15px; }
.credit-list a { font-weight: 700; text-decoration: none; }

/* ---------- Project view ---------- */
body[data-view="project"] { overflow: hidden; }
body[data-view="project"] .footer { display: none; }
.project-view { display: flex; flex-direction: column; height: calc(100dvh - var(--top-h, 64px)); }
.bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px var(--gutter); border-bottom: 1px solid var(--border); background: rgba(12, 12, 20, 0.9);
}
.back { color: var(--text); text-decoration: none; font-weight: 700; transition: color var(--t) var(--ease); }
.back:hover { color: var(--accent-soft); }
.bar-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.bar-meta strong { font-size: 19px; }
.bar-meta .by { margin: 0; }
.flags { display: inline-flex; gap: 6px; }
#frame { flex: 1; width: 100%; border: 0; background: var(--bg); display: block; }
.missing { max-width: 640px; margin: 96px auto; padding: 0 var(--gutter); text-align: center; }

/* ---------- Members edition ---------- */
/* Members are Builders already: no join or idea upsell, no pitch sections. */
.members .js-join, .members .js-idea, .members .js-pitch { display: none !important; }
body:not(.members) .js-members-only { display: none !important; }

/* ---------- Scroll reveal (only when JS opted in and motion is allowed) ---------- */
.js-reveal .reveal { opacity: 0; }
.js-reveal .reveal.in { opacity: 1; animation: rise 900ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Smaller screens ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; }
  .nav-links { display: none; }
  .nav .js-join { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .controls { justify-items: start; }
  .tags { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 39px; letter-spacing: -0.045em; }
  .nav { gap: 10px; }
  .brand { font-size: 17px; }
  .edition { font-size: 11px; }
  .cta-row .btn-lg { flex: 1 1 100%; }
  .btn-lg { padding: 15px 20px; font-size: 17px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 0; }
  .term-body { font-size: 13px; padding: 16px; }
  .glyph { font-size: 14px; }
  .g2, .g4, .g6 { display: none; }
  .g1 { left: auto; right: 8px; }
  .g3 { left: 8px; bottom: -22px; }
  #search { width: 100%; }
  .controls { width: 100%; }
  body[data-view="project"] { overflow: auto; }
  .project-view { height: auto; min-height: calc(100dvh - 120px); }
  #frame { min-height: 70dvh; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; }
}
