/* ============================================================================
   ElsewhereCo · home.css
   The home page as a printed feature: a title page, five chapters with
   intertitle plates, and a colophon. Built on scrollcraft.css (the engine's
   floor) and styles.css (the site's tokens). See design.md.
   ========================================================================== */

/* ---- token bridge: the engine reads --sc-*, the site speaks --bg/--text. -- */
:root {
  --sc-canvas: var(--bg);
  --sc-surface: var(--bg-card);
  --sc-ink: var(--text);
  --sc-ink-soft: var(--text-muted);
  --sc-accent: var(--brand);
  --sc-accent-ink: var(--brand-ink);
  --sc-font-display: var(--display-ar);
  --sc-font-text: var(--sans-ar);
  --sc-shadow-color: 160 30% 3%;
  --sc-maxw: 68rem;
  --sc-gutter: clamp(1.25rem, 5vw, 4rem);
}
body[dir="ltr"] {
  --sc-font-display: var(--display);
  --sc-font-text: var(--sans);
}
html[data-theme="light"] .sc-grain { opacity: 0.03; }

/* The shared nav sits over the title page. Transparent until scrolled so the
   cover reads as paper, not as a page under a bar. */
.home-page .nav:not(.nav-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  --text: var(--on-dark-text);
  --text-soft: var(--on-dark-text-soft);
  --bg: #0b1512;
  --line-strong: rgba(241, 234, 218, 0.3);
  --logo-invert: brightness(0) saturate(100%) invert(95%) sepia(8%) saturate(420%) hue-rotate(8deg) brightness(98%) contrast(94%);
}
.home-page .nav:not(.nav-scrolled) .brand-logo { mix-blend-mode: screen; }

/* ---- layout ----------------------------------------------------------- */
.ch-wrap {
  width: 100%;
  max-width: var(--sc-maxw);
  margin-inline: auto;
  padding-inline: var(--sc-gutter);
}
.ch { position: relative; }

/* Labels: small tracked sans, tinted. One per spread at most. */
.label {
  font-family: var(--sans-ar);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin: 0;
}
body[dir="ltr"] .label {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Running-text CTA. A line of text with an arrow, never a button island. */
.runline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--sans-ar);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  text-decoration-color: color-mix(in oklab, var(--brand) 45%, transparent);
  transition: text-decoration-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
body[dir="ltr"] .runline { font-family: var(--sans); }
.runline::after {
  content: "\2190";
  font-family: var(--sans);
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}
body[dir="ltr"] .runline::after { content: "\2192"; }
.runline:hover { text-decoration-color: var(--brand); color: var(--text); }
.runline:hover::after { transform: translateX(-4px); }
body[dir="ltr"] .runline:hover::after { transform: translateX(4px); }
.runline:active { transform: translateY(1px); }
.runline-lg { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

/* ==================================================================== hero */
/* A pinned act. The photograph holds and drifts, the 3D terrain draws its
   route under the reader's hand, the copy greets and then hands over to the
   contents. The overlay is always dark, whatever the theme. */
.hero-split {
  /* position and overflow belong to the engine (.sc-stage is sticky). */
  isolation: isolate;
  background: #0b1512;
  color: var(--on-dark-text);
}
/* Planes. Each is oversized past the stage so its edge never shows as it
   travels, and each is solid below its silhouette. */
.hero-layer { position: absolute; will-change: transform; }
.hero-layer--back {
  inset: -8% 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-layer--mid { inset: -10% 0; }
.hero-layer--front {
  inset-inline: 0;
  bottom: -12%;
  height: 42%;
  z-index: 2;
  pointer-events: none;
}
.hero-ridge { display: block; width: 100%; height: 100%; }
.hero-ridge-fill { fill: #0b1512; }
.hero-ridge-edge { fill: #1a2c23; opacity: 0.9; }
@media (max-width: 680px) {
  .hero-layer--front { height: 34%; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 21, 18, 0.55) 0%, rgba(11, 21, 18, 0.18) 30%, rgba(11, 21, 18, 0.94) 100%),
    linear-gradient(90deg, rgba(11, 21, 18, 0.62) 0%, rgba(11, 21, 18, 0.12) 45%, rgba(11, 21, 18, 0.62) 100%);
}
.home-3d-scene {
  position: absolute;
  inset: -10% 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  mix-blend-mode: screen;
}
.home-3d-scene.home-3d-ready { opacity: 0.85; }
.home-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 680px) {
  .home-3d-scene {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.5) 58%, #000 74%);
    mask-image: linear-gradient(180deg, transparent 0%, transparent 42%, rgba(0, 0, 0, 0.5) 58%, #000 74%);
  }
  .home-3d-scene.home-3d-ready { opacity: 0.55; }
}

.hero-text {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  z-index: 3;
  max-width: var(--sc-maxw);
  margin-inline: auto;
  padding: 0 var(--sc-gutter) clamp(3.5rem, 9vh, 6.5rem);
}
.masthead--hero {
  color: rgba(241, 234, 218, 0.72);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.masthead--hero .brand-ar,
.masthead--hero .brand-en { color: var(--on-dark-text); }
.hero-title {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.18;
  letter-spacing: 0;
  max-width: 14ch;
  margin: 0 0 clamp(1rem, 2.5vh, 1.5rem);
  color: var(--on-dark-text);
  text-wrap: balance;
}
body[dir="ltr"] .hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero-deck {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: rgba(241, 234, 218, 0.84);
  max-width: 50ch;
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem);
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-cta .btn-primary { background: #e07b3a; color: #0b1512; border-color: #e07b3a; }
.hero-cta .btn-primary:hover { background: #eb9a63; border-color: #eb9a63; }
.hero-cta .btn-outline { background: transparent; border-color: rgba(241, 234, 218, 0.42); color: var(--on-dark-text); }
.hero-cta .btn-outline:hover { background: var(--on-dark-text); color: #0b1512; border-color: var(--on-dark-text); }

.hero-text--contents { color: var(--on-dark-text); }
.hero-text--contents .cover-contents-label { color: rgba(241, 234, 218, 0.72); }
.hero-text--contents .cover-contents a { color: rgba(241, 234, 218, 0.86); }
.hero-text--contents .cover-contents a:hover { color: #eb9a63; }
.hero-text--contents .cover-num { color: #e07b3a; }
.hero-text--contents .cover-dots { border-bottom-color: rgba(241, 234, 218, 0.28); }
.runline-hero { color: #eb9a63; font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.runline-hero:hover { color: var(--on-dark-text); }

.hero-credit {
  position: absolute;
  bottom: 1.25rem;
  inset-inline-end: var(--sc-gutter);
  z-index: 3;
  font-family: var(--sans-ar);
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(241, 234, 218, 0.62);
}
body[dir="ltr"] .hero-credit { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Contents list (also used by the hero's second state). */
.cover-contents {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
}
.cover-contents-label {
  font-family: var(--sans-ar);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 0.2rem;
  white-space: nowrap;
}
body[dir="ltr"] .cover-contents-label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.cover-contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.35rem 2rem;
  max-width: 40rem;
}
.cover-contents a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--sans-ar);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.25rem 0;
  transition: color 140ms var(--ease-out);
}
body[dir="ltr"] .cover-contents a { font-family: var(--sans); font-size: 0.95rem; }
.cover-contents a:hover { color: var(--brand); }
.cover-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8em;
  letter-spacing: 0.06em;
  color: var(--brand);
  min-width: 1.8em;
}
.cover-dots {
  flex: 1 1 auto;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-0.35em);
  min-width: 1rem;
}
.cover-line { margin: 0; }

/* The masthead is shared by the hero and the colophon. */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--sans-ar);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}
body[dir="ltr"] .masthead { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.masthead .brand-ar { font-size: 1.35em; color: var(--text); }
.masthead .brand-en { font-size: 1em; color: var(--text); letter-spacing: 0.02em; }
.masthead-sep { color: var(--brand); }

/* ================================================================= plates */
/* An intertitle. Chapters land on their own ground by a hard cut. */
.plate {
  padding-block: clamp(4rem, 12vh, 8rem) clamp(2.5rem, 7vh, 5rem);
}
.plate-a { background: var(--section-alt); }
.plate-inner {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.plate-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text);
  opacity: 0.22;
  font-variant-numeric: lining-nums;
  transform: translateY(0.06em);
}
.plate-title {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0;
  color: var(--text);
}
body[dir="ltr"] .plate-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* The spread: the chapter's body, on the canvas. */
.spread {
  padding-block: clamp(3rem, 8vh, 5.5rem) clamp(4rem, 11vh, 7.5rem);
}

/* ============================================================== I · here */
.spread-here {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.here-lede {
  font-family: var(--display-ar);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
body[dir="ltr"] .here-lede {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
}
.here-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-soft);
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

/* ============================================================ II · field */
.field {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.field-figure {
  margin: 0;
  position: relative;
}
.field-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  /* Parallax travels the image inside the frame. Oversize it so the frame
     never shows its edge. */
  background-size: cover;
  transform-origin: center;
}
.field-figure { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-e2); }
.field-figure .field-img { scale: 1.12; }
.field-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1.1rem 0.9rem;
  font-family: var(--sans-ar);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--on-dark-text-soft);
  background: linear-gradient(to top, color-mix(in oklab, #08140f 80%, transparent), transparent);
  pointer-events: none;
}
body[dir="ltr"] .field-caption { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.field-text { position: sticky; top: 6rem; }
.field-title {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.3;
  margin: 0.9rem 0 1rem;
  color: var(--text);
  text-wrap: balance;
}
body[dir="ltr"] .field-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.field-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0 0 1.75rem;
  max-width: 44ch;
  text-wrap: pretty;
}
.field-facts {
  margin: 0 0 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.field-facts > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.field-facts > div[hidden] { display: none; }
.field-facts dt {
  font-family: var(--sans-ar);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}
body[dir="ltr"] .field-facts dt { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.field-facts dd {
  margin: 0;
  font-family: var(--sans-ar);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
body[dir="ltr"] .field-facts dd { font-family: var(--sans); }
.field-facts .vip-star { color: var(--brand); margin-inline-end: 0.3em; }
.field-facts .price-orig { color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-inline-start: 0.6em; font-size: 0.9em; }
.field-link { margin: 0; }

/* =========================================================== III · method */
.method {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.method-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 15rem) minmax(0, 1fr);
  gap: 1rem clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.4rem, 3vh, 2rem) 0;
  border-bottom: 1px solid var(--line);
}
.method-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums lining-nums;
}
.method-item h3 {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}
body[dir="ltr"] .method-item h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.method-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 48ch;
  text-wrap: pretty;
}

/* ============================================================ IV · summit */
/* The inverse plate. Snow in the dark theme, night in the light one. Tokens
   are redefined on the subtree and `color` is restated, because inherited
   colour is a computed value and does not re-resolve on its own. */
.plate-inverse {
  --bg: var(--inverse-bg);
  --bg-soft: var(--inverse-bg-soft);
  --bg-card: var(--inverse-bg-soft);
  --section-alt: var(--inverse-bg-soft);
  --text: var(--inverse-text);
  --text-soft: var(--inverse-text-soft);
  --text-muted: var(--inverse-text-muted);
  --brand: var(--inverse-brand);
  --brand-ink: var(--inverse-bg);
  --line: var(--inverse-line);
  --line-strong: var(--inverse-line-strong);
  background: var(--inverse-bg);
  color: var(--inverse-text);
}
.silence { height: clamp(28vh, 45vh, 60vh); }
.plate-summit { padding-top: 0; }
.spread-summit {
  padding-bottom: clamp(5rem, 14vh, 9rem);
  display: grid;
  gap: clamp(3rem, 9vh, 6rem);
}
.summit-quote {
  margin: 0;
  max-width: 46rem;
}
.summit-quote p {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 1.5rem;
  max-width: 22ch;
  text-wrap: balance;
}
body[dir="rtl"] .summit-quote p::before { content: "«"; color: var(--brand); margin-inline-end: 0.12em; }
body[dir="rtl"] .summit-quote p::after { content: "»"; color: var(--brand); margin-inline-start: 0.12em; }
body[dir="ltr"] .summit-quote p {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
body[dir="ltr"] .summit-quote p::before { content: "\201C"; color: var(--brand); }
body[dir="ltr"] .summit-quote p::after { content: "\201D"; color: var(--brand); }
.summit-quote cite {
  font-style: normal;
  font-family: var(--sans-ar);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
}
body[dir="ltr"] .summit-quote cite { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }

.record .label { margin-bottom: 1.25rem; }
.home-page .stats-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
}
.home-page .stats-line .stat {
  text-align: start;
  padding: 1.6rem 0 1.4rem;
  border-inline-end: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: none;
}
.home-page .stats-line .stat:hover { background: transparent; }
.home-page .stats-line .stat + .stat { padding-inline-start: clamp(1rem, 2.5vw, 2rem); border-inline-start: 1px solid var(--line); }
.home-page .stat-value {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums lining-nums;
  overflow-wrap: anywhere;
  margin-bottom: 0.6rem;
}
.home-page .stat-value::after {
  content: attr(data-unit);
  font-family: var(--sans-ar);
  font-size: 0.42em;
  font-weight: 500;
  color: var(--text-muted);
  margin-inline-start: 0.25em;
  letter-spacing: 0;
}
body[dir="ltr"] .home-page .stat-value::after { font-family: var(--sans); }
.home-page .stat-label {
  font-family: var(--sans-ar);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
body[dir="ltr"] .home-page .stat-label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 720px) {
  .home-page .stats-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .stats-line .stat:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .home-page .stats-line .stat:nth-child(2) { padding-inline-start: 1rem; border-inline-start: 1px solid var(--line); }
}

/* =========================================================== voices (opt) */
.ch-voices { padding-block: clamp(3rem, 8vh, 5.5rem); background: var(--section-alt); }
.home-page .ch-voices .section-num { align-items: flex-start; text-align: start; margin-inline: 0; margin-bottom: 2rem; gap: 0.5rem; }
.home-page .ch-voices .section-num-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.home-page .ch-voices .container { max-width: var(--sc-maxw); padding-inline: var(--sc-gutter); }

/* ============================================================== V · faq */
.faq-intro {
  margin: 0 0 2rem;
  color: var(--text-soft);
  max-width: 52ch;
  line-height: 1.75;
}
.home-page .faq-columns {
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.home-page .faq-columns .faq-item { border-top: 1px solid var(--line); border-bottom: 0; }
.home-page .faq-columns .faq-item summary {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.45;
  padding: 1.25rem 0;
  gap: 1rem;
}
body[dir="ltr"] .home-page .faq-columns .faq-item summary { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.home-page .faq-columns .faq-a { padding: 0 0 1.5rem; font-size: 0.98rem; max-width: 100%; }
@media (max-width: 760px) {
  .home-page .faq-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================== colophon */
.ch-colophon {
  background: var(--section-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 10vh, 7rem) clamp(4rem, 10vh, 7rem);
}
.colophon {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem) clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.colophon-brand {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin: 0 0 0.9rem;
  color: var(--text);
}
.colophon-brand .brand-ar { font-size: 1.6rem; }
.colophon-brand .brand-en { font-size: 1.05rem; }
.colophon-note {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 34ch;
}
.colophon-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  margin: 0;
  padding-top: clamp(1.5rem, 4vh, 2.5rem);
  border-top: 1px solid var(--line-strong);
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: var(--text);
}
body[dir="ltr"] .colophon-line { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }

/* The newsletter block is injected by trips.js; restyle it as a colophon
   paragraph rather than a centred island. */
.home-page .colophon-news {
  display: block;
  text-align: start;
}
.home-page .colophon-news .eyebrow {
  display: block;
  font-family: var(--sans-ar);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--brand);
  margin: 0 0 0.6rem;
}
body[dir="ltr"] .home-page .colophon-news .eyebrow { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.home-page .colophon-news .eyebrow::before,
.home-page .colophon-news .eyebrow::after { display: none; }
.home-page .colophon-news h2 {
  font-family: var(--display-ar);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 0.6rem;
  color: var(--text);
}
body[dir="ltr"] .home-page .colophon-news h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.home-page .colophon-news p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  text-align: start;
  max-width: 46ch;
  font-size: 0.98rem;
}
.home-page .colophon-news .newsletter-form { max-width: 30rem; gap: 0.5rem; }
.home-page .colophon-news .newsletter-form input[type="email"] {
  background: var(--bg);
  border-color: var(--line-strong);
}
.home-page .colophon-news .newsletter-msg { margin-top: 0.5rem; text-align: start; }

/* ================================================================= folio */
/* The margin rail: chapter marker, altimeter and contents. Fixed at the
   inline-start margin on wide screens; a strip along the bottom edge on
   everything narrower. */
.folio {
  position: fixed;
  z-index: 40;
  inset-inline-start: clamp(1rem, 2.4vw, 2.25rem);
  top: 50%;
  transform: translateY(-50%);
  width: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
  pointer-events: none;
}
.folio.is-ready { opacity: 1; pointer-events: auto; }
.folio-chapter {
  background: var(--bg);
  padding: 0.3rem 0.4rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text);
  text-align: center;
  min-height: 3.2rem;
  justify-content: flex-end;
}
.folio-chapter-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  line-height: 1;
}
.folio-chapter-title {
  font-family: var(--sans-ar);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.2;
}
body[dir="ltr"] .folio-chapter-title { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }
.folio-track {
  position: relative;
  width: 2px;
  height: clamp(9rem, 30vh, 16rem);
  background: var(--line-strong);
  border-radius: 1px;
}
.folio-fill {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0%;
  background: var(--brand);
  border-radius: 1px;
  transition: height 120ms linear;
}
.folio-camps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}
.folio-camp {
  position: absolute;
  inset-inline-start: 50%;
  bottom: calc(var(--camp, 0) * 100%);
  transform: translate(-50%, 50%);
}
body[dir="rtl"] .folio-camp { transform: translate(50%, 50%); }
.folio-camp a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  flex-direction: row-reverse;
}
body[dir="ltr"] .folio-camp a { flex-direction: row; }
.folio-camp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-bold);
  box-sizing: border-box;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.folio-camp-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
  transition: color 200ms var(--ease-out), opacity 200ms var(--ease-out);
  position: absolute;
  inset-inline-start: 1rem;
}
.folio-camp.is-passed .folio-camp-dot { border-color: var(--brand); background: var(--brand); }
.folio-camp.is-passed .folio-camp-num { color: var(--text); opacity: 1; }
.folio-camp-summit .folio-camp-dot { width: 10px; height: 10px; border-color: var(--text-soft); }
.folio.is-summit .folio-camp-summit .folio-camp-dot { transform: scale(1.35); }
.folio-alt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-height: 3.6rem;
}
.folio-alt-label {
  font-family: var(--sans-ar);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
}
body[dir="ltr"] .folio-alt-label { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; }
.folio-alt-readout {
  background: var(--bg);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}
.folio-alt-unit { font-size: 0.7em; color: var(--text-muted); font-family: var(--sans-ar); }
body[dir="ltr"] .folio-alt-unit { font-family: var(--sans); }
.folio-alt-summit {
  font-family: var(--sans-ar);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
body[dir="ltr"] .folio-alt-summit { font-family: var(--sans); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; }
.folio.is-summit .folio-alt-summit { opacity: 1; transform: none; }

/* The inverse plate passes under the folio. Re-ink the rail to the plate's
   own tokens rather than boxing it. */
.folio.on-inverse {
  --text: var(--inverse-text);
  --text-soft: var(--inverse-text-soft);
  --text-muted: var(--inverse-text-muted);
  --brand: var(--inverse-brand);
  --bg: var(--inverse-bg);
  --line-strong: var(--inverse-line-strong);
  --line-bold: var(--inverse-line-strong);
  color: var(--text-muted);
}

@media (max-width: 1199px) {
  .folio {
    top: auto;
    bottom: 0;
    inset-inline: 0;
    transform: none;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 3rem;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
    background: color-mix(in oklab, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    color: var(--text-soft);
  }
  .folio-chapter { flex-direction: row; align-items: baseline; gap: 0.5rem; min-height: 0; text-align: start; background: transparent; padding: 0; }
  .folio-alt-readout { background: transparent; padding: 0; }
  .folio-chapter-num { font-size: 0.95rem; }
  .folio-track {
    position: absolute;
    top: -1px;
    inset-inline: 0;
    width: auto;
    height: 2px;
    background: transparent;
    border-radius: 0;
  }
  .folio-fill {
    inset-inline-start: 0;
    inset-inline-end: auto;
    top: 0;
    bottom: auto;
    width: 0%;
    height: 2px;
    transition: width 120ms linear;
  }
  .folio-camps { display: none; }
  .folio-alt { flex-direction: row; align-items: baseline; gap: 0.5rem; min-height: 0; }
  .folio-alt-label { display: none; }
  .folio-alt-readout { font-size: 1rem; }
  .folio-alt-summit { transform: none; }
  body.home-page { padding-bottom: 3rem; }
  body.home-page .cookie-banner { bottom: 3rem; }
}

/* ================================================================ mobile */
@media (max-width: 880px) {
  .spread-here,
  .field,
  .colophon { grid-template-columns: minmax(0, 1fr); }
  .field-text { position: static; }
  .field-img { aspect-ratio: 4 / 3; }
  .method-item { grid-template-columns: 3rem minmax(0, 1fr); }
  .method-item p { grid-column: 2; }
  .cover-contents { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .hero-text { padding-bottom: clamp(3rem, 8vh, 4rem); }
  .hero-cta .btn { padding: 0.85rem 1.25rem; font-size: 0.9rem; }
  .plate { padding-block: clamp(3rem, 9vh, 5rem) clamp(1.75rem, 5vh, 3rem); }
  .plate-inner { gap: 0.9rem; }
}

/* ======================================================== reduced motion */
@media (prefers-reduced-motion: reduce) {
  .home-3d-scene { display: none !important; }
  .hero-layer { transform: none !important; }
  .folio, .folio-fill, .folio-camp-dot, .folio-alt-summit { transition: none; }
  .field-figure .field-img { scale: 1; }
  .runline::after { transition: none; }
}
