/* ==========================================================================
   Why Satoshi - a descending tunnel of "why?"
   One stylesheet shared by every page. System fonts only. No network.
   ========================================================================== */

/* ---- Registered colour properties, so the whole page can deepen smoothly - */
@property --bg        { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --fg        { syntax: '<color>'; inherits: true; initial-value: #0A1330; }
@property --muted     { syntax: '<color>'; inherits: true; initial-value: #4A5578; }
@property --accent    { syntax: '<color>'; inherits: true; initial-value: #9A5B00; }
@property --accent-ui { syntax: '<color>'; inherits: true; initial-value: #9A5B00; }
@property --card      { syntax: '<color>'; inherits: true; initial-value: #F3F5FB; }
@property --line      { syntax: '<color>'; inherits: true; initial-value: #C4CBE0; }
@property --btn-bg    { syntax: '<color>'; inherits: true; initial-value: #0A1330; }
@property --btn-fg    { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --ring      { syntax: '<color>'; inherits: true; initial-value: #0A1330; }
@property --field     { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }

:root {
  /* the eight strata of the shaft (also used as fixed fills in illustration) */
  --t0: #FFFFFF;
  --t1: #EDF0F8;
  --t2: #CBD3EC;
  --t3: #93A1D0;
  --t4: #2A3A6B;
  --t5: #1E2B58;
  --t6: #141E42;
  --t7: #0A1330;
  --amber-dark: #FFB84D;   /* amber on dark */
  --amber-light: #9A5B00;  /* amber on light */
  --mid: #2A3A6B;

  /* spacing scale */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 7rem;

  --display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 40rem;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

/* ---- Tone tokens: a tone is a complete, contrast-checked colour set ------ */
[data-tone="0"] { --bg: #FFFFFF; --card: #F3F5FB; --fg: #0A1330; --muted: #4A5578; --accent: #9A5B00; --accent-ui: #9A5B00; --line: #C4CBE0; --btn-bg: #0A1330; --btn-fg: #FFFFFF; --ring: #0A1330; --field: #FFFFFF; }
[data-tone="1"] { --bg: #EDF0F8; --card: #FFFFFF; --fg: #0A1330; --muted: #46517A; --accent: #8F5400; --accent-ui: #8F5400; --line: #C0C8E0; --btn-bg: #0A1330; --btn-fg: #FFFFFF; --ring: #0A1330; --field: #FFFFFF; }
[data-tone="2"] { --bg: #CBD3EC; --card: #E4E9F6; --fg: #0A1330; --muted: #2C3865; --accent: #0A1330; --accent-ui: #0A1330; --line: #9AA6D0; --btn-bg: #0A1330; --btn-fg: #FFFFFF; --ring: #0A1330; --field: #F4F6FC; }
[data-tone="3"] { --bg: #93A1D0; --card: #B7C1E2; --fg: #0A1330; --muted: #1A2550; --accent: #0A1330; --accent-ui: #0A1330; --line: #5E6EA6; --btn-bg: #0A1330; --btn-fg: #FFFFFF; --ring: #0A1330; --field: #E4E9F6; }
[data-tone="4"] { --bg: #2A3A6B; --card: #34457A; --fg: #FFFFFF; --muted: #C9D2EE; --accent: #FFB84D; --accent-ui: #FFB84D; --line: #5667A0; --btn-bg: #FFB84D; --btn-fg: #0A1330; --ring: #FFB84D; --field: #1E2B58; }
[data-tone="5"] { --bg: #1E2B58; --card: #283767; --fg: #FFFFFF; --muted: #C3CDEC; --accent: #FFB84D; --accent-ui: #FFB84D; --line: #4A5A93; --btn-bg: #FFB84D; --btn-fg: #0A1330; --ring: #FFB84D; --field: #141E42; }
[data-tone="6"] { --bg: #141E42; --card: #1B2754; --fg: #FFFFFF; --muted: #BCC7EA; --accent: #FFB84D; --accent-ui: #FFB84D; --line: #3D4D86; --btn-bg: #FFB84D; --btn-fg: #0A1330; --ring: #FFB84D; --field: #0A1330; }
[data-tone="7"] { --bg: #0A1330; --card: #121C45; --fg: #FFFFFF; --muted: #B8C3E6; --accent: #FFB84D; --accent-ui: #FFB84D; --line: #34437A; --btn-bg: #FFB84D; --btn-fg: #0A1330; --ring: #FFB84D; --field: #060C20; }

/* ---- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  line-height: 1.7;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  /* the gradient deepens: colours glide, but text flips at the midpoint so
     it never sits at low contrast against the crossing background */
  transition:
    --bg 1.3s linear,
    --card 1.3s linear,
    --line 1.3s linear,
    --accent-ui 1.3s linear,
    --field 1.3s linear,
    --fg 0.01s linear 0.62s,
    --muted 0.01s linear 0.62s,
    --accent 0.01s linear 0.62s,
    --btn-bg 0.01s linear 0.62s,
    --btn-fg 0.01s linear 0.62s,
    --ring 0.01s linear 0.62s;
}

/* a whisper of paper grain, painted behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0 0 var(--s4);
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }
strong { font-weight: 700; }
em { font-style: italic; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -4rem;
  z-index: 100;
  padding: var(--s3) var(--s5);
  background: #0A1330;
  color: #FFFFFF;
  font-family: var(--display);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
}
.skip-link:focus-visible { top: 0; outline: 3px solid #FFB84D; outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--s5); }
.wrap--wide { max-width: 70rem; }

/* ---- Header & navigation ------------------------------------------------- */
.site-header { position: relative; z-index: 20; }
.site-header__in {
  max-width: 70rem;
  margin-inline: auto;
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 2.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: underline; text-decoration-thickness: 0.08em; }
.brand svg { width: 2rem; height: 2rem; flex: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--s3);
  font-family: var(--display);
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: var(--s3); right: var(--s3); bottom: 0.45rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { font-weight: 700; }

.nav-toggle {
  display: none;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0 var(--s4);
  font: inherit;
  font-family: var(--display);
  background: var(--card);
  color: var(--fg);
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 47.5rem) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: var(--s2); }
  .js .site-nav {
    display: none;
    position: absolute;
    left: var(--s4); right: var(--s4);
    top: calc(100% - var(--s2));
    padding: var(--s3);
    background: var(--card);
    color: var(--fg);
    border: 1.5px solid var(--fg);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgba(10,19,48,.08), 0 10px 24px -8px rgba(10,19,48,.35), 0 28px 48px -16px rgba(10,19,48,.3);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { width: 100%; }
  .site-header__in { padding-inline: var(--s4); }
  .site-nav ul { gap: 0 var(--s1); }
}

/* ---- Buttons & controls -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 2.9rem;
  padding: 0.55rem 1.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(10,19,48,.3), 0 6px 14px -6px rgba(10,19,48,.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 4px rgba(10,19,48,.3), 0 12px 22px -8px rgba(10,19,48,.5); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--card); box-shadow: 0 6px 14px -8px rgba(10,19,48,.4); }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: transparent;
  color: var(--muted);
  border-color: var(--muted);
  border-style: dashed;
  box-shadow: none;
  transform: none;
}

.field-label {
  display: block;
  margin-bottom: var(--s2);
  font-family: var(--display);
  font-size: 1.05rem;
}
.field-hint { display: block; font-size: 0.95rem; color: var(--muted); font-family: var(--body); }

.field, select.field, textarea.field {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--fg);
  background: var(--field);
  border: 2px solid var(--muted);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35), inset 0 2px 4px rgba(10,19,48,.12);
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-color: var(--fg); }
textarea.field { resize: vertical; min-height: 9rem; }
select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.4rem) 55%, calc(100% - 1rem) 55%;
  background-size: 0.45rem 0.45rem, 0.45rem 0.45rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.msg {
  margin: var(--s3) 0 0;
  padding: var(--s3) var(--s4);
  border-left: 4px solid var(--accent-ui);
  background: var(--card);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
}
.msg--error { border-left-style: double; border-left-width: 6px; }
.msg--error::before { content: "Please check: "; font-weight: 700; }

/* ---- Typography components ---------------------------------------------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--s3);
  font-family: var(--display);
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); font-weight: 700; }

.display {
  font-size: clamp(3rem, 1.2rem + 9vw, 7.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--s5);
}
.display em { display: block; color: var(--accent); font-style: italic; }
.display--m { font-size: clamp(2.6rem, 1.3rem + 6.4vw, 5.6rem); line-height: 1.12; }

.lede { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.6; color: var(--fg); }
.h2-xl { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.15; }
.h3-l { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.25; }

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--s7) 0;
}

main { display: block; }
section { position: relative; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: var(--s9);
  background: #0A1330;
  color: #FFFFFF;
  padding: var(--s8) 0 var(--s7);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(90deg, #FFB84D, #FFB84D 12%, #2A3A6B 12%, #2A3A6B);
}
.site-footer__in { max-width: 70rem; margin-inline: auto; padding-inline: var(--s5); display: grid; gap: var(--s6); }
.site-footer a { color: #FFFFFF; }
.site-footer .brand { font-size: 1.6rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--display); }
.site-footer p { max-width: 46rem; color: #C9D2EE; font-size: 1rem; margin-bottom: var(--s3); }
.site-footer .mail { display: inline-flex; align-items: center; min-height: 2.75rem; color: #FFB84D; font-family: var(--display); font-size: 1.15rem; overflow-wrap: anywhere; }
.site-footer :focus-visible { outline-color: #FFB84D; }
@media (min-width: 52rem) {
  .site-footer__in { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .site-footer__legal { grid-column: 1 / -1; border-top: 1px solid #34437A; padding-top: var(--s5); }
}

/* ==========================================================================
   INDEX - the tunnel
   ========================================================================== */
.hero { padding: var(--s7) 0 var(--s6); }
.hero__in { max-width: var(--measure); margin-inline: auto; padding-inline: var(--s5); }
.hero .lede { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

.shaft-art { margin: var(--s7) auto 0; max-width: 40rem; padding-inline: var(--s5); }
.shaft-art svg { width: 100%; height: auto; overflow: visible; }
.shaft-art figcaption { margin-top: var(--s3); font-size: 0.95rem; color: var(--muted); text-align: center; font-style: italic; }
.s0 { fill: var(--t0); } .s1 { fill: var(--t1); } .s2 { fill: var(--t2); } .s3 { fill: var(--t3); }
.s4 { fill: var(--t4); } .s5 { fill: var(--t5); } .s6 { fill: var(--t6); } .s7 { fill: var(--t7); }
.shaft-art .edge { fill: none; stroke: #0A1330; stroke-opacity: 0.35; stroke-width: 1; }
.shaft-art .drop { fill: #FFB84D; stroke: #0A1330; stroke-width: 1.5; animation: fall 3.6s var(--ease) infinite; }
.shaft-art .drop-trail { stroke: #FFB84D; stroke-width: 2; stroke-dasharray: 2 6; opacity: .9; }
@keyframes fall {
  0%   { transform: translateY(-4px); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}

/* the shaft grid: gauge | column | ledger */
.shaft {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: var(--s3);
  max-width: 46rem;
  margin: var(--s7) auto 0;
  padding-inline: var(--s3) var(--s4);
}
.shaft__col { grid-column: 2; grid-row: 1; min-width: 0; }
.ledger { grid-column: 2; grid-row: 2; margin-top: var(--s7); min-width: 0; }
@media (min-width: 44rem) {
  .shaft { grid-template-columns: 4.5rem minmax(0, 40rem); column-gap: var(--s5); max-width: 52rem; padding-inline: var(--s5); }
}
@media (min-width: 72rem) {
  .shaft { grid-template-columns: 4.5rem minmax(0, 40rem) 17.5rem; max-width: 78rem; column-gap: var(--s6); }
  .ledger { grid-column: 3; grid-row: 1; margin-top: 0; position: sticky; top: 5rem; align-self: start; }
}

/* depth gauge */
.gauge {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 4.5rem;
  align-self: start;
  height: min(72vh, 34rem);
  margin-top: var(--s4);
  z-index: 5;
}
.gauge__track {
  position: absolute;
  left: 0.65rem;
  top: 0; bottom: 0;
  width: 0.5rem;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--muted);
  overflow: hidden;
}
.gauge__fill {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: calc(var(--fill, 0) * 100%);
  background: var(--accent-ui);
  transition: height 1.2s var(--ease);
}
.gauge__ticks { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.gauge__ticks li {
  position: absolute;
  left: 0;
  width: 1.8rem;
  top: calc(var(--i) * 20%);
  height: 0;
  border-top: 2px solid var(--muted);
  transform: translateY(-1px);
}
.gauge__ticks li span {
  position: absolute;
  left: 2.1rem;
  top: -0.8rem;
  display: none;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}
@media (min-width: 44rem) {
  .gauge__track { left: 1rem; }
  .gauge__ticks li { width: 2.5rem; }
  .gauge__ticks li span { display: block; left: 2.9rem; }
}
.gauge__marker {
  position: absolute;
  left: 0.9rem;
  top: calc(var(--fill, 0) * 100%);
  width: 1.9rem;
  height: 1.9rem;
  margin: -0.95rem 0 0 -0.95rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--btn-bg), 0 4px 10px -2px rgba(10,19,48,.5);
  transition: top 1.2s var(--ease);
}
@media (min-width: 44rem) {
  .gauge__marker { left: 1.25rem; width: 2.25rem; height: 2.25rem; margin: -1.125rem 0 0 -1.125rem; font-size: 1.05rem; }
}

/* tunnel controls */
.controls {
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  margin-bottom: var(--s6);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 2px 4px rgba(10,19,48,.08), 0 14px 28px -14px rgba(10,19,48,.35);
}
.controls__row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.controls__readout { margin: 0; font-family: var(--display); font-size: 1.05rem; color: var(--muted); }

/* strata */
.stratum {
  position: relative;
  padding: var(--s7) 0 var(--s6);
  border-top: 1.5px solid var(--line);
}
.stratum:first-child { border-top: 0; padding-top: var(--s5); }
.stratum.is-new { animation: rise 0.8s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.stratum__depth {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s3);
  font-family: var(--display);
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  font-variant: small-caps;
}
.stratum__depth b {
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0;
  font-variant: normal;
}
.stratum h3 {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.25rem);
  line-height: 1.18;
  margin-bottom: var(--s5);
  scroll-margin-top: 5rem;
}
.stratum h3:focus { outline: none; }
.stratum h3:focus-visible { outline: 3px solid var(--ring); outline-offset: 6px; }
.stratum__answer {
  position: relative;
  padding-left: var(--s5);
  margin: 0 0 var(--s5);
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  line-height: 1.75;
  border-left: 4px solid var(--accent-ui);
}
.stratum__answer p:last-child { margin-bottom: 0; }
.stratum__done {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}
.stratum__done::before { content: "\2713\00a0"; font-style: normal; }

.why {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  min-height: 3.75rem;
  max-width: 100%;
  padding: 0.5rem 1.8rem 0.6rem 2rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem);
  font-style: italic;
  line-height: 1.1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 -3px 0 rgba(10,19,48,.25) inset,
    0 2px 3px rgba(10,19,48,.3),
    0 14px 26px -10px rgba(10,19,48,.55),
    0 30px 44px -22px rgba(10,19,48,.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.why:hover { transform: translateY(-3px); }
.why:active { transform: translateY(2px); }
.why small {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 1;
}
.why svg { width: 1.3rem; height: 1.3rem; flex: none; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

.floor {
  margin-top: var(--s5);
  padding: var(--s6);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 3px 6px rgba(0,0,0,.18), 0 22px 40px -18px rgba(0,0,0,.5);
}
.floor h4 { font-size: 1.5rem; margin-bottom: var(--s3); }
.floor__links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* ledger of answers */
.ledger__box {
  padding: var(--s5);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 2px 4px rgba(10,19,48,.1), 0 16px 30px -16px rgba(10,19,48,.4);
}
.ledger h2 { font-size: 1.5rem; margin-bottom: var(--s1); }
.ledger__sub { margin: 0 0 var(--s4); font-size: 0.95rem; color: var(--muted); }
.ledger ol { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.ledger li { border-top: 1px solid var(--line); }
.ledger li:first-child { border-top: 0; }
.ledger__row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  gap: var(--s2);
  width: 100%;
  min-height: 2.9rem;
  padding: var(--s2) var(--s1);
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.ledger__row:hover { background: var(--bg); }
.ledger__row b { font-family: var(--display); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.ledger__row[aria-disabled="true"] { cursor: default; color: var(--muted); font-style: italic; }
.ledger__row[aria-disabled="true"]:hover { background: transparent; }
.ledger__row[aria-disabled="true"] b { color: var(--muted); }
.ledger__total { margin: var(--s4) 0 0; font-family: var(--display); font-size: 1rem; color: var(--muted); }

/* method section on the index page */
.method { padding-top: var(--s8); }
.method__grid { display: grid; gap: var(--s6); }
.method h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); line-height: 1.18; }
.method h3 { font-size: 1.45rem; margin-top: var(--s5); }
.note {
  padding: var(--s5);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-left: 6px solid var(--accent-ui);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 4px rgba(10,19,48,.08), 0 14px 26px -16px rgba(10,19,48,.35);
}
.note p:last-child { margin-bottom: 0; }

/* ==========================================================================
   QUESTIONS - eight strata cut from one core
   ========================================================================== */
.q-hero { padding: var(--s7) 0 var(--s8); }
.q-hero .wrap { max-width: 46rem; }
.q-index { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--fg); }
.q-index li { border-bottom: 1px solid var(--line); }
.q-index a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  gap: var(--s3);
  min-height: 3rem;
  padding: var(--s3) var(--s1);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.35;
}
.q-index a:hover { background: var(--card); }
.q-index b { font-weight: 400; color: var(--accent); font-size: 1.4rem; }
.q-tools { display: none; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.js .q-tools { display: flex; }

.band {
  background: var(--bg);
  color: var(--fg);
  padding: var(--s8) 0 var(--s7);
  position: relative;
}
.band + .band { box-shadow: 0 -18px 30px -24px rgba(10,19,48,.45); }
.band__in { max-width: 46rem; margin-inline: auto; padding-inline: var(--s5); position: relative; }
.band__num {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--muted);
  opacity: 1;
}
.band__num span { display: block; font-size: 0.95rem; letter-spacing: 0.12em; font-variant: small-caps; margin-top: var(--s3); font-style: italic; }
.band h2 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.2rem); line-height: 1.18; margin: var(--s4) 0 var(--s5); }
.band__lede { font-size: 1.2rem; }
.band__toggle { margin-top: var(--s3); }
.band__more { margin-top: var(--s5); }
.band__more[hidden] { display: none; }
.band dl { margin: 0; display: grid; gap: var(--s5); }
.band dt {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-variant: small-caps;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--s1);
}
.band dd { margin: 0; padding-left: var(--s4); border-left: 3px solid var(--accent-ui); }
.band__links { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* ==========================================================================
   WORRIES - the branching explorer
   ========================================================================== */
.w-hero { padding: var(--s7) 0 var(--s6); }
.w-hero .wrap { max-width: 46rem; }
.roots-art { max-width: 46rem; margin: var(--s6) auto 0; padding-inline: var(--s5); }
.roots-art svg { width: 100%; height: auto; }
.roots-art .root-line { fill: none; stroke: var(--muted); stroke-width: 2; }
.roots-art .root-node { fill: var(--accent-ui); stroke: var(--bg); stroke-width: 3; }
.roots-art text { fill: var(--fg); font-family: var(--display); font-size: 13px; }

.wx {
  display: grid;
  gap: var(--s6);
  max-width: 70rem;
  margin: var(--s7) auto 0;
  padding-inline: var(--s5);
}
@media (min-width: 62rem) {
  .wx { grid-template-columns: 17rem minmax(0, 1fr); gap: var(--s7); align-items: start; }
  .wx__trail { grid-column: 1; grid-row: 1; position: sticky; top: 4.5rem; }
  #wMain { grid-column: 2; grid-row: 1; }
}
.trail {
  padding: var(--s5);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(10,19,48,.1), 0 16px 30px -16px rgba(10,19,48,.4);
}
.trail h2 { font-size: 1.45rem; margin-bottom: var(--s1); }
.trail__sub { font-size: 0.95rem; color: var(--muted); margin-bottom: var(--s4); }
.trail ol { list-style: none; margin: 0; padding: 0 0 0 1.1rem; position: relative; counter-reset: step; }
.trail ol::before { content: ""; position: absolute; left: 0.28rem; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--muted); }
.trail li { position: relative; counter-increment: step; }
.trail li::before {
  content: "";
  position: absolute;
  left: -1.1rem; top: 0.95rem;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--fg);
}
.trail li[aria-current="step"]::before { background: var(--accent-ui); border-color: var(--fg); transform: scale(1.35); }
.trail button {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: var(--s2) var(--s2);
  text-align: left;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.trail button:hover { background: var(--bg); text-decoration: underline; }
.trail li[aria-current="step"] button { font-weight: 700; }
.trail__empty { margin: 0; font-style: italic; color: var(--muted); font-size: 0.98rem; }
.trail__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.trail__actions .btn { min-height: 2.75rem; padding-inline: 1.1rem; font-size: 0.98rem; }

.pick { display: grid; gap: var(--s3); list-style: none; margin: var(--s5) 0 0; padding: 0; }
@media (min-width: 40rem) { .pick { grid-template-columns: 1fr 1fr; } }
.pick button, .follow button {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  width: 100%;
  min-height: 3.5rem;
  height: 100%;
  padding: var(--s4) var(--s5);
  text-align: left;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--fg);
  background: var(--card);
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 2px 0 var(--fg), 0 12px 22px -12px rgba(10,19,48,.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pick button:hover, .follow button:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--fg), 0 18px 28px -12px rgba(10,19,48,.5); }
.pick button:active, .follow button:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--fg); }
.pick button i, .follow button i { font-style: normal; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none; }
.follow .seen { font-family: var(--body); font-size: 0.85rem; letter-spacing: .06em; text-transform: uppercase; display: block; color: var(--muted); margin-top: var(--s1); }

.answer {
  padding: var(--s6);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 3px 6px rgba(10,19,48,.12), 0 26px 44px -22px rgba(10,19,48,.5);
}
.answer.is-new { animation: rise 0.7s var(--ease) both; }
.answer h2 { font-size: clamp(1.8rem, 1.1rem + 2.8vw, 2.8rem); line-height: 1.2; scroll-margin-top: 5rem; }
.answer h2:focus-visible { outline: 3px solid var(--ring); outline-offset: 6px; }
.answer h3 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  font-variant: small-caps;
  color: var(--accent);
  font-weight: 700;
  margin: var(--s5) 0 var(--s2);
}
.answer__limit { padding-left: var(--s4); border-left: 3px double var(--accent-ui); }
.follow { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s3); }
.answer__actions { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); }

.prose { max-width: var(--measure); margin-inline: auto; padding-inline: var(--s5); }
.prose h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.2; margin-top: var(--s7); }
.prose h3 { font-size: 1.4rem; margin-top: var(--s5); }

/* ==========================================================================
   TIMELINE - a core sample, dated
   ========================================================================== */
.t-hero { padding: var(--s7) 0 var(--s6); }
.t-hero .wrap { max-width: 46rem; }
.t-grid {
  display: grid;
  gap: var(--s7);
  max-width: 70rem;
  margin: var(--s6) auto 0;
  padding-inline: var(--s5);
}
@media (min-width: 62rem) {
  .t-grid { grid-template-columns: 24rem minmax(0, 1fr); gap: var(--s8); align-items: start; }
  .scrub { position: sticky; top: 4.5rem; }
}
.scrub {
  padding: var(--s5);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 3px 6px rgba(0,0,0,.25), 0 26px 44px -20px rgba(0,0,0,.65);
}
.scrub__date { font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.1; margin: 0 0 var(--s2); color: var(--accent); }
.scrub__title { font-family: var(--display); font-size: 1.45rem; margin: 0 0 var(--s3); }
.scrub__text { font-size: 1.02rem; margin-bottom: var(--s4); }
.scrub__q { font-family: var(--display); font-style: italic; font-size: 1.1rem; padding-left: var(--s4); border-left: 3px solid var(--accent-ui); margin: 0 0 var(--s4); }
.scrub__row { display: flex; align-items: stretch; gap: var(--s4); }
.core { flex: none; width: 5.5rem; }
.core svg { width: 100%; height: auto; }
.core .layer { stroke: var(--fg); stroke-width: 1.5; fill: var(--t5); transition: fill 0.4s var(--ease), transform 0.4s var(--ease); }
.core .layer.on { fill: #FFB84D; }
.core text { fill: var(--muted); font-family: var(--display); font-size: 11px; }
.scrub__body { min-width: 0; flex: 1; }

.slider { margin-top: var(--s5); }
.slider label { display: block; font-family: var(--display); margin-bottom: var(--s3); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 0.6rem; border-radius: 999px; background: var(--bg); border: 2px solid var(--muted); }
input[type="range"]::-moz-range-track { height: 0.6rem; border-radius: 999px; background: var(--bg); border: 2px solid var(--muted); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.25rem; height: 2.25rem;
  margin-top: -0.95rem;
  border-radius: 50%;
  background: var(--accent-ui);
  border: 3px solid var(--fg);
  box-shadow: 0 4px 10px -2px rgba(0,0,0,.5);
}
input[type="range"]::-moz-range-thumb {
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--accent-ui);
  border: 3px solid var(--fg);
}
input[type="range"]:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; border-radius: 999px; }
.slider__ends { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); font-family: var(--display); }
.step-btns { display: flex; gap: var(--s3); margin-top: var(--s4); }

.events { list-style: none; margin: 0; padding: 0; position: relative; }
.events::before { content: ""; position: absolute; left: 0.55rem; top: 1rem; bottom: 1rem; width: 3px; background: var(--line); }
.event {
  position: relative;
  margin: 0 0 var(--s6);
  padding: var(--s5) var(--s5) var(--s5) var(--s7);
  background: transparent;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.event::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 2.1rem;
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--muted);
}
.event.is-active { background: var(--card); border-color: var(--accent-ui); box-shadow: 0 18px 34px -20px rgba(0,0,0,.6); }
.event.is-active::before { background: var(--accent-ui); border-color: var(--fg); transform: scale(1.3); }
.event time { display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; color: var(--accent); font-weight: 700; margin-bottom: var(--s1); }
.event h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.2; }
.event h4 { font-size: 0.95rem; letter-spacing: 0.14em; font-variant: small-caps; color: var(--accent); margin: var(--s4) 0 var(--s1); }
.event p { margin-bottom: var(--s3); }
.event .ask { font-family: var(--display); font-style: italic; font-size: 1.12rem; }
.event__go { margin-top: var(--s3); }

/* ==========================================================================
   CONTACT - a slip of paper
   ========================================================================== */
.c-hero { padding: var(--s7) 0 var(--s5); }
.c-hero .wrap { max-width: 46rem; }
.c-grid { display: grid; gap: var(--s7); max-width: 70rem; margin: var(--s5) auto 0; padding-inline: var(--s5); }
@media (min-width: 62rem) { .c-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s8); align-items: start; } }
.slip {
  position: relative;
  padding: var(--s6);
  background: #FFFFFF;
  color: #0A1330;
  border: 1.5px solid #0A1330;
  border-radius: 6px;
  box-shadow: 0 1px 0 #FFFFFF inset, 0 2px 3px rgba(10,19,48,.2), 0 10px 18px -6px rgba(10,19,48,.3), 0 34px 54px -24px rgba(10,19,48,.5);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 2.1rem, rgba(42,58,107,.06) 2.1rem, rgba(42,58,107,.06) calc(2.1rem + 1px));
  background-position: 0 3.2rem;
}
.slip::before, .slip::after {
  content: "";
  position: absolute;
  left: var(--s5); right: var(--s5);
  height: 0;
  border-top: 2px dashed #2A3A6B;
  opacity: .6;
}
.slip::before { top: 0.7rem; }
.slip::after { bottom: 0.7rem; }
.slip {
  --fg: #0A1330; --muted: #4A5578; --field: #FFFFFF; --ring: #0A1330; --accent: #9A5B00; --accent-ui: #9A5B00; --card: #F3F5FB; --line: #C4CBE0; --btn-bg: #0A1330; --btn-fg: #FFFFFF;
}
.slip h2 { font-size: 1.8rem; margin-top: var(--s3); }
.form-row { margin-bottom: var(--s5); }
.counter { display: flex; justify-content: space-between; gap: var(--s3); font-size: 0.95rem; color: var(--muted); margin-top: var(--s1); }
.preview {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--card);
  border: 1.5px dashed var(--fg);
  border-radius: 8px;
}
.preview h3 { font-size: 1.3rem; }
.preview pre {
  margin: 0 0 var(--s4);
  padding: var(--s4);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.55;
  background: #FFFFFF;
  color: #0A1330;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.preview__empty { margin: 0; font-style: italic; color: var(--muted); }
.preview__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.aside-card {
  padding: var(--s5);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(10,19,48,.08), 0 16px 28px -16px rgba(10,19,48,.35);
  margin-bottom: var(--s5);
}
.aside-card h2, .aside-card h3 { font-size: 1.4rem; }
.aside-card ul { padding-left: 1.2rem; }
.aside-card li { margin-bottom: var(--s2); }
.env-art { max-width: 22rem; margin: 0 auto var(--s5); }
.env-art svg { width: 100%; height: auto; }

/* ==========================================================================
   Print
   ========================================================================== */
body[data-page="questions"] .site-footer { margin-top: 0; }

@media print {
  body { background: #FFFFFF !important; color: #000000 !important; font-size: 11pt; transition: none; }
  body::before, .gauge, .site-nav, .nav-toggle, .skip-link, .controls, .q-tools, .why, .hero__actions, .shaft-art { display: none !important; }
  .band, .site-footer { background: #FFFFFF !important; color: #000000 !important; box-shadow: none !important; }
  .band { padding: 1rem 0; break-inside: avoid; }
  .band__more[hidden] { display: block !important; }
  .band__toggle { display: none !important; }
  a { color: #000000; }
  .site-footer p, .site-footer a, .site-footer .mail { color: #000000 !important; }
}

/* ==========================================================================
   Reduced motion: every animation and transition neutralised, final state shown
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .stratum.is-new, .answer.is-new { opacity: 1; transform: none; }
  .site-nav a::after { transition: none; }
  .shaft-art .drop { transform: translateY(70px); opacity: 1; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
