/* Faronova Intelligence — site styles ("Dynamic Premium Intelligence")
   Three-colour rule: midnight, ivory, champagne. Charcoal and sage are functional text colours on ivory only. */

:root {
  --midnight: #101E30;
  --ivory: #F7F5EF;
  --champagne: #B3A183;
  --charcoal: #202326;      /* body text on ivory */
  --sage: #5B6354;          /* secondary text on ivory (5.7:1) */
  --ivory-2: rgba(247, 245, 239, .74);  /* secondary text on midnight (~10:1) */
  --rule-dark: rgba(247, 245, 239, .16);
  --rule-light: rgba(16, 30, 48, .14);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --rail: 0px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 1200px) { :root { --rail: 9rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--midnight); color: var(--ivory); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p, dd, li, figcaption { text-wrap: pretty; }
.statement, .hero-lead, .doc-quote, .th-label { text-wrap: balance; }
::selection { background: var(--champagne); color: var(--midnight); }

.skip { position: absolute; left: 1rem; top: -3rem; z-index: 50; background: var(--champagne); color: var(--midnight); padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }

/* Focus: champagne on midnight, midnight on ivory */
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--midnight); }
section[tabindex="-1"]:focus { outline: none; } /* programmatic focus after menu navigation */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--gutter);
  color: var(--ivory);
  transition: background .3s ease, padding .3s ease;
}
html:not(.js) .site-header { position: absolute; background: var(--midnight); }
.site-header.solid { background: var(--midnight); padding-block: .8rem; box-shadow: 0 1px 0 var(--rule-dark); }
.wordmark { font: 560 1.15rem/1 var(--serif); text-decoration: none; white-space: nowrap; }
.primary-nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; font-weight: 500; }
.primary-nav a { text-decoration: none; }
.primary-nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-cta { border: 1px solid var(--champagne); padding: .55rem 1rem; color: var(--ivory); }
.nav-cta:hover { background: var(--champagne); color: var(--midnight); }
.nav-toggle { display: none; }

/* ---------- Stage rail (wide screens) ---------- */
.stage-rail { display: none; }
@media (min-width: 1200px) {
  .stage-rail {
    position: fixed; left: 2.25rem; top: 50%; z-index: 20;
    display: flex; flex-direction: column; gap: 1.1rem;
    padding-left: 1.1rem; font-size: .8rem; font-weight: 500;
    color: var(--ivory-2);
    opacity: 0; visibility: hidden; transform: translateY(-50%); transition: opacity .4s ease, color .3s ease, visibility 0s linear .4s;
  }
  .stage-rail.on { opacity: 1; visibility: visible; transition-delay: 0s; }
  .stage-rail.on-light { color: var(--sage); }
  .stage-rail a { text-decoration: none; transition: color .2s ease; }
  .stage-rail a[aria-current="step"] { color: var(--champagne); font-weight: 600; }
  .stage-rail.on-light a[aria-current="step"] { color: var(--midnight); }
  .rail-line { position: absolute; left: 0; top: .2rem; bottom: .2rem; width: 1px; background: var(--rule-dark); }
  .stage-rail.on-light .rail-line { background: var(--rule-light); }
  .rail-fill { position: absolute; inset: 0 0 auto; height: 100%; background: var(--champagne); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .stage-rail.on-light .rail-fill { background: var(--midnight); }
}

/* ---------- Shared ---------- */
.dark { background: var(--midnight); color: var(--ivory); }
.light { background: var(--ivory); color: var(--charcoal); }

.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem; padding: .95rem 1.5rem; border: 1px solid var(--champagne); max-width: 100%; overflow-wrap: anywhere; transition: background .2s ease, color .2s ease; }
.btn-solid { background: var(--champagne); color: var(--midnight); }
.btn-solid:hover { background: transparent; color: var(--ivory); }
.btn-large { font-size: 1.08rem; padding: 1.15rem 2rem; }
.btn-text { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--champagne); }
.btn-text:hover { text-decoration-thickness: 2px; }
.light .btn-text { text-decoration-color: var(--midnight); }

.fig-cap { font-size: .9rem; max-width: 62ch; }
.dark .fig-cap { color: var(--ivory-2); }
.light .fig-cap { color: var(--sage); }
.fig-cap strong { font-weight: 600; }
.dark .fig-cap strong { color: var(--ivory); }
.light .fig-cap strong { color: var(--charcoal); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-copy { padding: 8rem var(--gutter) clamp(3rem, 8vh, 6rem); max-width: 46rem; }
.hero-title { font: 300 clamp(3.1rem, 8.4vw, 7.6rem)/.94 var(--serif); letter-spacing: -.025em; margin-bottom: clamp(1.5rem, 3vh, 2.25rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.hero-title .line > span { display: block; }
.hero-lead { font: 400 clamp(1.2rem, 1.9vw, 1.55rem)/1.4 var(--serif); max-width: 30ch; margin-bottom: .9rem; }
.hero-lead strong { font-weight: 560; }
.hero-value { color: var(--ivory-2); max-width: 44ch; margin-bottom: 1.4rem; }
.hero-terms { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--champagne); font-size: .95rem; font-weight: 500; margin-bottom: 1.8rem; font-variant-numeric: tabular-nums; }
.hero-terms span + span::before { content: ""; display: inline-block; width: 1.4rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: 1.4rem; opacity: .6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-note { margin-top: 1rem; font-size: .85rem; color: var(--ivory-2); max-width: 46ch; }
.addr { color: var(--ivory); user-select: all; overflow-wrap: anywhere; }
.src { color: var(--ivory); text-underline-offset: 3px; text-decoration-color: var(--champagne); white-space: nowrap; }

@media (max-width: 760px) {
  .hero { flex-direction: column; justify-content: flex-end; }
  .flow { height: 38%; }
  .hero-copy { padding-top: 34vh; padding-bottom: 2.5rem; }
  .hero-title { font-size: clamp(2.6rem, 12.5vw, 3.4rem); margin-bottom: 1.1rem; }
  .hero-lead { font-size: 1.15rem; }
  .hero-value { font-size: .98rem; margin-bottom: 1rem; }
  .hero-terms { gap: .2rem .9rem; font-size: .9rem; margin-bottom: 1.3rem; }
  .hero-terms span + span::before { width: .25rem; height: .25rem; border-radius: 50%; margin-right: .9rem; opacity: 1; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .flow { height: 22%; }
  .hero-copy { padding-top: 15vh; }
  .hero-title { font-size: 2.4rem; }
  .hero-value { font-size: .92rem; }
}

/* ---------- Chapters ---------- */
.chapter { padding: clamp(5rem, 12vw, 10rem) var(--gutter) clamp(5rem, 11vw, 9rem) calc(var(--gutter) + var(--rail)); }
.chapter-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.stage { font: italic 300 clamp(3.2rem, 9vw, 8.2rem)/.9 var(--serif); letter-spacing: -.03em; overflow: hidden; padding-bottom: .08em; }
.stage > span { display: inline-block; }
.dark .stage { color: var(--champagne); }
.light .stage { color: var(--midnight); }
.statement { font: 300 clamp(1.45rem, 2.5vw, 2.3rem)/1.22 var(--serif); max-width: 26ch; }
.light .statement { color: var(--midnight); }
/* Decide mirrors the head; Engage centres it */
.chapter-head.mirror { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter-head.mirror .stage { grid-column: 2; grid-row: 1; text-align: right; }
.chapter-head.mirror .statement { grid-column: 1; grid-row: 1; }
.chapter-head.centered { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.5rem; }
@media (max-width: 860px) {
  .chapter-head, .chapter-head.mirror { grid-template-columns: 1fr; }
  .chapter-head.mirror .stage { grid-column: 1; text-align: left; }
  .chapter-head.mirror .statement { grid-row: 2; }
}

/* Evidence status: solid line = observed finding, dashed line = hypothetical target */
.kind { display: flex; align-items: center; gap: .75rem; font-size: .88rem; font-weight: 500; }
.kind .key { flex: none; width: 2.4rem; height: 0; border-top: 2px solid currentColor; }
.kind-hyp .key { border-top-style: dashed; }
.dark .kind { color: var(--champagne); }
.light .kind { color: var(--midnight); }

/* Discover: role lanes */
.sort { overflow-x: clip; }
.sort .fig-cap { margin-bottom: 2rem; }
.lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.lane { border-top: 1px solid var(--midnight); padding-top: 1.1rem; }
.lane h3 { font: 600 .95rem/1.3 var(--sans); color: var(--midnight); }
.lane-def { font-size: .9rem; color: var(--sage); margin: .3rem 0 1.4rem; min-height: 2.9em; }
.chip { font: 400 clamp(1.45rem, 2.3vw, 2rem)/1.2 var(--serif); color: var(--midnight); padding: .55rem 0; border-top: 1px solid var(--rule-light); will-change: auto; }
@media (max-width: 860px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }

/* Analyze: exhibit with explanatory steps (sticky on large screens) */
.scrolly { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.exhibit .fig-cap { margin-bottom: 1.25rem; }
.exhibit .kind { margin-bottom: 2.25rem; }
.prices { display: grid; gap: 2.25rem; }
.price { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who num" "track track" "math math"; column-gap: 1.5rem; align-items: end; }
.who { grid-area: who; font: 400 1.35rem/1.2 var(--serif); }
.role { font: 500 .8rem/1 var(--sans); color: var(--ivory-2); margin-left: .5rem; vertical-align: middle; }
.num { grid-area: num; text-align: right; font: 300 clamp(2.8rem, 5.2vw, 4.6rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.unit { display: block; font: 500 .82rem/1.4 var(--sans); letter-spacing: 0; color: var(--ivory-2); margin-top: .35rem; }
.track { grid-area: track; position: relative; display: block; height: 7px; margin: 1.1rem 0 .8rem;  }
.bar { display: block; height: 100%; width: calc(var(--v) / .2 * 100%); background: var(--ivory); transform-origin: left center; }
.bar-accent { background: var(--champagne); }
.gap { position: absolute; top: 14px; left: calc(.0728 / .2 * 100%); width: calc((.0999 - .0728) / .2 * 100%); height: 10px; border: 1px solid var(--champagne); border-top: 0; }
.gap span { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font: 400 1.2rem/1 var(--serif); color: var(--champagne); white-space: nowrap; }
.price:last-child .track { margin-bottom: 3.6rem; }
.math { grid-area: math; color: var(--ivory-2); font-size: .95rem; font-variant-numeric: tabular-nums; }
.scale { position: relative; height: 1.6rem; margin-top: 1.25rem; padding-top: .5rem; border-top: 1px solid var(--rule-dark); font-size: .75rem; color: var(--ivory-2); font-variant-numeric: tabular-nums; }
.ratio { margin-top: 1.75rem; font: 400 1.25rem/1.4 var(--serif); }
.ratio strong { color: var(--champagne); font-weight: 400; font-size: 1.6em; }
.steps { display: grid; gap: 2rem; counter-reset: none; }
.step h3 { font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.2 var(--serif); margin-bottom: .6rem; transition: color .3s ease; }
.step p { color: var(--ivory-2); max-width: 38ch; }
.unpriced { display: grid; gap: 1rem; margin-top: 1rem; color: var(--ivory-2); font-size: .95rem; max-width: 40ch; }
.unpriced .who { display: block; font-size: 1.1rem; color: var(--ivory); margin-bottom: .2rem; }
@media (min-width: 1000px) and (min-height: 760px) {
  .scrolly { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .scrolly .exhibit { grid-column: 2; grid-row: 1; position: sticky; top: 14vh; }
  .scrolly .steps { grid-column: 1; grid-row: 1; gap: 0; padding: 4vh 0 10vh; }
  .step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
  html.js .step.on h3 { color: var(--champagne); }
}

/* Analyze: the sample as an editorial asset */
.document { margin-top: clamp(5rem, 10vw, 8rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.doc-frame { overflow: hidden; background: var(--ivory); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px var(--rule-dark); transform: translateY(var(--py, 0px)); }
.doc-frame img { width: 100%; }
.doc-quote { font: italic 300 clamp(1.35rem, 2.2vw, 1.85rem)/1.3 var(--serif); color: var(--champagne); margin-bottom: 1.25rem; }
.doc-cap p + p { margin-top: .75rem; color: var(--ivory-2); }
@media (max-width: 860px) { .document { grid-template-columns: 1fr; } }

/* Decide: a ledger of hypothetical targets */
.legend { display: grid; gap: .6rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.tests { display: grid; }
.test { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2.25rem 0 2.75rem; border-top: 1px dashed var(--midnight); align-items: start; }
.test:last-child { border-bottom: 1px dashed var(--midnight); }
.test h3 { font: 600 1rem/1.3 var(--sans); color: var(--midnight); margin-bottom: 1.25rem; }
@media (max-width: 600px) { .scale-u { display: none; } }
.which { font: 600 .8rem/1.3 var(--sans); color: var(--sage); margin-bottom: .4rem; }
.target-chart { width: 100%; max-width: 20rem; height: auto; overflow: visible; }
.target-chart line { stroke: var(--midnight); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.target-chart .tc-target { stroke-dasharray: 6 5; }
.target-chart .tc-gap { stroke: var(--sage); stroke-width: 1; stroke-dasharray: 2 3; }
.target-chart text { font: 500 12px var(--sans); fill: var(--sage); }
.threshold { margin: 0; }
.th-num { display: block; font: 300 clamp(4rem, 8vw, 7rem)/.95 var(--serif); letter-spacing: -.03em; color: var(--midnight); font-variant-numeric: tabular-nums; }
.th-kind { display: inline-block; margin-top: .75rem; padding-bottom: .15rem; border-bottom: 1px dashed var(--midnight); font: 600 .8rem/1.3 var(--sans); color: var(--midnight); }
.th-label { display: block; font: 400 1.1rem/1.4 var(--serif); color: var(--midnight); max-width: 26ch; margin-top: .6rem; }
.test dl div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--rule-light); }
.test dl div:first-child { border-top: 0; padding-top: 0; }
.test dt { font-weight: 600; font-size: .9rem; color: var(--midnight); }
.test dd { font-size: .98rem; }
@media (max-width: 1000px) { .test { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .test dl { grid-column: 1 / -1; } }
@media (max-width: 620px) { .test { grid-template-columns: 1fr; } }

.scale > span { position: absolute; top: .5rem; left: var(--x); transform: translateX(-50%); white-space: nowrap; }
.scale > span:first-child { transform: none; }
.scale > span:last-child { left: auto; right: 0; transform: none; }

/* Engage: centred close; the strands resolve into the call to action */
.engage { text-align: center; }
.resolve { display: block; width: 100%; height: clamp(90px, 14vw, 160px); margin: clamp(1rem, 3vw, 2rem) 0 0; overflow: visible; }
.resolve path { fill: none; stroke: var(--champagne); vector-effect: non-scaling-stroke; }
.close { display: grid; gap: 1.1rem; justify-items: center; margin-top: .5rem; }
.email { color: var(--ivory-2); }
.schedule { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--champagne); text-align: left; }
.schedule div { padding-top: 1.1rem; }
.schedule dt { color: var(--ivory-2); font-size: .88rem; margin-bottom: .35rem; }
.schedule dd { font: 400 1.1rem/1.4 var(--serif); }
.fee { font: 300 3.2rem/1 var(--serif); color: var(--champagne); margin-right: .35rem; }
@media (max-width: 1000px) { .schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; } .schedule div:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .schedule { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 3rem var(--gutter) 3.5rem calc(var(--gutter) + var(--rail)); font-size: .9rem; display: grid; gap: .6rem; }
.site-footer p { max-width: 70ch; }
.wordmark-sm { font: 560 1rem var(--serif); color: var(--midnight); margin-right: .75rem; }

/* ---------- Motion (only when JS confirms motion is welcome; content is visible by default) ---------- */
html.motion [data-reveal] { transition: transform .9s var(--ease); }
html.motion [data-reveal]:not(.in) { transform: translateY(1.5rem); }
html.motion .stage[data-reveal] { transform: none; }
html.motion .stage > span { transition: transform 1s var(--ease); }
html.motion .stage:not(.in) > span { transform: translateY(45%); }
html.motion .hero-title .line > span { animation: rise .9s var(--ease) backwards; }
html.motion .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(22%); } }
/* Exhibit: scrubbed by scroll on large screens (.scrub), time-based on entry elsewhere */
html.motion .bar { transition: transform 1.2s var(--ease); }
html.motion .bar-accent { transition-delay: .18s; }
html.motion .gap { transition: clip-path .8s var(--ease) .9s; }
html.motion .exhibit:not(.in):not(.scrub) .bar { transform: scaleX(.04); }
html.motion .exhibit:not(.in):not(.scrub) .gap { clip-path: inset(0 100% -3rem 0); }
html.motion .exhibit.scrub .bar, html.motion .exhibit.scrub .gap { transition: none; }
html.motion .exhibit.scrub .bar { transform: scaleX(var(--g, 1)); }
html.motion .exhibit.scrub .gap { clip-path: inset(-1rem calc((1 - var(--k, 1)) * 100% - var(--k, 1) * 4rem) -3rem -4rem); }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  html:not(.js) .primary-nav { flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; justify-content: flex-end; }
  html.js .primary-nav {
    position: fixed; inset: 0; z-index: 25; background: var(--midnight);
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 2rem var(--gutter); gap: 1.4rem; font-size: 1.4rem;
    transform: translateY(-100%); visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  html.js .primary-nav.open { transform: none; visibility: visible; transition-delay: 0s; }
  html.js .nav-toggle { display: block; position: relative; z-index: 26; background: none; border: 0; color: var(--ivory); font: 600 1rem var(--sans); cursor: pointer; padding: .4rem 0; }
  .wordmark { position: relative; z-index: 26; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
.guide { font: italic 400 1rem var(--serif); color: var(--midnight); margin-left: .5rem; }

/* ---------- Site-wide additions for the five-page site (same tokens and components; no new visual language) ---------- */
.primary-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: var(--champagne); }
.light .btn-solid:hover { color: var(--midnight); border-color: var(--midnight); }
.light .btn { border-color: var(--midnight); }
.light .btn-solid { border-color: var(--champagne); }

/* Interior page opening band */
.page-intro { padding: clamp(8rem, 16vh, 11rem) var(--gutter) clamp(3.5rem, 8vw, 6rem); }
.page-intro h1 { font: 300 clamp(2.6rem, 6.4vw, 5.4rem)/1 var(--serif); letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
.page-intro h1 em { font-style: italic; color: var(--champagne); }
.intro-lead { font: 400 clamp(1.15rem, 1.8vw, 1.45rem)/1.4 var(--serif); max-width: 40ch; margin-top: 1.5rem; }
.intro-note { color: var(--ivory-2); font-size: .92rem; max-width: 60ch; margin-top: 1rem; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* Interior sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.section + .section.light { border-top: 1px solid var(--rule-light); }
.section-title { font: 300 clamp(2rem, 4vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.02em; color: var(--midnight); margin-bottom: 1rem; }
.dark .section-title { color: var(--ivory); }
.section-title em { font-style: italic; }
.section-lead { font: 400 1.2rem/1.45 var(--serif); color: var(--midnight); max-width: 46ch; margin-bottom: 2.25rem; }
.dark .section-lead { color: var(--ivory); }
.prose { max-width: 64ch; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--midnight); font-weight: 600; }
.pull { margin: 2.5rem 0; padding: 0; font: italic 300 clamp(1.8rem, 3.4vw, 2.6rem)/1.2 var(--serif); color: var(--midnight); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.kind-interp .key { border-top-style: dotted; border-top-width: 3px; }
.legend { display: grid; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Schedule on light surfaces */
.light .schedule { border-top-color: var(--midnight); }
.light .schedule dt { color: var(--sage); }
.light .schedule dd { color: var(--midnight); }
.light .fee { color: var(--midnight); }
.schedule.left { text-align: left; margin-top: 0; }

/* Three headline findings */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.fact { border-top: 1px solid var(--midnight); padding-top: 1.1rem; }
.fact h3 { font: 600 .95rem/1.3 var(--sans); color: var(--midnight); }
.fact .big { display: block; font: 300 clamp(2.8rem, 5vw, 4rem)/1 var(--serif); color: var(--midnight); margin: .7rem 0 .6rem; font-variant-numeric: tabular-nums; }
.fact p { font-size: .98rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* Data table (sample brief page) */
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 4px; }
.data { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.data caption { text-align: left; caption-side: bottom; padding-top: .9rem; font-size: .85rem; color: var(--sage); }
.data th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--midnight); padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--midnight); vertical-align: bottom; }
.data td { padding: .75rem .9rem .75rem 0; border-bottom: 1px solid var(--rule-light); vertical-align: top; }
.data .n { text-align: right; white-space: nowrap; }
.data tr.subject td { color: var(--midnight); font-weight: 600; background: rgba(16, 30, 48, .05); }
.data td:first-child, .data th:first-child { padding-left: .6rem; }
.data .muted { color: var(--sage); font-weight: 400; }
.data a { text-underline-offset: 3px; }

/* Numbered interpretation points */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.points li { border-top: 1px dotted var(--midnight); padding-top: 1.1rem; }
.points h3 { font: 400 1.3rem/1.25 var(--serif); color: var(--midnight); margin-bottom: .6rem; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* Method and sources */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.cols h3 { font: 600 1rem/1.3 var(--sans); color: var(--midnight); margin: 0 0 .5rem; }
.cols p + h3 { margin-top: 1.5rem; }
.sources { counter-reset: s; font-size: .92rem; }
.sources li { padding: .6rem 0; border-bottom: 1px solid var(--rule-light); overflow-wrap: anywhere; }
.sources b { color: var(--midnight); margin-right: .4rem; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* Closing band on interior pages */
.close-band { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.close-band .section-title { max-width: 18ch; }

/* Footer (all pages) */
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: .4rem 0; }
.footer-nav a { color: var(--midnight); text-underline-offset: 4px; }
.site-footer a { color: var(--midnight); }
.schedule.left { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.addr-light { color: var(--midnight); font-weight: 600; user-select: all; overflow-wrap: anywhere; }
.site-footer { gap: .8rem; }
body:not(:has(.stage-rail)) .site-footer { padding-left: var(--gutter); } /* the rail indent applies only on the homepage */

/* Mobile header robustness: no-JS header stays in flow with the nav below the wordmark; the open menu scrolls on short screens */
@media (max-width: 860px) {
  html:not(.js) .site-header { position: static; flex-wrap: wrap; gap: .6rem; background: var(--midnight); }
  html:not(.js) .primary-nav { width: 100%; justify-content: flex-start; }
  html:not(.js) .page-intro, html:not(.js) .hero-copy { padding-top: 3rem; }
  html.js .primary-nav { justify-content: flex-start; padding-top: 5.5rem; padding-bottom: 2rem; overflow-y: auto; }
}
ol.points, ol.sources { list-style: none; padding: 0; }
