/* ==========================================================================
   Epipsy — Lantern Descent
   Light surface, warm-earth descent, one amber lantern accent.
   Fraunces (display) + Inter (everything else). No images, no libraries.
   ========================================================================== */

:root {
  /* Depth ramp: daylight to warm soil */
  --surface: #faf7f1;
  --beat1: #efe8db;
  --deep: #33281e;
  --reading: #201812;
  --deepest: #171009;

  /* Ink on light grounds */
  --ink: #211a12;
  --ink-soft: #5c5245;

  /* Cream on dark grounds */
  --cream: #f3ede3;
  --cream-soft: #d9cdbb;
  --cream-faint: #a99c88;

  /* The lantern */
  --amber: #e8a33d;
  --amber-soft: #f4c877;
  --amber-deep: #8a5410; /* accent on light grounds only */
  --btn-ink: #1b1206;

  --error: #e89a8b;

  --hairline-dark: rgba(243, 237, 227, 0.12);
  --hairline-light: rgba(33, 26, 18, 0.14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --radius: 10px;
  --pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --sticky-h: 4.25rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--amber);
  color: var(--btn-ink);
}

section {
  scroll-margin-top: 2rem;
}

/* Grain: paper on light, soil on dark */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-size: 120px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--amber);
  color: var(--btn-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--pill);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid transparent; /* forced-colors fallback */
  box-shadow: 0 0 0 2px var(--ring-bg, var(--surface)), 0 0 0 4.5px var(--acc, var(--amber-deep));
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons — exactly two variants exist
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--pill);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--amber);
  color: var(--btn-ink);
  border: none;
}

.btn--primary:hover {
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: scale(0.98);
}

/* The lantern glow: only on the deepest ground */
.btn--lantern {
  box-shadow: 0 0 28px rgba(232, 163, 61, 0.35);
}

.btn--lantern:focus-visible {
  box-shadow: 0 0 28px rgba(232, 163, 61, 0.35), 0 0 0 2px var(--ring-bg), 0 0 0 4.5px var(--acc);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--ghost-border, rgba(243, 237, 227, 0.35));
}

.btn--ghost:hover {
  border-color: currentColor;
  background: var(--ghost-hover, rgba(243, 237, 227, 0.07));
}

.btn--full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Motifs
   -------------------------------------------------------------------------- */

.ember {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.14), 0 0 16px rgba(232, 163, 61, 0.3);
}

.on-light .ember {
  background: var(--amber-deep);
  box-shadow: 0 0 0 4px rgba(138, 84, 16, 0.12);
}

/* Aperture ring reveal on load */
html.js-motion .aperture circle {
  transform-origin: 300px 300px;
  animation: ring-in 600ms ease-out both;
}

html.js-motion .aperture circle:nth-child(2) { animation-delay: 70ms; }
html.js-motion .aperture circle:nth-child(3) { animation-delay: 140ms; }
html.js-motion .aperture circle:nth-child(4) { animation-delay: 210ms; }
html.js-motion .aperture circle:nth-child(5) { animation-delay: 280ms; }
html.js-motion .aperture circle:nth-child(6) { animation-delay: 350ms; }
html.js-motion .aperture circle:nth-child(7) { animation-delay: 420ms; }
html.js-motion .aperture circle:nth-child(8) { animation-delay: 490ms; }

@keyframes ring-in {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Scroll reveals (gated on html.js-motion; static without JS / reduced motion)
   -------------------------------------------------------------------------- */

html.js-motion .reveal {
  opacity: 0;
  transform: translateY(14px);
}

html.js-motion .reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

html.js-motion .plumb-line {
  transform: scaleY(0);
  transform-origin: top;
}

html.js-motion .plumb-line.is-revealed {
  transform: scaleY(1);
  transition: transform 900ms var(--ease-out);
}

/* --------------------------------------------------------------------------
   Top chrome (no sticky header)
   -------------------------------------------------------------------------- */

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding: 0.75rem 0;
}

.top-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--acc, var(--amber-deep));
  text-decoration: none;
  padding: 0.75rem 0;
}

.top-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Ground helpers — each section declares its world
   -------------------------------------------------------------------------- */

.on-light {
  --ring-bg: var(--surface);
  --acc: var(--amber-deep);
  --ghost-border: rgba(33, 26, 18, 0.35);
  --ghost-hover: rgba(33, 26, 18, 0.05);
  color: var(--ink);
}

.on-dark {
  --acc: var(--amber);
  --ghost-border: rgba(243, 237, 227, 0.35);
  --ghost-hover: rgba(243, 237, 227, 0.07);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Landing: hero (the surface)
   -------------------------------------------------------------------------- */

.hero {
  --ring-bg: var(--surface);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(5rem, 13vh, 8rem) 1.5rem 6.5rem;
  background: var(--surface);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 11.5vw, 6.25rem);
  line-height: 1.03;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
}

.hero h1 .tilt {
  font-style: italic;
  color: var(--amber-deep);
}

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.grip {
  margin: 2rem auto 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--amber-deep);
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.scroll-cue-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--amber-deep);
}

.scroll-cue-line {
  width: 1px;
  height: 32px;
  background: rgba(33, 26, 18, 0.3);
}

html.js-motion .scroll-cue-drop {
  animation: cue-drop 2.4s ease-in-out infinite;
}

@keyframes cue-drop {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.aperture--hero {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 42%);
  width: min(78vw, 34rem);
  z-index: 1;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Landing: descent beats and bridges
   -------------------------------------------------------------------------- */

.beat {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
}

.beat .plumb {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.plumb-line {
  width: 1px;
  height: 100%;
}

.beat-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 2rem 1rem;
  background: var(--bg);
}

.beat .label {
  color: var(--acc);
}

.beat-statement {
  margin-top: 1.25rem;
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.15;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.beat-support {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  font-size: 1rem;
}

.beat--one {
  --bg: var(--beat1);
  --ring-bg: var(--beat1);
  background: var(--bg);
}

.beat--one .plumb-line {
  background: linear-gradient(to bottom, transparent 0%, rgba(33, 26, 18, 0.22) 12%, rgba(33, 26, 18, 0.22) 88%, transparent 100%);
}

.beat--one .beat-statement {
  color: var(--ink);
}

.beat--one .beat-support {
  color: var(--ink-soft);
}

.beat--two {
  --bg: var(--deep);
  --ring-bg: var(--deep);
  background-color: var(--bg);
  background-image: repeating-radial-gradient(circle at 50% 130%, rgba(232, 163, 61, 0.05) 0 1px, transparent 1px 90px);
}

.beat--two .beat-inner {
  background: var(--deep);
}

.beat--two .plumb-line {
  background: linear-gradient(to bottom, transparent 0%, rgba(232, 163, 61, 0.35) 12%, rgba(232, 163, 61, 0.35) 88%, transparent 100%);
  filter: drop-shadow(0 0 6px rgba(232, 163, 61, 0.25));
}

.beat--two .beat-statement {
  color: var(--cream);
}

.beat--two .beat-support {
  color: var(--cream-soft);
}

.bridge {
  position: relative;
}

.bridge .plumb-line {
  position: absolute;
  left: 50%;
  top: 0;
}

.bridge--a {
  height: 45vh;
  height: 45svh;
  background: linear-gradient(to bottom, var(--beat1), var(--deep));
}

.bridge--a .plumb-line {
  background: linear-gradient(to bottom, rgba(33, 26, 18, 0.22), rgba(232, 163, 61, 0.35));
}

.bridge--b {
  height: 35vh;
  height: 35svh;
  background: linear-gradient(to bottom, var(--deep), var(--reading));
}

.bridge--b .plumb-line {
  background: rgba(232, 163, 61, 0.3);
}

.bridge--c {
  height: 35vh;
  height: 35svh;
  background: linear-gradient(to bottom, var(--reading), var(--deepest));
}

.bridge--c .plumb-line {
  background: linear-gradient(to bottom, rgba(232, 163, 61, 0.3), rgba(232, 163, 61, 0.5));
}

/* Method beat */

.beat--method {
  --bg: var(--reading);
  --ring-bg: var(--reading);
  background: var(--bg);
  min-height: 100svh;
}

.beat--method .beat-inner {
  background: var(--reading);
  max-width: 30rem;
}

.beat--method {
  min-height: 100vh;
  min-height: 100svh;
}

.beat--method .beat-statement {
  color: var(--cream);
  font-size: clamp(1.5rem, 5vw, 2.375rem);
}

.method-rows {
  list-style: none;
  margin: 3rem auto 0;
  padding: 0;
  max-width: 28rem;
  text-align: left;
}

.method-rows li {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.5rem 0;
}

.method-rows li + li {
  border-top: 1px solid var(--hairline-dark);
}

.method-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--amber);
  flex-shrink: 0;
}

.method-rows p {
  color: var(--cream-soft);
  font-size: 1rem;
}

.method-more {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--amber);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.method-more:hover {
  color: var(--amber-soft);
}

/* --------------------------------------------------------------------------
   The floor: consultation
   -------------------------------------------------------------------------- */

.floor {
  --ring-bg: var(--deepest);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  background: var(--deepest);
}

.lantern {
  width: 9rem;
  margin: 0 auto 2rem;
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.16), transparent 70%);
}

.floor h2 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  color: var(--cream);
  max-width: 20ch;
}

.floor-body {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  color: var(--cream-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.floor-quiet {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--cream-faint);
}

.floor-quiet a {
  color: var(--cream-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.floor-quiet a:hover {
  color: var(--cream);
}

/* Message disclosure + form (on dark) */

.disclosure {
  margin-top: 2.75rem;
  width: 100%;
  max-width: 26rem;
}

.disclosure-toggle {
  background: none;
  border: none;
  padding: 0.75rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cream-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.disclosure-toggle:hover {
  color: var(--cream);
}

.dark-form {
  margin-top: 1.5rem;
  text-align: left;
}

.form-field {
  margin-bottom: 1.125rem;
}

.form-field label,
.form-field legend {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cream-soft);
  margin-bottom: 0.375rem;
  padding: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--cream);
  background: rgba(243, 237, 227, 0.06);
  border: 1px solid rgba(243, 237, 227, 0.25);
  border-radius: var(--radius);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.25);
}

.form-field fieldset,
fieldset.form-field {
  border: none;
  margin: 0;
  padding: 0;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--cream-soft);
  cursor: pointer;
}

.radio-label input {
  accent-color: var(--amber);
  width: 1.125rem;
  height: 1.125rem;
}

.form-hint {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--cream-faint);
}

.form-hint a {
  color: var(--cream-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-note {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  min-height: 1.5em;
}

.form-note--success {
  color: var(--amber-soft);
}

.form-note--error {
  color: var(--error);
}

/* --------------------------------------------------------------------------
   FAQ (on dark)
   -------------------------------------------------------------------------- */

.faq {
  --ring-bg: var(--deepest);
  background: var(--deepest);
  border-top: 1px solid var(--hairline-dark);
  padding: 4.5rem 1.5rem 5rem;
}

.faq-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.faq h2 {
  font-size: 1.75rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.faq-list {
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--hairline-dark);
}

.faq-item dt {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3rem;
  padding: 1.125rem 0.25rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--amber-soft);
}

.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--amber);
  transition: transform 200ms ease;
}

.faq-icon::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  margin: 0;
  padding: 0 0.25rem 1.375rem;
  color: var(--cream-soft);
  font-size: 1rem;
}

.faq-answer a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  --ring-bg: var(--deepest);
  background: var(--deepest);
  border-top: 1px solid var(--hairline-dark);
  padding: 2.5rem 1.5rem calc(2.5rem + var(--sticky-h) + env(safe-area-inset-bottom));
  color: var(--cream-faint);
}

@media (min-width: 48rem) {
  .site-footer {
    padding-bottom: 2.5rem;
  }
}

.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-inner .wordmark {
  color: var(--cream);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--cream-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--cream-faint);
}

/* --------------------------------------------------------------------------
   Sticky mobile CTA — the lantern you carry
   -------------------------------------------------------------------------- */

.sticky-cta {
  --ring-bg: var(--deepest);
  --acc: var(--amber);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(23, 16, 9, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(232, 163, 61, 0.25);
  transform: translateY(0);
  transition: transform 200ms ease, visibility 0s;
}

/* visibility removes the link from the tab order and the a11y tree
   while hidden; the 200ms delay lets the slide-out finish first */
.sticky-cta.is-hidden {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 200ms ease, visibility 0s 200ms;
}

@media (min-width: 48rem) {
  .sticky-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Guide page (framework.html) — the room at the bottom
   -------------------------------------------------------------------------- */

.page-guide {
  background: var(--reading);
  color: var(--cream-soft);
}

.page-guide .top {
  position: relative;
}

.page-guide .top,
.page-coach .top {
  --acc: var(--amber);
}

.page-guide .top .wordmark,
.page-coach .top .wordmark {
  color: var(--cream);
}

.page-guide .top-link,
.page-coach .top-link {
  color: var(--amber);
}

/* Mobile progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: var(--amber);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* Desktop depth gauge */
.gauge {
  display: none;
}

@media (min-width: 64rem) {
  .progress-bar {
    display: none;
  }

  .gauge {
    display: block;
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60vh;
    z-index: 90;
  }

  .gauge-line {
    position: absolute;
    left: 3.5px;
    top: 0;
    width: 1px;
    height: 100%;
    background: repeating-linear-gradient(
      to bottom,
      rgba(243, 237, 227, 0.15) 0,
      rgba(243, 237, 227, 0.15) calc(12.5% - 5px),
      rgba(243, 237, 227, 0.45) calc(12.5% - 5px),
      rgba(243, 237, 227, 0.45) 12.5%
    );
  }

  .gauge .ember {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(calc(var(--progress, 0) * 60vh));
    transition: transform 120ms linear;
  }
}

.guide-main {
  --ring-bg: var(--reading);
  --acc: var(--amber);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
}

.guide-intro {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.guide-intro .label {
  color: var(--amber);
}

.guide-intro h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  color: var(--cream);
}

.guide-lead {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  color: var(--cream-soft);
}

/* Chapter index */
.toc {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline-dark);
}

.toc li {
  border-bottom: 1px solid var(--hairline-dark);
}

.toc a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0.25rem;
  text-decoration: none;
  color: var(--cream-soft);
}

.toc a:hover {
  color: var(--cream);
}

.toc a:hover .toc-title {
  color: var(--amber-soft);
}

.toc-num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(232, 163, 61, 0.8);
  min-width: 1.5rem;
}

.toc-title {
  font-weight: 500;
  color: var(--cream);
}

.toc-depth {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-faint);
  text-align: right;
}

/* Chapters */
.chapter {
  padding: 4.5rem 0 3.5rem;
  border-top: 1px solid var(--hairline-dark);
}

.chapter-numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(232, 163, 61, 0.55);
}

.chapter-caption {
  margin-top: 0.75rem;
  color: var(--amber);
}

.chapter h2 {
  margin-top: 0.875rem;
  font-size: 2.25rem;
  color: var(--cream);
}

.chapter-lead {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--cream);
  border-left: 2px solid var(--amber);
  padding-left: 1.25rem;
}

.chapter-body {
  margin-top: 2rem;
}

.chapter-body p {
  margin-bottom: 1.375rem;
  color: var(--cream-soft);
}

.chapter-body strong {
  font-weight: 500;
  color: var(--cream);
}

.vignette {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
}

.vignette .label {
  color: var(--amber);
}

.vignette p {
  margin: 0.875rem 0 0;
  font-size: 1rem;
  color: var(--cream-soft);
}

.vignette .vignette-note {
  font-size: 0.8125rem;
  color: var(--cream-faint);
}

.keep {
  margin: 2.25rem 0 0;
  padding: 1.5rem;
  background: rgba(232, 163, 61, 0.05);
  border-radius: 12px;
}

.keep .label {
  color: var(--amber);
}

.keep ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.keep li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  font-size: 1rem;
  color: var(--cream-soft);
}

.keep li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.14);
}

.chapter-next {
  display: inline-block;
  margin-top: 2.25rem;
  color: var(--amber);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chapter-next:hover {
  color: var(--amber-soft);
}

/* Belt path */
.belts-viz {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2.5rem 0 0.75rem;
  padding: 0 0.25rem;
}

.belts-viz::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: rgba(243, 237, 227, 0.2);
}

.belt-node {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(243, 237, 227, 0.35);
}

.belt-node--start {
  box-shadow: 0 0 0 3px var(--reading), 0 0 0 5px var(--amber), 0 0 14px rgba(232, 163, 61, 0.35);
}

.belts-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.belts-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--hairline-dark);
  font-size: 1rem;
}

.belt-name {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  padding-top: 0.2em;
}

.belt-name .you-are-here {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.belts-list p {
  color: var(--cream-soft);
}

/* Guide floor CTA */
.guide-floor {
  --ring-bg: var(--deepest);
  --acc: var(--amber);
  background: var(--deepest);
  margin-top: 4.5rem;
  padding: 5rem 1.5rem;
  text-align: center;
}

.guide-floor-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.guide-floor h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--cream);
}

.guide-floor .floor-body {
  margin-top: 1.25rem;
}

.coach-card {
  margin-top: 3.5rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  text-align: left;
}

.coach-card h3 {
  font-size: 1.5rem;
  color: var(--cream);
}

.coach-card p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--cream-soft);
}

.coach-card .btn {
  margin-top: 1.375rem;
}

/* --------------------------------------------------------------------------
   Coach page
   -------------------------------------------------------------------------- */

.page-coach {
  background: var(--reading);
  color: var(--cream-soft);
}

.page-coach .top {
  position: relative;
}

.coach-hero {
  --ring-bg: var(--deep);
  --acc: var(--amber);
  background: var(--deep);
  margin-top: -5rem;
  padding: 9rem 1.5rem 5rem;
  text-align: center;
}

.coach-hero .label {
  color: var(--amber);
}

.coach-hero h1 {
  margin: 1.25rem auto 0;
  max-width: 18ch;
  font-size: clamp(2.25rem, 7.5vw, 4rem);
  color: var(--cream);
}

.coach-hero-lead {
  margin: 1.75rem auto 0;
  max-width: var(--measure);
  color: var(--cream-soft);
}

.coach-main {
  --ring-bg: var(--reading);
  --acc: var(--amber);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.coach-section {
  padding: 3.25rem 0 1rem;
}

.coach-section + .coach-section {
  border-top: 1px solid var(--hairline-dark);
}

.coach-section h2 {
  font-size: 1.875rem;
  color: var(--cream);
}

.coach-section p {
  margin-top: 1.25rem;
  color: var(--cream-soft);
}

.points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
  color: var(--cream-soft);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.14);
}

.expectations {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: expect;
}

.expectations li {
  counter-increment: expect;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  color: var(--cream-soft);
}

.expectations li + li {
  border-top: 1px solid var(--hairline-dark);
}

.expectations li::before {
  content: counter(expect, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--amber);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Shared small screens / large screens polish
   -------------------------------------------------------------------------- */

@media (max-width: 22.5rem) {
  .hero h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 48rem) {
  .beat-inner {
    padding: 2.5rem 2rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion belt and braces
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
