/* =============================================================================
   المدير الأعمى — "The listening room" · redesign draft (hero + about)
   Palette from the cover: deep ink-teal, coral, cream (+ the cover's sage and
   orange as supporting tones). Display: Noto Kufi Arabic. Text and numerals:
   IBM Plex Sans Arabic. No letter-spacing on Arabic anywhere; Arabic
   line-heights (1.25 display → 1.9 body).
   ========================================================================== */

:root {
  --bg: #041719;
  --bg-raise: #0a2629;
  --panel: #071e21;
  --teal: #145e60;
  --sage: #89b4ab;
  --sage-2: #679591;
  --coral: #ef7a5c;
  --coral-2: #f59a7e;
  --coral-deep: #d65a3e;
  --orange: #f28a3c;
  --cream: #f4ecdd;
  --cream-2: #d9d0c0;
  --muted: #94aca6;
  --line: rgba(244, 236, 221, 0.12);
  --line-2: rgba(244, 236, 221, 0.2);

  --f-display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --f-text: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
@media (max-width: 899px) {
  :root { --header-h: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-block-size: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Film grain: a fixed, static noise tile — the cinematic texture of a dim room. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

[hidden] { display: none !important; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 8px;
}
.visually-hidden {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  inset-block-start: -80px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--coral);
  color: #1c0d08;
  font-weight: 600;
  text-decoration: none;
  transition: inset-block-start 0.3s var(--ease-out);
}
.skip-link:focus { inset-block-start: 12px; }

/* ================================ HEADER ================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  block-size: var(--header-h);
  border-block-end: 1px solid transparent;
  transition: background-color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft);
}
.site-header.is-scrolled {
  background: rgba(4, 23, 25, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-block-end-color: var(--line);
}
html:not(.js) .site-header {
  background: rgba(4, 23, 25, 0.92);
  border-block-end-color: var(--line);
}
.site-header__row {
  block-size: 100%;
  max-inline-size: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--cream);
}
.brand-mark,
.about__kicker-mark {
  inline-size: 26px;
  block-size: 26px;
  flex: none;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ================================ BUTTONS ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-block-size: 48px;
  padding-inline: 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.btn--sm { min-block-size: 42px; padding-inline: 18px; font-size: 0.9rem; }
.btn--coral {
  background: var(--coral);
  color: #1c0d08;
  box-shadow: 0 10px 28px -12px rgba(239, 122, 92, 0.75);
}
.btn--coral:hover { background: var(--coral-2); transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(239, 122, 92, 0.9); }
.btn--ghost { background: rgba(244, 236, 221, 0.06); color: var(--cream); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(244, 236, 221, 0.1); }
.btn__icon {
  inline-size: 16px;
  block-size: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================= HERO · LISTEN ============================== */
.hero {
  --stage: clamp(300px, min(62vh, 34vw), 640px);
  --play: clamp(88px, 6.2vw, 116px);
  --word: min(7.4vw, 10.25rem);
  --word-h: calc(var(--word) * 1.25);
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: calc(var(--header-h) + clamp(6px, 1.4vh, 22px)) clamp(18px, 3.4vh, 40px);
}

/* The room: a warm lamp glow behind the stage, a faint beam from above. */
.hero__atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side at 50% 44%, rgba(239, 122, 92, 0.17), rgba(239, 122, 92, 0) 100%) 50% 44% / min(92vh, 96%) min(92vh, 96%) no-repeat,
    radial-gradient(58% 55% at 50% 44%, rgba(20, 94, 96, 0.45), rgba(20, 94, 96, 0) 75%);
  -webkit-mask: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.hero__beam {
  position: absolute;
  inset: 0;
  background: conic-gradient(at 50% -6%, transparent 0deg 163deg, rgba(255, 232, 205, 0.05) 171deg, rgba(255, 236, 214, 0.085) 180deg, rgba(255, 232, 205, 0.05) 189deg, transparent 197deg 360deg);
  -webkit-mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 80%);
  mask: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 80%);
}

.hero__player {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  inline-size: 100%;
  max-inline-size: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Desktop composition: the two words of the title flank the stage, which spans the
   first three rows (they add up to exactly --stage). The eyebrow sits over the first
   word, the facts under the second, the transport clasps the ring from below. */
.hero__grid {
  transition: opacity 0.45s var(--ease-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stage) minmax(0, 1fr);
  grid-template-rows:
    calc((var(--stage) - var(--word-h)) / 2)
    var(--word-h)
    calc((var(--stage) - var(--word-h)) / 2)
    auto;
  column-gap: clamp(12px, 1.6vw, 34px);
}

.hero__eyebrow {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  margin-block-end: clamp(6px, 1.2vh, 14px);
  position: relative;
  z-index: 3;
}
.hero__eyebrow-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 7px;
  padding-inline: 12px 16px;
  border-radius: 999px;
  background: rgba(239, 122, 92, 0.1);
  border: 1px solid rgba(239, 122, 92, 0.32);
  color: var(--coral-2);
  font-size: clamp(0.84rem, 0.86vw, 1rem);
  font-weight: 600;
  line-height: 1.5;
}
.hero__eyebrow-in svg {
  inline-size: 18px;
  block-size: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__title {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stage) minmax(0, 1fr);
  column-gap: clamp(12px, 1.6vw, 34px);
  align-items: center;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--word);
  line-height: 1.25;
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.hero__word { display: block; }
.hero__word--a { grid-column: 1; justify-self: end; color: var(--cream); }
.hero__word--b {
  grid-column: 3;
  justify-self: start;
  color: var(--coral);
  filter: drop-shadow(0 12px 40px rgba(239, 122, 92, 0.24));
}
.hero__word-in {
  display: inline-block;
  white-space: nowrap;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}
.hero__word--b .hero__word-in {
  background: linear-gradient(100deg, var(--orange), var(--coral) 55%, #f08e74);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero__meta {
  grid-column: 3;
  grid-row: 3;
  align-self: start;
  justify-self: start;
  list-style: none;
  margin: clamp(8px, 1.4vh, 18px) 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: clamp(0.9rem, 0.92vw, 1.05rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--cream-2);
  position: relative;
  z-index: 3;
}
.hero__meta li { display: flex; align-items: center; gap: 10px; }
.hero__meta li::before {
  content: '';
  inline-size: 6px;
  block-size: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px rgba(239, 122, 92, 0.9);
}

/* ------------------------------- the stage -------------------------------- */
.stage {
  grid-column: 2;
  grid-row: 1 / 4;
  position: relative;
  inline-size: var(--stage);
  block-size: var(--stage);
  z-index: 2;
}
.stage__ring {
  position: absolute;
  left: -15%;
  top: -15%;
  width: 130%;
  height: 130%;
  pointer-events: none;
}
html:not(.js) .stage::before {
  content: '';
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 2px dotted rgba(239, 122, 92, 0.45);
}
.stage__book {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1700px;
  perspective-origin: 50% 42%;
}
/* The book's warm aura lives on a flat layer behind it — never as a blurred shadow on a
   3D face, which widens that face's layer and can confuse the 3D sort. */
.stage__book::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  inline-size: calc(var(--stage) * 0.62);
  block-size: calc(var(--stage) * 0.96);
  translate: -50% -50%;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgba(239, 122, 92, 0.32), rgba(239, 122, 92, 0.1) 55%, rgba(239, 122, 92, 0));
  pointer-events: none;
}

/* A real 3D book: the cover is the front face; spine, fore-edge, head and tail give
   it thickness when it tilts toward the pointer. Physical sides on purpose — the
   cover's own spine is on its left. */
.book {
  --bh: calc(var(--stage) * 0.78);
  --bw: calc(var(--bh) * 0.5774);
  --bd: calc(var(--bw) * 0.09);
  position: relative;
  inline-size: var(--bw);
  block-size: var(--bh);
  transform-style: preserve-3d;
}
.book__float,
.book__tilt,
.book__body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
/* The front face is one flat element (cover + its glare), so the 3D sort never has
   to split two nearly coplanar layers. */
.book__front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2px 7px 7px 2px;
  transform: translateZ(calc(var(--bd) / 2));
  backface-visibility: hidden;
}
.book__img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.book__face { position: absolute; backface-visibility: hidden; }
.book__face--back {
  inset: 0;
  border-radius: 7px 2px 2px 7px;
  background: linear-gradient(90deg, #d8d1c3, #efe9de);
  transform: rotateY(180deg) translateZ(calc(var(--bd) / 2));
}
.book__face--pages {
  top: 0.9%;
  bottom: 0.9%;
  left: calc(50% - var(--bd) / 2);
  width: var(--bd);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(90deg, #f6f0e4 0 1px, #d9cebb 1px 2px);
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 2px));
}
.book__face--spine {
  top: 0;
  bottom: 0;
  left: calc(50% - var(--bd) / 2);
  width: var(--bd);
  border-radius: 2px;
  background: linear-gradient(90deg, #bdb6a8, #f2ede3 45%, #d3ccbe);
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
}
.book__face--top,
.book__face--bottom {
  left: 1%;
  right: 1.4%;
  top: calc(50% - var(--bd) / 2);
  height: var(--bd);
  background: repeating-linear-gradient(0deg, #f6f0e4 0 1px, #d9cebb 1px 2px);
}
.book__face--top { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2 - 2px)); }
.book__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2 - 2px)); }
.book__glare {
  --gx: 28%;
  --gy: 18%;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(65% 50% at var(--gx) var(--gy), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 70%),
    radial-gradient(120% 90% at calc(100% - var(--gx)) calc(100% - var(--gy)), rgba(4, 23, 25, 0.16), rgba(4, 23, 25, 0) 62%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 6%);
}
.book__shadow {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--stage) * 0.39 + 6px);
  inline-size: calc(var(--stage) * 0.34);
  block-size: calc(var(--stage) * 0.05);
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  filter: blur(5px);
}

/* ------------------------------- transport -------------------------------- */
.transport {
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
  margin-block-start: calc(var(--play) * -0.5);
  position: relative;
  z-index: 4;
}
.skip-btn {
  display: grid;
  place-items: center;
  inline-size: max(46px, calc(var(--play) * 0.46));
  block-size: max(46px, calc(var(--play) * 0.46));
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 38, 41, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cream);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.skip-btn svg {
  inline-size: 46%;
  block-size: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform 0.45s var(--ease-out);
}
.skip-btn text {
  fill: currentColor;
  stroke: none;
  font-family: var(--f-text);
  font-size: 7.4px;
  font-weight: 700;
}
.skip-btn:hover { background: rgba(239, 122, 92, 0.16); border-color: rgba(239, 122, 92, 0.5); color: var(--coral-2); }
.skip-btn[data-seek-back]:hover svg { transform: rotate(-24deg); }
.skip-btn[data-seek-fwd]:hover svg { transform: rotate(24deg); }

/* The big play button — same element, states and --progress contract as the live
   player. The coral disc and its idle halo are pseudo-elements, so GSAP never has
   to fight the hover transforms. */
.play-ring {
  position: relative;
  inline-size: var(--play);
  block-size: var(--play);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a0b06;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.play-ring::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 32% 18%, #ffb59a 0%, var(--coral) 46%, var(--coral-deep) 100%);
  box-shadow:
    0 18px 44px -10px rgba(239, 122, 92, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 16px rgba(120, 30, 10, 0.25);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.play-ring::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 122, 92, 0.7);
  animation: play-halo 2.8s var(--ease-soft) infinite;
  pointer-events: none;
}
.play-ring:hover::before { transform: scale(1.06); box-shadow: 0 22px 54px -10px rgba(239, 122, 92, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -8px 16px rgba(120, 30, 10, 0.25); }
.play-ring:active::before { transform: scale(0.96); }
.play-ring[data-state='playing']::after,
.play-ring[data-state='loading']::after { animation: none; opacity: 0; }
@keyframes play-halo {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(1.75); opacity: 0; }
}
.play-ring__ring {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  /* counter-clockwise from the top, the way the RTL seek bar fills */
  transform: rotate(-90deg) scaleY(-1);
  overflow: visible;
}
.play-ring circle { fill: none; stroke-width: 2.2; }
.play-ring circle.play-ring__track { stroke: rgba(244, 236, 221, 0.16); }
.play-ring circle.play-ring__fill {
  stroke: var(--cream);
  stroke-linecap: round;
  stroke-dasharray: 251.33 262;
  stroke-dashoffset: calc(251.33 * (1 - var(--progress, 0)));
  transition: stroke-dashoffset 0.3s linear;
}
.play-ring__icon { position: relative; z-index: 1; display: grid; place-items: center; }
.play-ring__icon svg {
  grid-area: 1 / 1;
  inline-size: calc(var(--play) * 0.3);
  block-size: calc(var(--play) * 0.3);
  fill: currentColor;
}
.icon-play { transform: translateX(6%); }
.play-ring__icon .icon-pause,
.play-ring__icon .play-ring__spinner { display: none; }
.play-ring[data-state='playing'] .icon-play { display: none; }
.play-ring[data-state='playing'] .icon-pause { display: block; }
.play-ring[data-state='loading'] .icon-play,
.play-ring[data-state='loading'] .icon-pause { display: none; }
.play-ring[data-state='loading'] .play-ring__spinner {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  animation: play-spin 0.9s linear infinite;
}
@keyframes play-spin { to { transform: rotate(360deg); } }

/* --------------------------------- dock ----------------------------------- */
.dock {
  position: relative;
  z-index: 6;
  margin-block-start: clamp(14px, 2.6vh, 30px);
  margin-inline: auto;
  inline-size: min(100%, 1080px);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 20px);
  padding: 7px;
  padding-inline-end: 14px;
  border-radius: 999px;
  background: rgba(10, 38, 41, 0.58);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 60px -26px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.chapters { flex: 0 1 300px; min-inline-size: 0; }
.chapters__toggle {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 50px;
  padding-block: 5px;
  padding-inline: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.chapters__toggle::-webkit-details-marker { display: none; }
.chapters__toggle::marker { content: ''; }
.chapters__toggle:hover,
.chapters[open] .chapters__toggle { background: rgba(244, 236, 221, 0.07); }
.chapters__icon {
  flex: none;
  inline-size: 38px;
  block-size: 38px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(239, 122, 92, 0.15);
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-linecap: round;
}
.chapters__icon circle { fill: var(--coral); stroke: none; }
.chapters__text { display: grid; min-inline-size: 0; line-height: 1.45; }
.chapters__label { font-size: 0.76rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chapters__count { color: var(--coral-2); font-variant-numeric: tabular-nums; margin-inline-start: 4px; }
.chapters__now {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chapters__chev {
  flex: none;
  inline-size: 16px;
  block-size: 16px;
  margin-inline-start: auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}
.chapters[open] .chapters__chev { transform: rotate(180deg); }

.chapters__panel {
  position: absolute;
  inset-block-end: calc(100% + 12px);
  inset-inline-start: 0;
  z-index: 10;
  inline-size: min(560px, 100%);
  max-block-size: min(62vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform-origin: right bottom;
}
.player__chapters { display: flex; flex-direction: column; min-block-size: 0; }
.player__list-title {
  margin: 0;
  padding: 16px 22px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--cream);
  border-block-end: 1px solid var(--line);
}
.player__list-title span { font-family: var(--f-text); font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.player__chapter-list {
  position: relative;
  min-block-size: 0;
  overflow-y: auto;
  padding: 6px 10px 14px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 236, 221, 0.22) transparent;
}
.player__group-heading {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 14px 12px 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--coral-2);
}
.player__chapter-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  inline-size: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--cream-2);
  text-align: start;
  font-size: 0.92rem;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.player__chapter-row:hover { background: rgba(244, 236, 221, 0.05); color: var(--cream); }
.player__chapter-n,
.player__chapter-start { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--muted); }
.player__chapter-n { text-align: center; }
.player__chapter-row[aria-current='true'] { color: var(--cream); font-weight: 600; }
.player__chapter-row[aria-current='true'] .player__chapter-n { color: var(--coral); }
.player__chapter-pill {
  position: absolute;
  inset-inline: 10px;
  inset-block-start: 0;
  block-size: 44px;
  border-radius: 14px;
  background: rgba(239, 122, 92, 0.13);
  border: 1px solid rgba(239, 122, 92, 0.34);
  transition: transform 0.45s var(--ease-out), block-size 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.player__list-error { color: var(--muted); font-size: 0.9rem; padding: 12px; }

.player__seek-row {
  flex: 1 1 auto;
  min-inline-size: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.player__time {
  flex: none;
  min-inline-size: 6.2ch;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cream-2);
  text-align: center;
}
.seek-track {
  --thumb: 16px;
  position: relative;
  flex: 1;
  min-inline-size: 0;
  block-size: 30px;
}
.seek-track__base,
.seek-track__buffered,
.seek-track__played {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  block-size: 4px;
  margin-block-start: -2px;
  border-radius: 999px;
  pointer-events: none;
}
.seek-track__base { inline-size: 100%; background: rgba(244, 236, 221, 0.13); }
.seek-track__buffered { inline-size: 0; background: rgba(244, 236, 221, 0.24); }
.seek-track__played {
  inline-size: calc(var(--seek-fraction, 0) * 100%);
  background: linear-gradient(to left, var(--coral), var(--orange));
  box-shadow: 0 0 14px rgba(239, 122, 92, 0.55);
}
/* chapter starts as notches in the track; the four parts as taller cream marks */
.seek-track__ticks { position: absolute; inset: 0; pointer-events: none; }
.seek-track__ticks .tick {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: calc(var(--at) * 100%);
  inline-size: 2px;
  block-size: 4px;
  margin-block-start: -2px;
  margin-inline-start: -1px;
  background: rgba(4, 23, 25, 0.95);
}
.seek-track__ticks .tick.is-part {
  block-size: 12px;
  margin-block-start: -6px;
  border-radius: 2px;
  background: rgba(244, 236, 221, 0.42);
}
.seek-track input[type='range'] {
  position: absolute;
  inset: 0;
  z-index: 2;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.seek-track input[type='range']::-webkit-slider-runnable-track { block-size: 100%; background: transparent; }
.seek-track input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: var(--thumb);
  block-size: var(--thumb);
  margin-block-start: calc((30px - var(--thumb)) / 2);
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(239, 122, 92, 0.38), 0 4px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease-out);
}
.seek-track:hover input[type='range']::-webkit-slider-thumb { transform: scale(1.18); }
.seek-track input[type='range']::-moz-range-track { background: transparent; border: 0; }
.seek-track input[type='range']::-moz-range-thumb {
  inline-size: var(--thumb);
  block-size: var(--thumb);
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  box-shadow: 0 0 0 4px rgba(239, 122, 92, 0.38);
}

.player__secondary-row { flex: none; display: flex; align-items: center; gap: 8px; }
.speed-btn {
  min-inline-size: 66px;
  min-block-size: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(244, 236, 221, 0.04);
  color: var(--cream);
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.speed-btn:hover { background: rgba(239, 122, 92, 0.14); border-color: rgba(239, 122, 92, 0.5); }
.volume-control { display: flex; align-items: center; gap: 8px; padding-inline: 6px 4px; color: var(--cream-2); }
.volume-control svg {
  inline-size: 20px;
  block-size: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.volume-control input[type='range'] {
  inline-size: 92px;
  block-size: 22px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.volume-control input[type='range']::-webkit-slider-runnable-track {
  block-size: 4px;
  border-radius: 999px;
  background: linear-gradient(to left,
    var(--cream) 0 calc(var(--volume-fraction, 1) * 100%),
    rgba(244, 236, 221, 0.16) calc(var(--volume-fraction, 1) * 100%) 100%);
}
.volume-control input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: 14px;
  block-size: 14px;
  margin-block-start: -5px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.volume-control input[type='range']::-moz-range-track { block-size: 4px; border-radius: 999px; background: rgba(244, 236, 221, 0.16); }
.volume-control input[type='range']::-moz-range-progress { block-size: 4px; border-radius: 999px; background: var(--cream); }
.volume-control input[type='range']::-moz-range-thumb { inline-size: 14px; block-size: 14px; border-radius: 50%; border: 0; background: var(--cream); }
@media (pointer: coarse) {
  .volume-control { display: none; }
}

/* Resume / error messages (shown by player.js) sit in the flow between the play clasp and
   the dock, so they never cover the controls. */
.toast {
  position: relative;
  z-index: 5;
  margin: clamp(12px, 2vh, 20px) auto 0;
  inline-size: fit-content;
  max-inline-size: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
  font-size: 0.92rem;
  line-height: 1.7;
}
.no-js-notice {
  margin: 16px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--cream-2);
}

.hero__player.is-listing .hero__grid { opacity: 0.22; }

/* ------------------------------ hero · phones ----------------------------- */
@media (max-width: 899px) {
  .hero {
    --stage: min(88vw, 44svh, 440px);
    --play: 84px;
    padding-block-start: calc(var(--header-h) + 12px);
  }
  .hero__player { justify-content: flex-start; }
  .hero__grid { display: flex; flex-direction: column; align-items: center; }
  .hero__eyebrow { order: 1; align-self: center; margin: 0 0 4px; }
  .hero__eyebrow-in { font-size: 0.8rem; padding-block: 5px; padding-inline: 10px 14px; gap: 8px; }
  .hero__eyebrow-in svg { inline-size: 16px; block-size: 16px; }
  .hero__title {
    order: 2;
    display: flex;
    justify-content: center;
    gap: 0.26em;
    font-size: clamp(2.5rem, 12.4vw, 4.4rem);
    line-height: 1.3;
  }
  .stage { order: 3; margin-block-start: 2px; }
  .transport { order: 4; margin-block-start: calc(var(--play) * -0.36); }
  .hero__meta {
    order: 5;
    margin-block-start: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 16px;
    font-size: 0.84rem;
  }
  .hero__meta li::before { inline-size: 5px; block-size: 5px; }
  .dock {
    margin-block-start: 14px;
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 8px;
    padding: 10px 12px 8px;
    border-radius: 24px;
  }
  .player__seek-row { order: -1; flex: 1 1 100%; gap: 8px; }
  .player__time { font-size: 0.8rem; min-inline-size: 5.6ch; }
  .chapters { flex: 1 1 0; }
  .chapters__toggle { min-block-size: 46px; padding-inline: 2px 10px; }
  .chapters__icon { inline-size: 34px; block-size: 34px; padding: 8px; }
  .chapters__panel { inline-size: 100%; max-block-size: min(58svh, 520px); }
  .speed-btn { min-block-size: 42px; min-inline-size: 60px; }
}
@media (max-width: 380px) {
  .hero__meta { font-size: 0.8rem; gap: 0 12px; }
  .chapters__now { font-size: 0.86rem; }
}

/* ================================= ABOUT =================================== */
.about {
  position: relative;
  padding-block: clamp(96px, 16vh, 200px) clamp(96px, 16vh, 180px);
}
.about::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.about__inner {
  max-inline-size: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  column-gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.about__text { padding-block-start: clamp(0px, 3vh, 40px); }

.about__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.5;
  color: var(--coral);
}
.about__kicker-line {
  flex: 0 0 clamp(40px, 6vw, 96px);
  block-size: 1px;
  background: linear-gradient(to left, var(--coral), rgba(239, 122, 92, 0));
  transform-origin: right center;
}

.about__lead {
  margin-block-start: clamp(18px, 3vh, 30px);
  max-inline-size: 15em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.1vw, 3.7rem);
  line-height: 1.4;
  color: var(--cream);
  text-wrap: balance;
}
.about__lead .lead-word { display: inline-block; }

.about__stat {
  margin-block-start: clamp(40px, 7vh, 76px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(18px, 2.4vw, 36px);
  align-items: center;
}
.stat__num {
  display: inline-flex;
  align-items: flex-start;
  justify-self: start;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4.4rem, 8.4vw, 9rem);
  line-height: 1;
  color: var(--coral);
  text-shadow: 0 16px 60px rgba(239, 122, 92, 0.28);
}
.stat__pct { font-size: 0.48em; margin-top: 0.14em; margin-left: 0.04em; }
.stat__text {
  display: block;
  padding-inline-start: clamp(16px, 2vw, 28px);
  border-inline-start: 1px solid rgba(239, 122, 92, 0.42);
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.85;
  color: var(--cream);
}

.about__body {
  margin-block-start: clamp(28px, 4.4vh, 46px);
  max-inline-size: 36em;
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  line-height: 1.95;
  color: var(--cream-2);
}
.about__author {
  margin-block-start: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--coral-2);
}
.about__author::before { content: ''; inline-size: 28px; block-size: 1px; background: var(--coral); }

/* The four shifts: each is a step out of the maze — the muted "from", a drawn corridor,
   and the lit "to". Rules between rows keep a gap like a maze wall with its opening. */
.shifts { list-style: none; margin: clamp(56px, 9vh, 110px) 0 0; padding: 0; }
.shift {
  position: relative;
  display: grid;
  grid-template-columns: clamp(2.4rem, 3.6vw, 3.8rem) minmax(0, 1fr);
  column-gap: clamp(10px, 1.4vw, 22px);
  padding-block: clamp(26px, 4vh, 42px);
}
.shift__rule {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 1px;
  background: linear-gradient(to left,
    var(--line-2) 0 var(--gap-at),
    transparent var(--gap-at) calc(var(--gap-at) + 6%),
    var(--line-2) calc(var(--gap-at) + 6%) 100%);
  transform-origin: right center;
}
.shift__n {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-block-start: 0.7em;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--coral);
}
.shift__title {
  grid-column: 2;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  line-height: 1.5;
}
.shift__from { display: block; color: var(--muted); font-weight: 700; }
.shift__to { display: flex; align-items: center; gap: 0.3em; color: var(--cream); }
.shift__route {
  flex: none;
  inline-size: 1.45em;
  block-size: 0.9em;
  margin-block-start: -0.5em;
  overflow: visible;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shift__to-text { display: inline-block; }
.shift__text {
  grid-column: 2;
  margin-block-start: 12px;
  max-inline-size: 34em;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  line-height: 1.9;
  color: var(--cream-2);
}

/* The traced cover drawing: sticky beside the copy on wide screens. */
.about__art {
  margin: 0;
  position: sticky;
  inset-block-start: calc(var(--header-h) + 3vh);
  block-size: calc(100vh - var(--header-h) - 6vh);
  max-block-size: 860px;
  display: block;
}
.art {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
}
.art__line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art__outline { stroke: var(--cream); stroke-opacity: 0.5; stroke-width: 1.7; }
.art__facet--dark { stroke: var(--sage); stroke-opacity: 0.42; stroke-width: 1.2; }
.art__facet--coral { stroke: var(--coral); stroke-opacity: 0.62; stroke-width: 1.3; }
.art__maze { stroke: var(--sage); stroke-opacity: 0.74; stroke-width: 2.1; }
.art__fig { fill: var(--coral); }
.art__route,
.art__arrow { fill: none; stroke: var(--coral); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.art__entry { fill: var(--bg); stroke: var(--coral); stroke-width: 2.4; }
.art__station-ring { fill: var(--bg); stroke: var(--coral); stroke-width: 2; }
.art__station-dot { fill: var(--cream); }

@media (max-width: 899px) {
  .about { padding-block: clamp(64px, 11vh, 110px) clamp(72px, 12vh, 120px); }
  .about__inner { grid-template-columns: minmax(0, 1fr); }
  /* Same experience as desktop, laid out for a tall screen: the drawing rides at the
     top of the screen while the copy scrolls up beneath it, so the route still walks
     beside the four shifts. */
  .about__art {
    order: -1;
    position: sticky;
    inset-block-start: calc(var(--header-h) + 4px);
    z-index: 3;
    inline-size: 100%;
    block-size: 34svh;
    max-block-size: none;
    margin: 0 0 clamp(16px, 3vh, 28px);
    background: var(--bg);
  }
  .art { inset: 6px 0; block-size: calc(100% - 12px); }
  .about__art::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    block-size: 34px;
    background: linear-gradient(var(--bg), rgba(4, 23, 25, 0));
    pointer-events: none;
  }
  .about__text { position: relative; z-index: 1; padding-block-start: 0; }
  .about__lead { font-size: clamp(1.8rem, 8.2vw, 2.4rem); }
  .about__stat { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .stat__num { font-size: clamp(4.2rem, 22vw, 6rem); }
  .art__maze { stroke-width: 2.6; }
  .art__outline { stroke-width: 2.1; }
  .art__route, .art__arrow { stroke-width: 4.2; }
}

/* ================================ TOPICS =================================== */
/* Pinned gallery: vertical scroll carries the track across (RTL — it travels right) and
   settles on whole cards only. */
.topics { position: relative; }
.topics__pin {
  position: relative;
  block-size: 100vh;
  block-size: 100svh;
  overflow: clip;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding-block: calc(var(--header-h) + clamp(14px, 3.6vh, 44px)) clamp(16px, 3.6vh, 40px);
}
.topics__pin::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 56% at 88% 38%, rgba(20, 94, 96, 0.4), rgba(20, 94, 96, 0) 72%),
    radial-gradient(42% 50% at 18% 72%, rgba(239, 122, 92, 0.09), rgba(239, 122, 92, 0) 72%);
}
.topics__head {
  inline-size: 100%;
  max-inline-size: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26em);
  grid-template-areas: "eyebrow ." "title sub";
  column-gap: clamp(24px, 4vw, 80px);
  align-items: end;
}
.topics__eyebrow {
  grid-area: eyebrow;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  line-height: 1.5;
  color: var(--coral);
}
.topics__eyebrow-dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(239, 122, 92, 0.9);
}
.topics__title {
  grid-area: title;
  margin: 8px 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 3.9rem);
  line-height: 1.4;
  color: var(--cream);
  text-wrap: balance;
}
.topics__sub {
  grid-area: sub;
  padding-block-end: 0.5em;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 500;
  line-height: 1.8;
  color: var(--cream-2);
}
/* The window holds a whole number of cards (3 on desktop, 2 on tablets, 1 on phones) and
   the gallery settles one card at a time, so at rest no card is ever cut at an edge. */
.topics__viewport {
  --n: 3;
  --g: clamp(14px, 1.6vw, 30px);
  container-type: inline-size;
  position: relative;
  flex: 1;
  min-block-size: 0;
  inline-size: min(100% - 2 * var(--gutter), 1640px);
  margin-inline: auto;
  display: flex;
  align-items: stretch;
  margin-block: clamp(14px, 3.4vh, 40px) clamp(12px, 3vh, 34px);
  overflow-x: clip;
}
@media (max-width: 1099px) { .topics__viewport { --n: 2; } }
@media (max-width: 639px) { .topics__viewport { --n: 1; } }
.topics__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--g);
  inline-size: max-content;
  max-block-size: 580px;
  flex: none;
}
.topic {
  position: relative;
  flex: none;
  inline-size: calc((100cqi - (var(--n) - 1) * var(--g)) / var(--n));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: clamp(22px, 2.3vw, 40px);
  border-radius: 28px;
  background: linear-gradient(165deg, #0f3236 0%, #0a2528 55%, #071c1f 100%);
  border: 1px solid rgba(244, 236, 221, 0.1);
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}
/* the coral rim flares as a card arrives (main.js), then settles */
.topic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(239, 122, 92, 0.45);
  background: radial-gradient(75% 55% at 100% 0%, rgba(239, 122, 92, 0.17), rgba(239, 122, 92, 0) 70%);
  opacity: var(--rim, 0.4);
  pointer-events: none;
}
.topic__top { display: contents; }
.topic__icon {
  grid-row: 2;
  justify-self: center;
  align-self: center;
  inline-size: min(46%, 220px);
  max-block-size: 100%;
  block-size: auto;
  aspect-ratio: 1;
  margin-block: 6px;
  overflow: visible;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 122, 92, 0.1), rgba(239, 122, 92, 0));
}
.topic__icon path {
  fill: none;
  stroke: var(--cream);
  stroke-opacity: 0.9;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topic__icon .is-accent { stroke: var(--coral); stroke-opacity: 1; }
.topic__icon .is-sage { stroke: var(--sage); }
.topic__icon .is-node { fill: #0d2c30; }
.topic__n {
  grid-row: 1;
  justify-self: start;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.3px rgba(239, 122, 92, 0.72);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.topic__title {
  grid-row: 3;
  margin: clamp(10px, 2vh, 22px) 0 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 1.75vw, 2.05rem);
  line-height: 1.5;
  color: var(--cream);
}
.topic__text {
  grid-row: 4;
  margin-block-start: 10px;
  font-size: clamp(0.98rem, 1.05vw, 1.16rem);
  line-height: 1.9;
  color: var(--cream-2);
}
.topics__route {
  position: relative;
  inline-size: min(100% - 2 * var(--gutter), 920px);
  margin-inline: auto;
  block-size: 20px;
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topics__route-line {
  position: absolute;
  inset-inline: 6px;
  inset-block-start: 50%;
  block-size: 2px;
  margin-block-start: -1px;
  border-radius: 2px;
  background: rgba(244, 236, 221, 0.14);
  overflow: hidden;
}
.topics__route-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, var(--coral), var(--orange));
  transform: scaleX(var(--route, 0));
  transform-origin: right center;
}
.topics__stop {
  position: relative;
  z-index: 1;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(244, 236, 221, 0.3);
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.topics__stop.is-on {
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 0 14px rgba(239, 122, 92, 0.8);
  transform: scale(1.15);
}

/* ================================= QUOTE =================================== */
/* Pinned: the line reads itself word by word; the waveform below plays along. */
.quote { position: relative; }
.quote__pin {
  position: relative;
  block-size: 100vh;
  block-size: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
  overflow: clip;
  isolation: isolate;
}
.quote__pin::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 46% at 50% 50%, rgba(239, 122, 92, 0.11), rgba(239, 122, 92, 0) 72%),
    radial-gradient(80% 70% at 50% 50%, rgba(20, 94, 96, 0.28), rgba(20, 94, 96, 0) 75%);
}
.quote__figure { margin: 0; max-inline-size: 1120px; text-align: center; }
.quote__text { margin: 0; }
.quote__text p {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.3vw, 3.8rem);
  line-height: 1.7;
  color: var(--cream);
  text-wrap: balance;
}
.quote__text .q-word { display: inline-block; }
.quote__text .q-word.is-key { color: var(--coral); text-shadow: 0 0 34px rgba(239, 122, 92, 0.35); }
.quote__wave {
  --played: 0;
  position: relative;
  inline-size: min(100%, 640px);
  block-size: 48px;
  margin: clamp(26px, 5vh, 52px) auto 0;
}
.quote__wave-svg { display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
.quote__playhead {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: calc(var(--played) * 100%);
  inline-size: 14px;
  block-size: 14px;
  margin-block-start: -7px;
  margin-inline-start: -7px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 5px rgba(239, 122, 92, 0.35), 0 0 18px rgba(239, 122, 92, 0.8);
}
.quote__cite {
  display: block;
  margin-block-start: 22px;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  line-height: 1.6;
  color: var(--coral-2);
}

/* ================================== BUY ==================================== */
/* The finale: the same book returns and its cover swings open on the spine. */
.buy {
  position: relative;
  overflow: clip;
  padding-block: clamp(90px, 15vh, 190px);
}
.buy__inner {
  max-inline-size: 1480px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  column-gap: clamp(40px, 6vw, 120px);
}
.buy__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.05vw, 1.15rem);
  line-height: 1.5;
  color: var(--coral);
}
.buy__eyebrow-line { inline-size: 36px; block-size: 1px; background: var(--coral); }
.buy__title {
  margin: 10px 0 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.4vw, 6.4rem);
  line-height: 1.3;
  color: var(--cream);
}
.buy__body {
  margin-block-start: clamp(14px, 2.4vh, 22px);
  max-inline-size: 26em;
  font-size: clamp(1.08rem, 1.35vw, 1.42rem);
  font-weight: 500;
  line-height: 1.9;
  color: var(--cream-2);
}
.btn--lg { min-block-size: 58px; padding-inline: 30px; font-size: 1.05rem; }
.buy__cta { position: relative; overflow: hidden; margin-block-start: clamp(22px, 4vh, 38px); }
.buy__cta::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inline-size: 40%;
  left: -50%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  animation: cta-sheen 4.8s var(--ease-soft) infinite 1.2s;
  pointer-events: none;
}
@keyframes cta-sheen {
  0% { left: -50%; }
  40%, 100% { left: 130%; }
}

.tome {
  --pw: clamp(150px, 15.5vw, 300px);
  --ph: calc(var(--pw) * 1.7319);
  position: relative;
  inline-size: calc(var(--pw) * 2);
  block-size: var(--ph);
  margin: clamp(10px, 3vh, 40px) auto;
  perspective: 2200px;
  perspective-origin: 50% 20%;
}
.tome__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  inline-size: 150%;
  block-size: 130%;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 226, 196, 0.2), rgba(239, 122, 92, 0.1) 45%, rgba(239, 122, 92, 0) 100%);
  pointer-events: none;
}
.tome__book { position: absolute; inset: 0; transform-style: preserve-3d; }
.tome__block {
  position: absolute;
  left: 50%;
  top: 0;
  inline-size: 50%;
  block-size: 100%;
  /* Real depth under the cover, and no blurred shadows on any 3D plane: a blurred shadow
     widens a plane's layer past the spine and the 3D sort then paints the pages over the
     opening cover. The glow and the floor shadow are separate flat elements instead. */
  transform: translateZ(calc(max(22px, var(--pw) * 0.12) * -1));
  border-radius: 2px 6px 6px 2px;
  background: #f4eee2;
  box-shadow: 1px 1px 0 #e3dac9, 2px 2px 0 #d3c9b6, 3px 3px 0 #e6dece, 4px 4px 0 #cdc2ae, 5px 5px 0 #ded5c3;
}
.tome__page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--pw) * 0.045);
  padding: 12%;
  border-radius: inherit;
  background:
    radial-gradient(90% 70% at 30% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 9%),
    #f4eee2;
  color: #145e60;
  text-align: center;
}
.tome__mark {
  inline-size: calc(var(--pw) * 0.17);
  block-size: auto;
  aspect-ratio: 1;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.tome__page-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: calc(var(--pw) * 0.1);
  line-height: 1.45;
}
.tome__page-rule { inline-size: 32%; block-size: 1px; background: rgba(20, 94, 96, 0.35); }
.tome__page-author {
  font-weight: 600;
  font-size: calc(var(--pw) * 0.058);
  line-height: 1.6;
  color: #225753;
}
.tome__cover {
  position: absolute;
  left: 50%;
  top: 0;
  inline-size: 50%;
  block-size: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
}
.tome__front,
.tome__inside {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tome__front { border-radius: 2px 7px 7px 2px; }
.tome__front img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.tome__inside {
  border-radius: 7px 2px 2px 7px;
  transform: rotateY(180deg);
  background:
    repeating-radial-gradient(circle at 50% 42%, rgba(244, 236, 221, 0.075) 0 1.5px, rgba(244, 236, 221, 0) 1.5px 13px),
    linear-gradient(90deg, #0f4a4d, #145e60 70%, #10514f);
  box-shadow: inset -10px 0 18px -10px rgba(0, 0, 0, 0.45);
}
.tome__shadow {
  position: absolute;
  left: 50%;
  top: 100%;
  inline-size: 104%;
  block-size: calc(var(--pw) * 0.2);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  filter: blur(6px);
  pointer-events: none;
}

/* ================================ FOOTER =================================== */
/* The title once more, as a large outline the lamp sweeps across. */
.site-footer {
  position: relative;
  overflow: clip;
  padding: clamp(40px, 8vh, 96px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--line);
}
.site-footer__inner {
  max-inline-size: 1480px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.site-footer__mark {
  position: relative;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 12.2vw, 13.5rem);
  line-height: 1.25;
  white-space: nowrap;
}
.site-footer__mark span { position: relative; display: inline-block; color: #142628; }
.site-footer__mark span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(100deg, rgba(239, 122, 92, 0) 38%, rgba(245, 154, 126, 0.95) 50%, rgba(239, 122, 92, 0) 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: lamp-sweep 7.5s var(--ease-soft) infinite;
}
@keyframes lamp-sweep {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -30% 0; }
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream-2);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.site-footer__links a:hover { background: rgba(239, 122, 92, 0.12); border-color: rgba(239, 122, 92, 0.45); color: var(--cream); }
.site-footer__copy { font-size: 0.88rem; line-height: 1.7; color: var(--muted); }
.site-footer__parent { font-family: var(--f-text); }

/* ---------------------------- new sections · phones ------------------------ */
@media (max-width: 899px) {
  .topics__head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "title" "sub";
  }
  .topics__title { font-size: clamp(1.55rem, 7.4vw, 2.3rem); margin-block-start: 4px; }
  .topics__sub { font-size: 0.95rem; line-height: 1.7; padding-block-end: 0; margin-block-start: 4px; }
  .topics__viewport { margin-block: 14px 14px; }
  .topic { padding: 22px; border-radius: 24px; }
  .topic__icon { inline-size: min(48%, 170px); }
  .topic__n { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .topic__title { font-size: clamp(1.2rem, 5.6vw, 1.5rem); margin-block-start: 14px; }
  .topic__text { font-size: 0.97rem; line-height: 1.85; margin-block-start: 6px; }

  .quote__text p { font-size: clamp(1.45rem, 7vw, 2.1rem); line-height: 1.75; }
  .quote__wave { block-size: 40px; }

  .buy { padding-block: clamp(64px, 11vh, 110px); }
  .buy__inner { grid-template-columns: minmax(0, 1fr); row-gap: clamp(28px, 5vh, 44px); }
  .tome { --pw: min(40vw, 190px); order: -1; }
  .buy__text { text-align: center; }
  .buy__eyebrow { justify-content: center; }
  .buy__body { margin-inline: auto; }
  .buy__cta { inline-size: 100%; max-inline-size: 420px; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .topics__sub { display: none; }
}

/* ============== intro start states (only when JS will run them) =========== */
html.js .site-header,
html.js .hero__atmos,
html.js .stage__book,
html.js .hero__word-in,
html.js .hero__eyebrow-in,
html.js .hero__meta li,
html.js .transport > *,
html.js .dock { opacity: 0; }
html.js .art .art__line,
html.js .art__route,
html.js .art__arrow,
html.js .shift__route path { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; }
html.js .art__fig,
html.js .art__entry { opacity: 0; }
html.js .topic__icon path { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; }
