﻿:root {
  --ink: #050505;
  --muted: #626262;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #d8d8d8;
  --forest: #111111;
  --mint: #f3f3f3;
  --coral: #2a2a2a;
  --amber: #c8c8c8;
  --sky: #3f3f3f;
  --violet: #555555;
  --danger: #222222;
  --blueprint: #1f1f1f;
  --research: #2b2b2b;
  --history: #3a3a3a;
  --behavior: #444444;
  --model: #555555;
  --graph: rgba(0, 0, 0, 0.045);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: rgba(230, 245, 232, 0.95);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 148px;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(31, 42, 36, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(31, 42, 36, 0.014) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(239, 189, 79, 0.1), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(75, 144, 207, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(252,251,244,0.9));
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--forest), var(--sky), var(--coral));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 251, 247, 0.97);
  border-color: rgba(23, 33, 28, 0.22);
  box-shadow: 0 14px 40px rgba(23, 33, 28, 0.08);
}

.site-header.is-scrolled::after {
  transform: scaleX(1);
}

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  animation: navDropIn 520ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
  animation: brandBeat 4.4s ease-in-out infinite;
}

.brand-mark span {
  width: 14px;
  height: 17px;
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  position: relative;
}

.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  height: 3px;
  background: var(--ink);
}

.brand-mark span::before {
  top: 3px;
}

.brand-mark span::after {
  bottom: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.nav-links a {
  position: relative;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: clamp(0.74rem, 0.8vw, 0.86rem);
  font-weight: 760;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #f2f2f2;
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 720;
  line-height: 1.08;
  box-shadow: 2px 2px 0 rgba(31, 42, 36, 0.88);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(31, 42, 36, 0.88);
}

.btn.primary {
  background: var(--forest);
  color: #fff;
}

.btn.coral {
  background: var(--coral);
  color: #fff;
}

.btn.ghost {
  border-color: var(--line);
  box-shadow: none;
  color: var(--muted);
}

.btn.ghost:hover {
  box-shadow: none;
  background: #f2f2f2;
  color: var(--ink);
}

.btn.icon-only {
  width: 44px;
  padding: 0;
  font-size: 1.05rem;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section.tight {
  padding: 56px 0;
}

.section-motion {
  position: relative;
  overflow: clip;
}

.section-motion::before {
  content: "";
  position: absolute;
  left: max(16px, calc((100% - 1180px) / 2));
  top: 0;
  width: 2px;
  height: 0;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.14);
  transition: height 700ms ease;
  pointer-events: none;
}

.section-motion.is-current::before {
  height: 100%;
}

.section-motion::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 107, 79, 0.42), transparent);
  transform: scaleX(0);
  transition: transform 680ms ease;
  pointer-events: none;
}

.section-motion.is-current::after {
  transform: scaleX(1);
}

.institute-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.studio-panel {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(31, 42, 36, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
    var(--panel);
  box-shadow: 0 12px 32px rgba(31, 42, 36, 0.08);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.studio-panel h3,
.membership-card h3 {
  margin-top: 0;
}

.studio-panel p {
  flex: 1;
}

.studio-panel .btn {
  align-self: flex-start;
}

.studio-panel,
.level-card,
.card,
.concept-graphic,
.lesson-section,
.resource-item,
.mastery-card,
.membership-card {
  position: relative;
}

.studio-panel::before,
.level-card::before,
.card::before,
.lesson-section::before,
.resource-item::before,
.mastery-card::before,
.membership-card::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--forest), var(--sky));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease;
}

.studio-panel:hover::before,
.level-card:hover::before,
.card:hover::before,
.lesson-section:hover::before,
.resource-item:hover::before,
.mastery-card:hover::before,
.membership-card:hover::before,
.studio-panel.is-active::before,
.level-card.is-active::before,
.membership-card.is-active::before {
  transform: scaleX(1);
}

.studio-panel.featured {
  border-color: rgba(22, 116, 91, 0.28);
  background:
    linear-gradient(135deg, rgba(230, 245, 232, 0.86), rgba(255,255,255,0.96) 56%),
    var(--panel);
  color: var(--ink);
}

.studio-panel.featured p,
.studio-panel.featured li {
  color: var(--muted);
}

.studio-panel.featured .btn.ghost {
  border-color: rgba(22, 116, 91, 0.32);
  background: #f5f5f5;
  color: var(--forest);
}

.topic-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  margin-right: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  vertical-align: 0.12em;
  box-shadow: 2px 2px 0 var(--ink);
}

.studio-panel.featured .topic-icon,
.next-step-panel .topic-icon {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--ink);
}

[data-page-family="visual"] { --page-accent: var(--blueprint); --page-soft: #eeeeee; }
[data-page-family="design"] { --page-accent: var(--violet); --page-soft: #eeeeee; }
[data-page-family="strategy"] { --page-accent: var(--forest); --page-soft: #f1f1f1; }
[data-page-family="risk"] { --page-accent: var(--danger); --page-soft: #f2f2f2; }
[data-page-family="research"] { --page-accent: var(--research); --page-soft: #f1f1f1; }
[data-page-family="history"] { --page-accent: var(--history); --page-soft: #eeeeee; }
[data-page-family="behavior"] { --page-accent: var(--behavior); --page-soft: #eeeeee; }
[data-page-family="models"] { --page-accent: var(--model); --page-soft: #eeeeee; }
[data-page-family="learning"] { --page-accent: var(--forest); --page-soft: #f1f1f1; }
[data-page-family="lesson"] { --page-accent: var(--sky); --page-soft: #f1f1f1; }
[data-page-family="reference"] { --page-accent: var(--ink); --page-soft: #f0f0f0; }
[data-page-family="practice"] { --page-accent: var(--amber); --page-soft: #f0f0f0; }
[data-page-family="case"] { --page-accent: var(--coral); --page-soft: #f2f2f2; }
[data-page-family="offer"] { --page-accent: var(--forest); --page-soft: #f1f1f1; }

body:not([data-page-family="home"]) .page-hero {
  position: relative;
  margin-top: 16px;
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--line);
}

body:not([data-page-family="home"]) .page-hero::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 0;
  width: 8px;
  border-radius: 999px;
  background: var(--page-accent, var(--forest));
  box-shadow: 12px 0 0 var(--amber);
}

body:not([data-page-family="home"]) .page-hero::after {
  content: attr(data-art-label);
  position: absolute;
  right: 0;
  top: 32px;
  width: fit-content;
  max-width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--page-soft, #f2f2f2);
  color: var(--page-accent, var(--forest));
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

body:not([data-page-family="home"]) .page-hero h1 {
  max-width: 920px;
}

.research-ledger {
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.ledger-row {
  display: grid;
  grid-template-columns: 0.95fr 0.8fr 0.8fr 0.8fr 0.7fr;
  border-bottom: 1px solid var(--line);
}

.ledger-row:last-child {
  border-bottom: 0;
}

.ledger-row > * {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.ledger-row > *:last-child {
  border-right: 0;
}

.ledger-head {
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.live-market {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px),
    #fff;
  background-size: 34px 34px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.market-path {
  position: absolute;
  inset: 42px 28px 88px;
}

.market-path i {
  position: absolute;
  height: 4px;
  transform-origin: left center;
  background: var(--forest);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(20,107,79,0.12);
}

.market-path span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--amber);
}

.market-callout {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 850;
}

.risk-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.risk-controls,
.risk-output {
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
}

.risk-controls label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  font-weight: 800;
}

.risk-controls input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}

.risk-output {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
}

.risk-output strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.risk-output span {
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.mode-board {
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.mode-controls {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
}

.mode-controls button {
  flex: 1 1 150px;
  min-height: 54px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.mode-controls button.active {
  background: var(--forest);
  color: #fff;
}

.mode-output {
  min-height: 190px;
  display: grid;
  align-items: center;
  padding: 28px;
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  font-weight: 850;
  line-height: 1.08;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.18fr);
  gap: 56px;
  align-items: start;
  min-height: auto;
  padding: 62px 0 44px;
}

.motion-hero {
  position: relative;
}

.motion-hero::before {
  content: "";
  position: absolute;
  left: -7%;
  top: 8%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(20, 107, 79, 0.18);
  border-radius: 999px;
  transform: scale(0.72);
  opacity: 0;
  animation: topRadar 5.6s ease-in-out infinite;
  pointer-events: none;
}

.motion-hero::after {
  content: "";
  position: absolute;
  left: 42%;
  top: 14%;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: topSignalSweep 4.8s ease-in-out infinite;
  pointer-events: none;
}

.hero-copy {
  animation: heroCopyIn 700ms ease both;
}

.motion-hero .eyebrow {
  animation: slideFadeIn 520ms ease both;
}

.motion-hero h1 {
  animation: slideFadeIn 680ms 80ms ease both;
}

.motion-hero .lead {
  animation: slideFadeIn 720ms 160ms ease both;
}

.motion-hero .hero-actions,
.motion-hero .risk-note {
  animation: slideFadeIn 720ms 240ms ease both;
}

.top-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 24px;
  animation: slideFadeIn 720ms 340ms ease both;
}

.top-signal {
  position: relative;
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.76);
  overflow: hidden;
}

.top-signal::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(242, 184, 75, 0.28), transparent);
  animation: signalCardSweep 4.8s ease-in-out infinite;
  animation-delay: calc(var(--signal-index, 0) * 420ms);
}

.top-signal:nth-child(1) { --signal-index: 1; }
.top-signal:nth-child(2) { --signal-index: 2; }
.top-signal:nth-child(3) { --signal-index: 3; }

.top-signal span {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 950;
}

.top-signal strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.18;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: none;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 14px 0 0 var(--amber), 28px 0 0 var(--sky);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 20px;
  font-size: clamp(2.75rem, 6.6vw, 5.9rem);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 3.15vw, 3.25rem);
  line-height: 1.08;
  font-weight: 740;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.04rem, 1.2vw, 1.24rem);
  line-height: 1.25;
  font-weight: 720;
  text-wrap: balance;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.22vw, 1.16rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.motion-hero .lead {
  max-width: 600px;
  font-size: clamp(1rem, 1.18vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.risk-note {
  display: inline-flex;
  width: fit-content;
  max-width: 620px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  color: #626262;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  align-self: start;
  width: min(100%, 760px);
  justify-self: end;
  min-height: 0;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    #ffffff;
  background-size: 42px 42px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.motion-board {
  animation: boardEnter 520ms 80ms ease both;
  transform-style: flat;
}

.motion-board::after {
  display: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink);
  background: #f2f2f2;
}

.bar-dots {
  display: flex;
  gap: 6px;
}

.bar-dots i {
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
}

.bar-dots i:nth-child(2) {
  background: var(--amber);
}

.bar-dots i:nth-child(3) {
  background: var(--forest);
}

.bar-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.chart-area {
  position: relative;
  height: 430px;
  min-height: 430px;
  padding: 34px 28px 22px;
  overflow: hidden;
}

.liquidity-zone {
  position: absolute;
  left: 7%;
  right: 10%;
  top: 38%;
  height: 74px;
  border: 1px dashed rgba(239, 111, 94, 0.85);
  border-radius: 8px;
  background: rgba(239, 111, 94, 0.08);
  transform: scaleX(0);
  transform-origin: left center;
  animation: zoneReveal 5.4s 1.15s ease-in-out infinite;
}

.liquidity-zone span {
  position: absolute;
  right: 10px;
  top: -13px;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.structure-line {
  position: absolute;
  inset: 34px 28px 22px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  pointer-events: none;
  z-index: 2;
}

.structure-line polyline {
  fill: none;
  stroke: var(--sky);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
  filter: none;
  animation: drawStructure 5.4s 500ms ease-in-out infinite;
}

.scan-line {
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 2px;
  left: 8%;
  z-index: 3;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.2), 0 0 28px rgba(242, 184, 75, 0.55);
  animation: scanMarket 4.8s ease-in-out infinite;
}

.market-phase {
  position: absolute;
  right: 28px;
  top: 32px;
  z-index: 5;
  display: grid;
  gap: 3px;
  min-width: 168px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 3px 3px 0 var(--ink);
}

.market-phase span {
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.market-phase strong {
  font-size: 0.92rem;
  line-height: 1.1;
}

.candles {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 356px;
  gap: 12px;
}

.candle {
  position: relative;
  display: flex;
  justify-content: center;
  width: 26px;
  height: var(--h);
  transform-origin: center bottom;
  animation: candleRise 900ms ease both, candlePulse 5.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 90ms), calc(1.3s + var(--i, 0) * 90ms);
}

.candle:nth-child(1) { --i: 1; }
.candle:nth-child(2) { --i: 2; }
.candle:nth-child(3) { --i: 3; }
.candle:nth-child(4) { --i: 4; }
.candle:nth-child(5) { --i: 5; }
.candle:nth-child(6) { --i: 6; }
.candle:nth-child(7) { --i: 7; }
.candle:nth-child(8) { --i: 8; }
.candle:nth-child(9) { --i: 9; }
.candle:nth-child(10) { --i: 10; }
.candle:nth-child(11) { --i: 11; }
.candle:nth-child(12) { --i: 12; }

.candle::before {
  content: "";
  position: absolute;
  bottom: calc(var(--body) - 12px);
  width: 2px;
  height: var(--wick);
  background: var(--ink);
  transform-origin: center bottom;
  animation: wickRise 800ms ease both;
  animation-delay: calc(100ms + var(--i, 0) * 90ms);
}

.candle::after {
  content: "";
  align-self: end;
  width: 22px;
  height: var(--body);
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--forest);
  transform-origin: center bottom;
  animation: bodyRise 800ms ease both;
  animation-delay: calc(140ms + var(--i, 0) * 90ms);
}

.candle.down::after {
  background: var(--coral);
}

.annotation {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 6;
  animation: annotationPop 5.4s ease-in-out infinite;
}

.annotation.one {
  top: 42px;
  left: 52px;
}

.annotation.two {
  right: 38px;
  bottom: 58px;
  background: var(--mint);
  animation-delay: 1.35s;
}

.visual-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.metric {
  min-height: 118px;
  padding: 16px 16px;
  border-right: 1px solid var(--ink);
  background: #fff;
  transition: transform 180ms ease, background 180ms ease;
}

.metric:hover {
  background: #f6f6f6;
  transform: translateY(-3px);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.32rem;
  transition: color 200ms ease, transform 200ms ease;
}

.motion-board.is-changing .metric strong {
  color: var(--forest);
  transform: translateY(-2px);
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.ticker-strip {
  display: flex;
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  gap: 18px;
  min-width: max-content;
  animation: none;
}

.ticker-strip span {
  color: var(--muted);
  font-weight: 680;
}

.ticker-strip b {
  color: var(--forest);
}

.section-options {
  position: sticky;
  top: 72px;
  z-index: 35;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 247, 0.92);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.generated-section-options {
  border-top: 1px solid var(--line);
}

.section-option-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.section-option-bar::-webkit-scrollbar {
  display: none;
}

.section-option-bar a {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.section-option-bar a:hover,
.section-option-bar a.active {
  border-color: var(--ink);
  background: var(--forest);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.section-option-bar a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber);
}

.learning-compass .live-card,
.compass-board {
  animation: slideFadeIn 700ms ease both;
}

.compass-step {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.compass-step:hover,
.compass-step.is-active {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.compass-step.is-active b {
  background: var(--coral);
  color: #fff;
}

.studio-panel.is-active,
.level-card.is-active,
.concept-graphic.is-active {
  border-color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.studio-panel.is-active h3,
.level-card.is-active h3,
.concept-graphic.is-active h3 {
  color: var(--forest);
}

.studio-panel.featured.is-active h3 {
  color: var(--amber);
}

.curriculum-rail {
  position: relative;
}

.curriculum-rail::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(var(--amber), var(--forest), var(--sky));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 780ms ease;
}

.section-motion.is-current .curriculum-rail::before {
  transform: scaleY(1);
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(242, 184, 75, 0.18), transparent);
  transform: translateX(-120%);
  animation: ctaSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sectionWake {
  from {
    opacity: 0.7;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaSweep {
  0%, 35% {
    transform: translateX(-120%);
  }
  70%, 100% {
    transform: translateX(120%);
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandBeat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 4px 4px 0 var(--ink);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 5px 6px 0 var(--ink);
  }
}

@keyframes topRadar {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes topSignalSweep {
  0%, 28% {
    opacity: 0;
    transform: translateX(-80px);
  }
  45%, 68% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(160px);
  }
}

@keyframes signalCardSweep {
  0%, 38% {
    transform: translateX(0);
  }
  74%, 100% {
    transform: translateX(440%);
  }
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes boardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes boardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes boardSheen {
  0%, 42% {
    transform: translateX(-120%);
  }
  64%, 100% {
    transform: translateX(120%);
  }
}

@keyframes zoneReveal {
  0%, 18% {
    opacity: 0;
    transform: scaleX(0);
  }
  34%, 72% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes drawStructure {
  0%, 10% {
    stroke-dashoffset: 980;
    opacity: 0.25;
  }
  46%, 82% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
}

@keyframes scanMarket {
  0%, 100% {
    left: 8%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  76% {
    left: 88%;
    opacity: 1;
  }
  88% {
    left: 88%;
    opacity: 0;
  }
}

@keyframes candleRise {
  from {
    opacity: 0;
    transform: scaleY(0.12);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes wickRise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes bodyRise {
  from {
    transform: scaleY(0.05);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes candlePulse {
  0%, 100% {
    filter: saturate(1);
  }
  46% {
    filter: saturate(1.22) brightness(1.02);
  }
}

@keyframes annotationPop {
  0%, 18% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  28%, 76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 9px));
  }
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.58fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: var(--forest);
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: transform 620ms ease, background 220ms ease;
}

.section-motion.is-current .section-head::after {
  transform: scaleX(1);
  background: var(--amber);
}

.section-head p {
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.96rem;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card.strong {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.card p,
.plain-list p {
  color: var(--muted);
  line-height: 1.55;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.76rem;
  font-weight: 850;
}

.chip.coral {
  background: #e8e8e8;
}

.chip.sky {
  background: #e9e9e9;
}

.chip.violet {
  background: #eeeeee;
}

.path {
  display: grid;
  gap: 12px;
}

.path-step {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  font-weight: 900;
}

.step-meta {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.tool-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.calculator {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.calc-row:last-child {
  border-bottom: 0;
}

.calc-row span {
  color: var(--muted);
  font-weight: 750;
}

.calc-row strong {
  font-size: 1.05rem;
}

.result {
  background: var(--mint);
}

.drill {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.drill-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}

.trend-line {
  position: absolute;
  left: 11%;
  right: 9%;
  bottom: 38%;
  height: 3px;
  background: var(--sky);
  transform: rotate(-14deg);
  transform-origin: left center;
}

.zone {
  position: absolute;
  left: 14%;
  right: 12%;
  bottom: 30%;
  height: 62px;
  border: 1px dashed var(--forest);
  background: rgba(216, 240, 223, 0.68);
}

.drill-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 260px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}

.drill-copy p {
  margin-bottom: 12px;
}

.quote {
  padding: 36px;
  border-left: 8px solid var(--coral);
  background: #fff;
}

.quote p {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.pricing {
  align-items: stretch;
}

.price {
  font-size: 2.4rem;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.features {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  gap: 9px;
  color: var(--muted);
  line-height: 1.45;
}

.features li::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--forest);
}

.cta-band {
  padding: 42px;
  border: 1px solid rgba(31, 42, 36, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230, 245, 232, 0.92), rgba(255,255,255,0.96) 52%),
    #fff;
  color: var(--ink);
}

.cta-band p {
  color: var(--muted);
}

.form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.form input,
.form select {
  min-width: min(100%, 280px);
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.site-footer {
  border-top: 1px solid var(--ink);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  padding: 44px 0;
}

.footer-grid h3 {
  font-size: 0.94rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.institution-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--ink);
  background: var(--ink);
}

.ribbon-item {
  min-height: 108px;
  padding: 18px;
  background: #fff;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.ribbon-item:hover,
.ribbon-item.is-active {
  background: #f6f6f6;
  transform: translateY(-3px);
  box-shadow: inset 0 -5px 0 var(--amber);
}

.ribbon-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ribbon-item strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.15;
}

.learning-compass {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.section-motion.is-current .learning-compass {
  animation: sectionWake 700ms ease both;
}

.compass-board {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.compass-step {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.compass-step b {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--mint);
  font-size: 1.1rem;
}

.compass-step:nth-child(2n) b {
  background: #e9e9e9;
}

.compass-step:nth-child(3n) b {
  background: var(--amber);
}

.compass-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.compass-step small {
  color: var(--forest);
  font-weight: 900;
  text-transform: uppercase;
}

.live-card {
  position: relative;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23,33,28,.055) 1px, transparent 1px),
    linear-gradient(rgba(23,33,28,.055) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  overflow: hidden;
}

.live-card::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 140px;
  height: 140px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 42%, var(--coral) 42% 48%, transparent 48%),
    linear-gradient(45deg, transparent 36%, var(--sky) 36% 42%, transparent 42%),
    var(--mint);
  opacity: .86;
}

.live-card > * {
  position: relative;
  z-index: 1;
}

.mastery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mastery-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mastery-card meter {
  width: 100%;
  height: 14px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--ink);
  background: var(--amber);
  color: var(--ink);
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 72px 18px 24px;
  background: rgba(23, 33, 28, 0.46);
  backdrop-filter: blur(10px);
}

.search-panel.open {
  display: block;
}

.search-dialog {
  width: min(760px, 100%);
  max-height: min(760px, 88vh);
  margin: 0 auto;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.search-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--ink);
  background: #fff;
}

.search-head input {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.search-results {
  display: grid;
  gap: 10px;
  max-height: 560px;
  padding: 16px;
  overflow: auto;
}

.search-result {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-result span {
  display: block;
  margin-bottom: 5px;
  color: var(--forest);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 100%;
  height: 4px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
}

.lesson-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 4px 4px 0 var(--ink);
}

.lesson-dock strong {
  font-size: .95rem;
}

.lesson-dock p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.lesson-dock-actions {
  display: flex;
  gap: 8px;
}

.lesson-dock-actions a,
.lesson-dock-actions button {
  flex: 1;
  min-height: 36px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  animation: pageHeroIn 720ms ease both;
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero .lead,
.page-hero .hero-actions,
.page-hero .lesson-meta {
  animation: slideFadeIn 680ms ease both;
}

.page-hero h1 {
  animation-delay: 80ms;
}

.page-hero .lead,
.page-hero .lesson-meta {
  animation-delay: 150ms;
}

.page-hero .hero-actions {
  animation-delay: 230ms;
}

.studio-panel,
.card,
.level-card,
.module-row,
.concept-graphic,
.lesson-section,
.resource-item,
.mastery-card,
.glossary-term,
.drill-card,
.mistake-card,
.worksheet-card,
.checklist-card,
.print-sheet,
.case-notes {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.studio-panel:hover,
.card:hover,
.level-card:hover,
.module-row:hover,
.concept-graphic:hover,
.lesson-section:hover,
.resource-item:hover,
.mastery-card:hover,
.glossary-term:hover,
.drill-card:hover,
.mistake-card:hover,
.worksheet-card:hover,
.checklist-card:hover,
.case-notes:hover {
  border-color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.live-market {
  animation: marketPanelIn 700ms ease both;
}

.market-path i {
  transform-origin: left center;
  animation: pathSegmentPulse 4.8s ease-in-out infinite;
}

.market-path span {
  animation: marketNodePulse 2.6s ease-in-out infinite;
}

.market-path span:nth-of-type(2) {
  animation-delay: 300ms;
}

.market-path span:nth-of-type(3) {
  animation-delay: 600ms;
}

.market-path span:nth-of-type(4) {
  animation-delay: 900ms;
}

.market-callout {
  animation: calloutBreath 4.2s ease-in-out infinite;
}

.profile b {
  transform-origin: left center;
  animation: profileBuild 1.1s ease both, profilePulse 4s ease-in-out infinite;
  animation-delay: calc(var(--bar-index, 0) * 90ms), calc(1.3s + var(--bar-index, 0) * 120ms);
}

.profile b:nth-child(1) { --bar-index: 1; }
.profile b:nth-child(2) { --bar-index: 2; }
.profile b:nth-child(3) { --bar-index: 3; }
.profile b:nth-child(4) { --bar-index: 4; }
.profile b:nth-child(5) { --bar-index: 5; }
.profile b:nth-child(6) { --bar-index: 6; }
.profile b:nth-child(7) { --bar-index: 7; }

.zigzag i {
  transform-origin: left center;
  animation: pathSegmentPulse 4.6s ease-in-out infinite;
}

.zigzag span {
  animation: marketNodePulse 2.8s ease-in-out infinite;
}

.case-visual,
.worksheet-print-grid,
.research-ledger,
.mode-board,
.risk-lab,
.path-selector {
  animation: panelLiftIn 680ms ease both;
}

.print-sheet:hover {
  transform: translateY(-3px);
}

@keyframes pageHeroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marketPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelLiftIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pathSegmentPulse {
  0%, 100% {
    opacity: 0.78;
    filter: saturate(1);
  }
  48% {
    opacity: 1;
    filter: saturate(1.35);
  }
}

@keyframes marketNodePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(242, 184, 75, 0);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(242, 184, 75, 0.2);
  }
}

@keyframes calloutBreath {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes profileBuild {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes profilePulse {
  0%, 100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.25) brightness(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.page-hero {
  padding: 72px 0 48px;
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 36px;
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  box-shadow: 4px 4px 0 var(--ink);
}

.plain-list {
  display: grid;
  gap: 14px;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.resource-item span {
  color: var(--muted);
  font-weight: 700;
}

.notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f4f4;
  color: #505050;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .mobile-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: #fff;
    font-weight: 900;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-actions .btn[data-search-open] {
    display: inline-flex;
  }

  .institute-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-grid,
  .retention-grid,
  .rescue-grid,
  .launch-plan,
  .referral-shell,
  .partner-shell,
  .referral-tier-grid,
  .media-asset-grid,
  .trust-grid,
  .wall-board,
  .challenge-grid,
  .cohort-grid,
  .wall-stat-grid,
  .review-stat-grid {
    grid-template-columns: 1fr;
  }

  .membership-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-status,
  .billing-status {
    grid-template-columns: 1fr;
  }

  .referral-form {
    grid-template-columns: 1fr;
  }

  .media-proof-grid,
  .partner-status,
  .partner-form {
    grid-template-columns: 1fr;
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 2;
  }

  .risk-lab,
  .ledger-row {
    grid-template-columns: 1fr;
  }

  .ledger-row > * {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger-row > *:last-child {
    border-bottom: 0;
  }

  .hero,
  .section-head,
  .tool-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .top-signal-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

  .grid.three,
  .grid.two,
  .design-showcase,
  .design-token-grid,
  .icon-system-grid,
  .diagram-language-grid,
  .page-mood-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .visual-bottom {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 24px, 1180px);
  }

  .section {
    padding: 62px 0;
  }

  body {
    overflow-x: hidden;
  }

  .institute-grid {
    grid-template-columns: 1fr;
  }

  .membership-card,
  .membership-status,
  .membership-checklist label,
  .referral-panel,
  .referral-tier,
  .asset-card,
  .trust-card {
    padding: 18px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .span-4,
  .span-6,
  .span-8 {
    grid-column: 1;
  }

  .studio-panel {
    padding: 18px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .live-market {
    min-height: 330px;
  }

  .market-callout {
    font-size: 0.68rem;
    padding: 6px 8px;
  }

  .mode-output {
    font-size: 1.2rem;
    min-height: 150px;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-visual {
    min-height: 500px;
  }

  body:not([data-page-family="home"]) .page-hero::after {
    position: static;
    display: inline-block;
    margin-top: 18px;
  }

  body:not([data-page-family="home"]) .page-hero::before {
    display: none;
  }

  .top-signal {
    min-height: 68px;
  }

  .candles {
    gap: 5px;
  }

  .candle {
    width: 15px;
  }

  .candle::after {
    width: 13px;
  }

  .annotation {
    font-size: 0.72rem;
  }

  .path-step,
  .resource-item {
    grid-template-columns: 1fr;
  }

  .step-num {
    width: 38px;
    height: 38px;
  }

  .cta-band {
    padding: 30px;
  }

  .form input,
  .form select,
  .form .btn {
    width: 100%;
  }
}

.curriculum-rail {
  display: grid;
  gap: 14px;
}

.level-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.level-card.featured {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.level-index {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--mint);
  font-size: 1.6rem;
  font-weight: 950;
}

.level-card:nth-child(3n + 1) .level-index {
  background: var(--amber);
}

.level-card:nth-child(3n + 2) .level-index {
  background: #e9e9e9;
}

.level-card h3 {
  margin-bottom: 6px;
}

.module-count {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.module-table {
  display: grid;
  border: 1px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.module-row {
  display: grid;
  grid-template-columns: 92px minmax(180px, 0.8fr) minmax(220px, 1.4fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.module-row:last-child {
  border-bottom: 0;
}

.module-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 900;
}

.module-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.concept-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}


.concept-graphic {
  position: relative;
  min-height: 380px;
  padding: 18px;
  border: 1px solid rgba(31, 42, 36, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(31, 42, 36, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(31, 42, 36, 0.035) 1px, transparent 1px),
    #fff;
  background-size: 32px 32px;
  box-shadow: 0 14px 34px rgba(31, 42, 36, 0.08);
  overflow: hidden;
}

.concept-graphic h3 {
  position: relative;
  z-index: 2;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(31, 42, 36, 0.2);
  border-radius: 8px;
  background: var(--paper);
  color: var(--forest);
}

.study-use {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid rgba(31, 42, 36, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(31, 42, 36, 0.08);
}

.study-use span {
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 720;
}

.study-use p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.design-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: principle;
}

.principle-card {
  position: relative;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(23,33,28,0.18) 1px, transparent 1px),
    linear-gradient(rgba(23,33,28,0.18) 1px, transparent 1px),
    var(--mint);
  background-size: 10px 10px;
}

.principle-card:nth-child(2n)::before {
  background-color: #e9e9e9;
}

.principle-card:nth-child(3n)::before {
  background-color: #e8e8e8;
}

.principle-card span {
  display: block;
  margin-bottom: 18px;
  max-width: calc(100% - 58px);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle-card h3 {
  max-width: 18ch;
  font-size: 1.35rem;
}

.principle-card p {
  color: var(--muted);
  line-height: 1.62;
}

.principle-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.principle-card li {
  padding-left: 16px;
  border-left: 3px solid var(--amber);
  color: var(--muted);
  line-height: 1.45;
}

.glossary-grid,
.drill-grid,
.mistake-grid,
.worksheet-grid,
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.glossary-term,
.drill-card,
.mistake-card,
.worksheet-card,
.check-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
}

.glossary-term span,
.drill-card span,
.mistake-card span,
.worksheet-card span,
.check-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glossary-term p,
.drill-card p,
.mistake-card p,
.worksheet-card li,
.check-card p {
  color: var(--muted);
  line-height: 1.6;
}

.glossary-term:nth-child(4n + 1),
.drill-card:nth-child(4n + 1),
.mistake-card:nth-child(4n + 1),
.check-card:nth-child(4n + 1) {
  background: #f4f4f4;
}

.worksheet-card.featured,
.check-card:nth-child(4n) {
  background: var(--ink);
  color: #fff;
}

.worksheet-card.featured li,
.check-card:nth-child(4n) p,
.check-card:nth-child(4n) span {
  color: rgba(255,255,255,0.78);
}

.worksheet-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1rem;
}

.check-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  margin-bottom: 16px;
}

.path-selector {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.selector-form,
.selector-result {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
}

.selector-form {
  display: grid;
  gap: 16px;
}

.selector-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.selector-form select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.selector-result {
  display: grid;
  align-content: center;
  background: var(--ink);
  color: #fff;
}

.selector-result p {
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.selector-result a {
  color: var(--amber);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.case-visual,
.case-notes,
.print-sheet {
  padding: 24px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
}

.case-path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.case-path span {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid var(--ink);
  background: var(--mint);
  font-weight: 900;
  text-align: center;
}

.case-path span:nth-child(2),
.case-path span:nth-child(4) {
  background: #f4f4f4;
}

.case-path span:nth-child(3) {
  background: #e8e8e8;
}

.case-notes p,
.case-notes li {
  color: var(--muted);
  line-height: 1.62;
}

.worksheet-print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.print-sheet {
  min-height: 360px;
  box-shadow: none;
  background:
    linear-gradient(#fff 31px, rgba(0,0,0,0.08) 32px),
    #fff;
  background-size: 100% 32px;
}

.print-sheet h2 {
  font-size: 1.6rem;
  line-height: 1.05;
}

.print-sheet p {
  color: var(--ink);
  line-height: 1.85;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.breadcrumb a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.next-step-block {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.next-step-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(31, 42, 36, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,247,223,0.82), rgba(255,255,255,0.96) 54%),
    #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(31, 42, 36, 0.08);
}

.next-step-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.glossary-search {
  margin-bottom: 22px;
}

.glossary-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.zigzag {
  position: absolute;
  inset: 76px 28px 42px;
}

.zigzag span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
}

.zigzag i {
  position: absolute;
  height: 4px;
  background: var(--forest);
  transform-origin: left center;
}

.tag {
  position: absolute;
  padding: 5px 7px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

.sr-line,
.supply-zone,
.demand-zone {
  position: absolute;
  left: 8%;
  right: 8%;
  border: 1px solid var(--ink);
}

.sr-line {
  height: 3px;
  background: var(--ink);
}

.supply-zone {
  top: 94px;
  height: 52px;
  background: rgba(239, 111, 94, 0.2);
}

.demand-zone {
  bottom: 72px;
  height: 58px;
  background: rgba(216, 240, 223, 0.9);
}

.profile {
  position: absolute;
  left: 12%;
  top: 88px;
  width: 46%;
  display: grid;
  gap: 7px;
}

.profile b {
  display: block;
  height: 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--sky);
  width: var(--w);
}

.profile b:nth-child(4),
.profile b:nth-child(5) {
  background: var(--amber);
}

.profile-labels {
  position: absolute;
  right: 12%;
  top: 106px;
  display: grid;
  gap: 18px;
}

.profile-labels span {
  padding: 6px 8px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.footprint {
  position: absolute;
  inset: 82px 28px 34px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 42px;
  gap: 8px;
}

.footprint span {
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 850;
}

.footprint .buy {
  background: var(--mint);
}

.footprint .sell {
  background: #e8e8e8;
}

.delta-bars {
  position: absolute;
  inset: 96px 30px 44px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.delta-bars span {
  display: block;
  width: 34px;
  height: var(--h);
  border: 1px solid var(--ink);
  border-radius: 6px 6px 0 0;
  background: var(--forest);
}

.delta-bars span.neg {
  align-self: end;
  background: var(--coral);
}

.risk-matrix {
  position: absolute;
  inset: 86px 28px 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}

.risk-matrix span {
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.risk-matrix .good {
  background: var(--mint);
  color: var(--ink);
}

.risk-matrix .warn {
  background: #eeeeee;
  color: var(--ink);
}

.risk-matrix .bad {
  background: #e8e8e8;
  color: var(--ink);
}

.brand-specs {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.swatch {
  min-height: 110px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
}

.swatch.dark {
  color: #fff;
}

.design-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

.brand-specimen {
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--graph) 1px, transparent 1px),
    linear-gradient(var(--graph) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  box-shadow: 5px 5px 0 var(--ink);
}

.brand-specimen.dark {
  display: grid;
  align-content: center;
  background: var(--ink);
  color: #fff;
}

.brand-specimen.dark p {
  color: rgba(255,255,255,0.76);
}

.brand-lockup-large {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.brand-lockup-large .brand-mark {
  width: 72px;
  height: 72px;
}

.brand-lockup-large strong {
  display: block;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.brand-lockup-large small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.design-token-grid,
.icon-system-grid,
.page-mood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.token-card,
.icon-system-grid article,
.page-mood-grid article {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.token-card span {
  display: block;
  height: 70px;
  margin-bottom: 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--token);
}

.token-card p,
.icon-system-grid p {
  color: var(--muted);
}

.type-system-board {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}

.type-sample {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.type-sample:last-child {
  border-bottom: 0;
}

.hero-type {
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 950;
  line-height: 0.92;
}

.heading-type {
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.body-type {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.label-type {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.icon-system-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
}

.icon-system-grid .topic-icon {
  width: 48px;
  height: 42px;
  margin: 0;
}

.diagram-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.page-mood-grid article {
  min-height: 140px;
  background: var(--mood, #fff);
}

.page-mood-grid article[data-mood="strategy"] { --mood: #f1f1f1; }
.page-mood-grid article[data-mood="research"] { --mood: #f1f1f1; }
.page-mood-grid article[data-mood="history"] { --mood: #eeeeee; }
.page-mood-grid article[data-mood="behavior"] { --mood: #eeeeee; }
.page-mood-grid article[data-mood="models"] { --mood: #eeeeee; }
.page-mood-grid article[data-mood="practice"] { --mood: #f0f0f0; }

.page-mood-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.page-mood-grid strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.08;
}

.type-scale {
  display: grid;
  gap: 12px;
}

.type-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.type-row span {
  color: var(--muted);
  font-weight: 850;
}

.component-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-component {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.warning-box {
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: #f2f2f2;
  color: #4d4d4d;
  font-weight: 750;
  line-height: 1.45;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.quiz-option::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--forest);
  border-radius: 50%;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.lesson-toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.lesson-toc a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.lesson-toc a:last-child {
  border-bottom: 0;
}

.lesson-article {
  display: grid;
  gap: 18px;
}

.lesson-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lesson-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.lesson-section p,
.lesson-section li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.lesson-section strong {
  color: var(--ink);
}

.lesson-section ul,
.lesson-section ol {
  padding-left: 1.2rem;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.lesson-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.lesson-callout {
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--ink);
}

.lesson-callout p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 750;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.link-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.source-list a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.strategy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.strategy-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(31, 42, 36, 0.16);
  border-radius: 8px;
  background: rgba(252, 251, 244, 0.78);
}

.strategy-details h4 {
  margin: 8px 0 0;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 740;
}

.strategy-details h4:first-child {
  margin-top: 0;
}

.strategy-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.52;
}

.related-study,
.strategy-details .source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-study a,
.strategy-details .source-list a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
}

@media (max-width: 920px) {
  .level-card,
  .module-row,
  .brand-specs,
  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .lesson-toc {
    position: static;
  }

  .concept-board,
  .design-principle-grid,
  .glossary-grid,
  .drill-grid,
  .mistake-grid,
  .worksheet-grid,
  .checklist-grid,
  .path-selector,
  .case-study-layout,
  .case-path,
  .worksheet-print-grid,
  .next-step-panel,
  .component-strip,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .institution-ribbon,
  .learning-compass,
  .mastery-grid {
    grid-template-columns: 1fr;
  }

  .module-count {
    white-space: normal;
  }
}

@media print {
  .site-header,
  .search-panel,
  .reading-progress,
  .lesson-dock,
  .breadcrumb,
  .next-step-block,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .section,
  .section.tight,
  .page-hero {
    padding: 18px 0;
  }

  .print-sheet {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
  }
}

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

  .type-row {
    grid-template-columns: 1fr;
  }

  .compass-step {
    grid-template-columns: 1fr;
  }

  .lesson-dock {
    display: none;
  }
}

/* Expanded graphic design system */
.page-hero-art {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: min(34vw, 360px);
  height: 190px;
  border: 1px solid rgba(23, 33, 28, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 28, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.76);
  background-size: 28px 28px;
  box-shadow: 8px 8px 0 rgba(23, 33, 28, 0.08);
  opacity: 0.96;
}

.page-hero-art svg {
  position: absolute;
  inset: 20px 16px 28px;
  width: calc(100% - 32px);
  height: calc(100% - 48px);
}

.page-hero-art path {
  fill: none;
  stroke: var(--forest);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 520;
  animation: chartPathDraw 4.6s ease-in-out infinite;
}

.page-hero-art .ghost-path {
  stroke: var(--amber);
  stroke-width: 2;
  opacity: 0.7;
  animation-delay: 0.8s;
}

.art-node,
.art-candle {
  position: absolute;
  z-index: 1;
  display: block;
}

.art-node {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 2px 2px 0 var(--ink);
}

.art-node-one { left: 18%; top: 58%; }
.art-node-two { left: 50%; top: 38%; }
.art-node-three { left: 78%; top: 22%; }

.art-candle {
  bottom: 18px;
  width: 10px;
  border-radius: 999px;
  background: var(--forest);
  transform-origin: bottom;
  animation: candlePulse 2.8s ease-in-out infinite;
}

.art-candle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -16px;
  width: 2px;
  height: calc(100% + 32px);
  background: currentColor;
}

.art-candle-one { left: 18%; height: 42px; color: var(--forest); }
.art-candle-two { left: 24%; height: 72px; color: var(--danger); background: var(--danger); animation-delay: 0.3s; }
.art-candle-three { left: 30%; height: 94px; color: var(--forest); animation-delay: 0.6s; }

body[data-page-family="strategy"] .page-hero-art,
body[data-page-family="risk"] .page-hero-art {
  background-color: rgba(216, 240, 223, 0.78);
}

body[data-page-family="history"] .page-hero-art,
body[data-page-family="behavior"] .page-hero-art,
body[data-page-family="models"] .page-hero-art {
  background-color: rgba(242, 184, 75, 0.14);
}

.visual-system-grid,
.chart-component-grid,
.motion-grid,
.brand-kit-grid,
.brand-token-grid,
.asset-export-grid {
  display: grid;
  gap: 18px;
}

.visual-system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-component-grid,
.motion-grid,
.brand-token-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-kit-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.asset-export-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-component,
.motion-card,
.brand-tile,
.brand-token-grid article {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(23, 33, 28, 0.13);
  overflow: hidden;
}

.chart-component h3,
.motion-card h3,
.brand-tile h3,
.brand-token-grid strong {
  margin-top: 0;
}

.chart-component p,
.motion-card p,
.brand-tile p,
.brand-token-grid p {
  color: var(--muted);
}

.component-canvas,
.motion-demo {
  position: relative;
  min-height: 190px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 28, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.component-canvas svg,
.motion-demo svg {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
}

.component-canvas path,
.motion-demo path {
  fill: none;
  stroke: var(--forest);
  stroke-width: 5;
  stroke-linecap: round;
}

.structure-canvas path,
.motion-card.draw path {
  stroke-dasharray: 520;
  animation: chartPathDraw 4s ease-in-out infinite;
}

.structure-canvas span {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
}

.profile-canvas,
.profile-demo {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px 24px;
}

.profile-canvas i,
.profile-demo i {
  display: block;
  width: var(--w, 60%);
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  animation: profileBuild 2.8s ease-in-out infinite;
}

.profile-canvas .poc {
  background: var(--amber);
}

.profile-canvas span {
  position: absolute;
  right: 24px;
  top: 50%;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.footprint-canvas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 22px;
}

.footprint-canvas b {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.delta-canvas,
.candle-demo {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

.delta-canvas i,
.candle-demo i {
  width: 22px;
  height: var(--h, 60%);
  min-height: 34px;
  border-radius: 999px 999px 3px 3px;
  background: var(--forest);
  animation: candlePulse 2.4s ease-in-out infinite;
}

.delta-canvas .negative,
.candle-demo i:nth-child(3) {
  background: var(--danger);
}

.liquidity-canvas .zone {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px dashed var(--ink);
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.34);
  color: var(--ink);
  font-weight: 900;
}

.liquidity-canvas .top { top: 18px; }
.liquidity-canvas .bottom { bottom: 18px; }

.risk-canvas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.risk-canvas div {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.risk-canvas strong {
  font-size: 1.7rem;
}

.risk-canvas span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.motion-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(90, 152, 214, 0.12), transparent 26%),
    #fff;
}

.scan-demo span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(20, 107, 79, 0.18), transparent);
  animation: scanPass 2.6s ease-in-out infinite;
}

.reveal-demo {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.reveal-demo b {
  height: 26px;
  border-radius: 999px;
  background: var(--mint);
  animation: revealBars 2.8s ease-in-out infinite;
}

.reveal-demo b:nth-child(2) { width: 72%; animation-delay: 0.16s; }
.reveal-demo b:nth-child(3) { width: 46%; animation-delay: 0.32s; }

.state-demo {
  display: grid;
  place-items: center;
}

.state-demo span {
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-weight: 950;
  box-shadow: 4px 4px 0 var(--ink);
  animation: activePop 2.4s ease-in-out infinite;
}

.brand-tile {
  min-height: 230px;
}

.hero-tile {
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.2), transparent 34%),
    var(--mint);
}

.big-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 1.35rem;
  font-weight: 950;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.badge-row span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 950;
}

.brand-token-grid article i {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
}

.brand-token-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.export-specimen {
  margin-top: 18px;
}

.asset-export-grid .print-sheet {
  min-height: 300px;
}

.mini-term-diagram {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: end;
  gap: 5px;
  width: 94px;
  height: 68px;
  opacity: 0.7;
  pointer-events: none;
}

.mini-term-diagram i {
  display: block;
  width: 12px;
  height: var(--h, 40px);
  border: 1px solid var(--ink);
  border-radius: 999px 999px 3px 3px;
  background: var(--forest);
}

.mini-term-diagram i:nth-child(2) {
  background: var(--danger);
}

.mini-term-diagram span {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 2px;
  background: var(--amber);
}

.glossary-term {
  padding-right: 126px;
}

.lesson-article {
  counter-reset: lessonSection;
}

.lesson-section {
  position: relative;
}

.lesson-section::after {
  counter-increment: lessonSection;
  content: "0" counter(lessonSection);
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(23, 33, 28, 0.11);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.lesson-section > :not(.topic-icon) {
  position: relative;
  z-index: 1;
}

.print-sheet {
  position: relative;
}

.print-sheet::before {
  content: "NAKAMOTO printable";
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.roadmap-list {
  display: grid;
  gap: 12px;
}

.roadmap-list div {
  display: grid;
  grid-template-columns: 64px 0.34fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.roadmap-list span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 950;
}

.roadmap-list p {
  margin: 0;
  color: var(--muted);
}

@keyframes chartPathDraw {
  0% { stroke-dashoffset: 520; }
  42%, 68% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -520; }
}

@keyframes candlePulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.72; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes profileBuild {
  0%, 100% { transform: scaleX(0.56); transform-origin: left; }
  48%, 72% { transform: scaleX(1); transform-origin: left; }
}

@keyframes scanPass {
  0% { transform: translateX(-100%); }
  55%, 75% { transform: translateX(170%); }
  100% { transform: translateX(270%); }
}

@keyframes revealBars {
  0%, 100% { transform: translateY(10px); opacity: 0.46; }
  48%, 72% { transform: translateY(0); opacity: 1; }
}

@keyframes activePop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-art path,
  .art-candle,
  .structure-canvas path,
  .motion-card.draw path,
  .profile-canvas i,
  .profile-demo i,
  .delta-canvas i,
  .candle-demo i,
  .scan-demo span,
  .reveal-demo b,
  .state-demo span {
    animation: none !important;
  }
}

@media (max-width: 920px) {
  .page-hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 22px;
  }

  .visual-system-grid,
  .chart-component-grid,
  .motion-grid,
  .brand-kit-grid,
  .brand-token-grid,
  .asset-export-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-hero-art {
    height: 150px;
    box-shadow: 4px 4px 0 rgba(23, 33, 28, 0.08);
  }

  .component-canvas,
  .motion-demo {
    min-height: 160px;
  }

  .chart-component,
  .motion-card,
  .brand-tile,
  .brand-token-grid article {
    padding: 16px;
  }

  .glossary-term {
    padding-right: 18px;
  }

  .mini-term-diagram {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
  }

  .risk-canvas {
    grid-template-columns: 1fr;
  }

  .footprint-canvas {
    grid-template-columns: 1fr;
  }
}

body:not([data-page-family="home"]) .page-hero h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.9vw, 4.15rem);
  line-height: 1.04;
  font-weight: 760;
}

body:not([data-page-family="home"]) .page-hero .lead {
  max-width: 680px;
}

.start-hero {
  padding-top: 46px !important;
  padding-bottom: 32px !important;
}

.start-hero h1 {
  max-width: 720px !important;
  font-size: clamp(2.2rem, 4.5vw, 3.75rem) !important;
  line-height: 1.04;
  font-weight: 760;
}

.start-hero .lead {
  max-width: 640px !important;
}

@media (max-width: 920px) {
  body:not([data-page-family="home"]) .page-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3.45rem);
  }
}

@media (max-width: 560px) {
  .motion-hero {
    gap: 24px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .chart-area {
    min-height: 230px;
    padding: 18px 14px 10px;
  }

  .candles {
    height: 190px;
  }

  .market-phase {
    right: 12px;
    top: 14px;
    min-width: 136px;
  }

  .annotation {
    max-width: 130px;
  }

  .visual-bottom {
    display: none;
  }
}

/* Course, dashboard, downloads, and explainers */
.progress-panel,
.dashboard-main,
.dashboard-side,
.download-card,
.progress-card,
.explainer-card,
.quiz-form {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.progress-panel,
.dashboard-main,
.dashboard-side {
  padding: 24px;
}

.progress-panel [data-progress-summary] strong,
.dashboard-main [data-progress-summary] strong {
  display: block;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
}

.progress-panel [data-progress-summary] span,
.dashboard-main [data-progress-summary] span {
  color: var(--forest);
  font-weight: 950;
  text-transform: uppercase;
}

.progress-panel [data-progress-summary] p,
.dashboard-main [data-progress-summary] p,
.dashboard-side p {
  color: var(--muted);
}

.progress-meter {
  height: 18px;
  margin: 18px 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.progress-meter span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--amber));
  transition: width 260ms ease;
}

.lesson-path-grid,
.download-grid,
.explainer-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.lesson-path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson-path-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.download-grid,
.explainer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-card,
.download-card,
.explainer-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
}

.progress-card > span,
.download-card > span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.progress-card.is-complete {
  background: var(--mint);
}

.progress-card.is-complete > span {
  background: var(--forest);
  color: #fff;
}

.progress-card h3,
.download-card h3,
.explainer-card h3 {
  margin-top: 0;
}

.progress-card p,
.download-card p,
.explainer-card p {
  color: var(--muted);
}

.btn.is-complete {
  background: var(--mint);
  color: var(--ink);
}

.quiz-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.quiz-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quiz-form legend {
  padding: 0 6px;
  font-weight: 950;
}

.quiz-form label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 750;
}

.quiz-form fieldset.is-correct {
  border-color: var(--forest);
  background: rgba(216, 240, 223, 0.72);
}

.quiz-form fieldset.is-wrong,
.quiz-form fieldset.is-missing {
  border-color: var(--danger);
  background: rgba(239, 111, 94, 0.08);
}

.quiz-result {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--muted);
  font-weight: 850;
}

.quiz-result strong {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
}

.explainer-stage {
  position: relative;
  min-height: 230px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 28, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.sweep-zone {
  position: absolute;
  left: 18px;
  right: 18px;
  padding: 8px;
  border: 1px dashed var(--ink);
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.28);
  font-weight: 950;
}

.sweep-zone.top { top: 22px; }
.sweep-zone.bottom { bottom: 22px; background: rgba(216, 240, 223, 0.7); }

.sweep-line {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: var(--forest);
}

.sweep-price {
  position: absolute;
  left: 18%;
  bottom: 45px;
  width: 18px;
  height: 130px;
  border-radius: 999px;
  background: var(--coral);
  animation: sweepMove 3.4s ease-in-out infinite;
}

.profile-stage,
.delta-stage,
.risk-stage {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.profile-stage i {
  display: block;
  width: var(--w);
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  animation: profileBuild 2.8s ease-in-out infinite;
}

.profile-stage .poc {
  background: var(--amber);
}

.profile-stage span,
.delta-stage span,
.risk-stage strong {
  justify-self: end;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 950;
}

.delta-stage {
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}

.delta-stage i {
  min-height: 48px;
  height: 110px;
  border-radius: 999px 999px 3px 3px;
  background: var(--forest);
  animation: candlePulse 2.4s ease-in-out infinite;
}

.delta-stage i:nth-child(2) { height: 74px; animation-delay: 0.15s; }
.delta-stage i:nth-child(4) { height: 140px; animation-delay: 0.3s; }
.delta-stage .down { background: var(--danger); }
.delta-stage span { grid-column: 1 / -1; }

.footprint-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 22px;
}

.footprint-stage b {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.footprint-stage .hot {
  background: rgba(239, 111, 94, 0.22);
  border-color: var(--danger);
}

.footprint-stage .cold {
  background: rgba(216, 240, 223, 0.78);
  border-color: var(--forest);
}

.risk-stage {
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
}

.risk-stage i {
  height: 2px;
  background: var(--ink);
}

.risk-stage span {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 950;
}

.risk-stage strong {
  grid-column: 1 / -1;
  justify-self: center;
  background: var(--amber);
}

@keyframes sweepMove {
  0%, 100% { transform: translateX(0) scaleY(0.72); }
  48% { transform: translateX(210px) scaleY(1.05); }
  72% { transform: translateX(120px) scaleY(0.9); }
}

@media (max-width: 920px) {
  .lesson-path-grid,
  .lesson-path-grid.compact,
  .dashboard-grid,
  .download-grid,
  .explainer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .risk-stage {
    grid-template-columns: 1fr;
  }

  .risk-stage i {
    display: none;
  }

  .explainer-stage {
    min-height: 190px;
  }
}

/* Simulator, auction course, and certification path */
.simulator-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.sim-panel,
.sim-workspace,
.auction-board,
.auction-module,
.cert-card {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.sim-panel,
.sim-workspace,
.auction-board,
.auction-module,
.cert-card {
  padding: 20px;
}

.sim-panel p,
.auction-module p,
.cert-card p,
.auction-board p {
  color: var(--muted);
}

.sim-panel h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  overflow-wrap: normal;
}

.sim-scenarios,
.sim-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.sim-scenarios button,
.sim-toolbar button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.sim-scenarios button.active,
.sim-toolbar button.active {
  border-color: var(--ink);
  background: var(--amber);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.sim-score {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.sim-score strong {
  font-size: 2.4rem;
  line-height: 1;
}

.sim-score span {
  color: var(--muted);
  font-weight: 800;
}

.sim-chart {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 28, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

.sim-chart svg {
  position: absolute;
  inset: 26px 20px;
  width: calc(100% - 40px);
  height: calc(100% - 52px);
  pointer-events: none;
}

.sim-chart path {
  fill: none;
  stroke: var(--forest);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 980;
  animation: chartPathDraw 5s ease-in-out infinite;
}

.sim-chart .sim-ghost {
  stroke: var(--amber);
  stroke-width: 3;
  opacity: 0.7;
}

.sim-zone {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 1;
  padding: 8px 10px;
  border: 1px dashed var(--ink);
  border-radius: 8px;
  background: rgba(242, 184, 75, 0.24);
  font-weight: 950;
}

.sim-zone.upper { top: 36px; }
.sim-zone.lower { bottom: 42px; background: rgba(216, 240, 223, 0.72); }

.sim-candles {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 64px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 240px;
  pointer-events: none;
}

.sim-candles i {
  display: block;
  width: 18px;
  height: 120px;
  border-radius: 999px 999px 3px 3px;
  background: var(--forest);
  animation: candlePulse 3s ease-in-out infinite;
}

.sim-candles i:nth-child(2n) { height: 80px; }
.sim-candles i:nth-child(3n) { height: 165px; }
.sim-candles .down { background: var(--danger); }

.sim-marker {
  position: absolute;
  z-index: 8;
  transform: translate(-50%, -50%);
  min-width: 48px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.sim-marker.structure { background: var(--sky); color: #fff; }
.sim-marker.level { background: var(--mint); }
.sim-marker.liquidity { background: var(--amber); }
.sim-marker.entry { background: var(--forest); color: #fff; }
.sim-marker.stop { background: var(--danger); color: #fff; }
.sim-marker.target { background: #fff; }

.auction-grid,
.cert-grid {
  display: grid;
  gap: 18px;
}

.auction-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auction-module span,
.cert-card > span {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 36px;
  margin-bottom: 14px;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  font-size: 0.82rem;
  font-weight: 950;
}

.auction-board {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 24px;
  align-items: center;
}

.auction-visual {
  position: relative;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 28, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.auction-visual svg {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
}

.auction-visual path {
  fill: none;
  stroke: var(--forest);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 760;
  animation: chartPathDraw 5s ease-in-out infinite;
}

.auction-visual .profile-path {
  stroke: var(--amber);
  stroke-width: 8;
  opacity: 0.72;
}

.auction-balance,
.auction-imbalance,
.auction-value {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 950;
}

.auction-balance { left: 28px; top: 36px; }
.auction-imbalance { right: 28px; top: 36px; background: var(--mint); }
.auction-value { left: 42%; bottom: 30px; background: var(--amber); }

.cert-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-card {
  position: relative;
  overflow: hidden;
}

.cert-card.featured {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #fff;
}

.cert-card.featured p {
  color: rgba(255, 255, 255, 0.74);
}

.cert-card::after {
  content: "";
  display: block;
  height: 14px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--forest) var(--cert-progress, 0%), var(--paper) var(--cert-progress, 0%));
}

.cert-card.is-complete::after {
  background: var(--forest);
}

.cert-card.featured::after {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(90deg, var(--amber) 34%, rgba(255,255,255,0.1) 34%);
}

@media (max-width: 920px) {
  .simulator-shell,
  .auction-grid,
  .auction-board,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card.featured {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .sim-chart {
    min-height: 380px;
  }

  .sim-candles {
    height: 170px;
    bottom: 52px;
  }

  .sim-candles i {
    width: 12px;
  }
}

/* Global study settings */
.study-panel {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 88px 18px 18px;
  background: rgba(23, 33, 28, 0.34);
}

.study-panel.open {
  display: flex;
}

.study-dialog {
  width: min(100%, 440px);
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 18px;
}

.study-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.study-head span,
.study-setting-group h3 {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.study-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.study-setting-group {
  margin-top: 16px;
}

.study-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.study-options button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.study-options button.active {
  border-color: var(--ink);
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
}

.tools-lab {
  position: relative;
}

.tools-lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 183, 67, 0.12), transparent 34%),
    var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--ink);
}

.tool-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.tool-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.tool-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-fields label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tool-fields input,
.tool-fields select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 10px 12px;
}

.tool-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(36, 119, 88, 0.1), transparent),
    var(--paper);
  padding: 16px;
}

.tool-output strong {
  font-size: 1.45rem;
  font-weight: 950;
}

.tool-output span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  align-self: center;
}

.tool-output em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
}

.scenario-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.scenario-menu {
  display: grid;
  align-content: start;
  gap: 10px;
}

.scenario-menu button,
.scenario-actions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.scenario-menu button.active,
.scenario-actions button.active {
  border-color: var(--ink);
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
}

.scenario-actions button.correct {
  background: var(--forest);
  color: var(--paper);
}

.scenario-actions button.wrong {
  background: var(--danger);
  color: var(--paper);
}

.scenario-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.scenario-visual,
.scenario-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.scenario-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(22, 84, 61, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(22, 84, 61, 0.1) 1px, transparent 1px),
    var(--panel);
  background-size: 42px 42px;
}

.scenario-visual svg {
  position: absolute;
  inset: 44px 26px;
  width: calc(100% - 52px);
  height: calc(100% - 88px);
}

.scenario-path {
  fill: none;
  stroke: var(--forest);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  animation: drawPath 3.2s ease-in-out infinite alternate;
}

.scenario-level {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-dasharray: 12 10;
}

.scenario-level.accent {
  stroke: var(--danger);
}

.scenario-zone {
  position: absolute;
  left: 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.scenario-zone.zone-one {
  top: 28px;
}

.scenario-zone.zone-two {
  bottom: 28px;
}

.scenario-pulse {
  position: absolute;
  right: 18%;
  top: 31%;
  width: 22px;
  height: 22px;
  border: 3px solid var(--danger);
  border-radius: 999px;
  animation: pulseRing 1.8s ease-in-out infinite;
}

.scenario-card {
  padding: 22px;
}

.scenario-card h3 {
  margin-top: 0;
  font-size: 1.32rem;
}

.scenario-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.scenario-facts span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.scenario-checklist {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.scenario-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
  font-weight: 850;
}

.scenario-checklist input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.scenario-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scenario-result {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  padding: 14px;
  color: var(--muted);
  font-weight: 850;
}

.scenario-result strong {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 950;
}

.scenario-result em {
  font-style: normal;
  color: var(--forest);
}

.planner-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.planner-controls,
.planner-summary,
.planner-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.planner-controls {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.planner-controls label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.planner-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 10px 12px;
}

.planner-output {
  display: grid;
  gap: 18px;
}

.planner-summary {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.planner-summary strong {
  font-size: 1.35rem;
  font-weight: 950;
}

.planner-summary span {
  color: var(--muted);
  font-weight: 850;
}

.planner-summary i {
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.planner-summary i::before {
  content: "";
  display: block;
  width: var(--planner-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--amber));
  transition: width 0.24s ease;
}

.planner-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.planner-day {
  display: grid;
  gap: 10px;
  padding: 18px;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.planner-day:hover {
  transform: translateY(-3px);
}

.planner-day.is-complete {
  background:
    linear-gradient(135deg, rgba(36, 119, 88, 0.16), transparent 44%),
    var(--panel);
}

.planner-day label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.planner-day input {
  width: 18px;
  height: 18px;
}

.planner-day h3 {
  margin: 0;
  font-size: 1.08rem;
}

.planner-day p {
  margin: 0;
  color: var(--muted);
}

.planner-day a {
  justify-self: start;
  color: var(--ink);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.assessment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.assessment-questions {
  display: grid;
  gap: 14px;
}

.assessment-questions fieldset,
.assessment-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.assessment-questions fieldset {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.assessment-questions legend {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 950;
  padding: 0 6px;
}

.assessment-questions label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 850;
  line-height: 1.5;
  padding: 10px 12px;
}

.assessment-questions input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.assessment-questions fieldset.is-correct {
  border-color: var(--forest);
}

.assessment-questions fieldset.is-wrong {
  border-color: var(--danger);
}

.assessment-questions fieldset.is-missing {
  box-shadow: 6px 6px 0 var(--danger);
}

.assessment-panel {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.assessment-result {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.assessment-result strong {
  font-size: 1.45rem;
  font-weight: 950;
}

.assessment-result span,
.assessment-result p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.assessment-meter {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--panel);
}

.assessment-meter i {
  display: block;
  width: var(--assessment-score, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--danger), var(--amber), var(--forest));
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.review-inputs,
.review-checks,
.review-output {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.review-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.review-inputs label,
.review-checks label {
  font-weight: 900;
}

.review-inputs label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.review-inputs input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 10px 12px;
}

.review-checks {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.review-checks h3 {
  margin: 0;
}

.review-checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  padding: 10px 12px;
}

.review-checks input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.review-output {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
}

.review-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.review-stat-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.review-stat-grid strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 950;
}

.review-stat-grid span {
  color: var(--muted);
  font-weight: 850;
}

.review-diagnosis {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  padding: 16px;
}

.review-diagnosis strong {
  font-size: 1.28rem;
  font-weight: 950;
}

.review-diagnosis p {
  margin: 0;
  color: var(--muted);
}

.community-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.community-composer,
.community-card,
.challenge-card,
.challenge-summary,
.cohort-card,
.cohort-status,
.wall-stat-grid article,
.wall-board article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.community-composer {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.community-composer label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.community-composer input,
.community-composer select,
.community-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 10px 12px;
}

.community-feed {
  display: grid;
  gap: 14px;
}

.community-card,
.challenge-card,
.cohort-card,
.wall-board article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.community-card span,
.cohort-card span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.community-card h3,
.challenge-card h3,
.cohort-card h3,
.wall-board h3 {
  margin: 0;
}

.community-card p,
.challenge-card p,
.cohort-card p,
.wall-board p {
  margin: 0;
  color: var(--muted);
}

.challenge-summary,
.cohort-status {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 18px;
}

.challenge-summary strong,
.cohort-status strong {
  font-size: 1.4rem;
  font-weight: 950;
}

.challenge-summary span,
.cohort-status span {
  color: var(--muted);
  font-weight: 850;
}

.challenge-grid,
.cohort-grid,
.wall-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.challenge-card label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-weight: 950;
}

.challenge-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.challenge-card a,
.wall-board a {
  justify-self: start;
  color: var(--ink);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.challenge-card.is-complete,
.cohort-card.is-complete {
  background:
    linear-gradient(135deg, rgba(36, 119, 88, 0.16), transparent 44%),
    var(--panel);
  border-color: var(--forest);
}

.wall-stat-grid {
  margin-bottom: 18px;
}

.wall-stat-grid article {
  padding: 18px;
}

.wall-stat-grid strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 950;
}

.wall-stat-grid span {
  color: var(--muted);
  font-weight: 850;
}

.wall-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.membership-card,
.membership-status,
.membership-checklist label {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.membership-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 24px;
  overflow: hidden;
}

.membership-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, var(--line) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, var(--line) 48% 52%, transparent 52%),
    var(--mint);
  opacity: 0.72;
  pointer-events: none;
}

.membership-card.strong {
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.18), transparent 42%),
    var(--ink);
  color: #fff;
}

.membership-card.strong p,
.membership-card.strong li {
  color: rgba(255,255,255,0.78);
}

.membership-card.is-active {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
  border-color: var(--forest);
}

.membership-card.is-active::before {
  transform: scaleX(1);
}

.membership-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.membership-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.membership-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(36, 119, 88, 0.14), transparent 58%),
    var(--panel);
}

.membership-status span,
.membership-status em {
  display: block;
  color: var(--forest);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.membership-status strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 1.5rem;
  font-weight: 950;
}

.membership-status p {
  margin: 0 0 8px;
  color: var(--muted);
}

.membership-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.membership-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.membership-checklist input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.referral-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.referral-panel,
.referral-tier {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
}

.referral-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  overflow: hidden;
}

.referral-panel.strong {
  background:
    linear-gradient(135deg, rgba(134, 184, 237, 0.18), transparent 44%),
    var(--ink);
  color: #fff;
}

.referral-panel.strong p,
.referral-panel.strong label,
.referral-panel.strong em {
  color: rgba(255,255,255,0.78);
}

.referral-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.referral-form label {
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.referral-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 10px 12px;
}

.referral-code-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  padding: 16px;
}

.referral-code-card span,
.referral-code-card em,
.referral-tier span {
  color: var(--amber);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.referral-code-card strong {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 0.95;
}

.referral-code-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255,255,255,0.78);
}

.referral-meter {
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.referral-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--forest), var(--sky));
  transition: width 240ms ease;
}

.referral-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.referral-stat-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.referral-stat-grid strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 950;
}

.referral-stat-grid span {
  color: var(--muted);
  font-weight: 850;
}

.referral-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.referral-tier {
  display: grid;
  gap: 10px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.14), transparent 45%),
    var(--panel);
}

.referral-tier h3,
.referral-tier p {
  margin: 0;
}

.referral-tier p {
  color: var(--muted);
}

.referral-tier strong {
  color: var(--forest);
}

.partner-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 18px;
  align-items: stretch;
}

.media-proof-grid,
.partner-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.partner-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-proof-grid article,
.partner-status article,
.asset-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
}

.media-proof-grid strong,
.partner-status strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 950;
}

.media-proof-grid span,
.partner-status span {
  color: var(--muted);
  font-weight: 850;
}

.media-list {
  display: grid;
  gap: 12px;
}

.media-list p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.media-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.asset-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.asset-card span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
}

.asset-card .btn {
  align-self: flex-start;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-card,
.wins-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px;
}

.trust-card.featured {
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.16), transparent 44%),
    var(--ink);
  color: #fff;
}

.trust-card.featured p,
.trust-card.featured a {
  color: rgba(255,255,255,0.78);
}

.trust-card span,
.wins-card span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.trust-card.featured span {
  color: var(--amber);
}

.trust-card h3,
.trust-card p,
.wins-card h3,
.wins-card p {
  margin: 0;
}

.trust-card p,
.wins-card p {
  color: var(--muted);
}

.trust-card a {
  align-self: end;
  color: var(--ink);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wins-feed {
  display: grid;
  gap: 12px;
}

.wins-card {
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px;
}

.retention-grid,
.rescue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.retention-card,
.rescue-card,
.onboarding-status,
.rescue-output,
.launch-plan article {
  display: grid;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px;
}

.retention-card.featured,
.rescue-card.featured {
  background:
    linear-gradient(135deg, rgba(242, 184, 75, 0.16), transparent 44%),
    var(--ink);
  color: #fff;
}

.retention-card.featured p,
.retention-card.featured a,
.rescue-card.featured p,
.rescue-card.featured a {
  color: rgba(255,255,255,0.78);
}

.retention-card span,
.rescue-card span,
.launch-plan span,
.rescue-output span,
.onboarding-status span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.retention-card.featured span,
.rescue-card.featured span {
  color: var(--amber);
}

.retention-card h3,
.retention-card p,
.rescue-card h3,
.rescue-card p,
.launch-plan strong,
.launch-plan p,
.rescue-output h3,
.rescue-output p,
.onboarding-status strong,
.onboarding-status p {
  margin: 0;
}

.retention-card p,
.rescue-card p,
.launch-plan p,
.rescue-output p,
.onboarding-status p {
  color: var(--muted);
}

.retention-card a,
.rescue-card a {
  align-self: end;
  color: var(--ink);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.onboarding-status {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr) auto;
  align-items: center;
  margin-bottom: 14px;
  background:
    linear-gradient(90deg, rgba(36, 119, 88, 0.13), transparent 62%),
    var(--panel);
}

.launch-plan {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.launch-plan article {
  padding: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.launch-plan strong {
  font-size: 1rem;
  font-weight: 950;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.choice-row button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  padding: 10px 12px;
}

.choice-row button.is-active {
  background: var(--amber);
  color: #0f0f0f;
  border-color: var(--ink);
}

.rescue-output {
  margin-bottom: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.billing-panel,
.billing-status article {
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px;
}

.billing-panel.strong {
  background:
    linear-gradient(135deg, rgba(134, 184, 237, 0.16), transparent 44%),
    var(--ink);
  color: #fff;
}

.billing-panel.strong p,
.billing-panel.strong label {
  color: rgba(255,255,255,0.78);
}

.billing-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.billing-status article {
  box-shadow: 3px 3px 0 var(--ink);
  padding: 14px;
}

.billing-status strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.billing-status span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-consent {
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start;
  color: rgba(255,255,255,0.78);
  text-transform: none !important;
}

.billing-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.partner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.partner-form label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  padding: 10px 12px;
}

.partner-form textarea {
  min-height: 112px;
  resize: vertical;
}

.partner-form .span-field,
.partner-form button {
  grid-column: 1 / -1;
}

.link-stack {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.link-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.link-stack a::after {
  content: ">";
  color: var(--forest);
  font-weight: 950;
}

@keyframes drawPath {
  from {
    stroke-dashoffset: 620;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.72);
    opacity: 0.95;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

body[data-theme="dark"] {
  --ink: #f5f5f5;
  --muted: #c8c8c8;
  --paper: #0f0f0f;
  --panel: #171717;
  --line: rgba(245, 241, 231, 0.18);
  --forest: #d2d2d2;
  --mint: #242424;
  --amber: #b8b8b8;
  --sky: #b8b8b8;
  --danger: #b0b0b0;
  background:
    linear-gradient(90deg, rgba(245, 241, 231, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(245, 241, 231, 0.035) 1px, transparent 1px),
    var(--paper);
  color: var(--ink);
}

body[data-theme="paper"] {
  --paper: #f4f4f4;
  --panel: #f4f4f4;
  --line: #d0d0d0;
  --mint: #e0e0e0;
  --amber: #9d9d9d;
  --forest: #666666;
  --sky: #777777;
  background:
    linear-gradient(90deg, rgba(73, 107, 70, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(73, 107, 70, 0.045) 1px, transparent 1px),
    var(--paper);
}

body[data-theme="contrast"] {
  --ink: #000;
  --muted: #1f1f1f;
  --paper: #fff;
  --panel: #fff;
  --line: #000;
  --forest: #111111;
  --mint: #f0f0f0;
  --amber: #c8c8c8;
  --sky: #222222;
  --danger: #333333;
  background: #fff;
}

body[data-theme="dark"]::before,
body[data-theme="contrast"]::before {
  opacity: 0;
}

body[data-theme="dark"] .site-header,
body[data-theme="dark"] .breadcrumb,
body[data-theme="dark"] .section-options,
body[data-theme="dark"] .search-dialog,
body[data-theme="dark"] .study-dialog,
body[data-theme="dark"] .studio-panel,
body[data-theme="dark"] .card,
body[data-theme="dark"] .level-card,
body[data-theme="dark"] .concept-graphic,
body[data-theme="dark"] .resource-item,
body[data-theme="dark"] .mastery-card,
body[data-theme="dark"] .lesson-section,
body[data-theme="dark"] .lesson-toc,
body[data-theme="dark"] .glossary-term,
body[data-theme="dark"] .drill-card,
body[data-theme="dark"] .mistake-card,
body[data-theme="dark"] .worksheet-card,
body[data-theme="dark"] .checklist-card,
body[data-theme="dark"] .print-sheet,
body[data-theme="dark"] .progress-card,
body[data-theme="dark"] .download-card,
body[data-theme="dark"] .explainer-card,
body[data-theme="dark"] .dashboard-main,
body[data-theme="dark"] .dashboard-side,
body[data-theme="dark"] .chart-component,
body[data-theme="dark"] .motion-card,
body[data-theme="dark"] .brand-tile,
body[data-theme="dark"] .brand-token-grid article,
body[data-theme="dark"] .sim-panel,
body[data-theme="dark"] .sim-workspace,
body[data-theme="dark"] .auction-board,
body[data-theme="dark"] .auction-module,
body[data-theme="dark"] .cert-card,
body[data-theme="dark"] .tool-card,
body[data-theme="dark"] .tool-output,
body[data-theme="dark"] .scenario-card,
body[data-theme="dark"] .scenario-visual,
body[data-theme="dark"] .planner-controls,
body[data-theme="dark"] .planner-summary,
body[data-theme="dark"] .planner-day,
body[data-theme="dark"] .assessment-questions fieldset,
body[data-theme="dark"] .assessment-panel,
body[data-theme="dark"] .assessment-result,
body[data-theme="dark"] .review-inputs,
body[data-theme="dark"] .review-checks,
body[data-theme="dark"] .review-output,
body[data-theme="dark"] .review-stat-grid article,
body[data-theme="dark"] .review-diagnosis,
body[data-theme="dark"] .community-composer,
body[data-theme="dark"] .community-card,
body[data-theme="dark"] .challenge-card,
body[data-theme="dark"] .challenge-summary,
body[data-theme="dark"] .cohort-card,
body[data-theme="dark"] .cohort-status,
body[data-theme="dark"] .wall-stat-grid article,
body[data-theme="dark"] .wall-board article,
body[data-theme="dark"] .membership-card,
body[data-theme="dark"] .membership-status,
body[data-theme="dark"] .membership-checklist label,
body[data-theme="dark"] .referral-panel,
body[data-theme="dark"] .referral-tier,
body[data-theme="dark"] .referral-stat-grid article,
body[data-theme="dark"] .media-proof-grid article,
body[data-theme="dark"] .partner-status article,
body[data-theme="dark"] .media-list p,
body[data-theme="dark"] .asset-card,
body[data-theme="dark"] .trust-card,
body[data-theme="dark"] .wins-card,
body[data-theme="dark"] .live-card,
body[data-theme="dark"] .compass-board,
body[data-theme="dark"] .cta-band {
  background-color: var(--panel);
  color: var(--ink);
}

body[data-theme="dark"] .component-canvas,
body[data-theme="dark"] .motion-demo,
body[data-theme="dark"] .explainer-stage,
body[data-theme="dark"] .sim-chart,
body[data-theme="dark"] .auction-visual,
body[data-theme="dark"] .page-hero-art {
  background-color: #111111;
}

body[data-theme="dark"] .btn:not(.primary):not(.coral),
body[data-theme="dark"] .search-result,
body[data-theme="dark"] .link-card,
body[data-theme="dark"] .lesson-meta span,
body[data-theme="dark"] .study-options button,
body[data-theme="dark"] .tool-fields input,
body[data-theme="dark"] .tool-fields select,
body[data-theme="dark"] .scenario-menu button,
body[data-theme="dark"] .scenario-actions button,
body[data-theme="dark"] .scenario-facts span,
body[data-theme="dark"] .scenario-checklist label,
body[data-theme="dark"] .scenario-result,
body[data-theme="dark"] .planner-controls select,
body[data-theme="dark"] .planner-summary i,
body[data-theme="dark"] .assessment-questions label,
body[data-theme="dark"] .assessment-meter,
body[data-theme="dark"] .review-inputs input,
body[data-theme="dark"] .review-checks label,
body[data-theme="dark"] .community-composer input,
body[data-theme="dark"] .community-composer select,
body[data-theme="dark"] .community-composer textarea,
body[data-theme="dark"] .membership-checklist label,
body[data-theme="dark"] .link-stack a,
body[data-theme="dark"] .referral-form input,
body[data-theme="dark"] .referral-meter,
body[data-theme="dark"] .partner-form input,
body[data-theme="dark"] .partner-form select,
body[data-theme="dark"] .partner-form textarea,
body[data-theme="dark"] .quiz-form fieldset,
body[data-theme="dark"] .footprint-stage b,
body[data-theme="dark"] .risk-stage span {
  background: #111111;
  color: var(--ink);
  border-color: var(--line);
}

body[data-theme="dark"] .site-footer {
  background: #0a0a0a;
  color: var(--ink);
}

body[data-theme="dark"] .scenario-menu button.active,
body[data-theme="dark"] .scenario-actions button.active,
body[data-theme="dark"] .study-options button.active {
  background: var(--amber);
  color: #0f0f0f;
  border-color: var(--ink);
}

body[data-theme="dark"] .scenario-actions button.correct {
  background: var(--forest);
  color: #0f0f0f;
}

body[data-theme="dark"] .scenario-actions button.wrong {
  background: var(--danger);
  color: #0f0f0f;
}

body[data-theme="contrast"] * {
  box-shadow: none !important;
  text-shadow: none !important;
}

body[data-theme="contrast"] a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-study-mode="focus"] .ticker-strip,
body[data-study-mode="focus"] .institution-ribbon,
body[data-study-mode="focus"] .lesson-dock,
body[data-study-mode="focus"] .next-step-block,
body[data-study-mode="exam"] .lesson-dock,
body[data-study-mode="exam"] .next-step-block,
body[data-study-mode="exam"] .site-footer {
  display: none !important;
}

body[data-study-mode="focus"] main > section:not(.page-hero):not(.section-options) {
  padding-top: 56px;
  padding-bottom: 56px;
}

body[data-study-mode="reading"] .lesson-article,
body[data-study-mode="reading"] .page-hero,
body[data-study-mode="reading"] .glossary-grid,
body[data-study-mode="reading"] .resource-list {
  font-size: 1.08rem;
}

body[data-study-mode="reading"] .lesson-section p,
body[data-study-mode="reading"] .lesson-section li,
body[data-study-mode="reading"] .lead {
  line-height: 1.55;
}

body[data-study-mode="reading"] .lesson-section {
  max-width: 860px;
}

body[data-study-mode="exam"] .quiz-form,
body[data-study-mode="exam"] [data-quiz] {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

body[data-study-mode="exam"] .section-options {
  position: sticky;
  top: 72px;
}

/* Whole-site visual quality pass */
body:not([data-theme="dark"]):not([data-theme="contrast"]) .ledger-head,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .risk-output,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .selector-result,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .worksheet-card.featured,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .check-card:nth-child(4n),
body:not([data-theme="dark"]):not([data-theme="contrast"]) .cert-card.featured,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .trust-card.featured,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .retention-card.featured,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .rescue-card.featured {
  border-color: rgba(31, 42, 36, 0.18);
  background:
    linear-gradient(135deg, rgba(230, 245, 232, 0.9), rgba(255,255,255,0.96) 58%),
    #fff;
  color: var(--ink);
}

body:not([data-theme="dark"]):not([data-theme="contrast"]) .ledger-head > *,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .risk-output span,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .selector-result p,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .worksheet-card.featured li,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .check-card:nth-child(4n) p,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .check-card:nth-child(4n) span,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .cert-card.featured p,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .trust-card.featured p,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .trust-card.featured a,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .retention-card.featured p,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .retention-card.featured a,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .rescue-card.featured p,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .rescue-card.featured a {
  color: var(--muted);
}

body:not([data-theme="dark"]):not([data-theme="contrast"]) .trust-card.featured span,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .retention-card.featured span,
body:not([data-theme="dark"]):not([data-theme="contrast"]) .rescue-card.featured span {
  color: var(--forest);
}

.studio-panel,
.card,
.level-card,
.retention-card,
.rescue-card,
.trust-card,
.cert-card,
.worksheet-card,
.check-card,
.download-card,
.explainer-card,
.tool-card,
.scenario-card,
.membership-card,
.community-card {
  box-shadow: 0 12px 30px rgba(31, 42, 36, 0.075);
}

.studio-panel:hover,
.card:hover,
.level-card:hover,
.retention-card:hover,
.rescue-card:hover,
.trust-card:hover,
.cert-card:hover,
.worksheet-card:hover,
.check-card:hover,
.download-card:hover,
.explainer-card:hover,
.tool-card:hover,
.scenario-card:hover,
.membership-card:hover,
.community-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.eyebrow,
.module-count,
.level-index,
.chip,
.tag,
.bar-label,
.metric span,
.retention-card span,
.rescue-card span,
.launch-plan span,
.rescue-output span,
.onboarding-status span,
.lesson-meta span,
.source-list a {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 720;
}

p,
li {
  font-weight: 430;
}

strong,
b {
  font-weight: 720;
}

.section-option-bar a,
.nav-links a,
.btn,
.link-card span {
  font-weight: 700;
}

.visual-bottom {
  display: none;
}

.hero-visual {
  max-height: 540px;
  box-shadow: 0 18px 44px rgba(31, 42, 36, 0.09);
}

.chart-area {
  height: 430px;
  min-height: 430px;
}

@media (max-width: 920px) {
  .hero-visual {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .study-panel {
    padding: 72px 12px 12px;
  }

  .study-options {
    grid-template-columns: 1fr;
  }

  .tools-lab-grid,
  .tool-fields,
  .tool-output,
  .scenario-shell,
  .scenario-board,
  .scenario-actions,
  .planner-grid,
  .planner-days,
  .assessment-grid,
  .review-grid,
  .review-inputs,
  .review-stat-grid,
  .community-grid,
  .challenge-grid,
  .cohort-grid,
  .wall-stat-grid,
  .wall-board {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .planner-controls,
  .planner-summary,
  .planner-day,
  .assessment-questions fieldset,
  .assessment-panel,
  .review-inputs,
  .review-checks,
  .review-output,
  .community-composer,
  .community-card,
  .challenge-card,
  .challenge-summary,
  .cohort-card,
  .cohort-status,
  .wall-stat-grid article,
  .wall-board article {
    padding: 18px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .assessment-panel {
    position: static;
  }

  .scenario-visual {
    min-height: 300px;
  }

  .scenario-card {
    padding: 18px;
    box-shadow: 4px 4px 0 var(--ink);
  }
}

/* Final student-facing polish: lighter cards, clearer clickable curriculum rows. */
.home-learning-grid .studio-panel {
  min-height: auto;
}

.studio-panel,
.card,
.level-card,
.retention-card,
.rescue-card,
.trust-card,
.cert-card,
.worksheet-card,
.check-card,
.download-card,
.explainer-card,
.tool-card,
.scenario-card,
.membership-card,
.community-card {
  box-shadow: 0 8px 24px rgba(31, 42, 36, 0.055);
}

.studio-panel:hover,
.card:hover,
.level-card:hover,
.retention-card:hover,
.rescue-card:hover,
.trust-card:hover,
.cert-card:hover,
.worksheet-card:hover,
.check-card:hover,
.download-card:hover,
.explainer-card:hover,
.tool-card:hover,
.scenario-card:hover,
.membership-card:hover,
.community-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(31, 42, 36, 0.08);
}

.level-card {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.level-card .module-count {
  align-self: center;
  border: 1px solid rgba(30, 127, 92, 0.24);
  border-radius: 999px;
  color: var(--forest);
  padding: 0.48rem 0.72rem;
  white-space: nowrap;
}

.level-card:hover .module-count,
.level-card:focus-visible .module-count {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.membership-price {
  color: var(--forest);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin: 0.35rem 0 0.65rem;
}

.membership-price small {
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero {
    gap: 24px;
    padding: 36px 0 28px;
  }

  .top-signal-grid {
    display: none;
  }

  .hero-visual {
    min-height: 320px;
  }

  .chart-area {
    height: 280px;
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  h1,
  .motion-hero h1,
  .page-hero h1,
  body:not([data-page-family="home"]) .page-hero h1,
  .start-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.45rem);
    line-height: 1.02;
  }

  .hero-visual {
    min-height: 280px;
  }

  .chart-area {
    height: 240px;
    min-height: 240px;
  }
}

body:not([data-page-family="home"]) .page-hero::before,
body:not([data-page-family="home"]) .page-hero::after,
.next-step-widget,
.lesson-dock {
  display: none !important;
}

[data-form-message]:not(.has-message) {
  display: none !important;
}

.reveal,
.section-motion {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* NAKAMOTO monochrome integration */
:root,
body[data-theme="paper"],
body[data-theme="contrast"] {
  --ink: #050505;
  --muted: #626262;
  --paper: #ffffff;
  --panel: #ffffff;
  --line: #d8d8d8;
  --forest: #111111;
  --mint: #f3f3f3;
  --coral: #2a2a2a;
  --amber: #c8c8c8;
  --sky: #3f3f3f;
  --violet: #555555;
  --danger: #222222;
  --blueprint: #1f1f1f;
  --research: #2b2b2b;
  --history: #3a3a3a;
  --behavior: #444444;
  --model: #555555;
  --graph: rgba(0, 0, 0, 0.045);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

body[data-theme="dark"] {
  --ink: #f7f7f7;
  --muted: #b8b8b8;
  --paper: #050505;
  --panel: #101010;
  --line: #303030;
  --forest: #f5f5f5;
  --mint: #191919;
  --coral: #d8d8d8;
  --amber: #a8a8a8;
  --sky: #d0d0d0;
  --violet: #c6c6c6;
  --danger: #f1f1f1;
  --blueprint: #dedede;
  --research: #d4d4d4;
  --history: #c8c8c8;
  --behavior: #bdbdbd;
  --model: #b2b2b2;
  --graph: rgba(255, 255, 255, 0.07);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

body,
body[data-theme="paper"],
body[data-theme="contrast"] {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    var(--paper) !important;
  background-size: 34px 34px !important;
}

body[data-theme="dark"] {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #050505 !important;
  background-size: 34px 34px !important;
}

body::before {
  background:
    radial-gradient(circle at 16% 14%, rgba(0, 0, 0, 0.055), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(0, 0, 0, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.96)) !important;
}

body[data-theme="dark"]::before {
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.1), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(13, 13, 13, 0.96)) !important;
}

.site-header::after,
.studio-panel::before,
.section-head::before,
.card::before,
.lesson-card::before,
.feature-card::before,
.path-card::before,
.module-card::before,
.pricing-card::before,
.retention-card::before,
.trust-card::before {
  background: linear-gradient(90deg, #050505, #777777, #d8d8d8) !important;
}

body[data-theme="dark"] .site-header::after,
body[data-theme="dark"] .studio-panel::before,
body[data-theme="dark"] .section-head::before,
body[data-theme="dark"] .card::before,
body[data-theme="dark"] .lesson-card::before,
body[data-theme="dark"] .feature-card::before,
body[data-theme="dark"] .path-card::before,
body[data-theme="dark"] .module-card::before,
body[data-theme="dark"] .pricing-card::before,
body[data-theme="dark"] .retention-card::before,
body[data-theme="dark"] .trust-card::before {
  background: linear-gradient(90deg, #ffffff, #9d9d9d, #2f2f2f) !important;
}

.brand-mark,
.skip-link,
.btn.primary,
.btn.coral,
.button.primary,
.mobile-toggle,
.mode-controls button.active,
.theme-toggle,
.level-card:hover .module-count,
.level-card:focus-visible .module-count {
  background: #050505 !important;
  border-color: #050505 !important;
  color: #ffffff !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2) !important;
}

body[data-theme="dark"] .brand-mark,
body[data-theme="dark"] .skip-link,
body[data-theme="dark"] .btn.primary,
body[data-theme="dark"] .btn.coral,
body[data-theme="dark"] .button.primary,
body[data-theme="dark"] .mobile-toggle,
body[data-theme="dark"] .mode-controls button.active,
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .level-card:hover .module-count,
body[data-theme="dark"] .level-card:focus-visible .module-count {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #050505 !important;
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.18) !important;
}

.btn,
.button,
.tag,
.pill,
.badge,
.module-count,
.lesson-meta span,
.nav-links a,
.nav-actions a,
.nakamoto-academy-bar,
.search-dialog,
.modal,
input,
select,
textarea {
  border-color: var(--line) !important;
}

.btn.ghost,
.button.secondary,
.nav-actions .btn.ghost,
.mode-controls button,
.filter-btn {
  background: var(--panel) !important;
  color: var(--ink) !important;
}

.card,
.studio-panel,
.lesson-card,
.feature-card,
.path-card,
.module-card,
.pricing-card,
.retention-card,
.trust-card,
.hero-card,
.stat-card,
.search-result,
.timeline-card,
.download-card,
.tool-card {
  background: color-mix(in srgb, var(--panel) 96%, var(--ink) 4%) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow) !important;
}

.dot {
  background: #050505 !important;
  box-shadow: 14px 0 0 #777777, 28px 0 0 #d8d8d8 !important;
}

body[data-theme="dark"] .dot {
  background: #ffffff !important;
  box-shadow: 14px 0 0 #9d9d9d, 28px 0 0 #404040 !important;
}

.bar-dots i,
.chart-dot,
.signal-dot,
.status-dot,
.heat-dot {
  background: #111111 !important;
}

.bar-dots i:nth-child(2n),
.chart-dot:nth-child(2n),
.signal-dot:nth-child(2n),
.status-dot:nth-child(2n),
.heat-dot:nth-child(2n) {
  background: #777777 !important;
}

.bar-dots i:nth-child(3n),
.chart-dot:nth-child(3n),
.signal-dot:nth-child(3n),
.status-dot:nth-child(3n),
.heat-dot:nth-child(3n) {
  background: #d8d8d8 !important;
}

[data-page-family],
[data-accent],
.accent-forest,
.accent-mint,
.accent-coral,
.accent-amber,
.accent-sky,
.accent-violet {
  --page-accent: #111111 !important;
  --page-soft: #f4f4f4 !important;
  --accent: #111111 !important;
}

body[data-theme="dark"] [data-page-family],
body[data-theme="dark"] [data-accent],
body[data-theme="dark"] .accent-forest,
body[data-theme="dark"] .accent-mint,
body[data-theme="dark"] .accent-coral,
body[data-theme="dark"] .accent-amber,
body[data-theme="dark"] .accent-sky,
body[data-theme="dark"] .accent-violet {
  --page-accent: #ffffff !important;
  --page-soft: #151515 !important;
  --accent: #ffffff !important;
}

.liquidity-zone,
.volume-profile,
.delta-meter,
.footprint-grid,
.risk-band,
.heatmap,
.signal-card,
.market-card,
.motion-card,
.chart-stage,
.hero-visual,
.dashboard-panel {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    color-mix(in srgb, var(--panel) 95%, var(--ink) 5%) !important;
  background-size: 24px 24px !important;
}

body[data-theme="dark"] .liquidity-zone,
body[data-theme="dark"] .volume-profile,
body[data-theme="dark"] .delta-meter,
body[data-theme="dark"] .footprint-grid,
body[data-theme="dark"] .risk-band,
body[data-theme="dark"] .heatmap,
body[data-theme="dark"] .signal-card,
body[data-theme="dark"] .market-card,
body[data-theme="dark"] .motion-card,
body[data-theme="dark"] .chart-stage,
body[data-theme="dark"] .hero-visual,
body[data-theme="dark"] .dashboard-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    color-mix(in srgb, var(--panel) 92%, #ffffff 8%) !important;
  background-size: 24px 24px !important;
}

.membership-price,
.eyebrow,
.section-kicker,
.nav-links a:hover,
.footer-grid a:hover,
.stat-value,
.metric-value {
  color: var(--ink) !important;
}

:focus-visible {
  outline-color: var(--ink) !important;
}
