/* Self-hosted type: Prata (display) + Space Grotesk (body). No external requests. */
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/prata-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/spacegrotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/spacegrotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/spacegrotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/spacegrotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
  CostBleed marketing site — hand-written CSS, no build step.
  Self-hosted type (Prata display, Space Grotesk body), no CDN, no
  third-party assets. Palette: docs/UI_UX_SPEC.md, applied with its own
  rule — "Crimson highlights risk and action. It must not dominate."

  Design language: the brand mark writ large. Ledger lines in bone on
  obsidian; ONE line out of register, always crimson and slightly bolder
  than its siblings. Crimson appears where something bleeds or where the
  reader acts; everything decorative stays bone, stone or hairline.
*/

:root {
  --obsidian: #09090b;
  --charcoal: #151519;
  --graphite: #25262c;
  --garnet: #74121c;
  --crimson: #a31528;
  /*
    Accessibility: raw --crimson on --obsidian/--charcoal measures
    2.55:1 / 2.34:1, below the WCAG AA 4.5:1 text minimum required by
    docs/UI_UX_SPEC.md. --crimson-tint is a lightened step toward --bone
    (5.35:1 on obsidian, 4.90:1 on charcoal) and is what crimson must be
    when it is *text* on a dark surface. Raw --crimson stays for fills,
    rules and borders, and is AA (6.63:1) as text on --bone paper.
    Mirrors --crimson-tint in apps/web/static/costbleed.css.
  */
  --crimson-tint: #c26b74;
  --dark-ruby: #530b13;
  --bone: #f1ece5;
  --cold-stone: #bdb8b1;
  --amber: #c28a32;
  --muted-green: #768675;

  --font-display: "Prata", Didot, "Bodoni MT", Georgia, serif;
  --font-body: "Space Grotesk", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --rule: rgba(241, 236, 229, 0.13);
  --rule-strong: rgba(241, 236, 229, 0.24);
  --paper-rule: #d9d2c7;
  --ink-muted: #55524c;
  /* Crimson as INK, exclusively for text sitting on the bone paper card —
     6.63:1 there (AA). Never use it as text on a dark surface; that is what
     --crimson-tint is for. */
  --paper-accent-ink: #a31528;
  --max-width: 1180px;

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--bone);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: 0.002em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  letter-spacing: 0.004em;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--bone);
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--amber);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

/* ---- utility ------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--crimson);
  color: var(--bone);
  padding: 0.75em 1.25em;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cold-stone);
  margin: 0 0 1.4em;
}

.text-link {
  display: inline-block;
  margin-top: 0.5em;
  font-weight: 600;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.plain-list li {
  padding: 0.55em 0;
  border-bottom: 1px solid var(--rule);
}

.plain-list li:first-child {
  border-top: 1px solid var(--rule);
}

.tabular-nums {
  font-variant-numeric: tabular-nums lining-nums;
}

/* ---- header ---------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--obsidian) 88%, transparent);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  /* One slim line: mark, name, then the descriptor behind a hairline.
     The mark leads — it is the biggest thing in the row. */
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  line-height: 1;
  min-width: 0;
}

.wordmark .brand-lines {
  width: 38px;
  height: 29px;
  flex: none;
}

.wordmark__tagline {
  border-left: 1px solid var(--rule-strong);
  padding-left: 0.75rem;
  white-space: nowrap;
}

.wordmark__mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: var(--bone);
}

.wordmark__mark--small {
  font-size: 1.1rem;
}

.wordmark__tagline {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cold-stone);
  margin-top: 0.35em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--cold-stone);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2em;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--bone);
  border-bottom-color: var(--crimson);
}

.site-nav__cta a {
  color: var(--bone);
  font-weight: 500;
  background: var(--crimson);
  padding: 0.55em 1.05em;
  border-radius: 2px;
  border-bottom: none;
}

.site-nav__cta a:hover,
.site-nav__cta a:focus-visible {
  background: var(--garnet);
  color: var(--bone);
}

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0) 40%, var(--obsidian) 96%),
    radial-gradient(ellipse 56% 44% at 74% 34%, rgba(116, 18, 28, 0.14), transparent 72%),
    var(--charcoal);
}

.hero--page {
  padding: 4.25rem 1.5rem 3rem;
}

.hero--page > .hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero--page h1 {
  max-width: 17em;
}

.hero--page .hero__support {
  max-width: 42rem;
}

.hero--home {
  padding: 0;
}

.hero__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.25rem 1.5rem 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  gap: 2.5rem 3rem;
  align-items: center;
}

.hero--home .hero__title {
  font-size: clamp(2.9rem, 5.4vw, 4.5rem);
}

.hero__inner {
  max-width: 44rem;
}

.hero__title {
  margin-bottom: 0.4em;
}

.hero__support {
  font-size: 1.13rem;
  color: var(--cold-stone);
  max-width: 36rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero__facts {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero__facts li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--cold-stone);
}

.hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 1px;
  background: var(--rule-strong);
}

/* ---- hero scene: the exploded evidence stack --------------------------- */

.hero__scene {
  margin: 0;
  min-width: 0;
}

.evi {
  display: block;
  width: min(100%, 46rem);
  height: auto;
  margin-left: auto;
}

.evi__face {
  fill: #17171c;
  stroke: #2c2d33;
  stroke-width: 1;
}

.evi__edge {
  fill: #060607;
  stroke: #232429;
  stroke-width: 1;
}

.evi__sheet--1 .evi__face {
  fill: #1b1c22;
  stroke: #383941;
}

.evi__sheet--2 .evi__face {
  fill: #17181d;
}

.evi__sheet--3 .evi__face {
  fill: #131317;
}

.evi__row {
  stroke: rgba(189, 184, 177, 0.22);
  stroke-width: 1;
}

.evi__sheet--2 .evi__row,
.evi__sheet--3 .evi__row {
  stroke: rgba(189, 184, 177, 0.12);
}

.evi__tick {
  stroke: rgba(189, 184, 177, 0.48);
  stroke-width: 2;
}

.evi__ghost {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0.4;
}

.evi__slab-shadow {
  fill: rgba(0, 0, 0, 0.55);
  transform: translate(6px, 9px);
}

.evi__slab-face {
  fill: #25262c;
  stroke: var(--rule-strong);
  stroke-width: 1.25;
}

.evi__slab-rule {
  stroke: rgba(241, 236, 229, 0.3);
  stroke-width: 1;
}

.evi__slab-tick {
  stroke: #d68b93;
  stroke-width: 3;
}

.evi__slab {
  transform: translate(34px, 17px);
}

.evi__thread-under {
  stroke: var(--crimson);
  stroke-width: 1.75;
  opacity: 0.45;
}

.evi__thread {
  stroke: var(--crimson);
  stroke-width: 1.75;
}

.evi__ring {
  fill: var(--obsidian);
  stroke: var(--crimson);
  stroke-width: 1.5;
}

.evi__seam {
  fill: var(--crimson);
}

.evi__terminal {
  fill: var(--crimson);
  stroke: rgba(163, 21, 40, 0.35);
  stroke-width: 6;
}

.evi__doc-label,
.evi__callout-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: #8b8781;
}

.evi__doc-label {
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.evi__callout-title {
  font-family: var(--font-display);
  font-size: 17px;
  fill: var(--bone);
}

.evi__callout-amount {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  fill: var(--crimson-tint);
}

.evi__callout-figure {
  font-family: var(--font-display);
  font-size: 31px;
  fill: var(--bone);
}

.evi__leader {
  stroke: rgba(194, 107, 116, 0.55);
  stroke-width: 1;
}

/* Entrance: the thread traces over its own faint underlay, the line slides
   out of register, the callouts settle. Nothing is ever invisible — every
   animated element starts at a legible state, so the composition is whole
   at first paint (and in any renderer that never runs the animation). All
   motion lives behind the reduced-motion gate. */
@media (prefers-reduced-motion: no-preference) {
  .evi__thread {
    stroke-dasharray: 920;
    stroke-dashoffset: 920;
    animation: evi-thread 800ms var(--ease-out) 100ms forwards;
  }

  .evi__slab-wrap {
    animation: evi-slide 550ms var(--ease-out) 300ms backwards;
  }

  .evi__ring,
  .evi__seam,
  .evi__terminal {
    animation: evi-settle 400ms var(--ease-out) 550ms backwards;
  }

  .evi__callout--finding {
    animation: evi-callout 450ms var(--ease-out) 620ms backwards;
  }

  .evi__callout--hold {
    animation: evi-callout 450ms var(--ease-out) 760ms backwards;
  }
  .sectors__track {
    animation: sectors-run 46s linear infinite;
  }
  .hero-scroll--armed .hero-scroll-hint {
    animation: hint-drift 2.6s ease-in-out infinite;
  }
}

@keyframes evi-thread {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes evi-slide {
  from {
    transform: translate(-11px, -5.5px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes evi-settle {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

@keyframes evi-callout {
  from {
    opacity: 0.65;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- motion: subtle lift + reduced-motion ------------------------------- */

.card-lift {
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.card-lift:hover,
.card-lift:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px rgba(0, 0, 0, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- buttons ------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.012em;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.btn--primary {
  background: var(--crimson);
  color: var(--bone);
  font-weight: 500;
  border-color: var(--garnet);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--garnet);
  border-color: var(--garnet);
}

.btn--primary:active {
  background: var(--dark-ruby);
  border-color: var(--dark-ruby);
}

.btn--secondary {
  background: transparent;
  color: var(--bone);
  border-color: var(--rule-strong);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: var(--bone);
}

/* ---- sections -------------------------------------------------------- */

.section {
  padding: clamp(3.25rem, 6vw, 4.75rem) 1.5rem;
}

.section--rule {
  border-top: 1px solid var(--rule);
}

.section--dark {
  background: var(--charcoal);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section--closing {
  border-top: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--charcoal), var(--obsidian) 70%);
  text-align: center;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 40rem;
}

.section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 5rem;
}

.section__inner--duo {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 2rem 4.5rem;
  align-items: start;
}

.section__inner--centered {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__prose {
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.5rem, 3vw, 3rem);
  max-width: 46rem;
}

.section__prose p:last-child {
  margin-bottom: 0;
  color: var(--cold-stone);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section__heading {
  max-width: 34rem;
}

.section__lede {
  font-size: 1.05rem;
  color: var(--cold-stone);
  max-width: 42rem;
}

.section__note {
  color: var(--cold-stone);
  font-size: 0.88rem;
}

.section--closing .section__heading,
.section--closing .section__lede {
  margin-left: auto;
  margin-right: auto;
}

.closing-mark {
  color: var(--cold-stone);
  margin-bottom: 1.25rem;
}

/* ---- the proof spread: paper ledger + outcome key ---------------------- */

.proof-spread {
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  gap: 2.5rem 4.5rem;
  align-items: start;
}

.proof-spread__aside {
  padding-top: 0.5rem;
}

/* The one light object on a dark page: the ProofPack itself, as paper. */
.ledger-card {
  position: relative;
  background: var(--bone);
  color: var(--obsidian);
  border: 1px solid var(--paper-rule);
  padding: 1.9rem 2.1rem 1.6rem;
  box-shadow:
    0 1px 0 rgba(241, 236, 229, 0.08),
    0 18px 44px -18px rgba(0, 0, 0, 0.85);
}

.ledger-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--crimson);
}

.ledger-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.ledger-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--obsidian);
}

.ledger-card__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ledger-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--obsidian);
  padding-bottom: 0.8rem;
  margin: 0.1rem 0 0.35rem;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
}

.ledger-table th,
.ledger-table td {
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--paper-rule);
  font-weight: 400;
  text-align: left;
}

.ledger-table th {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.ledger-table td {
  text-align: right;
  color: var(--obsidian);
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.ledger-table__row--bleed th {
  color: var(--garnet);
}

.ledger-table__row--bleed td {
  color: var(--garnet);
}

.ledger-table__row--hold th,
.ledger-table__row--hold td {
  border-bottom: none;
  border-top: 2px solid var(--crimson);
  padding-top: 0.85rem;
}

.ledger-table__row--hold th {
  color: var(--obsidian);
  font-weight: 600;
  font-size: 1rem;
}

.ledger-table__row--hold td {
  color: var(--paper-accent-ink); /* on bone paper: 6.63:1, AA */
  font-size: 1.7rem;
  letter-spacing: 0.01em;
}

.ledger-card__note {
  margin: 1.2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--paper-rule);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Outcome key: what each ledger row means. */
.outcome-list {
  margin: 0;
}

.outcome-list__item {
  display: grid;
  grid-template-columns: 1.1rem minmax(9.5rem, 12rem) 1fr;
  gap: 0 1.25rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.outcome-list__item:first-child {
  border-top: 1px solid var(--rule);
}

.outcome-list__item::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  align-self: start;
  margin-top: 0.45rem;
  background: var(--cold-stone);
}

.outcome-list__item[data-outcome="supported"]::before {
  background: var(--muted-green);
}

.outcome-list__item[data-outcome="clarify"]::before {
  background: var(--amber);
}

.outcome-list__item[data-outcome="bleed"]::before {
  background: var(--crimson);
}

.outcome-list__item dt {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--bone);
}

.outcome-list__item dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cold-stone);
}

.proof-spread__aside .section__note {
  margin: 1.4rem 0 0;
}

/* ---- finding anatomy --------------------------------------------------- */

.anatomy-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44rem);
  gap: 2.5rem 4.5rem;
  align-items: center;
}

.anatomy-keys {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
}

.anatomy-keys li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--cold-stone);
}

.anatomy-keys li:first-child {
  border-top: 1px solid var(--rule);
}

.anatomy-keys__term {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}

/* ---- finding card (the single most persuasive thing on the page) ------- */

.finding-card {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--rule-strong);
  padding: 1.85rem 2.1rem;
}

.finding-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson) 0 32%, var(--rule-strong) 32%);
}

.finding-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.finding-card__taxonomy {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bone);
  margin: 0;
}

.finding-card__status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-tint);
  margin: 0 0 0.45em;
}

.finding-card__amount {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--bone);
  white-space: nowrap;
  margin: 0;
}

.finding-card__rationale {
  color: var(--cold-stone);
  margin-bottom: 1.1rem;
  max-width: 40rem;
}

.finding-card__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.source-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--cold-stone);
  border: 1px solid var(--rule-strong);
  padding: 0.4em 0.8em;
  border-radius: 2px;
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.finding-card:hover .source-chip {
  border-color: rgba(241, 236, 229, 0.35);
}

.finding-card__action {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--bone);
}

.finding-card__action-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.45em;
}

/* ---- taxonomy grid ------------------------------------------------------ */

.taxonomy-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 2.5rem;
}

.taxonomy-item {
  border-top: 1px solid var(--rule);
  padding: 1.15rem 0 1.35rem;
  transition: border-color 160ms var(--ease-out);
}

.taxonomy-item:hover {
  border-top-color: var(--crimson);
}

.taxonomy-item__glyph {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--cold-stone);
  stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  margin-bottom: 0.7rem;
  transition: stroke 160ms var(--ease-out);
}

.taxonomy-item:hover .taxonomy-item__glyph {
  stroke: var(--crimson-tint);
}

.taxonomy-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3em;
}

.taxonomy-item p {
  color: var(--cold-stone);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

/* ---- steps ------------------------------------------------------------ */

.mini-steps {
  list-style: none;
  padding: 0;
  counter-reset: mini-step;
}

.mini-steps li {
  counter-increment: mini-step;
  position: relative;
  padding: 0.55em 0 0.55em 2.5em;
  color: var(--cold-stone);
}

.mini-steps li::before {
  content: counter(mini-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.72em;
  color: var(--crimson-tint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.mini-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.62em;
  top: 2em;
  bottom: -0.6em;
  width: 1px;
  background: linear-gradient(180deg, rgba(163, 21, 40, 0.55), rgba(163, 21, 40, 0.1));
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  max-width: 42rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.25rem;
  margin-left: 0.9rem;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.9rem;
  bottom: 0.2rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(163, 21, 40, 0.5), rgba(163, 21, 40, 0.12));
}

.steps li:last-child::after {
  content: none;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -0.9rem;
  top: -0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--obsidian);
}

.steps h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.steps p {
  color: var(--cold-stone);
  margin-bottom: 0;
}

/* ---- persona grid ------------------------------------------------------ */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.5rem;
}

.persona-card {
  border-top: 1px solid var(--rule);
  padding: 1.15rem 0 0.5rem;
  transition: border-color 160ms var(--ease-out);
}

.persona-card:hover {
  border-top-color: var(--crimson);
}

.persona-card p {
  color: var(--cold-stone);
  margin-bottom: 0;
}

/* ---- band -------------------------------------------------------------- */

.section--band {
  border-top: 1px solid var(--rule);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 4rem;
  align-items: end;
}

.band .section__heading {
  max-width: 30rem;
}

.band .section__lede {
  margin-bottom: 0;
}

.band .text-link {
  white-space: nowrap;
  padding-bottom: 0.2rem;
}

/* ---- ladder: three tiers as ruled rows --------------------------------- */

.ladder {
  display: flex;
  flex-direction: column;
  margin: 0 0 2rem;
  border-top: 1px solid var(--rule-strong);
}

.ladder__tier {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 0 3rem;
  align-items: center;
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--rule);
}

.ladder__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cold-stone);
  margin: 0;
}

.ladder__tier--first .ladder__eyebrow {
  color: var(--crimson-tint);
}

.ladder__body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25em;
}

.ladder__body p {
  color: var(--cold-stone);
  font-size: 0.94rem;
  max-width: 38rem;
  margin: 0;
}

.ladder__ordinal {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: rgba(189, 184, 177, 0.38);
}

.ladder__tier--first .ladder__ordinal {
  color: var(--crimson-tint);
}

.ladder__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.ladder__foot .section__note {
  margin: 0;
}

/* ---- definition / security / legal grids -------------------------------- */

.definition-grid,
.security-grid,
.legal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
  margin: 2rem 0 0;
}

.legal-list {
  grid-template-columns: 1fr;
  max-width: 44rem;
}

.definition-grid dt,
.security-item h2,
.legal-item h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--bone);
  margin-bottom: 0.35em;
}

.definition-grid dd,
.security-item p,
.legal-item p {
  margin: 0;
  color: var(--cold-stone);
}

.definition-grid > div,
.security-item,
.legal-item {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}

/* ---- form --------------------------------------------------------------- */

.form {
  margin-top: 1.5rem;
}

.field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.field label {
  font-size: 0.85rem;
  color: var(--cold-stone);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bone);
  background: var(--obsidian);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.7em 0.85em;
  transition: border-color 150ms var(--ease-out);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--cold-stone) 50%),
    linear-gradient(135deg, var(--cold-stone) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) center,
    calc(100% - 15px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(241, 236, 229, 0.4);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6em;
}

.field--checkbox input {
  margin-top: 0.3em;
}

.field--checkbox label {
  color: var(--cold-stone);
  font-size: 0.9rem;
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  color: var(--amber);
  font-size: 0.82rem;
  margin: 0;
}

.form-error {
  background: rgba(163, 21, 40, 0.14);
  border: 1px solid var(--crimson);
  color: var(--bone);
  padding: 0.9em 1.1em;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ---- contact layout: a considered document, not a bare utility form ---- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 32rem);
  gap: 3rem 4rem;
  align-items: start;
}

.contact-aside {
  border-top: 2px solid var(--crimson);
  padding-top: 1.25rem;
}

.contact-aside__heading {
  font-size: 1.05rem;
  margin-bottom: 0.85em;
}

.contact-aside__steps {
  list-style: none;
  counter-reset: contact-step;
  padding: 0;
  margin: 0 0 1.4rem;
}

.contact-aside__steps li {
  counter-increment: contact-step;
  position: relative;
  padding: 0 0 1.1rem 2.1rem;
  color: var(--cold-stone);
  font-size: 0.92rem;
}

.contact-aside__steps li::before {
  content: counter(contact-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--crimson-tint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.contact-aside__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.58em;
  top: 1.45em;
  bottom: 0.15em;
  width: 1px;
  background: linear-gradient(180deg, rgba(163, 21, 40, 0.45), rgba(163, 21, 40, 0.08));
}

.contact-aside__note {
  font-size: 0.85rem;
  color: var(--cold-stone);
  margin: 0;
}

.contact-form-card {
  background: var(--charcoal);
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--rule-strong);
  padding: 2rem 2.25rem 2.25rem;
}

.contact-form-card .form {
  margin-top: 0;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.75rem 1.5rem 2.25rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer__brand p {
  color: var(--cold-stone);
  font-size: 0.85rem;
  margin: 0.5em 0 0;
}

.site-footer__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-footer__nav a {
  color: var(--cold-stone);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 150ms var(--ease-out);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--bone);
}

.site-footer__legal {
  width: 100%;
  color: var(--cold-stone);
  font-size: 0.78rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* ---- responsive ----------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .evi {
    margin: 0 auto;
    width: min(100%, 36rem);
  }

  .proof-spread,
  .anatomy-spread {
    grid-template-columns: 1fr;
  }

  .anatomy-spread .finding-card {
    max-width: 44rem;
  }

  .taxonomy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2rem;
  }
}

@media (max-width: 860px) {
  .persona-grid {
    grid-template-columns: 1fr 1fr;
  }

  .taxonomy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .definition-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .section__inner--split,
  .section__inner--duo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section__prose {
    border-left: none;
    padding-left: 0;
  }

  .band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ladder__tier {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 2rem;
  }

  .ladder__eyebrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .persona-grid,
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ladder__ordinal {
    display: none;
  }

  .ledger-card {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .finding-card {
    padding: 1.5rem 1.25rem;
  }
}

/* Brand mark, inline beside the wordmark. */
.brand-mark {
  display: inline-block;
  vertical-align: -0.2em;
  margin-right: 0.5rem;
}

/* Attribution: quiet, never louder than the product name. */
.site-footer__by {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--cold-stone);
}

.site-footer__by strong {
  color: var(--bone);
  font-weight: 600;
}

/* Client sign-in: a bordered key, distinct from the crimson enquiry CTA
   so an existing client and a new prospect never reach for the same thing. */
.site-nav__signin > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--graphite);
  border-radius: 2px;
  color: var(--cold-stone);
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.site-nav__signin > a:hover,
.site-nav__signin > a:focus-visible {
  border-color: var(--cold-stone);
  color: var(--bone);
}

/* Language switch: quiet mono pair, the active language inked in. */
.site-nav__lang {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(189, 184, 177, 0.45);
}

.site-nav__lang a {
  color: var(--cold-stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15em;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.site-nav__lang a:hover,
.site-nav__lang a:focus-visible {
  color: var(--bone);
}

.site-nav__lang a.is-active {
  color: var(--bone);
  border-bottom-color: var(--crimson);
}


/* The seal: champagne, quiet, never larger than the name. */
.site-footer__brand .brand-seal { opacity: 0.85; }


/* ---- the mark: four ledger lines, one out of register ------------------ */

.brand-lines {
  vertical-align: -0.3em;
  margin-right: 0.6rem;
  flex: none;
}

.brand-lines line {
  transform-box: view-box;
  transition: transform 0.45s var(--ease-out);
}

.wordmark:hover .brand-lines__bleed,
.wordmark:focus-visible .brand-lines__bleed {
  transform: translateX(7px); /* the line slips further out of register */
}

.wordmark__mark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* A section rule quoting the mark: hairline with a displaced crimson
   segment sitting just below the register. */
.rule-register {
  position: relative;
  height: 1px;
  background: var(--rule);
  margin: 4.5rem auto;
  max-width: var(--max-width);
}

.rule-register::after {
  content: "";
  position: absolute;
  left: 61%;
  top: 3px;
  width: 12%;
  height: 2px;
  background: var(--crimson);
}

/* ---- hero: the scroll-driven scene ------------------------------------- */

/* Without JS the hero is a single quiet viewport with the SVG fallback.
   hero3d.js arms the scroller only once WebGL has actually rendered. */
.hero-scroll {
  position: relative;
}

.hero-scroll--armed {
  height: 340vh;
}

.hero-scene {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(37, 38, 44, 0.55), transparent 60%),
    var(--obsidian);
}

.hero-scroll--armed .hero-scene {
  position: sticky;
  top: 0;
}

#hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-scene--live #hero3d {
  opacity: 1;
}

.hero__scene--fallback {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10vh 5vw 10vh 0;
  transition: opacity 0.7s ease;
}

.hero__scene--fallback .evi {
  width: min(52vw, 760px);
  height: auto;
}

.hero-scene--live .hero__scene--fallback {
  opacity: 0;
  visibility: hidden;
}

/* Acts: copy layers the choreography fades between. Act 1 carries the
   H1 and CTAs and is current by default, so a no-JS visit reads normally. */
.hero-act {
  position: absolute;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
  pointer-events: none;
}

.hero-act.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease 0.1s, visibility 0s;
  pointer-events: auto;
}

.hero-act[data-act="s0a"] {
  inset: 0 auto 0 clamp(1.5rem, 6vw, 6.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.hero-act--side {
  right: clamp(1.5rem, 6vw, 6.5rem);
  bottom: 16vh;
  max-width: 520px;
  text-align: right;
}

/* Legibility veil: the copy floats over a lit, moving scene, so each act
   block carries its own quiet pool of obsidian. */
.hero-act--side::before,
.hero-act--center::before,
.hero-act[data-act="s0a"]::before {
  content: "";
  position: absolute;
  inset: -3rem -4rem;
  z-index: -1;
  background: radial-gradient(75% 85% at 60% 50%, rgba(9, 9, 11, 0.88), rgba(9, 9, 11, 0) 72%);
  pointer-events: none;
}

.hero-act--side .kicker {
  color: var(--bone);
  opacity: 0.85;
}

.hero-act__line {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  line-height: 1.22;
  color: var(--bone);
  margin: 0.4em 0 0;
  text-shadow: 0 2px 28px rgba(9, 9, 11, 0.95), 0 0 6px rgba(9, 9, 11, 0.7);
}

/* Callouts projected from the 3D anchors — drafting annotations that
   belong to the object. hero3d.js positions them; CSS only dresses them. */
.scene-callout {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  border-left: 1px solid var(--rule-strong);
  padding: 0.35rem 0.7rem 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--bone);
  max-width: 270px;
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.78), rgba(9, 9, 11, 0.25));
  will-change: transform;
}

.scene-callout.is-on {
  opacity: 1;
}

.scene-callout > span {
  display: block;
}

.scene-callout__kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--cold-stone);
}

.scene-callout--bleed {
  border-left-color: var(--crimson);
}

.scene-callout--bleed .scene-callout__title {
  color: var(--bone);
  margin-top: 0.25rem;
}

.scene-callout--bleed .scene-callout__amount {
  color: var(--crimson-tint);
  margin-top: 0.2rem;
}

.scene-callout--hold {
  border-left-color: var(--crimson);
}

.scene-callout--hold .scene-callout__figure {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--bone);
  margin-top: 0.3rem;
}

.hero-progress {
  position: absolute;
  right: clamp(0.9rem, 2.2vw, 2.2rem);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 3;
}

.hero-scroll--armed .hero-progress {
  display: flex;
}

.hero-progress__dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: var(--rule-strong);
  transition: height 0.3s var(--ease-out), background 0.3s;
}

.hero-progress__dot.is-on {
  height: 19px;
  background: var(--crimson);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cold-stone);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-scroll--armed .hero-scroll-hint {
  opacity: 0.75;
}

.hero-scroll--armed .hero-scroll-hint.is-done {
  opacity: 0;
}

@media (max-width: 900px) {
  .scene-callout {
    font-size: 0.8rem;
    max-width: 210px;
  }

  .scene-callout--hold .scene-callout__figure {
    font-size: 1.35rem;
  }

  .hero-act[data-act="s0a"] {
    inset: 0 clamp(1.25rem, 5vw, 3rem);
    max-width: none;
  }

  .hero-act--side {
    right: clamp(1.25rem, 5vw, 3rem);
    left: clamp(1.25rem, 5vw, 3rem);
    bottom: 9vh;
    max-width: none;
    text-align: left;
  }

  .hero-act__line {
    font-size: clamp(1.45rem, 6.2vw, 1.9rem);
  }

  .hero__scene--fallback {
    justify-content: center;
    padding: 8vh 0 0;
    opacity: 0.35;
  }

  .hero__scene--fallback .evi {
    width: min(92vw, 560px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll--armed {
    height: auto;
  }

  .hero-scroll--armed .hero-scene {
    position: relative;
  }

  .brand-lines line {
    transition: none;
  }
}


/* ---- mobile navigation ------------------------------------------------- */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--bone);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5em 0.9em;
  cursor: pointer;
}

/* The menu lives behind the burger on every width: the header stays a
   single quiet line, the panel opens as a full obsidian room. */
.has-nav-toggle .site-header__inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.has-nav-toggle .nav-toggle {
  display: inline-flex;
  flex: none;
}

.has-nav-toggle .site-nav {
  display: none;
}

.has-nav-toggle .site-header--open .site-nav {
  display: block;
  position: fixed;
  inset: var(--header-height, 64px) 0 0;
  background: color-mix(in srgb, var(--obsidian) 96%, transparent);
  backdrop-filter: blur(7px);
  z-index: 60;
  overflow-y: auto;
  padding: clamp(1.6rem, 6vh, 4rem) clamp(1.5rem, 9vw, 8rem) 4rem;
  border-top: 1px solid var(--rule);
}

html.nav-open {
  overflow: hidden;
}

.has-nav-toggle .site-header--open .site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.has-nav-toggle .site-header--open .site-nav li {
  border-bottom: 1px solid var(--rule);
}

.has-nav-toggle .site-header--open .site-nav li a {
  display: inline-block;
  padding: 0.38em 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  letter-spacing: 0.01em;
  border-bottom: none;
  position: relative;
}

/* The fugitive line greets the pointer. */
.has-nav-toggle .site-header--open .site-nav li a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 3px;
  background: var(--crimson);
  margin-left: 0.4em;
  vertical-align: middle;
  transition: width 0.35s var(--ease-out);
}

.has-nav-toggle .site-header--open .site-nav li a:hover::after,
.has-nav-toggle .site-header--open .site-nav li a.is-active::after {
  width: 1.1em;
}

/* Header actions: CTA, sign-in and language ride beside the burger on
   wide screens; on phones they live inside the panel instead. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-left: auto;
}

.header-cta {
  background: var(--crimson);
  color: var(--bone);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.55em 1.05em;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--garnet);
}

.header-signin {
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--bone);
  font-size: 0.85rem;
  padding: 0.5em 0.95em;
  text-decoration: none;
  white-space: nowrap;
}

.header-lang {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cold-stone);
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.header-lang a {
  color: var(--cold-stone);
  text-decoration: none;
}

.header-lang a.is-active {
  color: var(--bone);
  border-bottom: 1px solid var(--crimson);
}

/* On wide screens the panel needs only the page links: the actions are
   already in the header. */
@media (min-width: 901px) {
  .site-nav__cta,
  .site-nav__signin,
  .site-nav__lang {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-actions {
    display: none;
  }

  /* The scene runs one header taller than the viewport until sticky
     engages: keep the deck and the poster callout out of the fight. */
  .hero-deck {
    bottom: var(--header-height, 56px);
  }

  .scene-callout[data-anchor="sheet"] {
    display: none;
  }

  .has-nav-toggle .site-header--open .site-nav li a {
    font-size: clamp(1.45rem, 6.4vw, 1.9rem);
    padding: 0.55em 0;
  }

  .has-nav-toggle .site-header--open .site-nav__cta {
    border-bottom: none;
    margin-top: 1.25rem;
  }

  .has-nav-toggle .site-header--open .site-nav__cta a {
    text-align: center;
  }

  .has-nav-toggle .site-header--open .site-nav__signin {
    border-bottom: none;
    margin-top: 0.5rem;
  }

  .has-nav-toggle .site-header--open .site-nav__signin a {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
  }

  .has-nav-toggle .site-header--open .site-nav__lang {
    border-bottom: none;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
  }

  .has-nav-toggle .site-header--open .site-nav__lang a {
    display: inline-block;
    padding: 0.4em 0.2em;
  }

  /* One-row header on phones: the descriptor goes, the mark shrinks a step. */
  .wordmark__tagline {
    display: none;
  }

  .wordmark .brand-lines {
    width: 30px;
    height: 23px;
  }

  .wordmark__mark {
    font-size: 1.02rem;
    letter-spacing: 0.13em;
  }

  .nav-toggle {
    padding: 0.45em 0.65em;
  }
}



/* ---- text effects ------------------------------------------------------ */

/* Scroll reveals. The classes are added by site.js, so a no-JS visit sees
   everything immediately; reduced-motion never gets them at all. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.9s var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal--in {
  opacity: 1;
  transform: none;
}

/* Word-mask reveal for section headings: each word rises out of its own
   clipping slot, slightly staggered — set in motion when the heading's own
   .reveal--in lands. */
.mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.mask__inner {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 0.85s var(--ease-out);
}

.reveal--in .mask__inner,
.masked-in .mask__inner {
  transform: translateY(0);
}

/* Ledger figures count up when revealed; keep the digits tabular so the
   card does not tremble while the number runs. */
.ledger-table .tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ---- sectors strip ------------------------------------------------------
   One slow line naming the worlds we review — the brief speaks to luxury
   residences and yachts as much as to sites. */
.sectors {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--charcoal);
  overflow: hidden;
}

.sectors__track {
  display: flex;
  width: max-content;
}

.sectors__run {
  display: inline-block;
  white-space: nowrap;
  padding: 0.95rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cold-stone);
}

@keyframes sectors-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sectors:hover .sectors__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mask__inner {
    transform: none;
    transition: none;
  }
}

/* ---- outcome key on phones: the description column was strangled ------- */
@media (max-width: 700px) {
  .outcome-list__item {
    grid-template-columns: 1.1rem 1fr;
    row-gap: 0.35rem;
  }

  .outcome-list__item dd {
    grid-column: 2;
  }
}


/* The nav must never fold under the brand: one line, always. */
.site-nav ul {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

@media (max-width: 639px) {
  .wordmark__tagline {
    display: none;
  }
}

/* ---- the opening: the mark, drawn ---------------------------------------
   Four lines draw themselves, the third slips out of register, the veil
   lifts. Built by site.js only — no JS, no veil. Transitions only. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}

.intro--done {
  opacity: 0;
  transform: translateY(-2.5%);
  visibility: hidden;
  pointer-events: none;
}

.intro__mark {
  width: clamp(96px, 15vw, 150px);
  height: auto;
}

.intro__mark line {
  transform-box: view-box;
  transform: scaleX(0);
  transform-origin: 14px 50%;
  transition: transform 0.5s var(--ease-out);
}

.intro__mark .intro__bleed {
  transform-origin: 30px 50%;
}

.intro--draw .intro__mark line {
  transform: scaleX(1);
}

.intro--slip .intro__mark .intro__bleed {
  transform: scaleX(1) translateX(9px);
}


/* ---- the finale ---------------------------------------------------------- */

.hero-act--center {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 0 clamp(1.25rem, 6vw, 4rem);
}

.hero-act--center .hero-act__line {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.hero-act--center .hero__ctas {
  margin-top: 1.8rem;
  justify-content: center;
}


/* ---- legibility pass ----------------------------------------------------
   Small mono annotations were whispering: sizes up a step, translucency
   out, full-contrast text. The page is read at arm's length, not under a
   loupe. */

.kicker {
  font-size: 0.8rem;
  color: var(--bone);
  opacity: 0.85;
}

.ledger-card__tag {
  font-size: 0.74rem;
}

.ledger-card__meta {
  font-size: 0.82rem;
}

.anatomy-keys__term {
  font-size: 0.8rem;
}

.finding-card__status {
  font-size: 0.76rem;
}

.source-chip {
  font-size: 0.87rem;
  color: var(--bone);
  background: var(--graphite);
  border: 1px solid var(--rule-strong);
  padding: 0.4em 0.7em;
  letter-spacing: 0.03em;
}

.finding-card__action-label {
  font-size: 0.76rem;
}

.ladder__eyebrow {
  font-size: 0.76rem;
}

/* Scene callouts: a solid plate, not a breath on the glass. */
.scene-callout {
  font-size: 0.93rem;
  background: rgba(9, 9, 11, 0.94);
  border: 1px solid rgba(241, 236, 229, 0.16);
  border-left: 2px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.55rem 0.9rem 0.6rem 0.95rem;
  max-width: 290px;
  color: var(--bone);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.scene-callout--bleed,
.scene-callout--hold {
  border-left-color: var(--crimson);
}

.scene-callout__kicker {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: #cfc9c1;
}

.scene-callout--bleed .scene-callout__amount {
  font-size: 1.08rem;
  color: #d98f99;
  margin-top: 0.25rem;
}

.scene-callout--hold .scene-callout__figure {
  font-size: 1.75rem;
}

@media (max-width: 900px) {
  .scene-callout {
    max-width: 220px;
    padding: 0.45rem 0.7rem 0.5rem 0.75rem;
  }

  .scene-callout--hold .scene-callout__figure {
    font-size: 1.4rem;
  }
}


/* Phones open on a poster, not a paragraph pile. */
@media (max-width: 760px) {
  .hero__facts {
    display: none;
  }

  .hero__support {
    font-size: 1.02rem;
  }
}

/* ---- scene atmosphere ---------------------------------------------------
   The void was reading as a black hole. A charcoal room with a low cream
   haze sits behind the canvas; each scene warms or cools it a touch. */
.hero-scene {
  background:
    radial-gradient(120% 65% at 50% 108%, rgba(216, 208, 192, 0.14), transparent 62%),
    radial-gradient(130% 90% at 75% 26%, rgba(37, 38, 44, 0.85), transparent 70%),
    linear-gradient(180deg, #0b0b0e 0%, #131318 56%, #17161a 100%);
  transition: background 0.8s ease;
}

.hero-scene[data-scene="1"] {
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(158, 185, 201, 0.24), transparent 64%),
    radial-gradient(130% 90% at 75% 26%, rgba(38, 48, 66, 0.9), transparent 72%),
    linear-gradient(180deg, #0d1016 0%, #141a26 56%, #1a2230 100%);
}

.hero-scene[data-scene="2"] {
  background:
    radial-gradient(120% 65% at 50% 108%, rgba(226, 210, 180, 0.17), transparent 62%),
    radial-gradient(130% 90% at 72% 24%, rgba(44, 40, 36, 0.85), transparent 70%),
    linear-gradient(180deg, #0d0c0d 0%, #161413 56%, #1b1713 100%);
}

.hero-scene[data-scene="3"],
.hero-scene[data-scene="4"] {
  background:
    radial-gradient(130% 55% at 38% 104%, rgba(226, 122, 62, 0.34), transparent 58%),
    radial-gradient(120% 70% at 66% 92%, rgba(163, 21, 40, 0.16), transparent 62%),
    linear-gradient(180deg, #0a0c14 0%, #191627 44%, #3a2233 76%, #58301f 100%);
}


/* ---- the sewn mouth ------------------------------------------------------
   Confidentiality made figurative: a mannequin face, mouth held by the
   same red thread that traces the money. The stitches sew themselves in
   when the closing section arrives (transition-delays on each stitch). */
.closing-figure {
  margin: 0 auto 1.6rem;
  width: 128px;
}

.closing-face .stitch {
  transition: stroke-dashoffset 0.45s var(--ease-out);
}

.closing-face .stitch--tail {
  transition-duration: 0.6s;
}

.closing-face .stitch-knot {
  opacity: 0;
  transition: opacity 0.3s ease 1.45s;
}

.reveal--in .closing-face .stitch {
  stroke-dashoffset: 0;
}

.reveal--in .closing-face .stitch-knot {
  opacity: 1;
}

/* No-JS or reduced motion: the face arrives already sewn. */
@media (prefers-reduced-motion: reduce) {
  .closing-face .stitch {
    stroke-dashoffset: 0 !important;
  }

  .closing-face .stitch-knot {
    opacity: 1 !important;
  }
}


/* ---- the poster opening --------------------------------------------------
   First paint is a hook: the mark's kicker, a huge title over the scene,
   the hint to scroll. Everything explanatory arrives later. */
.hero-act[data-act="s0a"] .hero__title {
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: 1.04;
  margin: 0.18em 0 0;
  max-width: 11em;
}

@media (max-width: 760px) {
  .hero-act[data-act="s0a"] {
    justify-content: flex-start;
    padding-top: 16vh;
  }

  .hero-act[data-act="s0a"] .hero__title {
    font-size: clamp(2.5rem, 11.5vw, 3.3rem);
  }

  .hero__scene--fallback {
    opacity: 0.22;
  }
}

/* The scroll hint breathes so the eye finds it (animation lives in the
   single gated no-preference block, injected below). */
@keyframes hint-drift {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* Facts strip, now living in the intro section. */
.section--intro .hero__ctas {
  margin-top: 1.6rem;
}

.section--intro .hero__facts {
  margin-top: 1.8rem;
}


.scene-callout__title {
  color: var(--bone);
  margin-top: 0.3rem;
  line-height: 1.35;
}


/* ---- the burger is the mark, framed ------------------------------------ */
.nav-toggle {
  padding: 0.5em 0.7em;
  border-color: var(--rule-strong);
  background: transparent;
}

.nav-toggle:hover {
  border-color: var(--bone);
}

.nav-toggle svg {
  display: block;
}

/* ---- symmetric phone header: mark | COSTBLEED | framed mark ------------ */
@media (max-width: 900px) {
  .has-nav-toggle .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .has-nav-toggle .wordmark {
    display: contents; /* mark and name become grid items, still one link */
  }

  .has-nav-toggle .wordmark .brand-lines {
    grid-column: 1;
  }

  .has-nav-toggle .wordmark__mark {
    grid-column: 2;
    justify-self: center;
    font-size: 1.12rem;
    letter-spacing: 0.2em;
  }

  .has-nav-toggle .nav-toggle {
    grid-column: 3;
  }
}

/* ---- phone poster: centred title, the kicker waits at the bottom ------- */
@media (max-width: 760px) {
  .hero-act[data-act="s0a"] {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0;
  }

  .hero-act[data-act="s0a"] .hero__title {
    margin-top: -8vh;
  }

}


/* The classic arrow under the hint. */
.hero-scroll-hint::after {
  content: "\2193";
  display: block;
  text-align: center;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0;
}

/* ---- the grand close ----------------------------------------------------
   Past the footer the site ends on the mark itself: monogram writ large,
   the four lines drawing themselves once more, contacts beneath. */
.brand-close {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  background:
    radial-gradient(85% 60% at 50% 62%, rgba(37, 38, 44, 0.6), transparent 75%),
    var(--obsidian);
  padding: 5rem 1.5rem;
}

.brand-close__mark .bc-line {
  transform-box: view-box;
  transform: scaleX(0);
  transform-origin: 14px 50%;
  transition: transform 0.55s var(--ease-out);
}

.brand-close__mark .bc-line--bleed {
  transform-origin: 30px 50%;
}

.brand-close.reveal--in .bc-line {
  transform: scaleX(1);
}

.brand-close__word {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: 0.18em;
  margin: 0.35em 0 0;
  color: var(--bone);
}

.brand-close__kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cold-stone);
  margin: 0;
}

.brand-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.brand-close__by {
  margin-top: 2.4rem;
  color: var(--cold-stone);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .brand-close__mark .bc-line {
    transform: scaleX(1) !important;
    transition: none;
  }
}


/* ---- film grain ---------------------------------------------------------
   Dark gradients band on cheap panels; a whisper of turbulence dithers
   them into continuous tone. Pure SVG, zero requests. */
.hero-scene::after,
.brand-close::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.brand-close {
  position: relative;
}

.brand-close > * {
  position: relative;
  z-index: 2;
}


/* ---- chapter rail -------------------------------------------------------
   The descent, named: five chapters down the left edge; the active one
   inked in with the fugitive tick. */
.hero-rail {
  position: absolute;
  right: clamp(1rem, 2.6vw, 2.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
  text-align: right;
}

@media (min-width: 1200px) {
  .hero-scroll--armed .hero-rail {
    display: flex;
  }
}

.hero-rail__item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cold-stone);
  opacity: 0.5;
  transition: opacity 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-out);
  position: relative;
  padding-left: 1rem;
}

.hero-rail__item {
  padding-left: 0;
  padding-right: 1rem;
}

.hero-rail__item::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.55rem;
  height: 2px;
  background: var(--rule-strong);
  transform: translateY(-50%);
  transition: background 0.35s ease, width 0.35s ease;
}

.hero-rail__item.is-on {
  color: var(--bone);
  opacity: 1;
  transform: translateX(-4px);
}

.hero-rail__item.is-on::before {
  background: var(--crimson);
  width: 0.8rem;
}

/* ---- the control deck ---------------------------------------------------
   A slim instrument bar along the bottom of the stage. */
.hero-deck {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(241, 236, 229, 0.12);
  background: linear-gradient(180deg, rgba(9, 9, 11, 0), rgba(9, 9, 11, 0.55));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cold-stone);
}

.hero-scroll--armed .hero-deck {
  display: flex;
}

.hero-deck__contact {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--crimson);
  padding-bottom: 0.15em;
}

.hero-deck__hint {
  text-align: center;
}

@media (max-width: 900px) {
  .hero-deck__brand,
  .hero-deck__contact {
    display: none;
  }

  .hero-deck {
    justify-content: center;
  }
}

/* The old floating hint retires in favour of the deck. */
.hero-scroll--armed .hero-scroll-hint {
  display: none;
}

/* ---- instrument frame ---------------------------------------------------
   Registration ticks in the four corners of the stage: the scene is a
   drawing under inspection. */
.hero-scene::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--rule-strong), var(--rule-strong)) top left / 22px 1px,
    linear-gradient(var(--rule-strong), var(--rule-strong)) top left / 1px 22px,
    linear-gradient(var(--rule-strong), var(--rule-strong)) top right / 22px 1px,
    linear-gradient(var(--rule-strong), var(--rule-strong)) top right / 1px 22px,
    linear-gradient(var(--rule-strong), var(--rule-strong)) bottom left / 22px 1px,
    linear-gradient(var(--rule-strong), var(--rule-strong)) bottom left / 1px 22px,
    linear-gradient(var(--rule-strong), var(--rule-strong)) bottom right / 22px 1px,
    linear-gradient(var(--rule-strong), var(--rule-strong)) bottom right / 1px 22px;
  background-repeat: no-repeat;
}


/* Vignette: the corners fall away like a lens. Painted with the grain in
   the same overlay so it sits above the canvas, below the copy. */
.hero-scene::after {
  opacity: 1;
  background-image:
    radial-gradient(120% 95% at 50% 46%, rgba(0, 0, 0, 0) 55%, rgba(4, 4, 6, 0.42) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}


/* ---- the recomposition --------------------------------------------------
   The closing section becomes a theatre when WebGL is willing: the drops
   converge into the mark, the fugitive slips, the wordmark surfaces. */
#close3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.brand-close-scroll--armed {
  height: 260vh;
}

.brand-close-scroll--armed .brand-close {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
}

/* Live: the static monogram yields to the particles; the words wait for
   the mark to assemble, then surface from below. */
.brand-close--live .brand-close__mark {
  display: none;
}

.brand-close--live {
  justify-content: flex-end;
  padding-bottom: 10vh;
}

.brand-close--live .brand-close__word,
.brand-close--live .brand-close__kicker,
.brand-close--live .brand-close__actions,
.brand-close--live .brand-close__by {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.brand-close--live .brand-close__kicker { transition-delay: 90ms; }
.brand-close--live .brand-close__actions { transition-delay: 180ms; }
.brand-close--live .brand-close__by { transition-delay: 280ms; }

.brand-close--final .brand-close__word,
.brand-close--final .brand-close__kicker,
.brand-close--final .brand-close__actions,
.brand-close--final .brand-close__by {
  opacity: 1;
  transform: none;
}


@media (min-width: 1200px) {
  .hero-progress {
    display: none !important;
  }
}
