/* =========================================================================
   DESH · "Escape velocity" design system
   Modern dark theme built around the gravity → rocket thesis.
   One stylesheet, shared by every layout.
   ========================================================================= */

:root {
  /* Canvas & surfaces */
  --bg: #07080b;
  --bg-2: #0a0c12;
  --surface: rgba(255, 255, 255, 0.024);
  --surface-2: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #eef1f8;
  --text-muted: #9aa3b4;
  --text-faint: #6a7284;

  /* Accents: cold space vs. hot thrust */
  --violet: #8b93ff;
  --cyan: #56e1e1;
  --ember: #ff7a45;
  --ember-2: #ffb14e;
  --accent: #8b93ff;
  --accent-grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --thrust-grad: linear-gradient(180deg, var(--ember-2), var(--ember));

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Rhythm */
  --maxw: 1140px;
  --maxw-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Cosmic backdrop: gravity well + faint starfield --------------------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 78% -8%, rgba(139, 147, 255, 0.14), transparent 60%),
    radial-gradient(760px 560px at 12% 8%, rgba(86, 225, 225, 0.08), transparent 62%),
    radial-gradient(1000px 720px at 50% 118%, rgba(255, 122, 69, 0.10), transparent 60%),
    var(--bg);
}
.cosmos::after {
  /* starfield */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, 0.30), transparent),
    radial-gradient(1.4px 1.4px at 85% 60%, rgba(255, 255, 255, 0.40), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.30), transparent),
    radial-gradient(1.2px 1.2px at 90% 90%, rgba(255, 255, 255, 0.35), transparent);
  background-repeat: repeat;
  background-size: 700px 700px;
  opacity: 0.5;
  animation: drift 240s linear infinite;
}
@keyframes drift { to { background-position: 700px 700px; } }

/* ---- Layout primitives --------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--maxw-narrow); }
main { display: block; }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent-grad);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ember-text {
  background: var(--thrust-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary {
  background: var(--thrust-grad); color: #1a0d05;
  box-shadow: 0 8px 30px rgba(255, 122, 69, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 122, 69, 0.42); }
.btn-primary .arrow { transition: transform 0.2s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); background: var(--surface-2); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--cyan); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  font-family: var(--font-mono); letter-spacing: 0.01em;
}
.link-arrow .arrow { transition: transform 0.2s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand .mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--text);
}
.brand .mark b { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--text-faint); display: none;
}
@media (min-width: 620px) { .brand-tag { display: inline; } }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  transition: color 0.2s var(--ease); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent-grad); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 11, 17, 0.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0; max-height: 0; overflow: hidden;
    transition: max-height 0.32s var(--ease);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 0.95rem 24px; font-size: 1rem; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--cyan); }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding: clamp(4rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 6rem); text-align: center; }
.hero .eyebrow { margin-bottom: 1.8rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.5rem;
}
.hero p.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-muted);
  max-width: 660px; margin: 0 auto 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* trajectory arc under the hero */
.trajectory { display: block; width: 100%; max-width: 900px; margin: 3.5rem auto 0; height: auto; opacity: 0.9; }

/* ---- Thesis / manifesto -------------------------------------------------- */
.thesis { padding: clamp(4rem, 9vw, 8rem) 0; }
.thesis .container { max-width: 900px; }
.thesis-lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.22; letter-spacing: -0.02em;
  margin: 1.6rem 0 3rem;
}
.thesis-lead .muted { color: var(--text-faint); }

.beats { display: grid; gap: 1.25rem; counter-reset: beat; }
.beat {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  padding: 1.7rem 1.8rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.beat:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.beat .n {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan);
  border: 1px solid var(--border-strong); border-radius: 8px;
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
}
.beat h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.beat p { color: var(--text-muted); font-size: 1rem; }
.beat.ignite { border-color: rgba(255, 122, 69, 0.4); background: linear-gradient(180deg, rgba(255,122,69,0.06), transparent); }
.beat.ignite .n { color: var(--ember-2); border-color: rgba(255,177,78,0.5); }
.beat.orbit { border-color: rgba(86, 225, 225, 0.4); background: linear-gradient(180deg, rgba(86,225,225,0.06), transparent); }
.beat.orbit .n { color: var(--cyan); border-color: rgba(86,225,225,0.5); }

/* ---- Root-access band ---------------------------------------------------- */
.root-band {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), transparent); padding: clamp(1.8rem, 5vw, 3rem);
}
.root-band .prompt {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(2.2rem, 7vw, 3.8rem); white-space: nowrap;
}
.root-band .prompt .p-dim { color: var(--text); }
.prompt-caption {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 1.1rem; line-height: 1.55;
}
.root-band .caret { color: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.root-copy h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin: 1rem 0; letter-spacing: -0.03em; }
.root-copy p { color: var(--text-muted); font-size: 1.06rem; }
.root-copy b { color: var(--text); font-family: var(--font-mono); font-weight: 700; }
@media (max-width: 720px) { .root-band { grid-template-columns: 1fr; } }

.pull {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -0.025em;
  text-align: center; margin: 3.5rem auto 0; max-width: 820px;
}

/* ---- Section heading block ---------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 1.1rem 0 1rem; letter-spacing: -0.03em; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---- Feature / stage grid ------------------------------------------------ */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 2rem 1.9rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-4px); background: var(--surface-2); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(139,147,255,0.1); border: 1px solid var(--border); margin-bottom: 1.3rem;
  color: var(--cyan);
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; flex-grow: 1; }
.card .kicker {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 0.8rem;
}
.card-next { border-style: dashed; border-color: var(--border-strong); background: transparent; }
.card-next:hover { border-color: var(--ember); background: rgba(255, 122, 69, 0.03); }
.card-next .ic { color: var(--ember-2); background: rgba(255, 177, 78, 0.08); }
.card-next .link-arrow { color: var(--ember-2); margin-top: 1.2rem; }

/* ---- Primitives (product cards) ----------------------------------------- */
.primitive {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.1rem 2rem; background: var(--surface);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.primitive::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent-grad);
  opacity: 0.7;
}
.primitive:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.primitive .p-name { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.primitive .p-name h3 { font-size: 1.45rem; }
.primitive .badge {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted);
}
.primitive p { color: var(--text-muted); font-size: 0.98rem; flex-grow: 1; margin-bottom: 1.5rem; }

/* ---- Epigraph (framing quote) -------------------------------------------- */
.epigraph { max-width: 780px; margin: 0 0 3rem; padding-left: 1.6rem; border-left: 2px solid var(--border-strong); }
.epigraph p {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.32;
  font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--text);
}
.epigraph cite {
  display: block; margin-top: 1rem; font-style: normal;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
}
.epigraph cite::before { content: '// '; opacity: 0.6; }

/* ---- Blog cards ---------------------------------------------------------- */
.post-card {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 1.9rem; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.post-card .p-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; margin-bottom: 1rem; }
.post-card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.post-card p { color: var(--text-muted); font-size: 0.96rem; flex-grow: 1; margin-bottom: 1.2rem; }

/* ---- Tags / lists -------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1.2rem; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.7rem;
}
.tag::before { content: '#'; color: var(--text-faint); }

/* ---- The one rule (elevated statement) ----------------------------------- */
.rule .container { max-width: 900px; }
.rule-inner { text-align: center; }
.rule-line { font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: -0.04em; line-height: 1.02; margin: 1.4rem 0; }
.rule-lead { color: var(--text-muted); font-size: 1.1rem; max-width: 660px; margin: 0 auto 3rem; }
.rule-contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; text-align: left; }
.rc-col { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; background: var(--surface); }
.rc-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); display: block; margin-bottom: 0.7rem; }
.rc-old { opacity: 0.72; }
.rc-old p { color: var(--text-muted); }
.rc-new { border-color: rgba(255, 122, 69, 0.35); background: linear-gradient(180deg, rgba(255,122,69,0.05), transparent); }
.rc-new .rc-label { color: var(--ember-2); }
.rc-new p { color: var(--text); }
@media (max-width: 620px) { .rule-contrast { grid-template-columns: 1fr; } }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.cta-inner {
  border: 1px solid var(--border-strong); border-radius: 24px; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255,122,69,0.12), transparent 70%),
    var(--surface);
}
.cta-inner h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -0.03em; }
.cta-inner p { color: var(--text-muted); max-width: 560px; margin: 0 auto 2.2rem; font-size: 1.08rem; }
.mono-mail { font-family: var(--font-mono); color: var(--cyan); text-decoration: none; }
.mono-mail:hover { text-decoration: underline; }

/* ---- Application template box (join) ------------------------------------ */
.appbox {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2);
  padding: 1.8rem; margin-top: 2rem; text-align: left; font-family: var(--font-mono);
  font-size: 0.9rem; color: var(--text-muted);
}
.appbox h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.appbox ul { list-style: none; }
.appbox li { padding: 0.28rem 0 0.28rem 1.2rem; position: relative; }
.appbox li::before { content: '›'; position: absolute; left: 0; color: var(--cyan); }

/* ---- Stat row ------------------------------------------------------------ */
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; margin-top: 3rem; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.3rem; }

/* ---- Article (blog post) ------------------------------------------------- */
.article { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.article .container { max-width: var(--maxw-narrow); }
.article-head { margin-bottom: 2.5rem; }
.article-head .back { margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(2.1rem, 5.2vw, 3.2rem); margin-bottom: 1rem; letter-spacing: -0.03em; }
.article-head .p-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); }
.prose { font-size: 1.08rem; color: #d7dbe6; line-height: 1.8; }
.prose > * + * { margin-top: 1.4rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.8rem; color: var(--text); letter-spacing: -0.02em; }
.prose h3 { font-size: 1.32rem; margin-top: 2rem; color: var(--text); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-top: 0.5rem; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; color: var(--text-muted); font-style: italic; }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em; background: rgba(139,147,255,0.12);
  padding: 0.15em 0.4em; border-radius: 5px; color: #c7cbff;
}
.prose pre {
  background: #0c0e15; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem 1.3rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: #cdd3e1; font-size: inherit; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2.5rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand .mark { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; }
.footer-acronym { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.55rem; }
.footer-brand p { color: var(--text-faint); font-size: 0.9rem; margin-top: 0.8rem; max-width: 320px; }
.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.92rem; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; color: var(--text-faint); font-size: 0.85rem; font-family: var(--font-mono); }

/* ---- Reveal on scroll ---------------------------------------------------- */
/* Hiding is gated on .reveal-ready, which desh.js adds only once it's running.
   If the script never loads, nothing is hidden, so content stays visible. */
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }

/* ---- Motion / a11y ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cosmos::after { animation: none; }
  .caret { animation: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* ---- Responsive tweaks --------------------------------------------------- */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .beat { grid-template-columns: 1fr; gap: 0.9rem; }
  .beat .n { width: 34px; height: 34px; }
  .footer-grid { flex-direction: column; }
}
