/* ==========================================================================
   BASE — reset, typography, layout primitives, utilities, motion
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

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

::selection { background: var(--champagne); color: var(--ink); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: .75rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3, .h4, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: var(--lh-snug);
  font-optical-sizing: auto;
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.028em; }
.h1, h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.025em; }
.h2, h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.022em; }
.h3, h3 { font-size: var(--fs-h3); line-height: 1.16; }
.h4, h4 { font-size: var(--fs-h4); font-family: var(--font-display); font-weight: 400; line-height: 1.25; }

.display em, .h1 em, .h2 em, .h3 em, h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-text);
}
.on-ink .display em, .on-ink .h1 em, .on-ink .h2 em, .on-ink .h3 em,
.on-ink h1 em, .on-ink h2 em, .on-ink h3 em { color: var(--champagne); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--plain::before { display: none; }
.on-ink .eyebrow { color: var(--champagne); }

.lead { font-size: var(--fs-md); line-height: 1.6; color: var(--text-muted); max-width: 60ch; }
.on-ink .lead { color: var(--text-inv-muted); }
.muted { color: var(--text-muted); }
.on-ink .muted { color: var(--text-inv-muted); }
.small { font-size: var(--fs-sm); }
.caps { text-transform: uppercase; letter-spacing: var(--tracking-caps); font-size: var(--fs-xs); font-weight: 700; }
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.gold { color: var(--gold-text); }
.on-ink .gold { color: var(--champagne); }

.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: 64ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2em; }
.prose h3 { font-size: var(--fs-h4); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--ivory { background: var(--ivory); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--text-inv); }
.section--ink-2 { background: var(--ink-2); color: var(--text-inv); }
.section--burgundy { background: var(--burgundy); color: var(--text-inv); }
.on-ink { color: var(--text-inv); }

.grid { display: grid; gap: var(--space-6); }
.stack > * + * { margin-top: var(--stack, var(--space-5)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

.rule { height: 1px; background: var(--line); border: 0; }
.on-ink .rule { background: var(--line-inv); }

/* Section header */
.section-head { display: grid; gap: var(--space-5); margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr 1fr; gap: var(--space-8); }
}

/* Credibility placeholder: visible, deliberate, easy to find (search "[ADD") */
.ph {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: .78em;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .12em .5em;
  border: 1px dashed currentColor;
  border-radius: var(--radius-xs);
  opacity: .75;
  vertical-align: .08em;
}

/* ---------- Motion: reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(8% 8% 8% 8%); opacity: .001; transition: clip-path 1.3s var(--ease-out), opacity .9s var(--ease-out); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); opacity: 1; }
.js .reveal-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal-line { overflow: hidden; display: block; padding-bottom: .06em; }
.js .reveal-line.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-img, .js .reveal-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* Subtle film grain for dark editorial surfaces */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (min-width: 960px) { .sticky-lg { position: sticky; top: calc(var(--header-h) + 2rem); } }
.ic { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -0.15em; }
.mini-card__foot > span { display: inline-flex; align-items: center; gap: .5rem; }
