/* ============================================================
   Idea to Stage — the light-form cut
   Dark canvas, one golden centerpiece, serif statements set huge,
   content as full-screen index lists. Fraunces + Inter.
   ============================================================ */

:root {
  --ink:    #0D0B09;
  --raise:  #17120E;
  --bone:   #F1EADF;
  --muted:  #A79A8C;   /* AA on --ink */
  --gold:   #E7A63C;
  --amber:  #F3C46A;
  --ember:  #C76F2B;
  --line:   rgb(241 234 223 / 0.14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.7rem + 3.2vw, 4rem);

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lenis { height: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 600;
  padding: 0.6em 1.1em;
  background: var(--gold); color: var(--ink);
  text-decoration: none; font-weight: 600;
  transition: top 200ms var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

.wrap { max-width: 92rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- The light-form canvas ---------- */

#light-form {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
main, .site-header, footer { position: relative; z-index: 1; }

/* reduced-motion glow stand-in */
html.lf-off body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(38% 34% at 50% 42%, rgb(231 166 60 / 0.16), transparent 75%);
}

/* ---------- Grain ---------- */

.grain {
  position: fixed;
  inset: -100px;
  z-index: 500;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 25% { transform: translate(-24px,16px); }
  50% { transform: translate(18px,-20px); } 75% { transform: translate(-12px,-14px); }
  100% { transform: translate(0,0); }
}
html.static-site .grain { animation: none; }

/* ---------- Cursor & wipe ---------- */

.cursor {
  position: fixed; top: 0; left: 0; z-index: 550;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  transform: translate(-50%,-50%);
  display: grid; place-items: center;
  transition: width 300ms var(--ease), height 300ms var(--ease);
  will-change: transform;
}
.cursor .cursor-label {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--ink); opacity: 0; transition: opacity 200ms; user-select: none;
}
.cursor.is-zoom { width: 64px; height: 64px; background: rgb(231 166 60 / 0.95); }
.cursor.is-zoom .cursor-label { opacity: 1; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
@media (pointer: coarse) { .cursor { display: none; } }

.wipe {
  position: fixed; inset: 0; z-index: 560;
  background: linear-gradient(115deg, var(--amber), var(--gold) 45%, var(--ember));
  transform: translateY(101%);
  pointer-events: none;
  will-change: transform;
}
html.static-site .cursor, html.static-site .wipe { display: none; }

/* ---------- Header + full-screen menu ---------- */

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 300;
  transition: background-color 300ms;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding-block: 1.1rem;
}
.site-header.is-solid { background: rgb(13 11 9 / 0.82); backdrop-filter: blur(10px); }

.wordmark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60;
  font-weight: 560;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--bone);
  white-space: nowrap;
}
.wordmark .wm-to {
  font-style: italic;
  font-weight: 380;
  font-size: 0.82em;
  color: var(--muted);
  margin-inline: 0.14em;
}
.wordmark .wm-e { position: relative; display: inline-block; }
.wordmark .wm-e::before {
  content: "";
  position: absolute; top: -0.34em; left: 50%;
  transform: translateX(-50%);
  width: 0.18em; height: 0.18em; border-radius: 50%;
  background: var(--gold);
}

.menu-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.6rem 0.2rem;
}
.menu-btn .bars { display: grid; gap: 5px; width: 1.6rem; }
.menu-btn .bars span {
  height: 2px; background: var(--bone); border-radius: 2px;
  transition: transform 300ms var(--ease), opacity 300ms;
}
.menu-btn[aria-expanded="true"] .bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 290;
  background: rgb(13 11 9 / 0.97);
  display: grid; align-content: center;
  padding-inline: var(--gutter);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 400ms var(--ease), visibility 0s 400ms;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 400ms var(--ease); }
.menu-overlay a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 480;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1.12;
  text-decoration: none;
  color: var(--bone);
  transition: color 250ms;
  justify-self: start;
}
.menu-overlay a:hover, .menu-overlay a[aria-current="page"] { color: var(--gold); }
.menu-overlay .menu-meta {
  margin-top: 3rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Statements (the signature serif voice) ---------- */

.statement {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 460;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--gold); }

/* character-spread reveal targets: JS splits to .char */
.spread .char { display: inline-block; will-change: transform, opacity; }

.kicker {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before {
  content: ""; display: inline-block;
  width: 2.2rem; height: 1px; background: currentColor; opacity: 0.6;
  vertical-align: middle; margin-right: 0.9rem;
}

.support {
  color: var(--muted);
  max-width: 34em;
}
.support strong { color: var(--bone); font-weight: 500; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.1em;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--amber); border-color: var(--amber); }
.apply-mini { display: none; }
@media (max-width: 820px) {
  .apply-mini { display: inline-block; margin-left: auto; font-size: 0.7rem; padding: 0.6em 1.2em; }
}

/* rolling character hover for nav/list labels */
.roll { display: inline-block; overflow: hidden; height: 1.25em; vertical-align: bottom; }
.roll .roll-in { display: block; transition: transform 420ms var(--ease); }
.roll .roll-in > span { display: block; height: 1.25em; }
a:hover .roll .roll-in, button:hover .roll .roll-in, a:focus-visible .roll .roll-in { transform: translateY(-1.25em); }

/* ---------- HERO ---------- */

.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  position: relative;
  padding: 7rem var(--gutter) 4rem;
}
.hero h1.statement {
  font-size: clamp(3rem, 10.5vw, 10rem);
  max-width: 9em;
}
.hero .support { margin-top: 1.6rem; }
.hero .hero-ctas { margin-top: 2.4rem; display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.hero-secondary {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber); text-decoration: none;
  border-bottom: 1px solid rgb(243 196 106 / 0.4); padding-bottom: 0.3em;
  transition: border-color 200ms;
}
.hero-secondary:hover { border-color: var(--amber); }
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Manifesto ---------- */

.manifesto {
  min-height: 100svh;
  display: grid; align-content: center;
  padding-block: clamp(5rem, 12vh, 8rem);
}
.manifesto .statement { font-size: clamp(2.6rem, 7.5vw, 7rem); max-width: 12em; }
.manifesto .support { margin-top: 2rem; }

/* ---------- Index lists (the featured-projects gesture) ---------- */

.index-section { padding-block: clamp(5rem, 12vh, 9rem); }
.index-head { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

.index-list { border-top: 1px solid var(--line); }

.index-item { border-bottom: 1px solid var(--line); }

.index-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(3.5rem, 6rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.2rem, 3.5vh, 2rem) 0;
  text-align: left;
  transition: padding-left 350ms var(--ease);
}
.index-row:hover { padding-left: clamp(0.6rem, 1.5vw, 1.4rem); }

.index-no {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 250ms;
}
.index-row:hover .index-no, .index-item.is-open .index-no { color: var(--gold); }

.index-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 470;
  font-size: clamp(2.1rem, 6.5vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--bone);
  transition: color 250ms;
}
.index-row:hover .index-title, .index-item.is-open .index-title { color: var(--gold); }

.index-hint {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}
.index-row:hover .index-hint, .index-row:focus-visible .index-hint { opacity: 1; transform: none; }

/* expanding panel (tap/click/keyboard; also the mobile mode) */
.index-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease); }
.index-panel > div { overflow: hidden; }
.index-item.is-open .index-panel { grid-template-rows: 1fr; }
html.static-site .index-panel { transition: none; }

.panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  padding: 0 0 clamp(1.6rem, 4vh, 2.4rem);
  align-items: start;
}
.panel-inner img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  filter: saturate(0.62) contrast(1.06) brightness(0.82);
}
.panel-media { position: relative; overflow: hidden; }
.panel-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgb(231 166 60 / 0.18), rgb(13 11 9 / 0.35));
  mix-blend-mode: multiply;
}
.panel-copy p { color: var(--muted); max-width: 44em; }
.panel-copy p + p { margin-top: 0.9rem; }
.panel-copy .panel-output {
  margin-top: 1.1rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.panel-copy .panel-quote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--bone);
}

/* photo-free panel: copy beside a large outlined numeral */
.panel-inner--plain { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.panel-no {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(231 166 60 / 0.55);
  padding-right: clamp(0.5rem, 2vw, 2rem);
  user-select: none;
}

@media (max-width: 780px) {
  .panel-inner { grid-template-columns: 1fr; }
  .panel-inner--plain { grid-template-columns: minmax(0, 1fr) auto; }
  .panel-no { font-size: clamp(3.4rem, 16vw, 5rem); }
  .index-hint { display: none; }
}

/* ---------- Results band ---------- */

.results { border-block: 1px solid var(--line); padding-block: clamp(4rem, 10vh, 7rem); }
.results-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.result { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.result-num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 1;
  color: var(--gold);
}
.result-label { margin-top: 0.6rem; color: var(--muted); max-width: 18em; }

/* ---------- Final CTA ---------- */

.cta {
  min-height: 100svh;
  display: grid; align-content: center; justify-items: center;
  text-align: center;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter);
}
.cta .statement { font-size: clamp(2.8rem, 8vw, 7.5rem); max-width: 10em; }
.cta .support { margin-top: 1.6rem; margin-inline: auto; }
.cta .cta-note {
  margin-top: 1.4rem;
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}

.cta-apply {
  display: block;
  margin-top: clamp(2.2rem, 6vh, 3.6rem);
  padding: clamp(1.2rem, 4vh, 2rem) 2rem;
  border-block: 1px solid var(--line);
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 480;
  font-size: clamp(2rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  color: var(--gold);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.cta-apply:hover, .cta-apply:focus-visible { background: var(--gold); color: var(--ink); }

/* ---------- Footer sign-off ---------- */

.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 8vh, 5rem); overflow: hidden; }
.footer-mark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 480;
  letter-spacing: -0.015em;
  font-size: clamp(2.4rem, 8.5vw, 9rem);
  text-align: center;
  white-space: nowrap;
  color: var(--bone);
}
.footer-mark .wm-to {
  font-style: italic;
  font-weight: 360;
  font-size: 0.78em;
  color: var(--muted);
  margin-inline: 0.12em;
}
.footer-mark .wm-e { position: relative; display: inline-block; }
.footer-mark .wm-e::before {
  content: ""; position: absolute; top: -0.3em; left: 50%;
  transform: translateX(-50%);
  width: 0.14em; height: 0.14em; border-radius: 50%;
  background: var(--gold);
}
.footer-pillars {
  display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 5rem);
  flex-wrap: wrap;
  margin-top: clamp(2rem, 6vh, 3.5rem);
  font-family: var(--serif);
  font-size: var(--step-1);
  color: var(--muted);
}
.footer-pillars span { position: relative; }
.footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-block: 2rem;
  margin-top: clamp(2rem, 5vh, 3rem);
  border-top: 1px solid var(--line);
}
.footer-meta a, .footer-meta span {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.footer-meta a:hover { color: var(--bone); }

/* ---------- Apply & Book ---------- */

.form-stage { min-height: 100svh; display: grid; align-items: center; }
.form-shell {
  width: min(46rem, 100%); margin-inline: auto;
  padding: clamp(7rem, 15vh, 9rem) var(--gutter) clamp(3.5rem, 9vh, 6rem);
}
.apply-progress { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2.6rem; }
.apply-progress .cue {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); white-space: nowrap;
}
.apply-progress .bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.apply-progress .bar span {
  position: absolute; inset-block: -0.5px; left: 0;
  width: var(--progress, 20%);
  background: linear-gradient(90deg, var(--amber), var(--gold));
  transition: width 500ms var(--ease);
}
.apply-step { border: 0; padding: 0; min-width: 0; }
.apply-step[hidden] { display: none; }
.apply-step.is-entering { animation: step-rise 550ms var(--ease); }
@keyframes step-rise { from { opacity: 0; transform: translateY(1.8rem); } to { opacity: 1; transform: none; } }
html.static-site .apply-step.is-entering { animation: none; }

.apply-step h1, .apply-step h2, .apply-success h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 470;
  font-size: var(--step-3);
  line-height: 1.02;
}
.step-hint { margin-top: 0.9rem; color: var(--muted); }

.field { margin-top: 2.2rem; }
.field label {
  display: block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
}
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: var(--step-1);
  color: var(--bone); background: transparent;
  border: 0; border-bottom: 1px solid rgb(241 234 223 / 0.3); border-radius: 0;
  padding: 0.55em 0;
  transition: border-color 200ms;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}
.field ::placeholder { color: rgb(167 154 140 / 0.55); }
.field .field-note { margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.field .field-error { display: none; margin-top: 0.5rem; font-weight: 500; color: #E8909B; }
.field.has-error .field-error { display: block; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #B04250; }

.apply-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.4rem; }
.btn-back {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline; text-underline-offset: 0.35em;
}
.btn-back:hover { color: var(--bone); }
#submit-error { display: block; margin-top: 1.6rem; }
#submit-error[hidden] { display: none; }

.apply-success[hidden] { display: none; }
.apply-success { animation: step-rise 700ms var(--ease); }
.apply-success .success-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--gold); margin-bottom: 1.4rem; }
.apply-success p { margin-top: 1.2rem; color: var(--muted); max-width: 36em; }
.apply-success .btn { margin-top: 1.8rem; }
.apply-success .redirect-note {
  margin-top: 1.6rem;
  font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
}

.book-shell { width: min(56rem, 100%); }
.book-shell h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 470;
  font-size: var(--step-3);
  line-height: 1.02;
  margin-top: 0.6rem;
}
.embed-slot {
  margin-top: 2.4rem; min-height: 660px;
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
  padding: 2rem;
  background: radial-gradient(60% 45% at 50% 100%, rgb(231 166 60 / 0.08), transparent 70%), var(--raise);
}
.embed-slot .waiting { max-width: 26rem; display: grid; justify-items: center; gap: 1rem; }
.embed-slot .waiting h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 470;
  font-size: var(--step-2);
}
.embed-slot .waiting p { color: var(--muted); }
.embed-slot .waiting a { color: var(--bone); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .hero h1.statement { font-size: clamp(2.5rem, 13vw, 4rem); }
  .manifesto .statement { font-size: clamp(2rem, 10vw, 3.2rem); }
  .index-title { font-size: clamp(1.7rem, 8.5vw, 2.6rem); }
  .index-row { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .footer-mark { font-size: clamp(1.1rem, 5.4vw, 1.6rem); }
  .embed-slot { min-height: 560px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
html.static-site .spread .char { transform: none !important; opacity: 1 !important; }

/* ============================================================
   Interior pages — Process, About, Privacy, Terms
   Same tokens, same voice: serif statements, gold accents,
   content on the dark canvas.
   ============================================================ */

.page-hero { padding-block: clamp(8rem, 18vh, 12rem) clamp(2rem, 5vh, 3.5rem); }
.page-title {
  font-size: clamp(2.4rem, 7.5vw, 6rem);
  max-width: 11em;
  margin-top: 1.3rem;
}
.page-hero .support { margin-top: 1.8rem; font-size: var(--step-1); line-height: 1.5; max-width: 38em; }

/* ---------- Chapters (the Process walkthrough) ---------- */

.chapter {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.8rem, 7vh, 5rem);
}
.chapter-head {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.4rem);
  flex-wrap: wrap;
}
.chapter-no {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.2px rgb(231 166 60 / 0.6);
  user-select: none;
}
.chapter-head h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 470;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.chapter-lead { margin-top: 1.6rem; color: var(--muted); max-width: 46em; }
.chapter-lead strong { color: var(--bone); font-weight: 500; }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.6rem, 3.5vw, 3rem);
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
}
.chapter-grid h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.chapter-grid p { color: var(--muted); font-size: 0.97em; }

.chapter-close {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-size: var(--step-1);
  line-height: 1.35;
  max-width: 34em;
  border-left: 2px solid var(--gold);
  padding-left: 1.3rem;
}

/* ---------- The creed (About) ---------- */

.creed { display: grid; gap: clamp(1.8rem, 5vh, 3rem); }
.creed p {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-weight: 440;
  font-size: clamp(1.5rem, 3.8vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 19em;
}
.creed p em { font-style: italic; color: var(--gold); }

.standards { margin-top: clamp(2rem, 5vh, 3rem); }
.standards li {
  border-top: 1px solid var(--line);
  padding-block: clamp(1.4rem, 3.5vh, 2.2rem);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(0.8rem, 3vw, 2.5rem);
  align-items: start;
}
.standards li:last-child { border-bottom: 1px solid var(--line); }
.standards h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 470;
  font-size: var(--step-2);
  line-height: 1.1;
}
.standards p { color: var(--muted); }

@media (max-width: 780px) { .standards li { grid-template-columns: 1fr; } }

/* Founder slot placeholder */
.founder-slot {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border: 1px dashed rgb(231 166 60 / 0.4);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  max-width: 46em;
}
.founder-slot h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100;
  font-weight: 470;
  font-size: var(--step-2);
}
.founder-slot p { color: var(--muted); margin-top: 0.9rem; }

/* ---------- Legal pages ---------- */

.legal-body { max-width: 46rem; padding-bottom: clamp(4rem, 10vh, 7rem); }
.legal-body h2 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
}
.legal-body p { margin-top: 0.9rem; color: var(--muted); }
.legal-body p a { color: var(--bone); }
.legal-body ul { margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.legal-body li { color: var(--muted); padding-left: 1.1rem; position: relative; }
.legal-body li::before {
  content: "";
  position: absolute; left: 0; top: 0.75em;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}
.legal-note {
  margin-top: clamp(2rem, 5vh, 3rem);
  border-left: 2px solid var(--gold);
  padding-left: 1.3rem;
  color: var(--muted);
  max-width: 40em;
}
.legal-updated {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Compact closing CTA for interior pages ---------- */

.cta--compact {
  min-height: 0;
  padding-block: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--line);
}
.cta--compact .statement { font-size: clamp(2rem, 5.5vw, 4rem); }

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.4vw, 2rem);
}
