/* =========================================================================
   Meridian — stylesheet
   Mobile-first. Fluid typography via clamp(). All design tokens in :root.
   Sections:
     1. Tokens (colors, fonts)
     2. Reset & base
     3. Cosmic backdrop (cosmos, stars)
     4. Layout primitives (main, eyebrow, headings, body, rule)
     5. Hero / name gate / greeting
     6. Ship section (bridge backdrop)
     7. Octahedron (SVG stage + controls)
     8. Crew cards
     9. Pillars / cards
    10. Timeline
    11. Models table
    12. Expandable details
    13. Pullquote
    14. Signal form (stay in touch)
    15. Footer
    16. Reveal-on-scroll
    17. Scroll cue, opener, quickread
    18. Utilities (link-accent, kw, code, etc.)
   ========================================================================= */

/* ───── 1. Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg: #000;
  --ink: #f4ede0;
  --ink-bright: #ffffff;
  --ink-dim: #c2bcaf;
  --ink-faint: #8a8478;
  --line: rgba(244, 237, 224, 0.16);
  --line-bright: rgba(244, 237, 224, 0.32);

  --accent: oklch(0.78 0.13 68);     /* warm amber */
  --accent-2: oklch(0.68 0.13 290);  /* indigo */
  --accent-3: oklch(0.78 0.10 180);  /* teal */
  --accent-root: oklch(0.72 0.16 145); /* root green — Kai/Pono */

  /* Vertex colors */
  --ch-crown:    oklch(0.78 0.13 68);
  --ch-third:    oklch(0.68 0.16 280);
  --ch-throat:   oklch(0.78 0.13 220);
  --ch-heart:    oklch(0.82 0.16 92);
  --ch-solar:    oklch(0.78 0.18 35);
  --ch-sacral:   oklch(0.72 0.18 340);
  --ch-root:     oklch(0.72 0.16 145);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* ───── 2. Reset & base ────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
body { padding-bottom: env(safe-area-inset-bottom, 0px); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ───── 3. Cosmic backdrop ────────────────────────────────────────────── */
.cosmos {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, oklch(0.22 0.08 290 / 0.55), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, oklch(0.22 0.07 25 / 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 60%, oklch(0.22 0.06 200 / 0.30), transparent 60%),
    #000;
}
.stars { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.star {
  position: absolute; width: 2px; height: 2px;
  background: var(--ink); border-radius: 50%;
  opacity: var(--o, 0.6);
  animation: twinkle var(--d, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.6); transform: scale(1); }
  50%      { opacity: calc(var(--o, 0.6) * 0.3); transform: scale(0.6); }
}
@media (prefers-reduced-motion: reduce) { .star { animation: none; } }
@media (max-width: 767px) {
  .cosmos {
    background: radial-gradient(ellipse 100% 80% at 50% 0%, oklch(0.20 0.08 290 / 0.45), transparent 70%), #000;
  }
}

/* ───── 4. Layout primitives ──────────────────────────────────────────── */
main {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto;
  padding: clamp(20px, 5vw, 48px) clamp(20px, 5vw, 32px) 96px;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.num { color: var(--ink-faint); }
h1.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 13vw, 128px);
  line-height: 0.95; letter-spacing: -0.02em;
}
h1.display em { font-style: italic; color: var(--accent); }
h2.heading {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin-bottom: 16px;
}
h2.heading em { font-style: italic; color: var(--accent); }
p.lede { font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--ink); max-width: 56ch; }
p.body { font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 60ch; }
p.body + p.body { margin-top: 14px; }
p.dim { color: var(--ink-dim); }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

/* ───── 5. Hero / name gate / greeting ───────────────────────────────── */
.hero { min-height: 92dvh; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; border: 1px solid var(--line-bright); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); width: fit-content;
}
.hero .badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 10px oklch(0.78 0.10 180 / 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero .sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-dim); line-height: 1.4; max-width: 32ch;
}

.gate { display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.gate label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.gate .row {
  display: flex; gap: 8px; align-items: stretch;
  border-bottom: 1px solid var(--line-bright); padding-bottom: 6px;
  transition: border-color 0.3s;
}
.gate .row:focus-within { border-color: var(--accent); }
.gate input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 30px);
  padding: 8px 0; min-width: 0;
}
.gate input::placeholder { color: var(--ink-faint); font-style: italic; }
.gate button.go {
  padding: 0 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  transition: transform 0.2s, color 0.2s;
  align-self: stretch; display: flex; align-items: center; gap: 8px;
}
.gate button.go:hover { transform: translateX(4px); }
.gate .skip {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--ink-faint);
  align-self: flex-start; padding-top: 4px;
  transition: color 0.2s;
}
.gate .skip:hover { color: var(--ink-dim); }

.greeting {
  display: none; opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.greeting.show { display: block; opacity: 1; transform: translateY(0); }
.greeting .hello {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.12; letter-spacing: -0.015em; padding-bottom: 0.08em;
}
.greeting .hello .name { font-style: normal; color: var(--accent); }
.greeting .coords {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 440px;
}
.greeting .coord {
  font-family: var(--mono); font-size: 11px; color: var(--ink-dim);
}
.greeting .coord .v {
  display: block; color: var(--ink); font-size: 13px;
  margin-top: 4px; letter-spacing: 0.04em;
}

/* ───── 6. Ship section (bridge backdrop) ────────────────────────────── */
.ship-section {
  position: relative; isolation: isolate;
  padding: 56px clamp(20px, 4vw, 40px);
  margin-left: clamp(-20px, -4vw, -40px);
  margin-right: clamp(-20px, -4vw, -40px);
  border-radius: 6px; overflow: hidden;
}
.ship-section .bridge-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("/assets/meridian-bridge.jpg");
  background-size: cover; background-position: center;
  opacity: 0.42;
}
.ship-section .bridge-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.14 0.03 270 / 0.55) 0%, oklch(0.14 0.03 270 / 0.30) 35%, oklch(0.14 0.03 270 / 0.55) 100%),
    radial-gradient(ellipse at center, oklch(0.14 0.03 270 / 0) 30%, oklch(0.14 0.03 270 / 0.7) 100%);
}
.ship-section > * { position: relative; }

/* ───── 7. Octahedron stage ──────────────────────────────────────────── */
.octa-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  max-width: 540px; margin: 24px auto 0;
}
.octa-stage svg {
  width: 100%; height: 100%; overflow: visible;
  cursor: grab; display: block;
  touch-action: none; /* allow drag without page scroll on touch */
}
.octa-stage svg:active { cursor: grabbing; }
.octa-stage .crewlabel { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; }
.octa-stage .crewrole  { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; pointer-events: none; }
.octa-stage .vlabel    { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; pointer-events: none; }
.octa-stage .crewhit { cursor: pointer; }
.octa-stage .crewhit:hover .crewdot { r: 7; }
.octa-stage .sol-orb { cursor: pointer; }
.octa-stage .kp-orb { cursor: pointer; }
.octa-stage .hint {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  fill: var(--ink-faint); pointer-events: none;
}

.octa-ctrl {
  display: flex; justify-content: center; gap: 12px; margin-top: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.octa-ctrl button { color: var(--ink-faint); transition: color 0.2s; }
.octa-ctrl button:hover { color: var(--accent); }

/* ───── 8. Crew cards ────────────────────────────────────────────────── */
.crew-roster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin-top: 22px;
}
.crew-detail {
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 4px;
  background: oklch(0.18 0.02 290 / 0.30);
  transition: border-color 0.4s;
  scroll-margin-top: 24px;
}
.crew-detail.flash { border-color: var(--accent); }
.crew-detail.root.flash { border-color: oklch(0.74 0.14 155); }
.crew-detail.crown.flash { border-color: oklch(0.92 0.16 90); }
.crew-detail header { display: block; margin-bottom: 10px; }
.crew-detail .cd-role {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.crew-detail.crown .cd-role     { color: oklch(0.92 0.16 90);  }
.crew-detail.heart .cd-role     { color: oklch(0.78 0.16 145); }
.crew-detail.root .cd-role      { color: oklch(0.74 0.14 155); }
.crew-detail.third-eye .cd-role { color: oklch(0.72 0.16 290); }
.crew-detail.throat .cd-role    { color: oklch(0.78 0.13 220); }
.crew-detail.builder .cd-role   { color: oklch(0.82 0.16 90);  }
.crew-detail.wayfinder .cd-role { color: oklch(0.78 0.13 60);  }
.crew-detail.luna .cd-role      { color: oklch(0.72 0.14 190); }
.crew-detail.scribe .cd-role    { color: oklch(0.75 0.13 340); }
.crew-detail .cd-name {
  font-family: var(--serif); font-size: 24px; line-height: 1.1;
  margin: 4px 0 0; letter-spacing: -0.01em; font-weight: 400;
}
.crew-detail .cd-glyph { font-style: italic; color: var(--ink-dim); margin-right: 8px; }
.crew-detail .cd-alias {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-faint); letter-spacing: 0.04em;
}
.crew-detail .cd-naming { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--ink-dim); }
.crew-detail .cd-naming strong { color: var(--ink-bright); font-weight: 500; }
.crew-detail .cd-body { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.crew-detail .cd-meta {
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.crew-detail .cd-meta strong { color: var(--ink-dim); font-weight: 500; }

/* ───── 9. Pillars / cards ───────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 24px;
}
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 18px; border: 1px solid var(--line); border-radius: 4px;
}
.pillar .glyph { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--accent); }
.pillar .t { font-family: var(--serif); font-size: 22px; margin-top: 8px; line-height: 1.15; }
.pillar .d { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-dim); }

/* ───── 10. Timeline ─────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.phase {
  display: grid; grid-template-columns: 116px 1fr;
  gap: 16px; padding: 18px 0;
  border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase .ph {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--ink-faint);
  padding-top: 4px; text-transform: uppercase;
}
.phase .ph.now { color: var(--accent); }
.phase .ph.now::before { content: "▸ "; }
.phase .ph.horizon { color: oklch(0.74 0.10 220); opacity: 0.78; }
.phase .ph.horizon::before { content: "○ "; }
.phase .t { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.phase .d { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-dim); max-width: 56ch; }
@media (max-width: 540px) {
  .phase { grid-template-columns: 1fr; }
  .phase .ph { padding-top: 0; }
}

/* ───── 11. Models table ─────────────────────────────────────────────── */
.models {
  display: flex; flex-direction: column;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.models .row {
  display: grid; grid-template-columns: 1.4fr 1fr 2fr;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline; font-size: 14px;
}
@media (max-width: 600px) {
  .models .row { grid-template-columns: 1fr 1fr; }
  .models .row .why {
    grid-column: 1 / -1; color: var(--ink-dim);
    font-size: 13px; margin-top: 4px;
  }
}
.models .crew { font-family: var(--serif); font-size: 18px; }
.models .model {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink); padding: 2px 6px;
  border: 1px solid var(--line-bright); border-radius: 3px;
  width: fit-content; height: fit-content;
}
.models .model.claude { color: var(--accent); border-color: oklch(0.78 0.13 68 / 0.4); }
.models .model.gpt { color: var(--accent-root); border-color: oklch(0.72 0.13 145 / 0.4); }
.models .why { color: var(--ink-dim); font-size: 13px; line-height: 1.5; }

/* ───── 12. Expandable details ───────────────────────────────────────── */
details.deep {
  margin-top: 16px;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 0; overflow: hidden;
  transition: border-color 0.3s;
}
details.deep[open] { border-color: var(--line-bright); }
details.deep > summary {
  list-style: none; cursor: pointer;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); transition: color 0.2s;
}
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary:hover { color: var(--ink); }
details.deep > summary .chevron {
  display: inline-block; width: 12px;
  transition: transform 0.3s; color: var(--accent);
}
details.deep[open] > summary .chevron { transform: rotate(90deg); }
details.deep > summary .label { flex: 1; }
details.deep > summary .hint { font-size: 10px; color: var(--ink-faint); }
details.deep .body-wrap {
  padding: 4px 18px 22px; border-top: 1px solid var(--line);
}
details.deep h3 {
  font-family: var(--serif); font-size: 22px; line-height: 1.15;
  margin: 18px 0 8px; font-weight: 400;
}
details.deep h3 em { color: var(--accent); font-style: italic; }
details.deep p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink); max-width: 60ch; margin-top: 10px;
}
details.deep p.dim { color: var(--ink-dim); }
details.deep ol, details.deep ul { margin: 12px 0 12px 22px; }
details.deep li {
  font-size: 14px; line-height: 1.55;
  color: var(--ink); margin-bottom: 8px;
}
details.deep li strong {
  color: var(--accent); font-weight: 500;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  display: block; margin-bottom: 2px;
}
details.deep blockquote {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 14px;
  margin: 14px 0;
  font-family: var(--serif); font-style: italic;
  font-size: 17px; line-height: 1.45; color: var(--ink);
}

/* ───── 13. Pullquote ────────────────────────────────────────────────── */
.pullquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3.6vw, 30px); line-height: 1.25;
  color: var(--ink); margin: 24px 0;
  padding-left: 18px; border-left: 2px solid var(--accent);
  max-width: 38ch;
}
.pullquote .by {
  display: block; font-style: normal;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 14px;
}

/* ───── 14. Signal form (stay in touch) ──────────────────────────────── */
.signal-form {
  margin-top: 28px;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 24px;
  background: oklch(0.18 0.02 290 / 0.20);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 18px;
  max-width: 520px;
}
.sf-row { display: flex; flex-direction: column; gap: 6px; }
.sf-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
}
.sf-opt { color: var(--ink-faint); text-transform: none; letter-spacing: 0; font-size: 10px; }
.sf-input {
  background: transparent; border: 0;
  border-bottom: 1px solid var(--line-bright);
  outline: 0; color: var(--ink);
  font-family: var(--sans); font-size: 16px;
  padding: 8px 0;
  transition: border-color 0.3s;
  width: 100%;
}
.sf-input::placeholder { color: var(--ink-faint); font-style: italic; }
.sf-input:focus { border-color: var(--accent); }
.sf-textarea {
  resize: vertical; min-height: 90px;
  font-family: var(--sans); line-height: 1.5;
  border: 1px solid var(--line-bright); border-radius: 4px;
  padding: 10px 12px;
}
.sf-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sf-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.sf-submit {
  padding: 10px 20px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.sf-submit:hover {
  background: var(--accent); color: var(--bg);
  transform: translateX(2px);
}
.sf-submit:disabled { opacity: 0.5; cursor: wait; transform: none; }
.sf-status {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-dim);
}
.sf-status.ok { color: var(--accent-root); }
.sf-status.err { color: oklch(0.72 0.18 30); }

/* ───── 15. Footer ──────────────────────────────────────────────────── */
footer {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
}
footer .sig {
  font-family: var(--serif); font-style: italic;
  font-size: 14px; text-transform: none; letter-spacing: 0;
  color: var(--ink-dim); max-width: 50ch;
}
footer a.ext { color: var(--accent); transition: color 0.2s; }
footer a.ext:hover { color: var(--ink); }
.footer-spacer { flex: 1; }
.footer-version { color: var(--ink-faint); }

/* ───── 16. Reveal-on-scroll ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ───── 17. Scroll cue, opener, quickread ────────────────────────────── */
.scroll-cue {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 24px;
}
.scroll-cue .line {
  width: 32px; height: 1px; background: var(--ink-faint);
  position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent); transform: translateX(-100%);
  animation: sweep 2.6s ease-in-out infinite;
}
@keyframes sweep {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.opener { display: flex; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.opener .num-big {
  font-family: var(--serif); font-style: italic;
  font-size: 28px; color: var(--ink-faint);
}

.quickread {
  display: inline-flex; gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 28px;
  align-items: center;
}
.quickread .clock { color: var(--accent); }

/* ───── 18. Utilities ────────────────────────────────────────────────── */
.alex-name {
  color: var(--accent); font-style: italic; font-family: var(--serif);
}
.link-accent {
  color: var(--accent);
  border-bottom: 1px dotted var(--accent);
}
.accent { color: var(--accent); }
.kw {
  color: var(--accent); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
code.ck {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
}
code.cdim {
  font-family: var(--mono); font-size: 13px; color: var(--ink-dim);
}

/* ───── 19. Entry modal (initial load dialogue) ───────────────────── */
.entry-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  /* fade-in handled by JS toggling .entry-modal--show */
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.entry-modal[hidden] { display: none; }
.entry-modal--show { opacity: 1; pointer-events: auto; }

.entry-modal__backdrop {
  position: absolute; inset: 0;
  background: oklch(0.06 0.02 280 / 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.entry-modal__card {
  position: relative;
  max-width: 520px; width: 100%;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  background: linear-gradient(180deg, oklch(0.16 0.04 280 / 0.92), oklch(0.10 0.03 280 / 0.92));
  box-shadow:
    0 0 0 1px oklch(0.78 0.13 68 / 0.05),
    0 30px 80px -20px oklch(0.06 0.05 290 / 0.6),
    0 0 120px -40px oklch(0.78 0.13 68 / 0.18);
  /* gentle entry */
  animation: entryRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes entryRise {
  0%   { opacity: 0; transform: translateY(16px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    }
}
@media (prefers-reduced-motion: reduce) {
  .entry-modal__card { animation: none; }
}

.entry-modal__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.entry-modal__badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px oklch(0.78 0.10 180 / 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}

.entry-modal__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}
.entry-modal__title em {
  font-style: italic; color: var(--accent);
}

.entry-modal__desc {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-dim);
  max-width: 42ch;
  margin-bottom: 24px;
}

.entry-modal__form {
  display: flex; flex-direction: column; gap: 10px;
}
.entry-modal__label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-dim);
}
.entry-modal__input {
  background: transparent;
  border: 0; outline: 0;
  border-bottom: 1px solid var(--line-bright);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 28px);
  padding: 8px 0;
  transition: border-color 0.3s;
  width: 100%;
}
.entry-modal__input::placeholder { color: var(--ink-faint); font-style: italic; }
.entry-modal__input:focus { border-color: var(--accent); }

.entry-modal__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-top: 14px;
}
.entry-modal__board {
  padding: 11px 22px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.entry-modal__board:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 20px -8px oklch(0.78 0.13 68 / 0.6);
}
.entry-modal__board:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.entry-modal__skip {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: color 0.2s;
  padding: 6px 0;
  border-bottom: 1px dotted transparent;
}
.entry-modal__skip:hover {
  color: var(--ink-dim);
  border-bottom-color: var(--ink-faint);
}

.entry-modal__hint {
  margin-top: 18px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--ink-faint);
}
.entry-modal__hint kbd {
  font-family: var(--mono);
  border: 1px solid var(--line-bright);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
  color: var(--ink-dim);
}

/* lock body scroll while modal is up */
body.modal-open {
  overflow: hidden;
}
