/* ============================================================
   MONETIZEHER — Brand & Academy Style Guide
   Foundational tokens + base styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Allura&family=Italiana&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Brand color tokens ── */
  --mh-burgundy:    #700C0C;
  /* Legacy aliases — Deep Wine & Midnight Wine retired. Both resolve to Burgundy. */
  --mh-deep-wine:   #700C0C;
  --mh-midnight:    #700C0C;
  --mh-gold:        #C4973A;
  --mh-gold-light:  #D4A84A;
  --mh-cream:       #E7E3DD;
  --mh-ivory:       #F7F3EC;
  --mh-linen:       #EDE7DB;
  --mh-muted:       #8A7D74;

  /* ── Font stacks (Google substitutes until real files arrive) ── */
  --font-display:   'Allura', 'Pinyon Script', cursive;            /* Amoresa stand-in */
  --font-headline:  'Italiana', 'Cormorant Garamond', serif;       /* Perandory stand-in */
  --font-editorial: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', ui-monospace, monospace;

  /* ── Scale ── */
  --max-w: 1280px;
  --gutter: clamp(24px, 4vw, 64px);
  --section-pad: clamp(80px, 12vh, 160px);
  --rule-w: 1px;

  /* ── Active section colors (set per-section) ── */
  --bg: var(--mh-ivory);
  --fg: var(--mh-deep-wine);
  --fg-muted: var(--mh-muted);
  --accent: var(--mh-burgundy);
  --rule: rgba(61, 16, 24, 0.18);

  /* ── Tweak-driven ── */
  --accent-intensity: 1;          /* 0 = restrained, 1 = normal, 1.4 = forward */
  --playground-fg: var(--mh-deep-wine);
  --playground-bg: var(--mh-ivory);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--mh-burgundy);
  background: var(--mh-ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
hr { border: 0; border-top: var(--rule-w) solid var(--rule); margin: 0; }

::selection { background: var(--mh-gold); color: var(--mh-burgundy); }

/* ============================================================
   Section skins
   ============================================================ */
.section {
  background: var(--bg);
  color: var(--fg);
  padding: var(--section-pad) var(--gutter);
  position: relative;
  scroll-margin-top: 24px;
}
.section--dark    { --bg: var(--mh-burgundy); --fg: var(--mh-cream);    --fg-muted: rgba(231,227,221,.62); --accent: var(--mh-gold);     --rule: rgba(196,151,58,.32); }
.section--wine    { --bg: var(--mh-burgundy); --fg: var(--mh-cream);    --fg-muted: rgba(231,227,221,.55); --accent: var(--mh-gold);     --rule: rgba(196,151,58,.32); }
.section--midnight{ --bg: var(--mh-burgundy); --fg: var(--mh-cream);    --fg-muted: rgba(231,227,221,.55); --accent: var(--mh-gold);     --rule: rgba(196,151,58,.32); }
.section--ivory   { --bg: var(--mh-ivory);    --fg: var(--mh-burgundy); --fg-muted: var(--mh-muted);       --accent: var(--mh-burgundy); --rule: rgba(112,12,12,.18); }
.section--linen   { --bg: var(--mh-linen);    --fg: var(--mh-burgundy); --fg-muted: var(--mh-muted);       --accent: var(--mh-burgundy); --rule: rgba(112,12,12,.18); }
.section--cream   { --bg: var(--mh-cream);    --fg: var(--mh-burgundy); --fg-muted: var(--mh-muted);       --accent: var(--mh-burgundy); --rule: rgba(112,12,12,.18); }

.container { max-width: var(--max-w); margin: 0 auto; }
.container--narrow { max-width: 760px; }

/* ============================================================
   Type primitives
   ============================================================ */
.display-script {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
.display-headline {
  font-family: var(--font-headline);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.02;
  text-transform: none;
}
.h1 { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.h1--condensed { font-family: var(--font-headline); font-weight: 400; letter-spacing: 0; }
.h2 { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.005em; margin: 0; }
.h3 { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; margin: 0; }
.subhead { font-family: var(--font-editorial); font-style: italic; font-weight: 400; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--fg-muted); margin: 0; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.65; max-width: 60ch; }
.body { font-size: 1rem; line-height: 1.7; }
.body p { margin: 0 0 1em; }
.body p:last-child { margin-bottom: 0; }
.label,
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.caption { font-size: 0.82rem; color: var(--fg-muted); letter-spacing: 0.02em; }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }

/* ============================================================
   Section header pattern (eyebrow + chapter no + title)
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 3.5fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: var(--rule-w) solid var(--rule);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head__meta { display: flex; flex-direction: column; gap: 12px; }
.section-head__no {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.9;
  color: var(--accent);
  font-feature-settings: 'lnum' 1;
}
.section-head__title { max-width: 22ch; }
.section-head__sub { margin-top: 14px; max-width: 60ch; color: var(--fg-muted); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--mh-ivory);
  color: var(--mh-burgundy);
}
.hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mh-burgundy);
  padding: clamp(28px, 4vw, 48px) var(--gutter);
}
.hero__band {
  background: var(--mh-burgundy);
  color: var(--mh-cream);
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  display: grid;
  place-items: center;
  width: 100%;
  position: relative;
}
.hero__band::before,
.hero__band::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--mh-gold);
  opacity: 0.45;
}
.hero__band::before { top: 28px; }
.hero__band::after  { bottom: 28px; }
.hero__center {
  display: grid;
  place-items: center;
  text-align: center;
  gap: clamp(28px, 5vh, 48px);
  padding: clamp(56px, 9vh, 110px) var(--gutter);
}
.hero__lockup { max-width: min(780px, 90vw); width: 100%; }
.hero__lockup img { width: 100%; height: auto; }
.hero__title {
  font-family: var(--font-editorial);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  max-width: 30ch;
  color: var(--mh-burgundy);
}
.hero__title em { font-style: italic; color: var(--mh-gold); font-weight: 500; }
.hero__rule { width: 96px; height: 1px; background: var(--mh-gold); opacity: 0.7; margin: 0 auto; }
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mh-burgundy);
  padding: clamp(28px, 4vw, 48px) var(--gutter);
}
.hero__bottom > :nth-child(2) { text-align: center; }
.hero__bottom > :nth-child(3) { text-align: right; }

/* ============================================================
   Side-nav (chaptered mode)
   ============================================================ */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  padding: 32px 28px;
  background: var(--mh-deep-wine);
  color: var(--mh-cream);
  display: none;
  flex-direction: column;
  gap: 24px;
  z-index: 20;
  border-right: 1px solid rgba(196,151,58,.2);
  overflow-y: auto;
}
[data-format="chaptered"] .sidenav { display: flex; }
[data-format="chaptered"] main { margin-left: 240px; }
[data-format="chaptered"] .hero { margin-left: 0; padding-left: calc(var(--gutter) + 240px); }
[data-format="chaptered"] .section { margin-left: 0; }
.sidenav__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--mh-cream);
  line-height: 1;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(196,151,58,.25);
}
.sidenav__brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(231,227,221,.55);
  margin-top: 6px;
}
.sidenav__list { display: flex; flex-direction: column; gap: 4px; }
.sidenav__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(231,227,221,.7);
  border-bottom: 1px dotted rgba(196,151,58,.15);
  transition: color 180ms ease;
}
.sidenav__item:hover { color: var(--mh-gold-light); }
.sidenav__item.is-active { color: var(--mh-gold-light); }
.sidenav__item .num { font-family: var(--font-headline); font-size: 1rem; color: var(--mh-gold); }
.sidenav__footer { margin-top: auto; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(231,227,221,.4); }

[data-format="longscroll"] .chapter-divider { display: none; }
.chapter-divider {
  text-align: center;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  background: var(--mh-deep-wine);
  color: var(--mh-cream);
}
.chapter-divider__no {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  color: var(--mh-gold);
}
.chapter-divider__title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-top: 18px;
  color: var(--mh-cream);
}

/* ============================================================
   Color swatches
   ============================================================ */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.swatch {
  position: relative;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0;
  background: none;
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease;
}
.swatch:hover { transform: translateY(-2px); }
.swatch__chip {
  height: 200px;
  border-bottom: 1px solid rgba(61,16,24,.08);
  position: relative;
}
.swatch__body { padding: 20px 22px 22px; background: var(--bg); }
.swatch__name {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.swatch__hex {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.swatch__use {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 10px;
  line-height: 1.5;
  display: block;
}
.swatch__copied {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--mh-deep-wine);
  color: var(--mh-cream);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.swatch.is-copied .swatch__copied { opacity: 1; }

/* Pairing tiles */
.pair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pair {
  aspect-ratio: 4/3;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(196,151,58,.3);
}
.pair__top { font-family: var(--font-editorial); font-size: 1.5rem; line-height: 1.15; max-width: 14ch; }
.pair__bot { display: flex; justify-content: space-between; align-items: end; gap: 8px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.pair__bot .dot { display: inline-block; width: 12px; height: 12px; border: 1px solid currentColor; }

/* ============================================================
   Type specimens
   ============================================================ */
.spec {
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--rule);
  background: var(--bg);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.spec + .spec { border-top: 0; }
.spec__meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; color: var(--fg-muted); }
.spec__meta strong { font-family: var(--font-editorial); font-weight: 500; color: var(--fg); font-size: 1.4rem; }
.spec__sample { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; }
.spec__sample--med { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.spec__sample--body { font-size: 1rem; line-height: 1.7; }
.spec__sample--label { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; }

.scale-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.scale-table th, .scale-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.scale-table th { font-weight: 500; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--fg-muted); }
.scale-table td.demo { font-size: 1.5rem; }
.scale-table tr:last-child td { border-bottom: 0; }

/* Font size slider sample */
.size-demo {
  border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.size-demo__sample {
  font-family: var(--font-editorial);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  min-height: 1.2em;
}
.size-demo__controls { display: flex; flex-direction: column; gap: 14px; }
.size-demo__row { display: flex; align-items: center; gap: 16px; font-size: 0.82rem; color: var(--fg-muted); }
.size-demo__row label { min-width: 110px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.size-demo__row input[type=range] { flex: 1; accent-color: var(--mh-gold); }
.size-demo__row .val { font-family: var(--font-mono); font-size: 0.78rem; min-width: 60px; text-align: right; }

/* ============================================================
   Voice — do/don't
   ============================================================ */
.dodont {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.dodont__card {
  padding: 24px 26px;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.dodont__card--no { border-color: rgba(122, 38, 38, 0.32); }
.dodont__mark {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dodont__mark .glyph { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 0.78rem; line-height: 1; }
.dodont__card--no .dodont__mark { color: var(--mh-burgundy); }
.dodont__card--yes .dodont__mark { color: var(--mh-gold); }
.section--ivory .dodont__card--no .dodont__mark,
.section--linen .dodont__card--no .dodont__mark,
.section--cream .dodont__card--no .dodont__mark { color: var(--mh-burgundy); }
.dodont__quote { font-family: var(--font-editorial); font-size: 1.15rem; line-height: 1.35; font-style: italic; }

/* ============================================================
   Signature phrase specimens
   ============================================================ */
.phrases {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.phrase {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(28px, 4vw, 44px) 4px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding 220ms ease, background 220ms ease;
}
.phrase:hover { background: rgba(196,151,58,.05); padding-left: 12px; }
.phrase__no { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.06em; }
.phrase__body {
  font-family: var(--font-editorial);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.phrase__body em { font-style: italic; font-weight: 400; }
.phrase__action {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}
.phrase.is-copied .phrase__action { color: var(--mh-gold); }

/* ============================================================
   Buttons & components (playground)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 44px;
  border: none;
  background: var(--mh-gold);
  color: var(--mh-deep-wine);
  border-radius: 0;
  transition: background 200ms ease, transform 200ms ease;
}
.btn:hover { background: var(--mh-gold-light); }
.btn--ghost { background: transparent; color: var(--mh-gold); border: 1px solid var(--mh-gold); }
.btn--ghost:hover { background: rgba(196,151,58,0.1); }
.btn--cream { background: var(--mh-cream); color: var(--mh-deep-wine); }
.btn--cream:hover { background: var(--mh-ivory); }
.btn--burgundy { background: var(--mh-burgundy); color: var(--mh-cream); }
.btn--burgundy:hover { background: var(--mh-deep-wine); }

.input {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  width: 100%;
  outline: none;
  letter-spacing: 0.01em;
}
.input:focus { border-bottom-color: var(--mh-gold); }
.input::placeholder { color: currentColor; opacity: 0.5; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; }

.card {
  padding: 28px 30px;
  border: 1px solid rgba(196,151,58,0.32);
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card__eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mh-gold); }
.card__title { font-family: var(--font-editorial); font-size: 1.45rem; line-height: 1.2; font-weight: 500; }
.card__body { font-size: 0.92rem; line-height: 1.6; opacity: 0.85; }

.divider-gold { width: 96px; height: 1px; background: var(--mh-gold); opacity: 0.7; }
.divider-gold--center { margin-left: auto; margin-right: auto; }

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  color: var(--mh-gold);
}

/* Playground container */
.playground {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--rule);
}
@media (min-width: 900px) { .playground { grid-template-columns: 240px 1fr; } }
.playground__chrome {
  background: var(--mh-deep-wine);
  color: var(--mh-cream);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.playground__chrome label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; }
.playground__chrome input[type=text] {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 12px;
  border: 1px solid rgba(196,151,58,.35);
  background: rgba(0,0,0,.15);
  color: var(--mh-cream);
  outline: none;
}
.playground__chrome input[type=text]:focus { border-color: var(--mh-gold); }
.playground__chrome .seg { display: flex; border: 1px solid rgba(196,151,58,.35); }
.playground__chrome .seg button { flex: 1; padding: 8px 0; background: transparent; color: var(--mh-cream); border: none; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.playground__chrome .seg button.is-on { background: var(--mh-gold); color: var(--mh-deep-wine); }
.playground__stage {
  background: var(--playground-bg);
  color: var(--playground-fg);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 360px;
}
.playground__row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.playground__caption { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; }

/* ============================================================
   Layout pattern diagrams
   ============================================================ */
.layout-diagram {
  display: grid;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.layout-diagram__row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: stretch;
}
.layout-diagram__label { padding-top: 18px; }
.layout-diagram__bar {
  height: 64px;
  border: 1px solid var(--rule);
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.layout-diagram__bar--dark { background: var(--mh-burgundy); color: var(--mh-cream); border-color: var(--mh-burgundy); }
.layout-diagram__bar--wine { background: var(--mh-burgundy); color: var(--mh-cream); border-color: var(--mh-burgundy); }
.layout-diagram__bar--cream { background: var(--mh-cream); }
.layout-diagram__bar--ivory { background: var(--mh-ivory); }
.layout-diagram__bar--linen { background: var(--mh-linen); }
.layout-diagram__bar--cream { background: var(--mh-cream); }

/* ============================================================
   Transformation path
   ============================================================ */
.path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 24px;
}
@media (max-width: 900px) { .path { grid-template-columns: 1fr; } }
.path__step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
  position: relative;
  min-height: 280px;
}
.path__step:last-child { border-right: 0; }
@media (max-width: 900px) { .path__step { border-right: 0; border-bottom: 1px solid var(--rule); } }
.path__no { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.18em; }
.path__title { font-family: var(--font-editorial); font-size: 1.6rem; font-weight: 500; line-height: 1.1; }
.path__desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.55; }
.path__arrow {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.path__step:last-child .path__arrow { display: none; }

/* ============================================================
   Lockup gallery
   ============================================================ */
.lockup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.lockup-cell {
  background: var(--mh-burgundy);
  aspect-ratio: 5/3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.lockup-cell img { width: 100%; height: 100%; object-fit: cover; }
.lockup-cell__caption {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231,227,221,.5);
}
.lockup-cell--script .lockup-cell__caption { color: rgba(231,227,221,.55); }

/* Lockup variant on hero (cycle) */
.lockup-cycle { position: relative; }
.lockup-cycle img { transition: opacity 360ms ease; }

/* Clear space diagram */
.clearspace-diagram {
  position: relative;
  border: 1px dashed var(--rule);
  padding: 64px;
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  background: var(--mh-burgundy);
  color: var(--mh-cream);
}
.clearspace-diagram img { max-width: 320px; }
.clearspace-diagram::before,
.clearspace-diagram::after {
  content: 'M';
  position: absolute;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--mh-gold);
  opacity: 0.6;
}
.clearspace-diagram::before { top: 16px; left: 16px; }
.clearspace-diagram::after { bottom: 16px; right: 16px; }

/* ============================================================
   Module cards (course experience)
   ============================================================ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}
.module {
  padding: 32px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.module__no { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.18em; }
.module__title { font-family: var(--font-editorial); font-size: 1.4rem; font-weight: 500; }
.module__desc { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.6; }

/* ============================================================
   Photography placeholders
   ============================================================ */
.imagery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.imagery-slot {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(122,38,38,.06) 0,
      rgba(122,38,38,.06) 8px,
      transparent 8px,
      transparent 16px
    ),
    var(--mh-linen);
  border: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--fg-muted);
}
.imagery-slot--wide { aspect-ratio: 16/10; }
.imagery-slot__tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.imagery-slot__note { font-size: 0.78rem; line-height: 1.5; max-width: 28ch; }

/* ============================================================
   Motion
   ============================================================ */
.motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.motion {
  padding: 28px 26px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.motion__demo {
  height: 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.motion__dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--mh-gold);
  border-radius: 50%;
  animation: motion-glide 4.5s infinite;
}
.motion--ease   .motion__dot { animation-timing-function: cubic-bezier(.4,0,.2,1); }
.motion--quint  .motion__dot { animation-timing-function: cubic-bezier(.22,1,.36,1); }
.motion--slow   .motion__dot { animation-duration: 7s; }
.motion--fade   .motion__dot { animation: motion-fade 4s infinite; }
@keyframes motion-glide {
  0%, 100% { left: 0%; }
  50% { left: calc(100% - 14px); }
}
@keyframes motion-fade {
  0%, 100% { opacity: 0.2; transform: translateY(-50%) scale(0.9); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.4); }
}
.motion__title { font-family: var(--font-editorial); font-size: 1.2rem; font-weight: 500; }
.motion__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-muted); letter-spacing: 0.06em; }
.motion__note { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.55; }

/* ============================================================
   Social templates
   ============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.social {
  border: 1px solid var(--rule);
  background: var(--mh-burgundy);
  color: var(--mh-cream);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.social--square { aspect-ratio: 1/1; }
.social--story  { aspect-ratio: 9/16; }
.social--quote  { aspect-ratio: 4/5; }
.social__body { flex: 1; padding: 22px; display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
.social__eyebrow { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; color: var(--mh-gold); }
.social__head { font-family: var(--font-editorial); font-size: 1.4rem; line-height: 1.18; font-weight: 500; }
.social__sub { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--mh-gold-light); }
.social__foot { padding: 12px 18px; border-top: 1px solid rgba(196,151,58,.3); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.55; text-align: center; }
.social__caption { padding: 10px 14px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted); }

/* ============================================================
   Stationery
   ============================================================ */
.stationery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .stationery-grid { grid-template-columns: 1fr; } }
.letterhead {
  background: var(--mh-ivory);
  color: var(--mh-deep-wine);
  aspect-ratio: 8.5/11;
  padding: 56px 60px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.letterhead__top { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--mh-gold); }
.letterhead__logo { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.letterhead__meta { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mh-muted); text-align: right; line-height: 1.6; }
.letterhead__body { font-size: 0.9rem; line-height: 1.7; max-width: 56ch; }
.letterhead__body p { margin: 0 0 1em; }
.letterhead__sig { font-family: var(--font-display); font-size: 1.6rem; margin-top: 8px; color: var(--mh-deep-wine); }

.bizcards { display: grid; gap: 18px; }
.bizcard {
  aspect-ratio: 1.75/1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--rule);
}
.bizcard--front { background: var(--mh-burgundy); color: var(--mh-cream); }
.bizcard--back { background: var(--mh-ivory); color: var(--mh-deep-wine); }
.bizcard__logo { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.bizcard--front .bizcard__logo { color: var(--mh-cream); }
.bizcard__name { font-family: var(--font-editorial); font-size: 1.05rem; font-weight: 500; }
.bizcard__meta { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; line-height: 1.7; }
.bizcard__rule { width: 32px; height: 1px; background: var(--mh-gold); }

.email-sig {
  background: var(--mh-ivory);
  color: var(--mh-deep-wine);
  padding: 24px 28px;
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  display: flex;
  gap: 24px;
  align-items: center;
}
.email-sig__logo { font-family: var(--font-display); font-size: 1.8rem; color: var(--mh-burgundy); line-height: 1; }
.email-sig__divider { width: 1px; align-self: stretch; background: var(--mh-gold); opacity: 0.6; }
.email-sig__name { font-family: var(--font-editorial); font-size: 1.1rem; font-weight: 500; }
.email-sig__role { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mh-muted); margin-top: 2px; }
.email-sig__contact { margin-top: 6px; font-size: 0.78rem; color: var(--mh-muted); }

/* ============================================================
   Colophon
   ============================================================ */
.colophon {
  padding: clamp(60px, 8vh, 100px) var(--gutter);
  background: var(--mh-midnight);
  color: rgba(231,227,221,.62);
}
.colophon__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.colophon__lockup { font-family: var(--font-display); color: var(--mh-cream); font-size: 2.4rem; line-height: 1; }
.colophon__meta { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; text-align: right; line-height: 1.9; }

/* ============================================================
   Utilities
   ============================================================ */
.stack { display: flex; flex-direction: column; }
.stack-8 { gap: 8px; } .stack-12 { gap: 12px; } .stack-16 { gap: 16px; } .stack-24 { gap: 24px; } .stack-32 { gap: 32px; } .stack-48 { gap: 48px; }
.row { display: flex; flex-direction: row; }
.row-12 { gap: 12px; } .row-24 { gap: 24px; } .row-32 { gap: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 32px); }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.muted { color: var(--fg-muted); }
.center { text-align: center; }
.italic { font-style: italic; }

/* Accent intensity hook — multiply gold opacity in restrained mode */
[data-accent="restrained"] .swatch__chip[style*="C4973A"],
[data-accent="restrained"] .swatch__chip[style*="D4A84A"] { filter: saturate(0.85) brightness(0.95); }
[data-accent="forward"] .section--ivory,
[data-accent="forward"] .section--linen,
[data-accent="forward"] .section--cream { --rule: rgba(196,151,58,.45); }
[data-accent="forward"] .divider-gold { height: 2px; }
[data-accent="forward"] .tag { background: rgba(196,151,58,.1); }

/* Type pairing — swap H1 carrier */
[data-type-h1="condensed"] .h1 { font-family: var(--font-headline); font-weight: 400; letter-spacing: 0; }
[data-type-h1="editorial"] .h1 { font-family: var(--font-editorial); font-weight: 500; letter-spacing: -0.01em; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
