/* ==========================================================================
   glenndiesen.com — site stylesheet
   Palette: deep ink navy, white, light grey surfaces, muted bronze accent.
   Type:    Space Grotesk (display) + Manrope (text)
   ========================================================================== */

/* ---------- Self-hosted fonts (no third-party requests) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-variable.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk-variable.woff2") format("woff2"); }

:root {
  --ink: #14213d;
  --ink-2: #1c2a4a;
  --ink-3: #2a3a5e;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --paper-3: #e9ebef;
  --white: #ffffff;
  --text: #25272c;
  --muted: #666b75;
  --line: #e2e4e9;
  --accent: #9a7b3c;
  --accent-2: #b9985a;
  --accent-soft: #f3eee2;

  --font-display: "Space Grotesk", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #d8dce6; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink a { color: #e8e3d6; }
.section--ink a:hover { color: var(--accent-2); }
.section--ink .eyebrow { color: var(--accent-2); }
.section--ink .lead { color: #c9cfdb; }
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split--reverse { grid-template-columns: .9fr 1.1fr; }
.center { text-align: center; }
.section--centered { min-height: 60vh; display: grid; place-items: center; }
.lead--center { margin-left: auto; margin-right: auto; margin-bottom: 2rem; }
.btn-row--center { justify-content: center; }
.footer__bottom--bare { padding-top: 0; }
.aside__note { color: var(--muted); font-size: .95rem; }
.aside__address { margin: 0; font-size: .95rem; }
.platforms--stack { grid-template-columns: 1fr; gap: 12px; }
.substack-embed--center { max-width: 560px; margin: 1.5rem auto 0; }
.bullets--cols { columns: 2; column-gap: 32px; }
.hr--dark { border-color: rgba(255,255,255,.1); margin: 3rem 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-text);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.lead { font-size: 1.2rem; line-height: 1.6; color: #3c4049; max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head--row .section-head__text { max-width: 720px; }
.section-head--row .section-head__text h2 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-text); font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--white);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--ink-3); border-color: var(--ink-3); color: var(--white); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(20,33,61,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: -0.02em;
  display: grid; place-items: center;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.brand__role { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; font-size: .92rem; font-weight: 500; color: var(--ink-2); border-radius: 4px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav .nav__cta { margin-left: 10px; padding: 10px 18px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.nav .nav__cta:hover { background: var(--accent); }
.nav .nav__cta::after { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; cursor: pointer; place-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(154,123,60,.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(20,33,61,.07), transparent 60%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent); font-weight: 500; }
.hero .lead { margin-bottom: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 2.2rem; font-size: .9rem; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.portrait-wrap { position: relative; padding: 14px 0 0 14px; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 18px;
  background: linear-gradient(to top, rgba(14,23,43,.92), rgba(14,23,43,0));
  color: #c9cfdb; font-size: .85rem; line-height: 1.4;
}
.portrait__caption strong { color: var(--white); display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.portrait-wrap::before { content: ""; position: absolute; inset: 0 14px 14px 0; border: 1px solid var(--accent-2); border-radius: var(--radius); pointer-events: none; }
.portrait--hero img { object-position: 58% 18%; }
.photo-credit { display: block; margin-top: 14px; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.photo-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--accent); }
.aside__photo { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; background: var(--ink); }
.aside__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 15%; }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: .85rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd3db; }
.card__num { font-family: var(--font-display); font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .12em; margin-bottom: 14px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: #474b55; margin-bottom: 0; font-size: .98rem; }
.card--link { display: block; }
.card--link .link-arrow { margin-top: 18px; }
.theme-card { position: relative; padding-top: 34px; }
.theme-card::before { content: ""; position: absolute; top: 0; left: 34px; width: 48px; height: 3px; background: var(--accent); }

/* ---------- Books ---------- */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); }
.book { display: flex; flex-direction: column; gap: 18px; }
.book__cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 30px rgba(20,33,61,.18), inset 6px 0 12px -8px rgba(0,0,0,.6);
  padding: 22px 20px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.book:hover .book__cover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 46px rgba(20,33,61,.26), inset 6px 0 12px -8px rgba(0,0,0,.6); }
.book__cover::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 2px; pointer-events: none; }
.book__cover--bronze { background: linear-gradient(160deg, #a7874a, #7a5f2b); }
.book__cover--slate { background: linear-gradient(160deg, #3a4a6c, #1c2742); }
.book__cover--oxblood { background: linear-gradient(160deg, #6b2b2b, #3f1818); }
.book__cover--forest { background: linear-gradient(160deg, #2f4a3e, #17291f); }
.book__cover--charcoal { background: linear-gradient(160deg, #3b3b42, #1d1d22); }
.book__cover--navy { background: linear-gradient(160deg, #1f3056, #0f172b); }
.book__cover--plum { background: linear-gradient(160deg, #4a3050, #261628); }
.book__cover--teal { background: linear-gradient(160deg, #2b4a52, #142629); }
.book__cover--sand { background: linear-gradient(160deg, #c9b58c, #8f7a52); color: #1d1a12; }
.book__cover--sand::before { border-color: rgba(0,0,0,.14); }
.book__cover--img { padding: 0; background: var(--paper-3); display: block; }
.book__cover--img::before { display: none; }
.book__cover--img img { width: 100%; height: 100%; object-fit: cover; }
.book--row { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; }
.book--row .book__cover { aspect-ratio: 2 / 3; }
.book__cover-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.15; }
.book__cover-sub { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: 10px; line-height: 1.4; }
.book__cover-author { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.book__meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.book h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.book p { font-size: .95rem; color: #474b55; margin-bottom: .6rem; }
.book .link-arrow { font-size: .88rem; }

.feature-book { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-book .book__cover { max-width: 300px; padding: 30px 26px; }
.feature-book .book__cover-title { font-size: 1.9rem; }
.feature-book blockquote { margin: 1.4rem 0; padding-left: 20px; border-left: 2px solid var(--accent); font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline__date { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.timeline h4 { margin-bottom: 2px; font-size: 1.1rem; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Definition / fact lists ---------- */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; padding-top: 3px; }
.facts dd { margin: 0; }
.bullets li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--accent); }
.pubs li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pubs li:first-child { border-top: 1px solid var(--line); }
.pubs .pubs__title { font-weight: 600; color: var(--ink); display: block; }
.pubs .pubs__src { color: var(--muted); font-size: .92rem; }

/* ---------- Episodes / posts ---------- */
.episodes { border-top: 1px solid var(--line); }
.episode { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); color: inherit; transition: background .2s; }
.episode:hover { background: var(--paper-2); }
.episode:hover .episode__title { color: var(--accent); }
.episode__date { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.episode__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); line-height: 1.3; transition: color .2s; }
.episode__guest { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.episode__type { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); white-space: nowrap; }
.episode__type--video { border-color: rgba(154,123,60,.5); color: var(--accent); }

.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.substack-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.substack-embed iframe { width: 100%; height: 150px; border: 0; }

/* ---------- Platforms / socials ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 24px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  color: #e8e3d6; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.platform:hover { background: rgba(255,255,255,.08); border-color: var(--accent-2); transform: translateY(-3px); color: var(--white); }
.platform svg { width: 28px; height: 28px; color: var(--accent-2); }
.platform strong { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.platform span { font-size: .88rem; color: #b8bfcd; }
.platform--light { background: var(--white); border-color: var(--line); color: var(--text); }
.platform--light:hover { background: var(--white); border-color: var(--accent); color: var(--text); }
.platform--light strong { color: var(--ink); }
.platform--light span { color: var(--muted); }
.platform--light svg { color: var(--accent); }

/* ---------- Quote band ---------- */
.quote-band blockquote { margin: 0; max-width: 900px; }
.quote-band blockquote p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--white); }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--paper-2), var(--paper)); }
.page-hero h1 { margin-bottom: .6rem; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ---------- Prose ---------- */
.prose p { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 2rem; }
.prose .drop::first-letter { font-family: var(--font-display); font-size: 3.2em; float: left; line-height: .85; padding: 6px 12px 0 0; color: var(--accent); font-weight: 700; }
.aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aside h4 { margin-bottom: 14px; }
.aside .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
.sticky { position: sticky; top: 100px; }

/* ---------- Footer ---------- */
.site-footer { background: #0e172b; color: #b8bfcd; padding: clamp(48px, 6vw, 80px) 0 32px; }
.site-footer a { color: #d8dce6; }
.site-footer a:hover { color: var(--accent-2); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .brand__mark { background: var(--paper); color: var(--ink); }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__role { color: #8f98aa; }
.footer__brand p { font-size: .92rem; margin-top: 18px; max-width: 36ch; }
.footer__col h4 { color: var(--white); font-family: var(--font-text); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col li { margin-bottom: 10px; font-size: .95rem; }
.footer__email { display: inline-block; margin-top: 2px; font-size: .95rem; font-weight: 500; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 1px; }
.footer__email:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; transition: border-color .2s, background .2s; }
.footer__social a:hover { border-color: var(--accent-2); background: rgba(255,255,255,.05); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .82rem; color: #8f98aa; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 880px) {
  .nav {
    position: absolute; top: 76px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .nav__cta { margin: 16px 0 0; text-align: center; border: 0; }
  .nav-toggle { display: grid; }
  .hero__inner, .split, .split--reverse { grid-template-columns: 1fr; }
  .hero__inner .portrait-wrap { max-width: 420px; }
  .grid--3, .book-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-book { grid-template-columns: 1fr; }
  .feature-book .book__cover { max-width: 240px; }
  .book--row { grid-template-columns: 120px 1fr; gap: 18px; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .episode { grid-template-columns: 1fr; gap: 6px; }
  .episode__type { justify-self: start; }
  .sticky { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .book-grid, .platforms { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__role { display: none; }
  .hero__meta { gap: 8px 18px; }
  .btn { width: 100%; justify-content: center; }
}
