/* ============================================================
   VIABLE CODER — main.css
   Site-wide dark "tech" theme.
   Palette drawn from assets/viable-coder-tech.png:
   black field, neon cyan linework, red EKG pulse.
   Promoted from the test-index.css experiment, extended to
   cover every component the full site uses.
   ============================================================ */

:root {
  --bg: #050708;
  --bg-2: #090c10;
  --panel: #0b0f14;
  --panel-2: #0e131a;

  --cyan: #3fd4ff;
  --cyan-dim: #2b9fc4;
  --cyan-faint: rgba(63, 212, 255, 0.14);
  --cyan-line: rgba(63, 212, 255, 0.28);
  --cyan-glow: rgba(63, 212, 255, 0.45);

  --red: #ff2f3d;
  --red-soft: #ff5560;
  --red-faint: rgba(255, 47, 61, 0.14);
  --red-glow: rgba(255, 47, 61, 0.5);

  --ink: #e8f1f7;
  --ink-2: #aebbc6;
  --ink-3: #75828e;
  --rule: rgba(63, 212, 255, 0.12);
  --rule-soft: rgba(255, 255, 255, 0.06);

  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max-w: 1200px;
  --content-w: 920px;
  --pad-x: clamp(1.5rem, 5vw, 4rem);

  --shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 0 28px rgba(63, 212, 255, 0.07), 0 14px 36px rgba(0, 0, 0, 0.5);
}

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

/* Replaced elements never exceed their container. Without this, an image's
   intrinsic width can push a grid/flex track wider than the viewport. */
img, svg, video { max-width: 100%; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background:
    radial-gradient(1100px 500px at 70% -10%, rgba(63, 212, 255, 0.06), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(255, 47, 61, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

/* Faint engineering grid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(63, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, black 30%, transparent 100%);
}

::selection { background: var(--red); color: #fff; }

/* Layout */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
  z-index: 1;
}
.narrow {
  max-width: var(--content-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  position: relative;
  z-index: 1;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7ee3ff; }

strong { font-weight: 500; color: var(--ink); }

/* ------------------------------------------------------------
   REVEAL (hooks main.js expects)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 8, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s ease, background 0.3s ease;
}
nav.top.scrolled {
  background: rgba(5, 7, 8, 0.94);
  border-bottom-color: var(--cyan-line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.4rem 0;
}

.wordmark { flex-shrink: 1; min-width: 0; }
.wordmark img {
  /* The wordmark PNG is ~6.7:1, so a fixed height forces a ~402px width that
     overflows narrow phones. Size by width instead so it scales down. */
  width: clamp(200px, 34vw, 402px);
  height: auto;
  display: block;
  /* Melt the PNG's black field into the page so only the neon lines show */
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: flex-start;
}

.nav-col { display: flex; flex-direction: column; gap: 0.3rem; }

.nav-top-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.nav-top-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  transition: width 0.25s ease;
}
.nav-top-link:hover { color: var(--cyan); }
.nav-top-link:hover::after { width: 100%; }
.nav-top-link.is-active { color: var(--cyan); }
.nav-top-link.is-active::after { width: 100%; }

.nav-sub { display: flex; flex-direction: column; gap: 0.1rem; }
.nav-sub a {
  font-size: 0.82rem;
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.nav-sub a:hover { color: var(--cyan); }
.nav-sub a.is-active { color: var(--cyan); }

.nav-sub a::before {
  content: "> ";
  font-family: var(--font-mono);
  color: var(--red);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav-sub a:hover::before,
.nav-sub a.is-active::before { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cyan-line);
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle-icon { display: block; width: 20px; }
.nav-toggle-icon span {
  display: block;
  height: 2px;
  background: var(--cyan);
  margin: 4px 0;
  box-shadow: 0 0 6px var(--cyan-glow);
}

/* ------------------------------------------------------------
   PULSE DIVIDER — the red EKG heartbeat from the logo.
   Animated video band by default; static SVG line for
   reduced-motion users or if the video fails to load.
   ------------------------------------------------------------ */
.pulse-band {
  position: relative;
  width: 100%;
  height: clamp(120px, 16vw, 250px);
  overflow: hidden;
  background: transparent;
}
/* The waveform occupies the middle ~55% of the source frame, centered
   slightly above middle. Oversize the video vertically (175% of band,
   ~2x vertical squash) and offset it so the full peak-to-valley range
   lands inside the band instead of being cropped away. */
.pulse-video {
  position: absolute;
  left: 0;
  top: -32%;
  width: 100%;
  height: 175%;
  object-fit: fill;
  /* Melt the clip's black field into the page — only the laser line shows */
  mix-blend-mode: screen;
}

.pulse-divider {
  display: none;
  width: 100%;
  height: 42px;
  overflow: visible;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.pulse-divider polyline {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--red-glow));
}

@media (prefers-reduced-motion: reduce) {
  .pulse-video { display: none; }
  .pulse-divider { display: block; }
}

/* ------------------------------------------------------------
   TYPE
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.12;
}
h1 .accent { color: var(--cyan); font-weight: 500; text-shadow: 0 0 18px rgba(63, 212, 255, 0.4); }

h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  font-weight: 500;
  color: var(--red-soft);
  text-shadow: 0 0 16px rgba(255, 47, 61, 0.3);
}

h3 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

p { color: var(--ink-2); }
p.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ------------------------------------------------------------
   SECTIONS
   ------------------------------------------------------------ */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }

.alt-bg {
  background: linear-gradient(180deg, transparent, rgba(63, 212, 255, 0.025) 18%, rgba(63, 212, 255, 0.025) 82%, transparent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}
.eyebrow .num {
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
}
.eyebrow .num::before { content: "["; color: var(--ink-3); text-shadow: none; }
.eyebrow .num::after { content: "]"; color: var(--ink-3); text-shadow: none; }
.eyebrow .bar {
  flex: 0 0 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-title,
h2.section-title {
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 300;
  line-height: 1.28;
  color: var(--ink);
  max-width: 30em;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.section-title strong,
h2.section-title strong {
  font-weight: 500;
  color: var(--red-soft);
  text-shadow: 0 0 16px rgba(255, 47, 61, 0.3);
}
h2.section-title .accent { color: var(--cyan); font-weight: 500; }

/* ------------------------------------------------------------
   PAGE HEADER BAND (landers + working surfaces)
   ------------------------------------------------------------ */
.page-band {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.page-band .crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.page-band .crumb .accent { color: var(--cyan); font-weight: 700; }
.page-band .crumb a {
  color: inherit;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s, border-bottom-color 0.2s;
}
.page-band .crumb a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan-line);
}
.page-band .crumb .crumb-back {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: 0.35em;
  margin-right: 1.5em;
  padding: 0.3em 0.75em 0.3em 0.55em;
  font-size: 0.78rem;
  color: var(--cyan);
  background: rgba(63, 212, 255, 0.06);
  border: 1px solid var(--cyan-line);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.page-band .crumb .crumb-back:hover {
  background: var(--cyan-faint);
  color: var(--ink);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(63, 212, 255, 0.18);
  transform: translateX(-3px);
}
.page-band .crumb .crumb-back .chevron {
  font-size: 1.5em;
  line-height: 0;
  position: relative;
  top: -1px;
  font-weight: 500;
}
.page-band h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  margin-bottom: 1rem;
  width: 100%;
  max-width: none;
  text-wrap: wrap;
}
.page-band p.kicker {
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #ff3b48, #d81f2c);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 22px rgba(255, 47, 61, 0.28);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 34px rgba(255, 47, 61, 0.45);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--cyan-line);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(63, 212, 255, 0.16);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.78rem; }

.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ctas.center { justify-content: center; }

/* ------------------------------------------------------------
   HOME HERO
   ------------------------------------------------------------ */
.q-hero {
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* Grid items default to min-width:auto, which lets the hero image's intrinsic
   width force the track wider than the viewport when it stacks on mobile. */
.hero-text, .hero-media { min-width: 0; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--cyan-dim);
  margin-bottom: 1.25rem;
}
.hero-kicker .prompt { color: var(--red); }

h1.question {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 300;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1.question strong {
  font-weight: 500;
  color: var(--red-soft);
  text-shadow: 0 0 18px rgba(255, 47, 61, 0.35);
}
h1.question .accent {
  font-weight: 500;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(63, 212, 255, 0.4);
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.12em;
  vertical-align: text-bottom;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.q-hero .sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 46ch;
}

/* The value proposition, given real weight under the headline. */
.q-hero .sub.value-line {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  max-width: 38ch;
}
.q-hero .sub.value-line strong {
  font-weight: 500;
  color: var(--ink);
}
.q-hero .sub.value-line em { font-style: italic; white-space: nowrap; }
.q-hero .sub.value-line .q-red { color: var(--red-soft); }
.q-hero .sub.value-line .q-cyan { color: var(--cyan); }

/* The two-gate trace, from the builder's-journey essay: founder
   judgement (can vs. should build), then engineering judgement
   (crashes vs. scales), rendered as terminal output. */
.gate-trace {
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 0.7rem;
  row-gap: 0.4rem;
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  background: rgba(9, 12, 16, 0.72);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.85rem 1.2rem 0.95rem;
}
.gt-cmd {
  grid-column: 1 / -1;
  text-transform: none;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--cyan-dim);
  margin-bottom: 0.4rem;
}
.gt-cmd .gt-prompt { color: var(--red); }
.gt-gap { grid-column: 1 / -1; height: 0.3rem; }
.gt-gate { text-align: right; color: var(--ink); }
.gt-path { color: var(--ink-2); }
.gt-branch { color: var(--ink-3); font-weight: 400; }
.gt-x { color: var(--red); font-weight: 700; }
.gt-check { color: var(--cyan); font-weight: 700; }
.gate-trace .gt-red { color: var(--red-soft); }
.gate-trace .gt-cyan { color: var(--cyan); }
.gt-cursor { width: 0.5em; height: 0.95em; margin-left: 0.4em; vertical-align: text-bottom; }

/* Rows land like terminal output: command first, then each verdict */
.gate-trace > * { opacity: 0; transition: opacity 0.45s ease; }
.gate-trace.in > * { opacity: 1; }
.gate-trace.in > :nth-child(1) { transition-delay: 0.2s; }
.gate-trace.in > :nth-child(2),
.gate-trace.in > :nth-child(3) { transition-delay: 0.7s; }
.gate-trace.in > :nth-child(4),
.gate-trace.in > :nth-child(5) { transition-delay: 1.2s; }
.gate-trace.in > :nth-child(6) { transition-delay: 1.2s; }
.gate-trace.in > :nth-child(7),
.gate-trace.in > :nth-child(8) { transition-delay: 1.8s; }
@media (prefers-reduced-motion: reduce) {
  .gate-trace > * { opacity: 1; transition: none; }
}

/* Hero media */
.hero-media { margin: 0; }
.q-hero .hero-media img {
  display: block;
  width: 100%;
  height: auto;
}
.term-frame {
  border: 1px solid var(--cyan-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(63, 212, 255, 0.08);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-2);
}
.term-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1c242e;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.term-bar span:first-child { background: var(--red); border-color: var(--red); box-shadow: 0 0 6px var(--red-glow); }
.term-bar em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-left: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(0.35) contrast(1.06) brightness(0.92);
}
/* Bare neon figure in the hero — no frame; the transparent PNG
   blends straight into the page black */
.hero-figure {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 34px rgba(63, 212, 255, 0.18));
}

/* The hero figure doubles as the poster for the promo film:
   clicking it swaps in the borderless, rounded 16:9 video. */
.hero-video-poster {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-video-poster[hidden] { display: none; }
.hero-video-poster:hover .hero-figure,
.hero-video-poster:focus-visible .hero-figure {
  filter: drop-shadow(0 0 34px rgba(63, 212, 255, 0.32));
}
.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 12vw, 74px);
  height: clamp(58px, 12vw, 74px);
  border-radius: 50%;
  border: 1px solid var(--cyan-line);
  background: rgba(9, 12, 16, 0.72);
  box-shadow: 0 0 24px rgba(63, 212, 255, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-play::after {
  content: "";
  display: block;
  margin-left: 4px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--cyan);
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}
.hero-video-poster:hover .hero-play,
.hero-video-poster:focus-visible .hero-play {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--cyan);
  box-shadow: 0 0 36px rgba(63, 212, 255, 0.45);
}
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #000;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(63, 212, 255, 0.12);
  animation: heroVideoIn 0.45s ease;
}
.hero-video[hidden] { display: none; }

/* While the film plays it takes over the full hero: the headline and
   gate-trace step aside and the video spans both grid columns. */
.hero-grid.hero-playing .hero-text { display: none; }
.hero-grid.hero-playing .hero-media {
  grid-column: 1 / -1;
  width: min(100%, 1100px);
  max-width: none;
  margin: 0 auto;
}

@keyframes heroVideoIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; }
  .hero-play, .hero-video-poster .hero-figure { transition: none; }
}

/* Surface hero (working surfaces) */
.surface-hero {
  text-align: left;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.surface-hero h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  width: 100%;
  max-width: none;
  text-wrap: wrap;
  margin-bottom: 1.25rem;
}
.surface-hero h2 strong { font-weight: 500; }
.surface-hero h2 .accent { color: var(--cyan); font-weight: 500; text-shadow: 0 0 18px rgba(63, 212, 255, 0.4); }
.surface-hero p {
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  max-width: 56ch;
}

/* ------------------------------------------------------------
   FACE CARDS (home §01)
   ------------------------------------------------------------ */
.faces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.face-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.face-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent 55%);
  opacity: 0.85;
}
.face-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--cyan), transparent 55%);
}
.face-card:hover {
  border-color: var(--cyan-line);
  box-shadow: 0 0 34px rgba(63, 212, 255, 0.09), 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

.face-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-soft);
  border: 1px solid var(--red-faint);
  background: rgba(255, 47, 61, 0.06);
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 1.1rem;
}
.face-card:nth-child(2) .face-label {
  color: var(--cyan);
  border-color: var(--cyan-faint);
  background: rgba(63, 212, 255, 0.05);
}

.face-card h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.face-card h2 strong { font-weight: 500; color: var(--cyan); text-shadow: none; }
.face-card p { font-size: 0.98rem; color: var(--ink-2); }

.face-links {
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
}
.face-links a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.face-links a .desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.face-links a .arrow {
  margin-left: auto;
  color: var(--red);
  transition: transform 0.2s ease;
}
.face-links a:hover {
  color: var(--cyan);
  background: rgba(63, 212, 255, 0.04);
  padding-left: 0.6rem;
}
.face-links a:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------------------
   NINE DIMENSIONS (home §02)
   ------------------------------------------------------------ */
.dimensions-families {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.dim-family {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dim-family:hover {
  border-color: var(--cyan-line);
  box-shadow: 0 0 28px rgba(63, 212, 255, 0.07);
}

.dim-family h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 0.8rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.dim-family h4 .count { color: var(--red); letter-spacing: 0; }

.dim-list { list-style: none; }
.dim-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.dim-list li:last-child { border-bottom: none; }

.dim-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.dim-name a { color: var(--ink); }
.dim-name a::before { content: "// "; color: var(--red); }
.dim-name a:hover { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }

.dim-q {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-3);
  margin-top: 0.2rem;
}

.explore-link {
  margin-top: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.explore-link a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-line);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, text-shadow 0.2s ease;
}
.explore-link a:hover {
  border-color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan-glow);
}
.explore-link a .arrow { transition: transform 0.18s; display: inline-block; }
.explore-link a:hover .arrow { transform: translateX(3px); }

.practitioner-quote {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.75rem;
  max-width: 62ch;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink-2);
  border-left: 2px solid var(--red);
  background: linear-gradient(90deg, rgba(255, 47, 61, 0.05), transparent 70%);
  box-shadow: inset 1px 0 0 rgba(255, 47, 61, 0.4);
}

/* ------------------------------------------------------------
   PROOF / CASE / STRIP CARDS
   ------------------------------------------------------------ */
.proof-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 760px) {
  .proof-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
}
.home-proof .case {
  border-left: 3px solid var(--red);
  padding: 0.4rem 0 0.4rem 1.5rem;
}
.home-proof .case .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
  display: block;
}
.home-proof .case h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.home-proof .case p { font-size: 0.95rem; color: var(--ink-2); }

.case-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.case-card .case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.case-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}
.case-card p { font-size: 1rem; }

.current-strip .grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 760px) {
  .current-strip .grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
.strip-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.strip-card:hover {
  border-color: var(--cyan-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.strip-card .strip-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.strip-card h4 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}
.strip-card .strip-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule-soft);
}

/* Quiet line — one next step */
.quiet-line {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule-soft);
}
.quiet-line p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-2);
  font-style: italic;
}
.quiet-line p a {
  font-style: normal;
  color: var(--cyan);
  font-weight: 500;
  border-bottom: 1px solid var(--cyan-line);
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s, text-shadow 0.15s;
}
.quiet-line p a:hover { text-shadow: 0 0 14px var(--cyan-glow); border-bottom-color: var(--cyan); }

/* ------------------------------------------------------------
   EXPANDABLE CARDS — situation and dimension cards
   ------------------------------------------------------------ */
.expand-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
details.expand-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color 0.18s, box-shadow 0.18s;
  /* Keep the card's top visible below the sticky nav when main.js
     scrolls an opened card into view (and on #anchor deep links). */
  scroll-margin-top: 92px;
}
details.expand-card[open] {
  border-color: var(--cyan-line);
  box-shadow: 0 0 28px rgba(63, 212, 255, 0.08);
}
details.expand-card summary {
  padding: 1.2rem 3rem 1.2rem 1.5rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
details.expand-card summary::-webkit-details-marker { display: none; }
details.expand-card summary::after {
  content: "+";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
  transition: transform 0.2s;
  line-height: 1;
}
details.expand-card[open] summary::after {
  content: "−";
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
details.expand-card summary .title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
}
details.expand-card summary .title .code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-left: 0.5rem;
  padding: 1px 6px;
  border: 1px solid var(--cyan-line);
  border-radius: 3px;
  background: rgba(63, 212, 255, 0.06);
  vertical-align: 2px;
}
details.expand-card summary .summary-line {
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 300;
}
.expand-body {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.25rem;
  margin-top: 0.25rem;
}
.expand-body .field-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-top: 1rem;
  display: block;
}
.expand-body .field-label:first-child { margin-top: 0; }
.expand-body p {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-top: 0.4rem;
  line-height: 1.6;
}
.expand-body .fear {
  font-style: italic;
  color: var(--ink);
  border-left: 2px solid var(--red);
  padding-left: 0.85rem;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}
.expand-body .dim-tags {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.expand-body .field-label-secondary {
  display: block;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   SITUATION GRID + MODAL (mentorship §01)
   Cards open the full situation card, fetched from
   becoming-viable.html, in a <dialog>.
   ------------------------------------------------------------ */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (max-width: 980px) {
  .situation-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .situation-grid { grid-template-columns: 1fr; }
}
a.situation-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.3rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
a.situation-card::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 1rem;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
  transition: color 0.18s, text-shadow 0.18s;
}
a.situation-card:hover {
  border-color: var(--cyan-line);
  box-shadow: 0 0 24px rgba(63, 212, 255, 0.08);
  transform: translateY(-2px);
}
a.situation-card:hover::after {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}
a.situation-card .sit-icon { color: var(--cyan); }
a.situation-card .name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-right: 1.4rem;
}
a.situation-card .desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--ink-3);
  line-height: 1.5;
}

html.modal-open,
html.modal-open body { overflow: hidden; }

dialog.situation-modal {
  /* Match the width the cards render at inside becoming-viable's content
     column, so the figures read the same in both places. */
  width: min(1080px, calc(100vw - 2rem));
  max-height: min(90vh, 90dvh);
  margin: auto;
  padding: 0;
  background: var(--panel-2);
  border: 1px solid var(--cyan-line);
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(63, 212, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.7);
  color: var(--ink-2);
  overflow: hidden;
}
dialog.situation-modal::backdrop {
  background: rgba(5, 7, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.situation-modal-frame {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.situation-modal-head {
  padding: 1.4rem 3.4rem 1.1rem 1.75rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.situation-modal-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.situation-modal-title .sit-icon { color: var(--cyan); }
.situation-modal-tagline {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-2);
}
.situation-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.situation-modal-close:hover { color: var(--cyan); border-color: var(--cyan-line); }
.situation-modal-body {
  overflow-y: auto;
  padding: 1.4rem 1.75rem 1.6rem;
}
/* The injected card body keeps its interior styles (scoped to
   .expand-body) but sheds the accordion's own padding and rule. */
.situation-modal-body .expand-body {
  padding: 0;
  border-top: none;
  margin-top: 0;
}
.situation-modal-foot {
  padding: 0.9rem 1.75rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: flex-end;
}
.situation-modal-source {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
@media (max-width: 620px) {
  /* Give the figures every pixel a phone has. */
  dialog.situation-modal { width: calc(100vw - 0.75rem); max-height: min(94vh, 94dvh); }
  .situation-modal-head { padding: 1.1rem 3.2rem 0.9rem 1rem; }
  .situation-modal-body { padding: 1rem 1rem 1.2rem; }
  .situation-modal-foot { padding: 0.75rem 1rem; }
}

.card-cta-row {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
}
.card-cta-row .btn .arrow { transition: transform 0.2s; }
.card-cta-row .btn:hover .arrow { transform: translateX(3px); }

/* Method legend (Remaining Viable §02) */
.legend {
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.legend strong {
  color: var(--cyan);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  margin-right: 0.1rem;
  text-shadow: none;
}

/* Measurement list inside dimension cards */
.measure-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.measure-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.measure-list li:last-child { border-bottom: none; }
.measure-list .m-name {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.45;
  flex: 1 1 60%;
  min-width: 0;
}
.measure-list .m-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
  flex-shrink: 0;
}
.measure-list .m-meta .sep { color: var(--ink-3); margin: 0 0.3rem; }
.measure-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-3);
  padding-left: 0.85rem;
  border-left: 2px solid var(--rule);
}
.dim-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-3);
  border-radius: 3px;
  transition: all 0.15s;
}
.dim-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(63, 212, 255, 0.06);
}

/* Family group label */
.family-group { margin-top: 2rem; }
.family-group:first-child { margin-top: 0; }
.family-group .family-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.family-group .family-label .accent { color: var(--cyan); }
.family-group .family-label .bar {
  width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.family-group .family-question {
  font-style: italic;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--ink-2);
  margin-top: -0.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   ENTRANCES
   ------------------------------------------------------------ */
.entrances-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
@media (min-width: 760px) {
  .entrances-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (min-width: 980px) {
  .entrances-grid.three { grid-template-columns: 1fr 1fr 1fr; }
}
.entrance-card {
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.entrance-card:hover {
  border-color: var(--cyan-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.entrance-card .entrance-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.entrance-card h3 { font-size: 1.25rem; font-weight: 500; }
.entrance-card h3 a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink);
}
.entrance-card h3 a:hover { color: var(--cyan); }
.entrance-card h3 a .arrow { color: var(--red); transition: transform 0.15s; }
.entrance-card:hover h3 a .arrow { transform: translateX(3px); }
.entrance-card p { font-size: 0.95rem; }

/* ------------------------------------------------------------
   ENGAGEMENT GRID + NOTE
   ------------------------------------------------------------ */
.eng-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .eng-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1020px) {
  .eng-grid { grid-template-columns: repeat(3, 1fr); }
}
.eng-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.eng-card::before {
  content: "";
  position: absolute;
  left: 0; top: 1.5rem; bottom: 1.5rem;
  width: 2px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  border-radius: 1px;
}
.eng-card:hover {
  border-color: var(--cyan-line);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.eng-card .eng-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--red);
}
.eng-card h4 {
  font-size: 1rem;
  font-weight: 500;
}
.eng-card p { font-size: 0.9rem; line-height: 1.55; }

.engagement-note {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
}
.engagement-note h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.engagement-note p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}
.engagement-note p strong { color: var(--ink); font-weight: 500; }
.engagement-note p a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-line);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.engagement-note p a:hover { border-bottom-color: var(--cyan); }

/* ------------------------------------------------------------
   QUOTES
   ------------------------------------------------------------ */
blockquote {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 300;
  position: relative;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.6rem;
  left: 1.4rem;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--cyan-line);
  pointer-events: none;
}
blockquote .quote-text { position: relative; z-index: 1; display: block; }
blockquote cite {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-3);
}
blockquote cite strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
  text-shadow: none;
}
.quote-row { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 760px) { .quote-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.quote-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
}

/* ------------------------------------------------------------
   INVESTMENT GRID
   ------------------------------------------------------------ */
.invest-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 760px) { .invest-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 760px) {
  .invest-grid.invest-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.invest-item {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.invest-item::before {
  content: "";
  position: absolute;
  left: 0; top: 1.5rem; bottom: 1.5rem;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.invest-item .invest-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 0.85rem;
}
.invest-item .invest-value {
  font-family: var(--font-sans);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.invest-item .invest-value strong { font-weight: 500; color: var(--ink); text-shadow: none; }
.invest-item .invest-note {
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.invest-or {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 2.75rem 0 1.5rem;
}
.invest-or-line {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.invest-or-text {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
a.invest-item-link {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.invest-item-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
a.invest-item-link .arrow {
  display: inline-block;
  margin-left: 0.15rem;
  color: var(--red);
  transition: transform 0.2s ease;
}
a.invest-item-link:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------
   PERSON ROW
   ------------------------------------------------------------ */
.person-row { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 720px) {
  .person-row { grid-template-columns: 0.8fr 1.6fr; column-gap: 3rem; }
}
.person-portrait {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--cyan-line);
  box-shadow: var(--shadow-md);
  background: var(--panel);
}
.person-portrait img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  filter: grayscale(0.35) contrast(1.06) brightness(0.92);
}
.person-text h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.person-text p { margin-bottom: 1rem; font-size: 0.95rem; }
.person-text p:last-child { margin-bottom: 0; }
.person-text strong { color: var(--ink); font-weight: 500; }
.person-side { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.person-row .profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-line);
  padding-bottom: 0.35rem;
  transition: color 0.18s, border-color 0.18s, text-shadow 0.18s;
}
.person-side .profile-link { margin-top: 0.25rem; }
.person-row .profile-link:hover { border-color: var(--cyan); text-shadow: 0 0 14px var(--cyan-glow); }
.person-row .profile-link .arrow { transition: transform 0.18s; }
.person-row .profile-link:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------
   FILTER BAR + FEED
   ------------------------------------------------------------ */
.filter-bar {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 0.5rem;
}
.filter-group-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0.5rem 0 0.25rem;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule-soft);
  padding-bottom: 0.25rem;
}
.filter-group-label:first-of-type { border-top: none; padding-top: 0; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  background: var(--panel-2);
  color: var(--ink-2);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--cyan-line); color: var(--cyan); }
.filter-pill.active {
  background: var(--cyan-faint);
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(63, 212, 255, 0.15);
}
.filter-pill .count {
  font-size: 0.68rem;
  color: var(--ink-3);
}
.filter-pill.active .count { color: var(--cyan-dim); }

.feed { margin-top: 1.5rem; }
.feed-item {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  display: grid;
  gap: 0.5rem;
}
.feed-item:last-child { border-bottom: 1px solid var(--rule); }
.feed-item .meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.feed-item .meta .accent { color: var(--cyan); }
.feed-item h3 {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  font-weight: 500;
}
.feed-item h3 a { color: var(--ink); transition: color 0.15s, text-shadow 0.15s; }
.feed-item h3 a:hover { color: var(--cyan); text-shadow: 0 0 14px var(--cyan-glow); }
.feed-item .snippet {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.feed-item .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  background: var(--panel-2);
  border-radius: 3px;
}
.tag.audience,
.tag.situation,
.tag.concern { color: var(--cyan); border-color: var(--cyan-line); background: rgba(63, 212, 255, 0.06); }
a.tag {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
a.tag:hover { border-color: var(--cyan); background: var(--cyan-faint); color: var(--cyan); }

.glossary-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-line);
  padding-bottom: 1px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s, border-color 0.15s, text-shadow 0.15s;
}
.glossary-link:hover { border-bottom-color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
.glossary-link .arrow { transition: transform 0.18s; }
.glossary-link:hover .arrow { transform: translateX(3px); }
@media (max-width: 640px) {
  .glossary-link { margin-left: 0; width: 100%; padding-top: 0.5rem; border-top: 1px solid var(--rule-soft); border-bottom: none; padding-bottom: 0; }
}
.feed-more {
  margin-top: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 1rem 0;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  background: var(--panel);
}

/* Honest forthcoming band — labels not-yet-published feeds */
.forthcoming-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px dashed var(--cyan-line);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.forthcoming-note strong { color: var(--ink); font-weight: 500; text-shadow: none; }
.forthcoming-note .status-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-soft);
  border: 1px solid var(--red-faint);
  background: rgba(255, 47, 61, 0.06);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  margin-right: 0.6rem;
  vertical-align: 1px;
}

/* ------------------------------------------------------------
   PRE-COMMITMENT BLOCK
   ------------------------------------------------------------ */
.precommit {
  border: 2px solid var(--cyan-line);
  background: var(--panel);
  border-radius: 8px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 1.5rem;
  position: relative;
  box-shadow: 0 0 34px rgba(63, 212, 255, 0.07);
}
.precommit .precommit-label {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  background: linear-gradient(180deg, #ff3b48, #d81f2c);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(255, 47, 61, 0.35);
}
.precommit h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.precommit p {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 0.85rem;
}
.precommit p:last-child { margin-bottom: 0; }
.precommit .signed {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 1rem;
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

/* Soft CTA line */
.soft-line {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 1.0625rem;
  color: var(--ink-2);
  font-style: italic;
}
.soft-line a {
  color: var(--cyan);
  font-weight: 500;
  font-style: normal;
  border-bottom: 1px solid var(--cyan-line);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s, text-shadow 0.15s;
}
.soft-line a:hover { border-bottom-color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }

/* CLOSE section */
.close { text-align: center; }
.close h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  margin: 0 auto 1.25rem;
  width: 100%;
  max-width: none;
  line-height: 1.15;
}
.close h2 strong { font-weight: 500; }
.close h2 .accent { color: var(--cyan); font-weight: 500; text-shadow: 0 0 18px rgba(63, 212, 255, 0.4); }
.close p { max-width: 52ch; margin: 0 auto 2.25rem; font-size: 1.0625rem; }
.close .ctas { justify-content: center; }
.close .signature {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
.self-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.25rem;
}
.self-question {
  border-left: 3px solid var(--red);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red);
  padding: 1.5rem 1.75rem;
  border-radius: 0 8px 8px 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 300;
  box-shadow: var(--shadow-sm);
  font-style: italic;
}
.self-question .q-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--red);
  font-style: normal;
  text-transform: uppercase;
  margin-right: 0.5rem;
  vertical-align: 2px;
}
.self-question strong {
  font-weight: 500;
  color: var(--cyan);
  font-style: normal;
  text-shadow: none;
}

.about-header h1 { text-wrap: wrap; }
.about-header h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}

.narrative p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 1.15rem;
}
.narrative p:last-of-type { margin-bottom: 0; }
.narrative p strong { color: var(--ink); font-weight: 500; }
.narrative p .pull {
  display: block;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.35;
  margin: 0.5rem 0;
}
.narrative p .pull strong { font-weight: 500; color: var(--cyan); text-shadow: 0 0 14px rgba(63, 212, 255, 0.3); }

.theme-line {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.startups-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 720px) { .startups-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.startup-card {
  border: 1px solid var(--rule);
  background: var(--panel);
  border-radius: 8px;
  padding: 1.75rem;
}
.startup-card h4 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.startup-card p { font-size: 0.95rem; }

/* ------------------------------------------------------------
   Playbook PAGE — edition card, TOC, pricing
   ------------------------------------------------------------ */
.edition-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(63, 212, 255, 0.06);
  border: 1px solid var(--cyan-line);
  border-radius: 3px;
  margin-bottom: 1.25rem;
}
.edition-banner .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.toc-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  counter-reset: toc;
}
@media (min-width: 760px) {
  .toc-grid { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
}
.toc-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  counter-increment: toc;
  align-items: flex-start;
}
.toc-item::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
  flex-shrink: 0;
}
.toc-item .toc-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.toc-item h4 {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
}
.toc-item p {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.pricing-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--cyan-line);
  border-radius: 8px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 0 34px rgba(63, 212, 255, 0.07);
}
@media (min-width: 760px) {
  .pricing-card { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; }
}
.pricing-card .price-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-card .price-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.pricing-card .price-amount {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.pricing-card .price-amount sup {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--ink-3);
  vertical-align: 0.6em;
  margin-left: 0.15rem;
}
.pricing-card .price-detail {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.pricing-card .price-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-card .price-action .btn { justify-content: center; }
.pricing-card .price-action .micro {
  font-size: 0.8rem;
  color: var(--ink-3);
  font-style: italic;
}

.editions-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.edition-row {
  display: grid;
  gap: 0.25rem 1.25rem;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  border-left: 3px solid var(--rule);
}
.edition-row.current { border-left-color: var(--cyan); }
@media (min-width: 640px) {
  .edition-row { grid-template-columns: 130px 1fr auto; align-items: center; }
}
.edition-row .edition-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.edition-row .edition-title {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.edition-row .edition-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.edition-row.current .edition-status { color: var(--cyan); }

/* ------------------------------------------------------------
   RESOURCES — page-band method tiles (2x2 timeline)
   ------------------------------------------------------------ */
.page-band .method-tiles {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
}
@media (min-width: 760px) {
  .page-band .method-tiles { grid-template-columns: 1fr 1fr; }
}
.page-band .method-tiles .tile {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.75rem;
}
.page-band .method-tiles .tile::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: -0.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, transparent 100%);
}
@media (min-width: 760px) {
  .page-band .method-tiles .tile:nth-last-child(-n+2) { padding-bottom: 0; }
  .page-band .method-tiles .tile:nth-last-child(-n+2)::before { display: none; }
}
.page-band .method-tiles .tile:last-child { padding-bottom: 0; }
.page-band .method-tiles .tile:last-child::before { display: none; }
.page-band .method-tiles .tile .dot {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(63, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--cyan);
  z-index: 1;
}
.page-band .method-tiles .tile .phase {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}
.page-band .method-tiles .tile h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.page-band .method-tiles .tile p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
}
.page-band .method-tiles .tile p a {
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-line);
}

/* ------------------------------------------------------------
   NEWSLETTER
   ------------------------------------------------------------ */
.subscribe-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background:
    radial-gradient(600px 200px at 20% 50%, rgba(255, 47, 61, 0.05), transparent 70%),
    radial-gradient(600px 200px at 85% 50%, rgba(63, 212, 255, 0.06), transparent 70%),
    var(--bg-2);
}
.subscribe-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.sub-lede h3 {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ink);
}
.sub-note {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 44ch;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--cyan-line);
  border-radius: 4px;
  padding: 0.8rem 1rem;
  min-width: 260px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.subscribe-form input[type="email"]::placeholder { color: var(--ink-3); }
.subscribe-form input[type="email"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(63, 212, 255, 0.18);
}
.subscribe-form button {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, #ff3b48, #d81f2c);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(255, 47, 61, 0.28);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.subscribe-form button:hover {
  box-shadow: 0 0 34px rgba(255, 47, 61, 0.45);
  transform: translateY(-1px);
}
.subscribe-form button .arrow { margin-left: 0.35rem; }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: #030405;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-3);
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2rem;
}

footer .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
}
footer .wordmark .bar {
  width: 18px; height: 2px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}
footer .wordmark:hover { color: var(--cyan); }

.ft-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 0.8rem;
}
.ft-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-3);
  padding: 0.2rem 0;
}
.ft-col a:hover { color: var(--cyan); }

.ft-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.ft-bottom a { color: var(--ink-3); }
.ft-bottom a:hover { color: var(--cyan); }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 480px; margin: 0 auto; }
  .dimensions-families { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: repeat(2, 1fr); }
  footer .wrap > div:first-child { grid-column: 1 / -1; }

  /* Collapse the nav at the same width the hero stacks — between here
     and the phone width the desktop columns get too cramped beside
     the wordmark */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(5, 7, 8, 0.98);
    border-bottom: 1px solid var(--cyan-line);
    padding: 1.5rem var(--pad-x) 2rem;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }
  .nav-links.is-open { display: flex; }
}

@media (max-width: 760px) {
  .faces-grid { grid-template-columns: 1fr; }

  .subscribe-band .wrap { flex-direction: column; align-items: flex-start; }
  .subscribe-form { width: 100%; }
  .subscribe-form input[type="email"] { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
  /* Tighten the gap and shrink the wordmark further so it and the menu
     toggle always fit within the smallest phone widths. */
  .nav-row { gap: 1rem; }
  .nav-toggle { flex-shrink: 0; }
  .wordmark img { width: clamp(160px, 46vw, 220px); }
}

/* ============================================================
   FIGURES — lexicon-driven teaching figures for the public site.
   Added in the public-redesign pass. Each component renders a
   canonical doctrine surface; see curriculum/figures-inventory.md.
   ============================================================ */

/* --- Dual judgement: two cards and a dial (inventory 2.8) --- */
.fig-dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.fig-dual .judgement-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
}
.fig-dual .judgement-label {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--red-faint);
  color: var(--red-soft);
  background: rgba(255, 47, 61, 0.06);
  border-radius: 3px;
  padding: 0.28rem 0.55rem;
  margin-bottom: 0.9rem;
}
.fig-dual .judgement-card.eng .judgement-label {
  border-color: var(--cyan-faint);
  color: var(--cyan);
  background: rgba(63, 212, 255, 0.05);
}
.fig-dual .judgement-q {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.fig-dual .judgement-desc { font-size: 0.92rem; color: var(--ink-2); }
.fig-dual .judgement-addr {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-top: 1px solid var(--rule-soft);
}
.fig-dual .dial {
  align-self: center;
  text-align: center;
  padding: 0 0.25rem;
  max-width: 11rem;
}
.fig-dual .dial svg { display: block; margin: 0 auto 0.6rem; }
.fig-dual .dial-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.6;
}
.fig-dual .dial-note strong { color: var(--cyan); font-weight: 500; }
.ground-statement {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.ground-statement .ground-text {
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 46rem;
  margin: 0 auto;
}
.ground-statement .ground-text strong { color: var(--ink); font-weight: 500; }
.ground-statement .ground-mind {
  display: block;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  width: clamp(110px, 13vw, 160px);
  height: auto;
  filter: drop-shadow(0 0 10px rgba(63, 212, 255, 0.35));
}
.ground-statement .ground-line {
  margin-top: clamp(0.9rem, 2vw, 1.3rem);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.ground-statement .ground-heart {
  margin-top: 0.55rem;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--red-soft);
}
.fig-caption {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  text-align: center;
}
@media (max-width: 760px) {
  .fig-dual { grid-template-columns: 1fr; }
  .fig-dual .dial { padding: 0.5rem 0; max-width: none; }
}

/* --- The four kit moments (inventory 4.3) --- */
.kit-moments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  list-style: none;
  counter-reset: moment;
}
.kit-moments li {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1.1rem 1.1rem;
}
.kit-moments li::after {
  content: "→";
  position: absolute;
  right: -1.05em;
  top: 1.35rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  z-index: 1;
}
.kit-moments li:last-child::after { content: none; }
.kit-moments .moment-icon { color: var(--cyan); margin-bottom: 0.7rem; }
.kit-moments .moment-icon svg { display: block; }
.kit-moments .moment-verb {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.kit-moments .moment-unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0.15rem 0 0.5rem;
}
.kit-moments .moment-title { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 760px) {
  .kit-moments { grid-template-columns: repeat(2, 1fr); }
  .kit-moments li:nth-child(2)::after { content: none; }
}

/* --- Two clocks: short / long (lexicon: one stance, two clocks) --- */
.clock-glyph { vertical-align: -0.18em; margin-right: 0.45em; }
.clock-glyph .face { stroke: currentColor; fill: none; stroke-width: 1.5; }
.clock-glyph .hand { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.clock-glyph .orbit { stroke: currentColor; fill: none; stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.7; }

/* --- Nine-dimensions family map (overview for remaining-viable) --- */
.dim-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
}
.dim-map .map-family {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.dim-map .map-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.dim-map .map-q {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--ink);
  margin: 0.35rem 0 0.8rem;
  line-height: 1.4;
}
.dim-map .map-dims { display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (max-width: 760px) { .dim-map { grid-template-columns: 1fr; } }

/* --- Signal legend: Auto / Asked + the cadence scale --- */
.signal-legend {
  margin-top: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--panel);
  padding: 1.25rem 1.4rem;
}
.signal-legend .legend-row {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  align-items: baseline;
}
.signal-legend .legend-row + .legend-row { border-top: 1px solid var(--rule-soft); }
.signal-legend .legend-key {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}
.signal-legend .legend-key.asked { color: var(--red-soft); }
.signal-legend .legend-def { font-size: 0.92rem; color: var(--ink-2); }
.signal-legend .cadence-scale {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.8;
}
.signal-legend .cadence-scale .tick { color: var(--ink-2); white-space: nowrap; }
.signal-legend .cadence-scale .sep { color: var(--cyan-line); }
.signal-legend .cadence-note {
  flex-basis: 100%;
  margin-top: 0.15rem;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.03em;
}
@media (max-width: 600px) {
  .signal-legend .legend-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* --- Status legend: live / instrumented / pending --- */
.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.status-legend .st { display: flex; align-items: baseline; gap: 0.55rem; }
.status-legend .st-dot {
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  flex: none;
  align-self: center;
}
.status-legend .st-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-legend .st.live .st-dot { background: var(--cyan); box-shadow: 0 0 6px var(--cyan-glow); }
.status-legend .st.live .st-name { color: var(--cyan); }
.status-legend .st.instrumented .st-dot { background: transparent; border: 1.5px solid var(--cyan-dim); }
.status-legend .st.instrumented .st-name { color: var(--cyan-dim); }
.status-legend .st.pending .st-dot { background: transparent; border: 1.5px solid var(--ink-3); }
.status-legend .st.pending .st-name { color: var(--ink-3); }

/* --- Two-tier same-kit figure (next-steps) --- */
.tier-fig {
  display: grid;
  grid-template-columns: 1fr clamp(1.25rem, 4vw, 3rem) auto clamp(1.25rem, 4vw, 3rem) 1fr;
  align-items: center;
  gap: 0;
  margin-top: clamp(2.25rem, 4vw, 3rem);
}
.tier-fig .tier-core {
  text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--cyan-line);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-md);
}
.tier-fig .tier-core .core-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.tier-fig .tier-core .core-sub { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.3rem; }
.tier-fig .tier-branch {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
}
.tier-fig .tier-branch .branch-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tier-fig .tier-branch .branch-price { font-size: 1.15rem; color: var(--ink); margin: 0.25rem 0 0.2rem; }
.tier-fig .tier-branch .branch-price strong { font-weight: 500; }
.tier-fig .tier-branch .branch-note { font-size: 0.85rem; color: var(--ink-2); }
.tier-fig .tier-link {
  width: 100%;
  height: 1px;
  background: var(--cyan-line);
}
.tier-fig-caption-wrap { text-align: center; }
@media (max-width: 760px) {
  .tier-fig { grid-template-columns: 1fr; gap: 0.6rem; }
  .tier-fig .tier-link { width: 1px; height: 1.25rem; justify-self: center; }
}

/* --- Arena strip (index) --- */
.arena-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(11, 15, 20, 0.6);
}
.arena-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 2.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.arena-strip .arena-fact {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.arena-strip .arena-fact strong { color: var(--ink); font-weight: 500; }
.arena-strip .arena-fact .accent { color: var(--cyan); }
.arena-strip .arena-who {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.arena-strip .arena-who a { color: var(--cyan); border-bottom: 1px solid var(--cyan-line); }
@media (max-width: 760px) { .arena-strip .arena-who { margin-left: 0; } }

/* --- Full-width kit card on the home faces grid --- */
.face-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.face-card-wide .face-links { margin-top: 0; }
@media (max-width: 760px) {
  .face-card-wide { grid-template-columns: 1fr; }
  .face-card-wide .face-links { margin-top: 1rem; }
}

/* --- Six-situation icons --- */
.sit-icon {
  vertical-align: -0.2em;
  margin-right: 0.55em;
  color: var(--cyan);
  flex: none;
}

/* --- Situation recognition figures: handoff cliff + siblings (inventory 2.6, 2.21–2.25) --- */
.fig-cliff {
  margin-top: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(5, 7, 8, 0.55);
  padding: 1.1rem 1.1rem 0.6rem;
}
.fig-cliff svg { display: block; width: 100%; height: auto; }
.fig-cliff .fig-caption { text-align: left; margin-top: 0.6rem; font-size: 0.85rem; }
