/* =========================================================================
   MeritForge Scholars — design system
   Editorial direction: a long-form advertorial in a student publication.
   White ground, Baskerville headlines, crimson rules, article rhythm.
   The credential motifs (passport, ledger, stamp) survive as content.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Ink & ground */
  --crimson:      #951c21;   /* the accent. rules, links, numerals */
  --crimson-dk:   #7d1519;
  --maroon:       #700010;   /* deep band: CTA, pull quote */
  --maroon-deep:  #55000c;
  --ink:          #2a2a2a;   /* body copy */
  --ink-soft:     #5c5c5c;
  --ink-faint:    #8f8f8f;
  --paper:        #ffffff;   /* the page is white */
  --paper-2:      #f7f5f3;   /* alternating band */
  --paper-3:      #ffffff;
  --rule:         rgba(42, 42, 42, .13);
  --rule-strong:  rgba(42, 42, 42, .3);
  --rule-light:   rgba(255, 255, 255, .2);

  /* Legacy aliases — keeps older component rules resolving */
  --oxblood:      var(--maroon);
  --oxblood-deep: var(--maroon-deep);
  --oxblood-lift: #8a1020;
  --vermilion:    var(--crimson);
  --vermilion-dk: var(--crimson-dk);

  /* Type */
  --display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --body:    "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-xs:   .6875rem;
  --fs-sm:   .8125rem;
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0938rem);
  --fs-lg:   clamp(1.0625rem, .99rem + .34vw, 1.25rem);
  --fs-xl:   clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --fs-h3:   clamp(1.25rem, 1.1rem + .68vw, 1.65rem);
  --fs-h2:   clamp(1.6rem, 1.28rem + 1.42vw, 2.4rem);
  --fs-h1:   clamp(2rem, 1.42rem + 2.6vw, 3.5rem);

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --radius: 3px;          /* documents are not rounded */
  --radius-card: 6px;

  --shadow-card: 0 1px 2px rgba(42,42,42,.05), 0 10px 28px -14px rgba(42,42,42,.22);
  --shadow-lift: 0 1px 3px rgba(42,42,42,.07), 0 22px 48px -22px rgba(42,42,42,.3);

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--vermilion);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-cover :focus-visible { outline-color: #ffb3ab; }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-5); font-size: var(--fs-sm);
  font-weight: 600; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Typography primitives ------------------------------------- */
/* Baskerville is wide and large on the body — it wants tighter leading
   and negative tracking at headline sizes, and no faux weights. */
.display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.016em;
  text-wrap: balance;
}

.h1 { font-size: var(--fs-h1); line-height: 1.1; }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.28; letter-spacing: -.01em; }
.h4 { font-size: var(--fs-xl); line-height: 1.32; letter-spacing: -.008em; }

/* Eyebrow — reads as a field label on a form, not a marketing kicker */
.eyebrow {
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vermilion-dk);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  flex: none;
}
.on-cover .eyebrow { color: #f0a49c; }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}
.on-cover .lede { color: rgba(255, 240, 238, .78); }

.prose p + p { margin-top: var(--sp-4); }
.prose { max-width: 68ch; text-wrap: pretty; }

.mono { font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: .02em; }
.muted { color: var(--ink-soft); }

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(var(--sp-8), 7vw, var(--sp-9)); }
.section--tight { padding-block: clamp(var(--sp-7), 5vw, var(--sp-8)); }
.section--paper2 { background: var(--paper-2); }
.section--cover { background: var(--oxblood); color: #fdf6f5; }
.section--ink { background: var(--maroon-deep); color: #fdf4f4; }
.section--white  { background: var(--paper-3); }
.section-head { max-width: 66ch; margin-bottom: var(--sp-7); }
.section-head .lede { margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Security-paper tint: hairline guilloche wash, barely there */
.security-tint { position: relative; isolation: isolate; }
.security-tint::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(
    -32deg,
    rgba(149, 28, 33, .05) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: .82rem 1.45rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--vermilion); color: #fff; }
.btn--primary:hover { background: var(--vermilion-dk); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #3a2c2e; }

.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(42,42,42,.04); }

.on-cover .btn--ghost { border-color: var(--rule-light); color: #fdf6f5; }
.on-cover .btn--ghost:hover { border-color: #fdf6f5; background: rgba(255,255,255,.08); }

.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Text link with a ruled underline that thickens on hover */
.link {
  text-decoration: none;
  font-weight: 600;
  background-image: linear-gradient(var(--vermilion), var(--vermilion));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .22s var(--ease), color .18s var(--ease);
}
.link:hover { background-size: 100% 2px; color: var(--vermilion-dk); }
.on-cover .link { background-image: linear-gradient(#f0a49c, #f0a49c); }
.on-cover .link:hover { color: #f6bfb9; }

/* ---------- 6. Masthead -------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s var(--ease);
}
.masthead[data-scrolled="true"] { box-shadow: 0 1px 14px -6px rgba(42,42,42,.3); }
.masthead__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 78px;
}

/* The company logo carries the wordmark, so the brand link is the image
   plus a screen-reader name — no duplicated text. */
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand__logo { height: 50px; width: auto; display: block; }
@media (max-width: 480px) { .brand__logo { height: 38px; } }

.colophon__mark .brand__logo { height: 86px; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--sp-5); }
.nav__link {
  text-decoration: none; font-size: var(--fs-sm); font-weight: 550;
  color: var(--ink-soft); padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.nav__link:hover { color: var(--ink); border-color: var(--vermilion); }
.nav__link[aria-current="page"] { color: var(--ink); border-color: var(--vermilion); }

.masthead .btn { padding: .6rem 1.05rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 0 9px;
  background: transparent; border: 1px solid var(--rule-strong);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .22s var(--ease), opacity .16s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-panel {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: var(--sp-4) 0 var(--sp-6);
}
.nav-panel[hidden] { display: none; }
.nav-panel__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; font-weight: 600;
}
.nav-panel__link span { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-faint); }
.nav-panel .btn { margin-top: var(--sp-5); }

@media (min-width: 1000px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

/* ---------- 7. Masthead cover / hero -------------------------------------
   The editorial opener: a crimson hairline across the top, a kicker, a
   Baskerville headline and a standfirst. No dark ground — the page reads
   as an article from the first line.
------------------------------------------------------------------------ */
.cover {
  position: relative;
  background: var(--paper);
  border-top: 3px solid var(--crimson);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.cover__guilloche {
  position: absolute; z-index: 0;
  top: 50%; right: -26%;
  width: min(820px, 92vw); aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: .38;
  pointer-events: none;
  color: rgba(149, 28, 33, .1);
}
.cover__inner { position: relative; z-index: 1; }

/* Publication kicker — the line an advertorial opens with */
.kicker {
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--crimson);
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.kicker::after {
  content: ""; flex: 1 1 40px; height: 1px; min-width: 40px;
  background: var(--rule-strong);
}

/* Standfirst — the deck under an editorial headline */
.deck {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, .96rem + .42vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 60ch;
  text-wrap: pretty;
}

/* Byline row */
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.byline strong { color: var(--ink); font-weight: 700; }
.byline .dot { color: var(--crimson); }

.hero {
  display: grid;
  gap: clamp(var(--sp-7), 6vw, var(--sp-8));
  padding-block: clamp(var(--sp-8), 9vw, 7.5rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--sp-8); }
}

.hero__title { margin-bottom: var(--sp-5); }
.hero__title .affirm { display: block; color: var(--ink); }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__meta span { display: inline-flex; align-items: center; gap: var(--sp-5); }
.hero__meta span + span::before { content: "\00B7"; color: var(--crimson); }
.hero .btn-row { margin-top: var(--sp-6); }

/* Compact page header for interior pages */
.pagehead { padding-block: clamp(var(--sp-7), 6vw, var(--sp-9)); }
.pagehead .lede { margin-top: var(--sp-5); }
.pagehead .btn-row { margin-top: var(--sp-6); }

.crumb {
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-5);
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--crimson); }
.crumb .sep { color: var(--crimson); padding-inline: var(--sp-2); }

/* ---------- 8. Scholar Passport (signature component) -------------------- */
.passport {
  position: relative;
  background: linear-gradient(168deg, #ffffff 0%, #fbf9f8 58%, var(--paper-2) 100%);
  color: var(--ink);
  border-radius: var(--radius-card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift);
  max-width: 480px;
  width: 100%;
}
.hero .passport { margin-inline: auto; transform: rotate(-1.15deg); }
@media (min-width: 1000px) { .hero .passport { margin-inline: 0 auto; } }

.passport__wash { /* security wash inside the card */
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-image: repeating-linear-gradient(58deg, rgba(149,28,33,.045) 0 1px, transparent 1px 7px);
}

.passport__bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: .7rem var(--sp-5);
  background: var(--oxblood-deep);
  color: #fdf6f5;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .15em; text-transform: uppercase;
}
.passport__bar .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--vermilion); flex: none; }
.passport__bar .spacer { margin-left: auto; }
.passport__chip {
  border: 1px solid rgba(255,255,255,.34);
  padding: 2px 8px; border-radius: 100px;
  letter-spacing: .1em; font-size: .625rem;
}

.passport__body { position: relative; z-index: 2; padding: var(--sp-5); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.field__label {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
  display: block; margin-bottom: 3px;
}
.field__value { font-family: var(--mono); font-size: .9375rem; font-weight: 500; letter-spacing: .01em; }
.field--wide { grid-column: 1 / -1; }

.passport__tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-top: 1px solid var(--rule); padding-top: var(--sp-4);
}
.tab {
  background: transparent; border: 1px solid transparent;
  padding: 5px 9px; border-radius: 100px; cursor: pointer;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.tab:hover { border-color: var(--rule-strong); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.passport__panel { margin-top: var(--sp-4); min-height: 138px; }
.passport__panel[hidden] { display: none; }
.panel-row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: .48rem 0;
  border-bottom: 1px dotted var(--rule-strong);
  font-size: var(--fs-sm);
}
.panel-row:last-child { border-bottom: 0; }
/* Keep the final value clear of the seal zone */
.hero .panel-row:last-child { padding-right: 88px; }
.panel-row dt { color: var(--ink-soft); }
.panel-row dd { font-family: var(--mono); font-size: var(--fs-xs); text-align: right; letter-spacing: .01em; }

.mrz {
  position: relative; z-index: 2;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .06em;
  background: #fffdfc;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  padding: var(--sp-3) var(--sp-5);
  color: var(--ink-soft);
  overflow: hidden; white-space: nowrap;
  line-height: 1.7;
}

/* The stamp. It presses down once, then stays. */
.stamp {
  position: absolute; z-index: 3;
  width: 118px; height: 118px;
  display: grid; place-items: center; text-align: center;
  border: 2.5px solid var(--vermilion);
  border-radius: 50%;
  color: var(--vermilion);
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.5;
  opacity: .88;
  mix-blend-mode: multiply;
}
.stamp::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--vermilion); border-radius: 50%; opacity: .55;
}
/* Sits in the card's seal zone, bleeding over the machine-readable strip
   the way an ink stamp lands on a real document. */
.stamp--hero { width: 104px; height: 104px; right: 14px; bottom: 8px; transform: rotate(-13deg); opacity: .8; }
@media (max-width: 560px) { .stamp--hero { width: 88px; height: 88px; right: 10px; font-size: .5625rem; } }

@keyframes press {
  0%   { opacity: 0; transform: rotate(-13deg) scale(2.1); }
  62%  { opacity: .95; transform: rotate(-13deg) scale(.94); }
  100% { opacity: .88; transform: rotate(-13deg) scale(1); }
}
.js .stamp--hero { animation: press .62s var(--ease) 1s backwards; }

/* ---------- 9. Ecosystem strip ------------------------------------------- */
.ecosystem {
  background: var(--paper-2);
  color: var(--ink);
  padding-block: var(--sp-5);
  border-block: 1px solid var(--rule);
}
.ecosystem__list { display: grid; gap: var(--sp-4); }
@media (min-width: 880px) { .ecosystem__list { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); } }
.ecosystem__item { display: flex; align-items: baseline; gap: var(--sp-3); font-family: var(--mono); font-size: var(--fs-sm); }
.ecosystem__item b { font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.ecosystem__item span { color: var(--ink-soft); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.ecosystem__item .sep { color: var(--crimson); }

/* ---------- 10. Pathway (a real sequence, so numbers are earned) --------- */
.pathway { counter-reset: step; display: grid; gap: 0; }
@media (min-width: 900px) { .pathway { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: step;
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-6) 0;
  border-top: 1px solid var(--rule-strong);
}
@media (min-width: 900px) {
  .step { padding: var(--sp-6) var(--sp-5) var(--sp-7) var(--sp-5); }
  .step:first-child { padding-left: 0; }
  .step + .step { border-left: 1px solid var(--rule); }
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; color: var(--vermilion);
  margin-bottom: var(--sp-4);
}
.step__title {
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.step p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.6; }

/* ---------- 11. Cards ---------------------------------------------------- */
.card {
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card__index {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; color: var(--vermilion); margin-bottom: var(--sp-2);
}
.card__title { font-size: var(--fs-lg); font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.6; }
.card--link { text-decoration: none; }
.card--link:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-card); transform: translateY(-2px); }

/* Two-column "what makes it different" — claims list under a heading */
.claims { border-top: 2px solid var(--ink); padding-top: var(--sp-5); }
.claims__title {
  font-family: var(--mono); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--sp-5);
}
.claims li { display: flex; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--rule); }
.claims li:last-child { border-bottom: 0; }
.claims .mark {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%; border: 1.5px solid var(--vermilion);
  display: grid; place-items: center;
  color: var(--vermilion); font-size: .6rem; line-height: 1;
}
.claims p { font-size: var(--fs-sm); line-height: 1.62; color: var(--ink-soft); }
.claims strong { color: var(--ink); font-weight: 650; display: block; margin-bottom: 2px; font-size: var(--fs-base); }

/* ---------- 12. Contribution ledger -------------------------------------- */
.ledger {
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  overflow-x: auto;
}
.ledger table { width: 100%; border-collapse: collapse; min-width: 620px; }
.ledger caption {
  text-align: left; padding: var(--sp-5) var(--sp-5) 0;
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.ledger th {
  text-align: left; padding: var(--sp-4) var(--sp-5);
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  white-space: nowrap;
}
.ledger td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
  vertical-align: top;
}
.ledger tr:last-child td { border-bottom: 0; }
.ledger tbody tr:nth-child(odd) { background: rgba(149,28,33,.022); }
.ledger td:first-child { font-weight: 650; }
.ledger .figure { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-soft); }

.verified-by {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .625rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--vermilion-dk);
  border: 1px solid rgba(149,28,33,.34);
  border-radius: 100px; padding: 3px 9px;
  white-space: nowrap;
}
.verified-by::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--vermilion); }

/* ---------- 13. Pull quote (the integrity rule) -------------------------- */
.tenet { position: relative; }
.tenet blockquote {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.6rem);
  line-height: 1.18; letter-spacing: -.018em;
  max-width: 22ch;
  text-wrap: balance;
}
.tenet blockquote em { font-style: normal; color: var(--vermilion); }
/* On the dark cover, vermilion falls below contrast — lift it to rose */
.on-cover .tenet blockquote em { color: #f4a79e; }
.tenet__note { margin-top: var(--sp-6); max-width: 46ch; }
@media (min-width: 900px) {
  .tenet__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--sp-8); align-items: end; }
  .tenet__note { margin-top: 0; }
}

/* ---------- 14. Pricing -------------------------------------------------- */
.plan {
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-direction: column;
  position: relative;
}
.plan--feature { border-color: var(--oxblood); border-width: 2px; }
.plan__tag {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--vermilion-dk);
  margin-bottom: var(--sp-4);
}
.plan__price {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  line-height: 1; letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: .35rem;
}
.plan__price .unit { font-family: var(--mono); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .1em; color: var(--ink-soft); }
.plan__for { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: var(--sp-3); }
.plan__list { margin: var(--sp-5) 0; border-top: 1px solid var(--rule); }
.plan__list li {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: .6rem 0; border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm); line-height: 1.5;
}
.plan__list li::before { content: "\002B"; color: var(--vermilion); font-family: var(--mono); font-size: var(--fs-xs); margin-top: 3px; }
.plan .btn { margin-top: auto; }

.note-band {
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: rgba(149,28,33,.03);
}
.note-band .eyebrow { margin-bottom: var(--sp-3); }
.note-band p { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 76ch; }

/* ---------- 15. FAQ / disclosure ----------------------------------------- */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--sp-5) var(--sp-6) var(--sp-5) 0;
  font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.008em;
  position: relative;
  transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--vermilion-dk); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--vermilion); border-bottom: 1.5px solid var(--vermilion);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__body { padding-bottom: var(--sp-5); color: var(--ink-soft); max-width: 72ch; }
.faq .faq__body p + p { margin-top: var(--sp-3); }

/* ---------- 16. Forms ---------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 680px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.form__label .req { color: var(--vermilion); }

.input {
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: .72rem .85rem;
  font-size: var(--fs-base);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  width: 100%;
}
.input:hover { border-color: var(--ink-soft); }
.input:focus { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(149,28,33,.13); outline: none; }
textarea.input { min-height: 128px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

.form__hint { font-size: var(--fs-xs); color: var(--ink-faint); }
.form__error { font-size: var(--fs-xs); color: var(--vermilion-dk); font-weight: 600; min-height: 1em; }
.input[aria-invalid="true"] { border-color: var(--vermilion); }

.choice-set { display: grid; gap: var(--sp-3); }
@media (min-width: 560px) { .choice-set { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: var(--sp-4); cursor: pointer; background: var(--paper-3);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.choice:hover { border-color: var(--ink-soft); }
.choice input { margin-top: 4px; accent-color: var(--vermilion); flex: none; }
.choice__name { font-weight: 650; display: block; }
.choice__meta { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--vermilion); background: rgba(149,28,33,.045); }

.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-soft); }
.consent input { margin-top: 5px; accent-color: var(--vermilion); flex: none; }

.form-status {
  border: 1px solid var(--vermilion);
  border-left-width: 4px;
  background: rgba(149,28,33,.05);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.form-status[hidden] { display: none; }
.form-status__title { font-weight: 700; margin-bottom: var(--sp-2); }
.form-status p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ---------- 17. Verify lookup -------------------------------------------- */
.lookup {
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: clamp(var(--sp-5), 4vw, var(--sp-7));
}
.lookup__form { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.lookup__form .form__field { flex: 1 1 260px; }
.lookup__samples { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.chip {
  font-family: var(--mono); font-size: var(--fs-xs);
  border: 1px solid var(--rule-strong); border-radius: 100px;
  padding: 4px 10px; background: transparent; cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.chip:hover { border-color: var(--vermilion); color: var(--vermilion-dk); }

.result { margin-top: var(--sp-6); }
.result[hidden] { display: none; }
/* A returned record fills the panel it was looked up in */
.result .passport { max-width: none; }
.result .panel-row dt { flex: none; max-width: 38%; }
.result__none {
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--ink);
  padding: var(--sp-5); border-radius: var(--radius); background: var(--paper);
}

.scanning {
  font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-soft);
  display: flex; align-items: center; gap: var(--sp-3);
}
.scanning::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--vermilion); border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 18. Footer --------------------------------------------------- */
.colophon {
  background: var(--paper);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--fs-sm);
}
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--crimson); }
.colophon__top { display: grid; gap: var(--sp-7); }
@media (min-width: 900px) { .colophon__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--sp-6); } }

.colophon__mark p { margin-top: var(--sp-4); max-width: 34ch; line-height: 1.6; }

.colophon__title {
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: var(--sp-4);
}
.colophon__list li { padding: 5px 0; }

/* Sibling product lockup — sits between the link columns and the legal bar */
.colophon__product {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-4) var(--sp-6);
}
.colophon__product .colophon__title { margin-bottom: var(--sp-2); }
.colophon__product p { max-width: 44ch; line-height: 1.6; color: var(--ink); font-weight: 600; }
/* Plate keeps the partner's own colours off the footer ground */
.colophon__plate {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-3);
  padding: var(--sp-4) var(--sp-6);
}
.colophon__plate img { height: 78px; width: auto; }

.colophon__bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.colophon__bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ---------- 19. CTA band ------------------------------------------------- */
/* The one dark band on an otherwise white page — it has to carry its own
   colours rather than rely on the light-ground defaults. */
.section--ink .eyebrow { color: #f0a49c; }
.section--ink .lede    { color: rgba(253, 244, 244, .78); }
.section--ink .btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fdf4f4; }
.section--ink .btn--ghost:hover { border-color: #fdf4f4; background: rgba(255, 255, 255, .09); }
.section--ink :focus-visible { outline-color: #ffb3ab; }

.cta-band { text-align: left; }
.cta-band .btn-row { margin-top: var(--sp-6); }
@media (min-width: 900px) {
  .cta-band__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-8); }
  .cta-band .btn-row { margin-top: 0; flex: none; }
}

/* ---------- 20. Motion --------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 21. Glyphs & diagrams ---------------------------------------
   All artwork is drawn inline so it inherits the page's palette and fonts,
   and so it costs no extra request. Stroke weights match the hairline rules
   used elsewhere — these are technical marks, not UI icons.
------------------------------------------------------------------------ */
.glyph {
  width: 30px; height: 30px; flex: none;
  fill: none;
  stroke: var(--vermilion);
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
  overflow: visible;
}
.glyph--ink { stroke: var(--ink); }

.step__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.step__head::after {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .14em; color: var(--vermilion);
}
/* The number moves into the head row when a glyph is present */
.step:has(.step__head)::before { content: none; }

.card__glyph { margin-bottom: var(--sp-2); }

/* Figures */
.figure { margin: 0; }
.figure__frame {
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--sp-5) 0;
  overflow-x: auto;
}
.figure__frame svg { display: block; min-width: 660px; width: 100%; height: auto; }
.figure figcaption {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm); color: var(--ink-soft); max-width: 72ch;
}
.figure figcaption b { color: var(--ink); font-weight: 650; }

/* Diagram type roles */
.dg-eyebrow { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; fill: var(--ink-faint); text-transform: uppercase; }
.dg-title   { font-family: var(--body); font-size: 13px; font-weight: 650; fill: var(--ink); }
.dg-body    { font-family: var(--body); font-size: 11px; fill: var(--ink-soft); }
.dg-mono    { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; fill: var(--vermilion-dk); text-transform: uppercase; }

.dg-node    { fill: #fffdfc; stroke: var(--rule-strong); stroke-width: 1; }
.dg-node--seal { fill: rgba(149, 28, 33, .05); stroke: var(--vermilion); }
.dg-node--halt { fill: var(--paper-2); stroke: var(--rule-strong); stroke-dasharray: 3 3; }
.dg-flow    { fill: none; stroke: var(--rule-strong); stroke-width: 1.2; }
.dg-flow--accent { stroke: var(--vermilion); }
.dg-flow--halt   { stroke: var(--ink-faint); stroke-dasharray: 4 3; }
.dg-rule    { stroke: var(--rule); stroke-width: 1; }

/* ---------- 22. Editorial article components -----------------------------
   The advertorial rhythm: numbered insights, an indented pull quote, and a
   CTA block repeated after each insight rather than saved for the end.
------------------------------------------------------------------------ */
.article { max-width: 720px; margin-inline: auto; }
.article > * + * { margin-top: var(--sp-5); }
.article p { color: var(--ink-soft); line-height: 1.78; }
.article p strong { color: var(--ink); font-weight: 700; }
.article h3 { margin-top: var(--sp-7); }

/* A numbered insight — the page's main structural unit */
.insight { counter-increment: insight; }
.insight + .insight { margin-top: var(--sp-8); padding-top: var(--sp-8); border-top: 1px solid var(--rule); }
.insights { counter-reset: insight; }

.insight__label {
  display: flex; align-items: baseline; gap: var(--sp-3);
  font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: var(--sp-4);
}
.insight__label::before {
  content: "Insight " counter(insight);
  white-space: nowrap;
  background: var(--crimson);
  color: #fff;
  padding: 4px 9px;
  border-radius: 2px;
  letter-spacing: .1em;
}
.insight__title { margin-bottom: var(--sp-4); }
.insight__standfirst {
  font-family: var(--display);
  font-size: var(--fs-lg);
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: var(--sp-5);
}

/* Pull quote — indented off the measure with a crimson rule, as in print */
.pullquote {
  margin: var(--sp-7) 0;
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  border-left: 3px solid var(--crimson);
}
.pullquote p {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink);
}
.pullquote cite {
  display: block; margin-top: var(--sp-4);
  font-family: var(--body); font-style: normal;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.pullquote cite b { color: var(--ink); font-weight: 700; }

/* Inline CTA — repeated after each insight */
.cta-inline {
  margin-top: var(--sp-6);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--crimson);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  background: var(--paper-2);
}
.cta-inline__title { font-weight: 700; font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.cta-inline p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--sp-4); max-width: 62ch; }
.cta-inline .btn-row { margin: 0; }

/* Numbered checklist — the "N ways to…" block that closes the article */
.numlist { counter-reset: num; border-top: 1px solid var(--rule); }
.numlist > li {
  counter-increment: num;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
}
.numlist > li::before {
  content: counter(num) ".";
  font-family: var(--display); font-weight: 700;
  font-size: 1.3rem; line-height: 1.2;
  color: var(--crimson);
}
.numlist h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); line-height: 1.35; }
.numlist p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.7; }

/* ---------- 23. Premium partners -----------------------------------------
   Logo lockups sit on their own white plate so partner brand colours never
   fight the crimson palette. The plate is fixed-height and the logo is
   contained, so marks of different proportions still line up optically.
------------------------------------------------------------------------ */
.partners { display: grid; gap: var(--sp-5); }
@media (min-width: 800px) { .partners { grid-template-columns: repeat(2, 1fr); } }

.partner {
  display: flex; flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--crimson);
  border-radius: var(--radius);
  padding: var(--sp-6);
}

.partner__tier {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  align-self: flex-start;
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--crimson);
  border: 1px solid rgba(149, 28, 33, .32);
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: var(--sp-5);
}
.partner__tier::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--crimson);
}

.partner__plate {
  display: flex; align-items: center; justify-content: flex-start;
  min-height: 92px;
  padding: var(--sp-4) 0 var(--sp-5);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--sp-5);
}
.partner__plate img {
  max-height: 62px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.partner__role {
  font-family: var(--mono); font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-2);
}
.partner__name { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-3); }
.partner p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.7; }
.partner__links {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
}

/* Compact lockup for the footer */
.partner-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-7);
}
.partner-strip img { max-height: 34px; width: auto; opacity: .8; transition: opacity .18s var(--ease); }
.partner-strip a:hover img { opacity: 1; }

/* ---------- 24. Utilities ------------------------------------------------ */
.stack-4 > * + * { margin-top: var(--sp-4); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.stack-6 > * + * { margin-top: var(--sp-6); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
@media print {
  .masthead, .nav-panel, .cta-band, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
