/* ============================================================
   synqa.ca - site styles
   Foundations (palette, type) imported from the design system.
   This file holds shell + chapter styles for the long-scroll homepage.
   ============================================================ */

@import url("./foundations.css?v=v8.13");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  /* Honest motion: no smooth-scroll layer. Native scroll only (no Lenis
     in either the prototype or the production target) so the dock + erase
     scrub feel rigid against the wheel. */
  scroll-behavior: auto;
  background: var(--bone);
  overflow-x: clip;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: clip;
}

/* ----------------------------------------------------------------
   Persistent shell - present on every chapter
   ----------------------------------------------------------------*/

/* M-shell · sticky nav. Bone-92α + 12px backdrop blur, the one
   permitted use of blur in the system. */
.shell-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  /* Horizontal padding scales with viewport so the 7-link nav + CTA
     still breathe at the smallest desktop width (1024px) before the
     hamburger takes over at 1023px. */
  padding: 18px clamp(20px, 3.2vw, 40px);
  gap: clamp(16px, 2vw, 32px);
  background: rgba(240, 234, 216, 0); /* fades in as user scrolls past dock */
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-standard),
              backdrop-filter var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.shell-nav[data-docked="true"] {
  background: rgba(240, 234, 216, 0.92);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.shell-nav-brand {
  /* The wordmark "slot" in the nav. Empty placeholder; the live
     animating wordmark docks here. Sized so the dock target is
     unambiguous. */
  display: inline-flex; align-items: center;
  width: 92px;   /* dock target width - see site.js M01 */
  height: 26px;
  position: relative;
  border-bottom: none; /* override foundations.css default link rule */
}
.shell-nav-brand img {
  height: 26px; width: auto; display: block;
  opacity: 0; /* the moving wordmark stands in until dock completes */
  transition: opacity var(--dur-base) var(--ease-standard);
}
.shell-nav[data-docked="true"] .shell-nav-brand img { opacity: 1; }

.shell-nav-links {
  /* Responsive gap so 7 links + CTA still fit at 1024px (the smallest
     desktop width before the 1023px hamburger breakpoint).
     - gap shrinks from 32px down to 16px between 1280px and 1024px
     - font-size shrinks from 14px to 13px in the same range
     - letter-spacing tightens by 0.005em for a touch more headroom
     At 1024px: 7 links (~268px text) + 6 x 16px gaps (96px) = ~364px,
     well inside the ~545px available between brand + CTA. */
  display: flex;
  gap: clamp(16px, 1.6vw, 32px);
  font-family: var(--font-display);
  font-size: clamp(13px, 0.95vw, 14px);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.shell-nav-links a {
  color: var(--ink);
  border-bottom: none;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.shell-nav-links a:hover { color: var(--clay); }
.shell-nav-links .period { color: var(--clay); }

.shell-nav-cta {
  display: inline-flex; align-items: center; gap: 1px;
  background: var(--clay); color: var(--bone);
  font-family: var(--font-display); font-weight: 500;
  /* CTA scales in step with the nav links so the chip stays
     proportional at the smallest desktop width. */
  font-size: clamp(13px, 0.95vw, 14px);
  padding: 10px clamp(12px, 1.2vw, 16px);
  border-radius: var(--radius-md);
  border: none; cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none; /* override foundations.css default link rule */
  transition: background 40ms var(--ease-standard),
              transform var(--dur-base) var(--ease-standard);
  will-change: transform;
}
.shell-nav-cta:hover { background: var(--clay-hover); color: var(--bone); }
.shell-nav-cta:active { background: var(--clay-active); }
.shell-nav-cta .period { color: var(--bone); }

/* M-shell · scroll-progress hairline.  1px Bone-400 base, Clay fill
   tied 1:1 to document scroll. */
.shell-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 1px; background: var(--bone-400);
  z-index: 50;
}
.shell-progress > i {
  display: block; height: 100%; width: 0%;
  background: var(--clay);
  transform-origin: left center;
}

/* Place stamps - upper-right Toronto (Clay), lower-left Cape Town (Harbor).
   Invert via [data-shell-surface="ink"] when over an Ink chapter. */
.shell-stamp {
  position: fixed; z-index: 35;
  font-family: var(--font-mono); font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  pointer-events: none;
  transition: color var(--dur-base) var(--ease-standard);
}
/* Both place stamps clear the 60px nav band - top stamp sits below it. */
.shell-stamp-tr { top: 84px; right: 40px; color: var(--clay); }
.shell-stamp-bl { bottom: 24px; left: 40px;  color: var(--harbor); }
.shell-stamp-bl[data-surface="ink"] { color: var(--fg-cool-on-ink); }

/* M11 · mono ticker - right-edge vertical column.
   Stays present on every chapter except 01 + 09. The column is
   vertically centered on the viewport and the visible band fades
   out at the top + bottom edges via mask-image, so the marquee
   appears to surface from and dissolve into the page.

   Roll-in entrance: on activation the column slides in from the
   right edge (translateX 40 to 0) while fading up. The centering
   translateY(-50%) is preserved by composing both translates on
   the same transform line. */
.shell-ticker {
  position: fixed;
  top: 50%;
  right: 16px;
  width: 32px;
  height: 60vh;
  /* Two transforms combined: vertical centering + horizontal
     roll-in offset driven by the local --ticker-x variable. */
  --ticker-x: 40px;
  transform: translateY(-50%) translateX(var(--ticker-x));
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  color: var(--stone);
  opacity: 0;
  transition: opacity var(--dur-cinematic) var(--ease-out),
              transform var(--dur-cinematic) var(--ease-out);
  /* Fade-out at the top + bottom edges of the column. The marquee
     engine keeps scrolling underneath; the mask only controls what
     the eye sees. Black band runs ~70% of the height; the outer
     15% on each side dissolves into the canvas. */
  -webkit-mask-image: linear-gradient(to bottom,
                        transparent 0%,
                        black 15%,
                        black 85%,
                        transparent 100%);
          mask-image: linear-gradient(to bottom,
                        transparent 0%,
                        black 15%,
                        black 85%,
                        transparent 100%);
}
.shell-ticker[data-active="true"] {
  opacity: 1;
  --ticker-x: 0px;
}

/* The track stacks rows vertically (normal flex column in horizontal
   writing mode) and only carries the marquee's translateY transform.
   Each row span is the one that gets vertical-rl writing mode, so
   the TEXT inside reads top-to-bottom while the rows themselves
   stack down the column the way the marquee engine expects.

   Track must NOT be absolutely positioned to inset:0 - that would
   force its height equal to the container's, which breaks the
   marquee wrap math (it relies on scrollHeight/2 reflecting the
   real total content height). */
.shell-ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: translateY(0);
  will-change: transform;
}
/* Direct-child row spans render vertical-rl so their text reads
   top-to-bottom down the column. Nested spans (.period, time
   wrapper) inherit the writing mode and must NOT redeclare it. */
.shell-ticker-track > span {
  display: inline-block;
  white-space: nowrap;
  writing-mode: vertical-rl;
}
.shell-ticker-track .period { color: var(--clay); }
/* M11 time node: no transition - minute updates are silent in-place swaps.
   A single-digit change is imperceptible; an opacity fade caused a
   visible once-per-minute flicker on the visible rows. */

/* M13 · cursor period trail container */
.shell-trail {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 25;
}
.shell-trail-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.4;
  transform: translate(-50%, -50%);
  transition: opacity 600ms linear;
  will-change: opacity, transform;
}

/* M20 · corner stamp (chapter label, upper-left) - clears the nav band. */
.shell-chapter-stamp {
  position: fixed;
  top: 84px; left: 40px;
  z-index: 35;
  font-family: var(--font-mono); font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  color: var(--stone);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.shell-chapter-stamp[data-surface="ink"] { color: var(--fg-quiet-on-ink); }

/* ----------------------------------------------------------------
   M01 · The dock - Chapter 1's animating wordmark
   ----------------------------------------------------------------*/

.dock-wordmark {
  /* Lives fixed in viewport; transform is driven by scroll progress
     (M01). At scroll=0 it sits centered. At dock-complete it lands
     at the nav slot's left edge. */
  position: fixed;
  z-index: 38;
  top: 50%;
  left: 50%;
  width: 280px;
  height: auto;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: left center;
  will-change: transform, opacity;
  pointer-events: none;
}
.dock-wordmark img { width: 100%; height: auto; display: block; }

/* ----------------------------------------------------------------
   M05 · Painted erase canvas
   Fixed full-viewport, only visible during the bridge scroll zone.
   Draws a giant "Synqa." typographic mark and erases it via
   destination-out brush stroke as scroll progresses.
   ----------------------------------------------------------------*/

.erase-canvas {
  position: fixed;
  inset: 0;
  z-index: 28;
  pointer-events: none;
  opacity: 0; /* gated to the bridge range by site.js */
  background: transparent;
  will-change: opacity;
}

/* ----------------------------------------------------------------
   Chapters - shared
   ----------------------------------------------------------------*/

main { display: block; }

.chapter {
  position: relative;
  width: 100%;
  background: var(--bone);
  color: var(--ink);
}
.chapter[data-surface="ink"] {
  background: var(--ink);
  color: var(--bone);
}

.chapter-bridge {
  /* The scroll runway used by M05. Has no visible content of its
     own; the canvas paints over the viewport during this range. */
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bone);
}

/* ----------------------------------------------------------------
   Chapter 01 - Cold open
   ----------------------------------------------------------------*/

.ch-01 {
  min-height: 110vh;   /* dock runs over the first ~80vh of scroll */
  min-height: 110svh;
  position: relative;
}
.ch-01-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-01-mono-top {
  position: absolute;
  top: 22vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}
.ch-01-stamp {
  position: absolute;
  bottom: 22vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--stone);
  display: inline-flex; align-items: center; gap: 14px;
  white-space: nowrap;
}
.ch-01-stamp .t { color: var(--clay); }
.ch-01-stamp .c { color: var(--harbor); }
.ch-01-stamp .dot { color: var(--stone); }

/* ----------------------------------------------------------------
   Chapter 02 - The line
   ----------------------------------------------------------------*/

.ch-02 {
  min-height: 100vh;
  padding: 22vh 0 20vh;
  position: relative;
}
.ch-02-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
}

.line-head {
  /* The thesis statement. Fraunces display, sentence case,
     period in Clay, "hours back" in Harbor italic. */
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  position: relative;
}
.line-head em {
  font-style: italic;
  font-weight: 400;
  color: var(--harbor);
}
.line-head .period { color: var(--clay); }
.line-head .line { display: block; }

/* M02 · the drop - each word starts down + invisible.
   Gated to .js so headline stays visible if JS fails to boot.
   Animation is driven from site.js via inline rAF tweens (the
   prototype's "gotcha-1": WAAPI / CSS transitions get stuck in
   some iframe contexts). CSS only owns the initial-state and the
   reduced-motion fallback - the timing lives in the JS so we can
   stagger imperatively. Production rebuilds this on a GSAP
   timeline with the same shape. */
.line-head .word {
  display: inline-block;
}
.line-head > .line > .word,
.line-head > .line > .period {
  display: inline-block;
  will-change: transform, opacity;
}
/* Inter-word spacing comes from the natural whitespace text nodes
   between sibling .word spans in the markup. No CSS word-spacing
   override - it stacks on top of the natural gap and forces the
   headline to wrap onto more lines than intended. */

html.js .line-head > .line > .word {
  opacity: 0;
  transform: translateY(28px);
}
html.js .line-head > .line > .period {
  opacity: 0;
  transform: translateY(16px);
}

html.js .ch-02-foot {
  opacity: 0;
  transform: translateY(8px);
}

/* M03 · carbon copy - duplicate behind the headline at Stone-α.
   site.js drives the offset off scroll velocity. */
.line-head .carbon {
  position: absolute;
  inset: 0;
  color: rgba(168, 156, 138, 0.42); /* stone @ ~42% */
  pointer-events: none;
  z-index: -1;
  transform: translate(2px, 2px);
  will-change: transform;
}
.line-head .carbon em { color: rgba(31, 77, 74, 0.32); }
.line-head .carbon .period { color: rgba(181, 87, 58, 0.32); }

.ch-02-foot {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--stone);
}
.ch-02-foot .period { color: var(--clay); }


/* ----------------------------------------------------------------
   Chapter 06 - The proof
   Surface: Bone with one Ink wipe panel between cases.
   Pin runway: 400vh - 100vh entry/peel + 300vh pin scrub through
   3 horizontal panels (case 1, wipe, case 2).
   ----------------------------------------------------------------*/

.ch-06 {
  position: relative;
  /* Pin runway. 100svh peel + 300svh of pinned horizontal scrub. */
  height: 400svh;
  background: var(--bone);
}

.ch-06-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bone);
}

/* M17 · reverse parallax - vertical hairlines under the pinned area.
   Drag faster than the foreground translation so the eye gets pulled
   through. Rendered as a single repeating linear-gradient strip. */
.ch-06-bg {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent 119px,
    rgba(168, 156, 138, 0.18) 119px,
    rgba(168, 156, 138, 0.18) 120px
  );
  will-change: transform;
  pointer-events: none;
}

/* M16 · the peel - section header that lives at the top of the
   pinned shell. Each character has its own clip-path reveal that
   site.js drives off scroll progress. */
.ch-06-header {
  position: absolute;
  /* Fluid top offset: scales down on short viewports so the peel header
     never reads into the case content below it. */
  top: clamp(72px, 12vh, 120px); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  align-items: center;
  z-index: 4;
  pointer-events: none;
  will-change: transform, opacity;
}
.ch-06-header .mono {
  font-family: var(--font-mono); font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  color: var(--stone);
}
.ch-06-header .mono .period { color: var(--clay); margin: 0 4px; }
.peel-headline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.peel-headline em { font-style: italic; color: var(--harbor); font-weight: 400; }
.peel-headline .period { color: var(--clay); }
.peel-char {
  display: inline-block;
  /* Initial state: clipped from the right (invisible). The reveal
     uses clip-path: inset(0 100% 0 0) to inset(0 0 0 0), driven via
     inline style by site.js. */
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.peel-char.space { width: 0.32em; }

/* The horizontal track. Three panels each 100vw wide; total 300vw. */
.ch-06-track {
  position: absolute; inset: 0;
  display: flex;
  width: 300vw;
  will-change: transform;
  /* translateX driven inline from scroll progress */
}
.ch-06-panel {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Case panels - Bone surface, three-column composition. */
.case-panel {
  background: var(--bone);
  padding: clamp(112px, 18vh, 152px) clamp(40px, 6vw, 96px) clamp(56px, 9vh, 96px);
}
/* Case 1 (the first panel the visitor sees, while the peel header is
   still on screen) gets a bigger top gutter so the header doesn't
   read into the case meta + headline.  Case 2 and the wipe panel are
   reached after the header has faded, so they keep the normal padding.
   This is the OUTER panel's padding only - applying to the inner
   element too would double up.  */
.ch-06-panel.case-panel[data-case="1"] {
  padding-top: clamp(120px, 24vh, 240px);
}
.case-panel-inner {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.case-meta {
  display: flex; flex-direction: column; gap: 22px;
}
.case-meta-stamp {
  font-family: var(--font-mono); font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  color: var(--stone);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.case-meta-stamp .label { color: var(--ink); }
.case-meta-stamp .period { color: var(--clay); }
.case-meta-stamp .sector { color: var(--ink); font-weight: 500; }

.case-headline {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 3.8vw, 56px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
  text-wrap: balance;
}
.case-headline em { font-style: italic; color: var(--harbor); font-weight: 400; }
.case-headline .period { color: var(--clay); }

.case-body {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  color: var(--ink);
  max-width: 52ch;
}
.case-body p { margin: 0; }

.case-footer-stamp {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  color: var(--stone);
}
.case-footer-stamp .period { color: var(--clay); }

.case-cta {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-body); font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.case-cta:hover { color: var(--clay); border-color: var(--clay); }
.case-cta .period { color: var(--clay); }

/* Metrics column - three big numbers, vertical. */
.case-metrics {
  display: flex; flex-direction: column; gap: clamp(20px, 4vh, 36px);
  padding-left: clamp(32px, 4vw, 56px);
  border-left: 1px solid var(--border);
}
.case-metric {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 8px;
  cursor: default;
}
.case-metric .value {
  font-family: var(--font-display); font-weight: 400;
  /* Height-aware: shrinks only on short viewports (where min picks vh)
     so the three big numbers can't overflow the pin; normal/tall sizes
     keep the 9vw scale untouched. */
  font-size: clamp(56px, min(9vw, 20vh), 132px);
  line-height: 0.95; letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
  display: inline-block;
  /* will-change for the rAF tween writing inline transforms */
  will-change: transform;
}
.case-metric .unit {
  font-family: var(--font-display); font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1; letter-spacing: -0.01em;
  color: var(--clay);
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
}
.case-metric .label {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}
.case-metric .label .period { color: var(--clay); }
.case-metric .prefix {
  /* For "$430K" - the $ is a separate inline so it lands flush
     and doesn't tick. */
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1; color: var(--ink);
  margin-right: 4px;
  align-self: flex-start;
  padding-top: 0.12em;
}

/* M23 · double-take hover state - applied via inline rAF tween in JS;
   no CSS keyframe (transitions inside the iframe were flaky). */

/* Between-case Ink wipe panel (M07 in panel form).
   Full-bleed Ink, with a Clay period in the bottom-left. */
.wipe-panel {
  background: var(--ink);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.wipe-panel-stamp {
  position: absolute;
  bottom: 96px; left: 96px;
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-mono); font-size: var(--fs-stamp);
  letter-spacing: var(--tracking-stamp); text-transform: uppercase;
  color: var(--fg-quiet-on-ink);
}
.wipe-panel-stamp .period {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0; color: var(--clay);
  margin-right: 4px;
  display: inline-block;
  transform: translateY(0.08em);
}
.wipe-panel-quote {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12vw;
}
.wipe-panel-quote p {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0;
  text-wrap: balance;
  text-align: center;
  max-width: 22ch;
}
.wipe-panel-quote em { font-style: italic; color: var(--fg-cool-on-ink); font-weight: 400; }
.wipe-panel-quote .period { color: var(--clay); }

/* Pagination dots - bottom-center, show which panel is centered. */
.ch-06-paging {
  position: absolute;
  bottom: 40px; left: 0; right: 0;
  z-index: 5;
  display: flex; justify-content: center; gap: 10px;
  pointer-events: none;
}
.ch-06-paging i {
  display: block;
  width: 24px; height: 1px;
  background: var(--bone-400);
  transition: background var(--dur-fast) var(--ease-standard);
}
.ch-06-paging i.is-active { background: var(--clay); }

/* Very short viewports (landscape phones, letterboxed windows): compress
   the case composition so the three-column content fits the pin without
   clipping the headline/CTA. */
@media (max-height: 720px) {
  .case-panel { padding-top: clamp(92px, 15vh, 130px); padding-bottom: clamp(36px, 7vh, 64px); }
  .ch-06-panel.case-panel[data-case="1"] { padding-top: clamp(104px, 17vh, 160px); }
  .case-headline { font-size: clamp(26px, 3.2vw, 40px); }
  .case-body { font-size: 15px; }
  .case-body, .case-meta { gap: clamp(8px, 1.6vh, 14px); }
  .case-panel-inner { gap: clamp(32px, 5vw, 80px); }
}



/* ============================================================
   Tweaks panel - toggle hooks
   data-tweak-* attributes on <body> are written by tweaks.jsx.
   Pure CSS toggles; no JS bookkeeping.
   ============================================================ */
body[data-tweak-trail="off"] .shell-trail { display: none !important; }
body[data-tweak-ticker="off"] .shell-ticker { display: none !important; }
body[data-tweak-place-stamps="off"] .shell-stamp { display: none !important; }
body[data-tweak-carbon="off"] .carbon { display: none !important; }
body[data-tweak-motion="off"] .carbon,
body[data-tweak-motion="off"] .shell-trail,
body[data-tweak-motion="off"] .shell-ticker { display: none !important; }

/* ============================================================
   Form submission status (Resend wiring)
   .form-hp is the visually-hidden honeypot.  .form-status is the
   success / failure line forms.js swaps in; it settles in on
   --ease-out (honest decelerate), instant under reduced motion.
   ============================================================ */
.form-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-family: var(--font-body);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}

/* Confirmation colour is set per form card so it always contrasts:
   the .ch-09-form card is Bone-100 (dark Ink text); the .theta-form
   card is Ink-800 (light Bone text). */
.ch-09-form .form-status { color: var(--ink); }
.theta-form .form-status { color: var(--bone); }

.form-status.is-in {
  opacity: 1;
  transform: translateY(0);
}

.form-status.is-failure {
  margin-top: 1rem;
}

.form-status .period {
  color: var(--clay);
}

.form-status a {
  color: inherit;
  border-bottom: 1px solid currentColor;
}

