@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jbm-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jbm-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/jbm-600.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/jbm-700.woff2') format('woff2'); }

:root {
  --bg: #0b0d0e;
  --bg-soft: #111514;
  --bg-panel: #171b1a;
  --bg-warm: #191713;
  --fg: #f5f3e8;
  --fg-mid: #c8c3b7;
  --fg-dim: #8d887d;
  --accent: #73ff83;
  --accent-2: #8bd7ff;
  --accent-3: #c99a45;
  --brand-green: #1f8f55;
  --rule: #2b312f;
  --rule-soft: #202624;
  --light-bg: #eef0e9;
  --light-soft: #eef0e9;
  --light-warm: #eef0e9;
  --light-panel: #eef0e9;
  --light-panel-2: #eef0e9;
  --light-fg: #151a18;
  --light-mid: #4f5b55;
  --light-dim: #6f786f;
  --light-rule: #d6d0c1;
  --light-rule-soft: #e5decd;
  --light-accent: #167a45;
  --light-accent-2: #1b6680;
  --maxw: 1640px;
  --pad: 48px;
  --radius: 8px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(100%, var(--maxw)); margin: 0 auto; padding: 0 var(--pad); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 14, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}
.site-nav .container {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
}
.brand img { width: auto; height: 56px; }
.brand-mark {
  display: inline-flex;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
}
.brand-mark small {
  color: var(--fg-dim);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  margin-top: 4px;
}
.dot { color: var(--accent); }
.twinos-word {
  color: var(--light-accent);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: lowercase;
}
.section.dark .twinos-word,
.hero .twinos-word,
.page-hero .twinos-word,
.site-footer .twinos-word,
.site-nav .twinos-word,
.closing-cta .twinos-word {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}
.nav-links a {
  color: var(--fg-mid);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #061007;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.nav-cta:hover { background: #a0ffa8; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--fg); }

.hero {
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(115, 255, 131, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139, 215, 255, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  min-height: 0;
  padding: 72px var(--pad) 64px;
}
.hero-copy { max-width: 760px; }
.kicker,
.section-kicker,
.eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 18px;
  color: var(--fg);
  font-size: clamp(48px, 4.8vw, 78px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}
.page-hero h1 {
  margin-top: 18px;
  color: var(--fg);
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}
.hero .tagline {
  margin-top: 22px;
  color: var(--accent);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}
.page-hero .tagline {
  margin-top: 22px;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}
.lede {
  margin-top: 24px;
  color: var(--fg-mid);
  font-size: clamp(16.5px, 1.25vw, 18px);
  line-height: 1.55;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.authority-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(245, 243, 232, 0.04);
  color: var(--fg-mid);
  text-decoration: none;
  transition: border-color 160ms, background 160ms, transform 160ms;
  max-width: 100%;
}
.authority-strip:hover,
.authority-strip:focus-visible {
  border-color: var(--accent);
  background: rgba(115, 255, 131, 0.06);
  transform: translateY(-1px);
}
.authority-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}
.authority-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.authority-line {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.authority-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.authority-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 160ms ease;
}
.authority-strip:hover .authority-arrow { transform: translateX(3px); }
@media (max-width: 720px) {
  .authority-strip { padding: 10px 14px 10px 10px; gap: 10px; }
  .authority-line { font-size: 11px; }
  .authority-sub { display: none; }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.btn-primary { background: var(--accent); color: #061007; }
.btn .twinos-word { color: inherit; }
.btn-primary:hover { background: #a0ffa8; }
.btn-ghost { border: 1px solid var(--rule); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.section.alt .btn-ghost,
.section.warm .btn-ghost,
.pitch-strip .btn-ghost { border-color: var(--light-rule); color: var(--light-fg); }
.section.alt .btn-ghost:hover,
.section.warm .btn-ghost:hover { border-color: var(--light-accent); color: var(--light-accent); }
.btn-warm { background: var(--accent-3); color: #120b02; }
.btn-warm:hover { background: #ffd28a; }

.hero-visual {
  position: relative;
  min-height: 475px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}
.hero-scene-stage {
  position: relative;
  min-height: clamp(320px, 30vw, 430px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* Embedded scene iframe — fills the hero-scene-stage; site overlays sit on top via z-index.
   Carries the same elliptical mask the old .stage-frame used, so edges fade into bg. */
.hero-iframe {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 520;
  border: 0;
  background: transparent;
  display: block;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0%, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0%, #000 68%, transparent 100%);
  cursor: zoom-in;
  transition: filter 0.25s ease;
}
.hero-scene-stage:hover .hero-iframe { filter: brightness(1.08); }

.hero-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 13, 14, 0.75);
  border: 1px solid rgba(245, 243, 232, 0.18);
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hero-scene-stage:hover .hero-zoom-hint { opacity: 1; }

body.is-hero-zoomed { overflow: hidden; }
body.is-hero-zoomed .hero-scene-stage.is-zoomed {
  position: fixed;
  inset: 4vh 5vw;
  z-index: 9000;
  min-height: 0;
  background: transparent;
  animation: heroZoomIn 0.32s cubic-bezier(.25, .8, .35, 1) both;
}
body.is-hero-zoomed .hero-scene-stage.is-zoomed .hero-iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  cursor: zoom-out;
  -webkit-mask-image: none;
  mask-image: none;
}
body.is-hero-zoomed .hero-scene-stage.is-zoomed .hero-zoom-hint {
  opacity: 1;
  background: rgba(11, 13, 14, 0.9);
  color: var(--accent);
}
body.is-hero-zoomed::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(6, 8, 9, 0.88);
  backdrop-filter: blur(6px);
  animation: heroBackdropIn 0.32s ease both;
}
@keyframes heroZoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes heroBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-scene-stage::before,
.hero-scene-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-scene-stage::before {
  inset: -14% -8% -18%;
  background:
    radial-gradient(circle at 72% 42%, rgba(115, 255, 131, 0.11), transparent 28%),
    linear-gradient(90deg, transparent, rgba(115, 255, 131, 0.06) 48%, transparent 74%);
  opacity: 0.75;
}

.hero-scene-stage::after {
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 86%, var(--bg) 100%);
  opacity: 0.9;
}

.hero-scene-stage .stage-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.hero-scene-stage .scene-grid {
  display: block;
  width: 100%;
}

.hero-scene-stage .stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 520;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0%, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0%, #000 68%, transparent 100%);
}

.hero-scene-stage .stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 520px;
  overflow: hidden;
  transform-origin: top left;
  background: transparent;
}

.hero-scene-stage .scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-scene-stage .scene.active {
  opacity: 1;
}

.hero-scene-stage .scene .layer,
.hero-scene-stage .scene img,
.hero-scene-stage .scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-scene-stage .substep,
.hero-scene-stage .controls,
.hero-scene-stage .narrative-panel,
.hero-scene-stage .click-layer,
.hero-scene-stage .zoom-overlay {
  display: none !important;
}

.hero-scene-stage .factory-bg {
  opacity: 0.58;
  filter: grayscale(1) invert(1) saturate(0.7) brightness(1.55) contrast(0.74);
  mix-blend-mode: screen;
}

.hero-scene-stage .factory-logo {
  inset: auto;
  object-fit: contain;
}

.hero-scene-stage .factory-overlays {
  mix-blend-mode: screen;
  opacity: 0.78;
}

.hero-scene-stage .container-layer {
  opacity: 0.96;
}

.hero-scene-stage .truck-arrive {
  z-index: 3;
  opacity: 0;
  transform-origin: 50% 50%;
  filter: grayscale(1) invert(1) saturate(0.5) brightness(0.95) contrast(0.72);
  mix-blend-mode: screen;
}

.hero-scene-stage .shell,
.hero-scene-stage .equip,
.hero-scene-stage .lbl {
  transform-origin: 0 0;
  transform-box: view-box;
  opacity: 0;
}

.hero-scene-stage .shell .tint,
.hero-scene-stage .equip .tint {
  transition: fill-opacity 0.6s ease, stroke 0.6s ease, fill 0.6s ease;
}

.hero-scene-stage .shell.in-factory .tint,
.hero-scene-stage .equip.in-factory .tint {
  fill-opacity: 0.16;
}

.hero-scene-stage svg.layer [fill="#f5f3ec"],
.hero-scene-stage svg.layer [fill="#eef0e9"],
.hero-scene-stage svg.layer [fill="#e5e9e2"],
.hero-scene-stage svg.layer [fill="#efe8d6"] {
  fill: rgba(245, 243, 232, 0.025) !important;
}

.hero-scene-stage svg.layer [fill="#fffdfa"],
.hero-scene-stage svg.layer [fill="#f7f1df"],
.hero-scene-stage svg.layer [fill="#f3ecd9"],
.hero-scene-stage svg.layer [fill="#eadfbe"] {
  fill: rgba(245, 243, 232, 0.055) !important;
}

.hero-scene-stage svg.layer [fill="#aeb8b1"],
.hero-scene-stage svg.layer [fill="#8f9a92"],
.hero-scene-stage svg.layer [fill="#8b968f"],
.hero-scene-stage svg.layer [fill="#6f7a74"],
.hero-scene-stage svg.layer [fill="#4f5b55"] {
  fill: rgba(200, 195, 183, 0.32) !important;
}

.hero-scene-stage svg.layer [fill="#7f9a75"],
.hero-scene-stage svg.layer [fill="#6f8c64"],
.hero-scene-stage svg.layer [fill="#b7c654"],
.hero-scene-stage svg.layer [fill="#c7d400"] {
  fill: rgba(115, 255, 131, 0.18) !important;
}

.hero-scene-stage svg.layer [stroke="#1a1a1a"],
.hero-scene-stage svg.layer [stroke="#151a18"],
.hero-scene-stage svg.layer [stroke="#1f2924"] {
  stroke: rgba(245, 243, 232, 0.7) !important;
}

.hero-scene-stage svg.layer [stroke="#888"],
.hero-scene-stage svg.layer [stroke="#555"],
.hero-scene-stage svg.layer [stroke="#4f5b55"],
.hero-scene-stage svg.layer [stroke="#6f7a74"],
.hero-scene-stage svg.layer [stroke="#8b968f"],
.hero-scene-stage svg.layer [stroke="#b5beb7"] {
  stroke: rgba(200, 195, 183, 0.42) !important;
}

.hero-scene-stage svg.layer [stroke="#7f9a75"],
.hero-scene-stage svg.layer [stroke="#6f8c64"],
.hero-scene-stage svg.layer [stroke="#c7d400"] {
  stroke: rgba(115, 255, 131, 0.42) !important;
}

.hero-scene-stage svg.layer text,
.hero-scene-stage svg.layer [fill="#1a1a1a"],
.hero-scene-stage svg.layer [fill="#555"],
.hero-scene-stage svg.layer [fill="#888"],
.hero-scene-stage svg.layer [fill="#151a18"] {
  fill: rgba(245, 243, 232, 0.72) !important;
}

.hero-scene-stage .container-layer .shell .tint {
  fill: rgba(245, 243, 232, 0.12) !important;
  stroke: rgba(245, 243, 232, 0.7) !important;
}

.hero-scene-stage .container-layer .equip .tint {
  fill: rgba(115, 255, 131, 0.14) !important;
  stroke: rgba(115, 255, 131, 0.42) !important;
}

.asset-yard {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(139, 215, 255, 0.12), transparent 45%),
    var(--bg-panel);
}
.asset-yard .background {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  opacity: 0.32;
}
.asset-yard .asset {
  position: absolute;
  width: 38%;
  max-width: 250px;
}
.asset-yard .ehouse { left: 7%; bottom: 18%; width: 58%; max-width: 390px; }
.asset-yard .bess { right: 8%; bottom: 28%; }
.asset-yard .pump { right: 15%; bottom: 9%; width: 30%; }
.asset-yard .substation { left: 13%; top: 8%; width: 24%; opacity: 0.82; }
.visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: rgba(11, 13, 14, 0.86);
  border-radius: 6px;
  overflow: hidden;
}
.visual-caption span {
  padding: 12px 14px;
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  border-right: 1px solid var(--rule);
}
.visual-caption span:last-child { border-right: 0; }

.pitch-strip {
  background: var(--light-warm);
  border-bottom: 1px solid var(--light-rule);
  padding: 30px 0;
}
.pitch-strip blockquote {
  color: var(--light-fg);
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.pitch-strip blockquote::before { content: '"'; color: var(--accent-3); }
.pitch-strip blockquote::after { content: '"'; color: var(--accent-3); }

.section {
  padding: 90px 0;
  background: var(--light-bg);
  color: var(--light-fg);
  border-bottom: 1px solid var(--light-rule);
}
.section.alt { background: var(--light-soft); }
.section.warm { background: var(--light-warm); }
.section.dark {
  background: var(--bg);
  color: var(--fg);
  border-bottom-color: var(--rule);
}
.section-header {
  max-width: 980px;
  margin-bottom: 42px;
}
.section h2 {
  margin-top: 14px;
  color: var(--light-fg);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}
.section-lede {
  margin-top: 18px;
  color: var(--light-mid);
  font-size: 19px;
  line-height: 1.55;
}
.section .section-kicker,
.section .eyebrow,
.section .num,
.section .pill,
.section .more {
  color: var(--light-accent);
}
.section .sub {
  color: var(--light-accent-2);
}
.section.dark h2 {
  color: var(--fg);
}
.section.dark .section-lede {
  color: var(--fg-mid);
}
.section.dark .section-kicker,
.section.dark .eyebrow,
.section.dark .num,
.section.dark .pill {
  color: var(--accent);
}
.section.dark .sub {
  color: var(--accent-2);
}
.section.dark .more {
  color: var(--fg-dim);
}

.proof-grid,
.module-grid,
.twins-grid,
.thesis-grid,
.practice-grid,
.interest-grid,
.persona-grid,
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.proof-card,
.module-card,
.twin-card,
.thesis-card,
.practice-card,
.persona-card,
.journey-step,
.contact-block {
  border: 1px solid var(--light-rule);
  border-radius: var(--radius);
  background: var(--light-panel);
  color: var(--light-fg);
}
.proof-card,
.module-card,
.twin-card,
.thesis-card,
.practice-card,
.persona-card,
.journey-step {
  min-height: 238px;
  padding: 28px;
}
.proof-card h3,
.module-card h3,
.twin-card h3,
.thesis-card h3,
.practice-card h3,
.persona-card h3 {
  color: var(--light-fg);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}
.proof-card p,
.module-card p,
.twin-card p,
.thesis-card p,
.practice-card p,
.persona-card p,
.journey-step p {
  margin-top: 12px;
  color: var(--light-mid);
  font-size: 15px;
  line-height: 1.55;
}
.num,
.sub,
.pill,
.more {
  display: inline-flex;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
.num { margin-bottom: 14px; }
.sub { margin-top: 10px; color: var(--accent-2); }
.more { margin-top: 20px; color: var(--fg-dim); }
a.twin-card:hover,
a.module-card:hover,
a.proof-card:hover {
  border-color: var(--light-accent);
  transform: translateY(-2px);
}
.section.dark .proof-card,
.section.dark .module-card,
.section.dark .twin-card,
.section.dark .thesis-card,
.section.dark .practice-card,
.section.dark .persona-card,
.section.dark .journey-step,
.section.dark .contact-block {
  border-color: var(--rule);
  background: var(--bg-panel);
  color: var(--fg);
}
.section.dark .proof-card h3,
.section.dark .module-card h3,
.section.dark .twin-card h3,
.section.dark .thesis-card h3,
.section.dark .practice-card h3,
.section.dark .persona-card h3,
.section.dark .journey-step strong {
  color: var(--fg);
}
.section.dark .proof-card p,
.section.dark .module-card p,
.section.dark .twin-card p,
.section.dark .thesis-card p,
.section.dark .practice-card p,
.section.dark .persona-card p,
.section.dark .journey-step p {
  color: var(--fg-mid);
}
.section.dark a.twin-card:hover,
.section.dark a.module-card:hover,
.section.dark a.proof-card:hover {
  border-color: var(--accent);
}
.module-card,
.twin-card,
.proof-card { transition: border-color 160ms, transform 160ms; }
.module-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 20px;
  background: #f5f3ec;
  border-radius: 6px;
  border: 1px solid var(--rule-soft);
}
.practice-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  margin-bottom: 20px;
  background: #f5f3ec;
  border-radius: 6px;
  border: 1px solid var(--rule-soft);
}
.poster-line {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--light-rule);
  color: var(--light-accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.offer-points {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.offer-points div {
  padding: 12px 13px;
  border: 1px solid var(--light-rule-soft);
  border-radius: 6px;
  background: var(--light-panel-2);
}
.section.dark .offer-points div {
  border-color: var(--rule-soft);
  background: rgba(11, 13, 14, 0.42);
}
.section.dark .offer-points span,
.section.dark .journey-step span {
  color: var(--accent);
}
.section.dark .offer-points p {
  color: var(--fg-mid);
}
.section.dark .poster-line {
  border-top-color: var(--rule);
  color: var(--accent-2);
}
.offer-points span,
.journey-step span {
  display: inline-flex;
  color: var(--light-accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}
.offer-points p {
  margin-top: 6px;
  color: var(--light-mid);
  font-size: 14px;
  line-height: 1.45;
}
.journey-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.journey-step {
  min-height: 190px;
}
.journey-step strong {
  display: block;
  margin-top: 12px;
  color: var(--light-fg);
  font-size: 22px;
  line-height: 1.2;
}

/* ── Lifecycle ribbon (Specification → Operation) ─────────────────── */
.lifecycle {
  --band-before: var(--light-accent);
  --band-handover: var(--light-accent-2);
  --band-operation: var(--accent-3);
  margin-top: 8px;
}
.section.dark .lifecycle {
  --band-before: var(--accent);
  --band-handover: var(--accent-2);
  --band-operation: var(--accent-3);
}
.lifecycle-bands {
  display: grid;
  grid-template-columns: 2fr 4fr 2fr;
  gap: 4px;
  margin-bottom: 14px;
}
.lifecycle-band {
  position: relative;
  padding: 10px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--light-fg);
  background: rgba(22, 122, 69, 0.08);
  border-left: 3px solid var(--band-before);
}
.section.dark .lifecycle-band { color: var(--fg); background: rgba(115, 255, 131, 0.05); }
.lifecycle-band--handover { background: rgba(27, 102, 128, 0.08); border-left-color: var(--band-handover); }
.section.dark .lifecycle-band--handover { background: rgba(139, 215, 255, 0.05); }
.lifecycle-band--operation { background: rgba(201, 154, 69, 0.10); border-left-color: var(--band-operation); }
.section.dark .lifecycle-band--operation { background: rgba(201, 154, 69, 0.08); }

.lifecycle-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 18px 0 22px;
}
.lifecycle-axis {
  position: absolute;
  left: 0; right: 0; top: 30px;
  width: 100%;
  height: 2px;
  pointer-events: none;
  overflow: visible;
}
.lifecycle-axis line {
  stroke: var(--light-rule);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.section.dark .lifecycle-axis line { stroke: var(--rule); }
.lifecycle.visible .lifecycle-axis line {
  animation: lifecycle-draw 1200ms cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes lifecycle-draw { to { stroke-dashoffset: 0; } }

.lifecycle-tick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  cursor: pointer;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.lifecycle.visible .lifecycle-tick {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(140ms * var(--step, 0) + 200ms);
}
.lifecycle-tick[data-step="0"] { --step: 0; }
.lifecycle-tick[data-step="1"] { --step: 1; }
.lifecycle-tick[data-step="2"] { --step: 2; }
.lifecycle-tick[data-step="3"] { --step: 3; }
.lifecycle-tick[data-step="4"] { --step: 4; }
.lifecycle-tick[data-step="5"] { --step: 5; }
.lifecycle-tick[data-step="6"] { --step: 6; }
.lifecycle-tick[data-step="7"] { --step: 7; }

.lifecycle-tick::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 2px solid var(--band-before);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.section.dark .lifecycle-tick::before { background: var(--bg); }
.lifecycle-tick[data-band="handover"]::before { border-color: var(--band-handover); }
.lifecycle-tick[data-band="operation"]::before { border-color: var(--band-operation); }
.lifecycle-tick:hover::before,
.lifecycle-tick:focus-visible::before {
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(22, 122, 69, 0.10);
}
.lifecycle-tick[aria-selected="true"]::before {
  background: var(--band-before);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(22, 122, 69, 0.15);
}
.lifecycle-tick[data-band="handover"][aria-selected="true"]::before {
  background: var(--band-handover);
  box-shadow: 0 0 0 6px rgba(27, 102, 128, 0.18);
}
.lifecycle-tick[data-band="operation"][aria-selected="true"]::before {
  background: var(--band-operation);
  box-shadow: 0 0 0 6px rgba(201, 154, 69, 0.18);
}
.lifecycle-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--light-dim);
  letter-spacing: 0.05em;
}
.section.dark .lifecycle-num { color: var(--fg-dim); }
.lifecycle-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--light-fg);
  line-height: 1.2;
}
.section.dark .lifecycle-label { color: var(--fg); }
.lifecycle-tick[aria-selected="true"] .lifecycle-num,
.lifecycle-tick[aria-selected="true"] .lifecycle-label { color: var(--band-before); }
.lifecycle-tick[data-band="handover"][aria-selected="true"] .lifecycle-num,
.lifecycle-tick[data-band="handover"][aria-selected="true"] .lifecycle-label { color: var(--band-handover); }
.lifecycle-tick[data-band="operation"][aria-selected="true"] .lifecycle-num,
.lifecycle-tick[data-band="operation"][aria-selected="true"] .lifecycle-label { color: var(--band-operation); }

.lifecycle-panel {
  margin-top: 8px;
  padding: 26px 28px;
  border: 1px solid var(--light-rule);
  border-radius: var(--radius);
  background: var(--light-panel);
  min-height: 148px;
}
.section.dark .lifecycle-panel { border-color: var(--rule); background: var(--bg-panel); }
.lifecycle-panel-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--light-accent);
  margin-bottom: 10px;
}
.section.dark .lifecycle-panel-kicker { color: var(--accent); }
.lifecycle-panel-title {
  font-size: 28px;
  line-height: 1.15;
  color: var(--light-fg);
  margin-bottom: 8px;
}
.section.dark .lifecycle-panel-title { color: var(--fg); }
.lifecycle-panel-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--light-mid);
  max-width: 760px;
}
.section.dark .lifecycle-panel-body { color: var(--fg-mid); }

@media (max-width: 720px) {
  .lifecycle-bands { display: none; }
  .lifecycle-track {
    grid-template-columns: repeat(8, 96px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 18px 4px 22px;
    -webkit-overflow-scrolling: touch;
  }
  .lifecycle-tick { scroll-snap-align: center; }
  .lifecycle-axis { left: 4px; right: 4px; width: calc(100% - 8px); }
  .lifecycle-panel { padding: 22px; }
  .lifecycle-panel-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .lifecycle-axis line { stroke-dashoffset: 0 !important; animation: none !important; }
  .lifecycle-tick { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lifecycle-tick::before { transition: none !important; }
}

/* ── Family: featured card + thumbnail strip ─────────────────────── */
.family {
  display: grid;
  gap: 28px;
}
.family-feature {
  border: 1px solid var(--light-rule);
  border-radius: var(--radius);
  background: var(--light-panel);
  overflow: hidden;
}
.section.dark .family-feature { border-color: var(--rule); background: var(--bg-panel); }
.family-feature-link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms;
}
.family-feature-media {
  background: #f5f3ec;
  border-right: 1px solid var(--light-rule-soft);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.section.dark .family-feature-media { border-right-color: var(--rule-soft); }
.family-feature-media img {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  transition: opacity 260ms ease, transform 320ms ease;
}
.family-feature.is-swapping .family-feature-media img,
.family-feature.is-swapping .family-feature-body > * {
  opacity: 0;
  transform: translateY(4px);
}
.family-feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  gap: 14px;
}
.family-feature-body > * { transition: opacity 260ms ease, transform 320ms ease; }
.family-feature-body .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--light-accent);
}
.section.dark .family-feature-body .num { color: var(--accent); }
.family-feature-body h3 {
  font-size: 32px;
  line-height: 1.15;
  color: var(--light-fg);
}
.section.dark .family-feature-body h3 { color: var(--fg); }
.family-feature-body p {
  color: var(--light-mid);
  font-size: 17px;
  line-height: 1.55;
  max-width: 520px;
}
.section.dark .family-feature-body p { color: var(--fg-mid); }
.family-feature-body .more {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--light-accent);
  margin-top: 4px;
}
.section.dark .family-feature-body .more { color: var(--accent); }
.family-feature-link:hover { border-color: var(--light-accent); }
.family-feature-link:hover .more::after { content: " →"; }

.family-thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.family-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 10px 12px;
  border: 1px solid var(--light-rule);
  border-radius: var(--radius);
  background: var(--light-panel);
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
}
.section.dark .family-thumb { border-color: var(--rule); background: var(--bg-panel); }
.family-thumb img {
  width: 100%;
  height: 60px;
  object-fit: contain;
}
.family-thumb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--light-mid);
  letter-spacing: 0.02em;
}
.section.dark .family-thumb-label { color: var(--fg-mid); }
.family-thumb:hover,
.family-thumb:focus-visible {
  border-color: var(--light-accent);
  transform: translateY(-2px);
}
.family-thumb[aria-selected="true"] {
  border-color: var(--light-accent);
  background: rgba(22, 122, 69, 0.06);
}
.section.dark .family-thumb[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(115, 255, 131, 0.06);
}
.family-thumb[aria-selected="true"] .family-thumb-label {
  color: var(--light-accent);
}
.section.dark .family-thumb[aria-selected="true"] .family-thumb-label {
  color: var(--accent);
}

@media (max-width: 960px) {
  .family-feature-link { grid-template-columns: 1fr; }
  .family-feature-media { min-height: 240px; padding: 24px; border-right: 0; border-bottom: 1px solid var(--light-rule-soft); }
  .section.dark .family-feature-media { border-bottom-color: var(--rule-soft); }
  .family-feature-body { padding: 28px; }
  .family-feature-body h3 { font-size: 26px; }
}
@media (max-width: 720px) {
  .family-thumbs {
    grid-template-columns: repeat(7, 28%);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .family-thumb { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .family-feature.is-swapping .family-feature-media img,
  .family-feature.is-swapping .family-feature-body > * { opacity: 1; transform: none; }
  .family-feature-body > *,
  .family-feature-media img,
  .family-thumb { transition: none; }
}

@media (min-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(340px, 0.36fr) minmax(0, 0.64fr);
    gap: 40px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .hero-copy {
    max-width: 560px;
  }
  .persona-grid,
  .journey-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.carousel-ready {
  display: block;
}
.carousel-track {
  max-width: 1240px;
  margin: 0 auto;
}
.carousel-slide {
  display: none;
}
.carousel-slide.active {
  display: block;
}
.carousel-ready .module-card,
.carousel-ready .proof-card {
  min-height: 0;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--light-rule);
  border-radius: 50%;
  background: var(--light-panel);
  color: var(--light-fg);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
}
.carousel-arrow:hover,
.carousel-dot:hover {
  border-color: var(--light-accent);
}
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--light-rule);
  border-radius: 50%;
  background: transparent;
}
.carousel-dot.active {
  width: 28px;
  border-radius: 999px;
  border-color: var(--light-accent);
  background: var(--light-accent);
}
.section.dark .carousel-arrow {
  border-color: var(--rule);
  background: var(--bg-panel);
  color: var(--fg);
}
.section.dark .carousel-dot {
  border-color: var(--rule);
}
.section.dark .carousel-arrow:hover,
.section.dark .carousel-dot:hover {
  border-color: var(--accent);
}
.section.dark .carousel-dot.active {
  border-color: var(--accent);
  background: var(--accent);
}
.interest-grid span {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--light-rule);
  border-radius: var(--radius);
  background: var(--light-panel);
  color: var(--light-fg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.section-header.compact {
  margin-top: 42px;
  margin-bottom: 24px;
}
.section-header.compact h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}
.firm-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.discipline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.discipline-tags li {
  padding: 8px 14px;
  border: 1px solid var(--light-rule);
  border-radius: 999px;
  background: var(--light-panel);
  color: var(--light-fg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.section.dark .discipline-tags li,
.section.warm .discipline-tags li {
  border-color: var(--light-rule);
  background: rgba(255,255,255,0.5);
  color: var(--light-fg);
}
.firm-note {
  color: var(--light-mid);
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
  padding-left: 14px;
  border-left: 3px solid var(--light-accent);
}
.firm-cta {
  align-self: flex-start;
}

.principle-list {
  display: grid;
  gap: 14px;
}
.principle-list li {
  padding: 18px 20px;
  border-left: 3px solid var(--light-accent);
  background: var(--light-panel);
  color: var(--light-mid);
}
.principle-list strong { color: var(--light-fg); }
.section.dark .principle-list li {
  border-left-color: var(--accent);
  background: var(--bg-panel);
  color: var(--fg-mid);
}
.section.dark .principle-list strong {
  color: var(--fg);
}

.page-hero {
  padding: 88px 0 58px;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(90deg, rgba(115, 255, 131, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 184, 96, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto;
}
.page-hero h1 { font-size: clamp(44px, 7vw, 88px); }
.page-hero .lede { max-width: 940px; }

.twin-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.twin-section:nth-of-type(odd) { background: var(--bg-soft); }
.twin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: start;
}
.twin-section h2 {
  color: var(--fg);
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.tag {
  margin-top: 12px;
  color: var(--accent);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0;
}
.desc {
  margin-top: 18px;
  color: var(--fg-mid);
  font-size: 17px;
  line-height: 1.58;
}
.ends-heading {
  margin-bottom: 18px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.ends-list {
  display: grid;
  gap: 14px;
}
.ends-list li {
  position: relative;
  padding-left: 26px;
  color: var(--fg);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.28;
}
.ends-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.statement {
  border: 1px solid var(--light-rule);
  border-radius: var(--radius);
  background: var(--light-panel);
  padding: 34px;
}
.statement p {
  color: var(--light-mid);
  font-size: 20px;
  line-height: 1.55;
}
.statement strong { color: var(--light-fg); }
.section.dark .statement {
  border-color: var(--rule);
  background: var(--bg-panel);
}
.section.dark .statement p {
  color: var(--fg-mid);
}
.section.dark .statement strong {
  color: var(--fg);
}

.contact-block {
  padding: 34px;
}
.contact-block .label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.contact-block .value {
  margin-top: 10px;
  color: var(--fg);
  font-size: 20px;
  font-weight: 700;
}
.contact-block p {
  margin-top: 14px;
  color: var(--fg-mid);
}

.contact-frame-page {
  min-height: calc(100vh - 72px);
  background: #fff;
}
.contact-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 72px);
  border: 0;
  background: #fff;
}

.closing-cta {
  padding: 88px 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.closing-cta h2 {
  color: var(--fg);
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}
.closing-cta p {
  max-width: 780px;
  margin: 18px auto 30px;
  color: var(--fg-mid);
  font-size: 18px;
}

.site-footer {
  padding: 46px 0 38px;
  background: var(--bg-soft);
  color: var(--fg-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--fg-mid); }
.site-footer a:hover { color: var(--accent); }

.embed-mode .site-nav,
.embed-mode .site-footer { display: none; }
.embed-mode-root { scroll-padding-top: 0; }
.embed-mode .hero-grid { min-height: 0; }
.embed-mode .page-hero { padding-top: 58px; }
.embed-mode .contact-frame-page,
.embed-mode .contact-frame {
  min-height: 100vh;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

::selection { background: var(--accent); color: #061007; }

@media (max-width: 960px) {
  :root { --pad: 28px; }
  .hero-grid,
  .split,
  .twin-layout {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding-top: 64px;
  }
  .hero-scene-stage {
    min-height: clamp(300px, 54vw, 420px);
  }
  .hero-scene-stage .stage-frame {
    max-width: 920px;
  }
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  /* When the drawer is open, let the nav grow vertically and stack the
     menu list + CTA in normal flow. Avoids the previous absolute-positioned
     drawer where the CTA's hard-coded `top` collided with the menu items. */
  .site-nav.open .container {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    row-gap: 0;
    padding-bottom: 22px;
  }
  .site-nav.open .nav-links {
    order: 3;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 0;
    gap: 16px;
    background: transparent;
    border-bottom: 0;
  }
  .site-nav.open .nav-cta {
    order: 4;
    flex-basis: 100%;
    display: inline-flex;
    align-self: flex-start;
    width: max-content;
    margin-top: 18px;
  }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .site-nav .container { height: 82px; }
  .brand { gap: 14px; }
  .brand img { height: 44px; }
  .brand-mark { font-size: 22px; }
  .hero-grid { padding-top: 50px; padding-bottom: 54px; }
  .hero h1,
  .page-hero h1 { font-size: clamp(42px, 14vw, 64px); }
  .hero-visual { min-height: 360px; }
  .hero-scene-stage {
    min-height: clamp(250px, 58vw, 340px);
    margin-top: 8px;
  }
  .visual-caption { grid-template-columns: 1fr; }
  .visual-caption span { border-right: 0; border-bottom: 1px solid var(--rule); }
  .visual-caption span:last-child { border-bottom: 0; }
  .asset-yard .ehouse { left: 2%; width: 70%; }
  .asset-yard .bess { right: 2%; width: 44%; }
  .asset-yard .pump { right: 12%; width: 38%; }
  .section,
  .twin-section,
  .closing-cta { padding: 64px 0; }
  .proof-card,
  .module-card,
  .twin-card,
  .thesis-card,
  .practice-card,
  .persona-card,
  .journey-step,
  .statement,
  .contact-block { padding: 22px; }
  .practice-card img { height: 160px; }
  .ends-list li { font-size: 19px; }
}

/* ── Family chip nav (sticky) ───────────────────────────────────── */
.family-chip-nav {
  position: sticky;
  top: 96px;
  z-index: 20;
  background: rgba(11, 13, 14, 0.92);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}
.family-chip-nav ol {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  list-style: none;
}
.family-chip-nav a {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color 160ms, color 160ms, background 160ms;
}
.family-chip-nav a:hover,
.family-chip-nav a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Family detail cards ────────────────────────────────────────── */
.family-detail-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.family-detail {
  scroll-margin-top: 160px;
  padding: 28px 28px 32px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-panel);
}
.family-detail-head {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule-soft);
}
.family-detail-head .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.family-detail-head h2 {
  margin: 8px 0 4px;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  color: var(--fg);
}
.family-detail-head .sub {
  color: var(--fg-mid);
  font-size: 15px;
  line-height: 1.5;
}
.family-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.family-detail-diagram {
  position: sticky;
  top: 168px;
  margin: 0;
  padding: 18px 22px 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #f5f3ec;
}
.diagram-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 3px;
  border: 1px solid rgba(21, 26, 24, 0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.5);
}
.diagram-tab {
  appearance: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4f5b55;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}
.diagram-tab:hover { color: #167a45; }
.diagram-tab.is-active {
  background: #151a18;
  color: #f5f3ec;
}
.diagram-views {
  position: relative;
  width: 100%;
}
.family-detail-diagram .diagram-view {
  width: 100%;
  height: auto;
  display: none;
  margin: 0 auto;
}
.family-detail-diagram .diagram-view.is-active { display: block; }
.family-detail-diagram figcaption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(21, 26, 24, 0.18);
  color: #4f5b55;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}
.family-detail-summary {
  color: var(--fg-mid);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.offer-points-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}
.offer-points-list li {
  padding: 12px 14px;
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  background: rgba(11, 13, 14, 0.4);
}
.offer-points-list span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.offer-points-list p {
  color: var(--fg-mid);
  font-size: 14px;
  line-height: 1.5;
}

.family-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.spec-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.spec-block ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.spec-block ul li {
  position: relative;
  padding-left: 12px;
  color: var(--fg-mid);
  font-size: 13px;
  line-height: 1.45;
}
.spec-block ul li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}
.spec-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
}
.spec-table dt {
  color: var(--fg-dim);
  font-weight: 600;
}
.spec-table dd {
  color: var(--fg);
  margin: 0;
}
.spec-standards li::before { content: "§"; }

.family-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}
.family-cta-row .btn { padding: 11px 18px; font-size: 13px; }

@media (max-width: 1080px) {
  .family-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .family-detail-diagram { position: static; }
  .family-spec { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .family-chip-nav { top: 76px; }
  .family-detail { padding: 22px 18px 24px; scroll-margin-top: 140px; }
  .family-detail-list { gap: 36px; }
}
