@font-face {
  font-family: "Outfit GH";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif GH";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif GH";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #040914;
  --navy: #0a1730;
  --navy-2: #13284d;
  --gold: #d6ad62;
  --gold-hi: #f4dfa8;
  --gold-lo: #8a6a33;
  --ink: #ece6d9;
  --ink-2: #aeb3c0;
  --ink-3: #6f7790;
  --line: rgba(214, 173, 98, 0.28);
  --scrim: rgba(4, 9, 20, 0.72);

  --f-display: "Instrument Serif GH", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-sans: var(--font-sans);
  --f-led: "Outfit GH", var(--font-sans);

  --gutter: clamp(16px, 4.2vw, 64px);
  --measure: 34rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --t-xs: 0.72rem;
  --t-sm: 0.875rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --t-xl: clamp(2.2rem, 1.4rem + 3.6vw, 4.6rem);
  --t-xxl: clamp(4.5rem, 2rem + 13vw, 15rem);

  color-scheme: dark;
}

html { background: var(--night); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% 0%, var(--navy) 0%, var(--night) 70%) fixed, var(--night);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible:not(.site-header *, .case-nav *, .cta *, .site-footer *, .modal *) { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 2px; }

.site-header, .case-nav, .cta, .modal { font-size: var(--fs-body); line-height: 1.55; letter-spacing: var(--tracking); }
.case-nav, .cta { color: var(--c-ink); background: var(--night); }
.site-footer { line-height: 1.55; letter-spacing: -0.01rem; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
.gold-text {
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 28%, var(--gold-hi) 48%, var(--gold) 66%, var(--gold-lo) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: var(--t-lg); line-height: 1.45; color: var(--ink); text-wrap: pretty; margin: 0; }
.body-copy { color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
.body-copy p { margin: 0; }
.body-copy p + p { margin-top: 1em; }
.body-copy strong { color: var(--ink); font-weight: 600; }

.chapters-nav {
  position: fixed;
  right: clamp(10px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}
.chapters { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chapters a {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  text-shadow: 0 1px 10px rgba(4, 9, 20, 0.8);
  transition: color 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9em;
  padding: 4px 0;
}
.chapters a span { opacity: 0; transform: translateX(6px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
.chapters a:hover span,
.chapters a:focus-visible span { opacity: 1; transform: none; }
.chapters a::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  border: 1px solid currentColor;
  transition: height 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.chapters a[aria-current="true"] { color: var(--gold-hi); }
.chapters a[aria-current="true"]::after { height: 18px; background: var(--gold-hi); border-color: var(--gold-hi); }
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 101;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

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

.placeholder {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, rgba(214,173,98,0.05) 0 12px, transparent 12px 24px), var(--navy);
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.placeholder b { color: var(--gold); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: var(--t-xs); }


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