/* ==========================================================================
   TGBS v5 — "The Gold Standard"
   --------------------------------------------------------------------------
   White paper, ink type, gold where it means something. Pages read like a
   well-made business document; dark "ink" chapters carry the drama.

   The logo's "GB" is a transparent cutout and only reads on dark, so the
   brand always sits on ink: the floating header capsule and the footer.

   Layers: main[data-theme="light"] (existing light scope, all pages but
   Radar) → [data-theme="ink"] chapters inside it → fixed header capsule.
   ========================================================================== */

:root {
  --v5-paper: #ffffff;
  --v5-mist: #f4f4f3;
  --v5-ink: #202020;
  --v5-gold: #d0b056;
  --v5-gold-text: #886e26;
  --v5-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --v5-r: 20px;
}

/* ------------------------------------------------------------ page base */

body.v5--light { background: var(--v5-paper); }
body.v5--light::before { opacity: 0; }
body.v5--light::after { opacity: 0.018; }
.v5--light main[data-theme="light"]::before { display: none; }
.v5--light main[data-theme="light"] { --ink-3: var(--v5-mist); }

/* Every page's first block clears the floating header. */
.v5 main > :first-child { padding-top: max(var(--section-y, 120px), 132px); }
.v5 main > .v5-hero:first-child { padding-top: clamp(128px, 12vw, 168px); }

/* ------------------------------------------------------- header capsule */

.v5 .header,
.v5 .header.is-stuck {
  top: 12px;
  height: auto;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.v5 .header__inner {
  width: min(1200px, 100% - 24px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(32, 32, 32, 0.9);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(233, 218, 175, 0.14);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.v5 .header.is-stuck .header__inner { box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); }
.v5 .nav { border: 0; background: none; }
.v5 .header__wa span { display: none; }
.v5 .header__wa { padding-inline: 12px; }
@media (min-width: 1180px) { .v5 .header__wa span { display: inline; } }
.v5 .header .btn--primary { background: var(--v5-gold); color: var(--v5-ink); box-shadow: none; }
.v5 .header .btn--primary:hover { background: #dec787; }

/* ------------------------------------------------------------- ink scope */

[data-theme="ink"] {
  --ink: #202020;
  --ink-2: #242424;
  --ink-3: #2a2a2a;
  --ink-4: #313131;
  --gold: #d0b056;
  --gold-lite: #dec787;
  --gold-hi: #f2e9cf;
  --fg: #ffffff;
  --fg-2: #bab8b5;
  --fg-3: #a4a29f;
  --fg-4: #92918d;
  --line: rgba(233, 218, 175, 0.12);
  --line-2: rgba(233, 218, 175, 0.22);
  --line-3: rgba(233, 218, 175, 0.34);
  --fill: rgba(255, 255, 255, 0.03);
  --fill-2: rgba(255, 255, 255, 0.05);
  --fill-3: rgba(255, 255, 255, 0.075);
  background: var(--v5-ink);
  color: var(--fg);
  position: relative;
  isolation: isolate;
}
.v5 main [data-theme="ink"] .btn--primary { background: var(--v5-gold); color: var(--v5-ink); }
.v5 main [data-theme="ink"] .btn--primary:hover { background: #dec787; }
.v5 main [data-theme="ink"] .btn--ghost { color: #fff; border-color: rgba(233, 218, 175, 0.34); }
.v5 main [data-theme="ink"] .btn--ghost:hover { border-color: var(--v5-gold); }
[data-theme="ink"] ::selection { background: var(--v5-gold); color: var(--v5-ink); }

/* Primary buttons on paper: solid ink, gold on hover. */
main[data-theme="light"] .btn--primary { background: var(--v5-ink); color: #fff; }
main[data-theme="light"] .btn--primary:hover { background: #000; }
main[data-theme="light"] .btn--ghost { color: var(--v5-ink); }

/* ------------------------------------------------------------ type kit */

.v5-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--v5-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.v5-label__n {
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--gold);
  font-weight: 600;
}
.v5-h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 18ch;
}
.v5 .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--gold); }
.v5-sub { color: var(--fg-2); font-size: var(--fs-lead); max-width: 52ch; margin-top: 16px; }
.v5-head { margin-bottom: clamp(36px, 5vw, 64px); }
.v5-head--center { text-align: center; display: grid; justify-items: center; }
.v5-head--center .v5-h2 { margin-inline: auto; }
.v5-head--split { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: end; justify-content: space-between; }
.v5-head--split .v5-sub { margin: 0; max-width: 42ch; }

/* ----------------------------------------------------------------- hero */

.v5-hero {
  position: relative;
  padding: clamp(120px, 15vw, 168px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.v5-hero::before {
  /* A faint ledger grid: the "document" the page is written on. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(32, 32, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 32, 32, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.v5-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.v5-hero__title {
  margin-top: 22px;
  font-size: clamp(3rem, 1.4rem + 4.6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 600;
  color: var(--v5-ink);
  animation: v5-rise 0.9s var(--ease) both;
}
.v5-hero__title .serif { color: var(--v5-gold-text); letter-spacing: -0.02em; }
.v5-hero__lead { margin-top: 24px; font-size: var(--fs-lead); color: var(--fg-2); max-width: 46ch; animation: v5-rise 0.9s 0.08s var(--ease) both; }
.v5-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: v5-rise 0.9s 0.16s var(--ease) both; }
.v5-hero__note { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: var(--fs-sm); color: var(--fg-2); }
.v5-hero__note svg { width: 16px; color: var(--v5-gold-text); flex: none; }

.v5-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-2);
}
.v5-ledger > div { padding: 16px 16px 0 0; }
.v5-ledger > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.v5-ledger dt { font-family: var(--v5-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.v5-ledger dd { margin-top: 6px; font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; color: var(--v5-ink); }

/* Project fan: three live case studies, spread like proofs on a desk. */
.v5-fan {
  position: relative;
  aspect-ratio: 1 / 0.92;
  --mx: 0;
  --my: 0;
}
.v5-fan__card {
  position: absolute;
  width: 78%;
  aspect-ratio: 8 / 5.4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--v5-mist);
  border: 1px solid rgba(32, 32, 32, 0.1);
  box-shadow: 0 30px 60px -28px rgba(32, 32, 32, 0.45), 0 2px 6px rgba(32, 32, 32, 0.06);
  transition: transform 0.7s var(--ease), box-shadow 0.4s var(--ease);
  animation: v5-deal 1s calc(0.2s + var(--i) * 0.12s) var(--ease) both;
}
.v5-fan__card:nth-child(1) { right: 0; top: 0; z-index: 3; transform: translate(calc(var(--mx) * 10px), calc(var(--my) * 8px)) rotate(2deg); }
.v5-fan__card:nth-child(2) { left: 0; top: 30%; z-index: 2; transform: translate(calc(var(--mx) * -6px), calc(var(--my) * 6px)) rotate(-4deg); }
.v5-fan__card:nth-child(3) { right: 8%; bottom: 0; z-index: 1; transform: translate(calc(var(--mx) * 4px), calc(var(--my) * -8px)) rotate(5deg); }
.v5-fan__card picture, .v5-fan__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v5-fan__card:hover, .v5-fan__card:focus-visible { z-index: 5; box-shadow: 0 40px 80px -30px rgba(32, 32, 32, 0.6); }
.v5-fan__card:nth-child(n):hover { transform: translateY(-8px) rotate(0deg) scale(1.02); }
.v5-fan__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  gap: 1px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(32, 32, 32, 0.86);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.3;
}
.v5-fan__tag b { font-size: 0.86rem; font-weight: 600; }
.v5-fan__tag span { color: #d6d3cc; }
.v5-stamp {
  position: absolute;
  z-index: 4;
  left: 6%;
  top: 4%;
  width: clamp(96px, 10vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--v5-ink);
  color: var(--v5-gold);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px -14px rgba(32, 32, 32, 0.6);
}
.v5-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: v5-spin 22s linear infinite; }
.v5-stamp text { font-family: var(--v5-mono); font-size: 9.4px; letter-spacing: 0.14em; fill: currentColor; }
.v5-stamp > span { font-size: 1.6rem; }

@keyframes v5-rise { from { transform: translateY(28px); opacity: 0; } }
@keyframes v5-deal { from { opacity: 0; translate: 0 40px; } }
@keyframes v5-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- trust */

.v5-trust { padding: 8px 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.v5-trust__k { font-family: var(--v5-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }

/* -------------------------------------------------------------- problem */

.v5-ink.section { padding-block: clamp(84px, 11vw, 150px); }
.v5-leak { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(40px, 5vw, 64px); background: var(--line); border: 1px solid var(--line); border-radius: var(--v5-r); overflow: hidden; }
.v5-leak__col { padding: clamp(24px, 3.4vw, 44px); background: var(--v5-ink); }
.v5-leak__col h3 { display: flex; align-items: center; gap: 12px; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.v5-leak__col h3 span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-3); color: var(--gold); font-family: var(--v5-mono); font-size: 0.8rem; }
.v5-leak__col ul { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 14px; }
.v5-leak__col li { position: relative; padding-left: 28px; color: var(--fg-2); }
.v5-leak__col li::before { content: "✕"; position: absolute; left: 0; top: 0; color: #e08a7a; font-size: 0.85rem; }
.v5-leak__turn { margin-top: clamp(32px, 4vw, 48px); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem); line-height: 1.35; letter-spacing: -0.02em; max-width: 40ch; color: var(--fg-2); }
.v5-leak__turn strong { color: var(--fg); font-weight: 600; background: linear-gradient(transparent 62%, rgba(208, 176, 86, 0.35) 62%); }

/* ------------------------------------------------------------------ fix */

.v5-halves { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.v5-half__k { font-family: var(--font-serif); font-style: italic; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); color: var(--v5-gold-text); line-height: 1; margin-bottom: 18px; }
.v5-svc { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.v5-svc li { border-bottom: 1px solid var(--line); }
.v5-svc a {
  display: grid;
  grid-template-columns: 44px 1fr auto 24px;
  gap: 16px;
  align-items: center;
  padding: 20px 6px;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
  border-radius: 12px;
}
.v5-svc a:hover, .v5-svc a:focus-visible { background: var(--v5-mist); padding-inline: 14px; }
.v5-svc__i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--v5-ink); color: var(--v5-gold); }
.v5-svc__i svg { width: 20px; }
.v5-svc__t { display: grid; gap: 3px; }
.v5-svc__t b { font-weight: 600; font-size: 1.06rem; letter-spacing: -0.015em; }
.v5-svc__t span { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.45; }
.v5-svc__p { display: grid; text-align: right; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.v5-svc__p small { font-weight: 400; font-size: 0.72rem; color: var(--fg-3); font-family: var(--v5-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.v5-svc__a svg { width: 18px; color: var(--fg-3); transition: transform 0.3s var(--ease), color 0.3s; }
.v5-svc a:hover .v5-svc__a svg { transform: translate(2px, -2px); color: var(--v5-ink); }

/* ---------------------------------------------------------------- proof */

.v5-proof { background: var(--v5-mist); }
.v5-proof .wi__card, .v5-proof .wi__stage { background: transparent; }

/* ------------------------------------------------------------- contract */

.v5-doc {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid rgba(32, 32, 32, 0.12);
  border-radius: 6px;
  box-shadow: 0 50px 90px -50px rgba(32, 32, 32, 0.45), 0 0 0 10px var(--v5-mist);
  padding: clamp(28px, 5vw, 64px);
}
.v5-doc::before {
  /* Gold edge, like a bound document. */
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 4px;
  background: var(--v5-gold);
  border-radius: 6px 0 0 6px;
}
.v5-doc__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--v5-ink); font-family: var(--v5-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
.v5-doc__list { list-style: none; padding: 0; }
.v5-doc__list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.v5-doc__n { font-family: var(--font-serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--v5-gold-text); }
.v5-doc__list h3 { font-size: 1.24rem; font-weight: 600; letter-spacing: -0.02em; }
.v5-doc__list p { margin-top: 6px; color: var(--fg-2); max-width: 60ch; }
.v5-doc__sign { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-top: 32px; }
.v5-doc__sign > div { display: grid; gap: 6px; min-width: 260px; }
.v5-doc__sig { font-family: var(--font-serif); font-style: italic; font-size: 2.8rem; line-height: 1; color: var(--v5-ink); transform: rotate(-4deg); transform-origin: left; }
.v5-doc__line { height: 1px; background: var(--v5-ink); width: 100%; }
.v5-doc__sign p { font-size: var(--fs-sm); color: var(--fg-2); }
.v5-doc__sign b { color: var(--v5-ink); }
.v5-doc__where { font-family: var(--v5-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* -------------------------------------------------------------- process */

.v5-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.v5-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--v5-gold), rgba(208, 176, 86, 0.1)); }
.v5-steps li { position: relative; padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.v5-steps__n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--v5-ink); border: 1px solid var(--v5-gold); color: var(--v5-gold); font-family: var(--v5-mono); font-size: 0.8rem; }
.v5-steps__meta { display: block; margin-top: 22px; font-family: var(--v5-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.v5-steps h3 { margin-top: 8px; font-size: 1.36rem; font-weight: 600; letter-spacing: -0.02em; }
.v5-steps p { margin-top: 10px; color: var(--fg-2); font-size: var(--fs-sm); }

/* ------------------------------------------------------------ estimator */

.v5-est { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.v5-est__intro { position: sticky; top: 110px; }
.v5-est__promise { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 10px; }
.v5-est__promise li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.v5-est__promise svg { width: 18px; color: var(--v5-gold-text); }
.v5-est__form {
  background: #fff;
  border: 1px solid rgba(32, 32, 32, 0.12);
  border-radius: 24px;
  padding: clamp(20px, 3.4vw, 40px);
  box-shadow: 0 40px 80px -50px rgba(32, 32, 32, 0.4);
  display: grid;
  gap: 28px;
}
.v5-est__form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.v5-est__form legend { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; margin-bottom: 14px; padding: 0; }
.v5-est__form legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--v5-ink); color: var(--v5-gold); font-family: var(--v5-mono); font-size: 0.72rem; }
.v5-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v5-chip { position: relative; cursor: pointer; }
.v5-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.v5-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(32, 32, 32, 0.18);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s;
}
.v5-chip span svg { width: 16px; }
.v5-chip:hover span { border-color: var(--v5-ink); }
.v5-chip input:checked + span { background: var(--v5-ink); color: #fff; border-color: var(--v5-ink); }
.v5-chip input:checked + span svg { color: var(--v5-gold); }
.v5-chip input:focus-visible + span { outline: 2px solid var(--v5-gold-text); outline-offset: 3px; }
.v5-chips--sm .v5-chip span { min-height: 40px; padding: 8px 14px; font-size: 0.86rem; }
.v5-est__who { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.v5-est__who legend { grid-column: 1 / -1; }
.v5-est__wide { grid-column: 1 / -1; }
.v5-est__who small { color: var(--fg-3); }
.v5-est__out { border-top: 1px dashed rgba(32, 32, 32, 0.25); padding-top: 22px; display: grid; gap: 16px; }
.v5-est__sum { display: grid; gap: 8px; }
.v5-est__empty { color: var(--fg-3); font-size: var(--fs-sm); }
.v5-est__line { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; }
.v5-est__line b { font-weight: 600; white-space: nowrap; }
.v5-est__line small { color: var(--fg-3); font-weight: 400; }
.v5-est__send { display: flex; flex-wrap: wrap; gap: 10px; }
.v5-est__err { color: #a3392b; font-size: var(--fs-sm); font-weight: 500; }
.v5-est__fine { font-size: 0.8rem; color: var(--fg-3); }

/* -------------------------------------------------------------- founder */

.v5-founder { background: var(--v5-mist); }
.v5-founder__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.v5-founder__img { border-radius: var(--v5-r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--v5-ink); }
.v5-founder__img img { width: 100%; height: 100%; object-fit: cover; }
.v5-founder__q { margin-top: 22px; font-family: var(--font-serif); font-size: clamp(1.7rem, 1.1rem + 2vw, 2.8rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--v5-ink); }
.v5-founder__who { margin-top: 18px; font-size: var(--fs-sm); color: var(--fg-2); }
.v5-founder__who b { color: var(--v5-ink); }

/* ---------------------------------------------------------------- radar */

.v5-radar {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--v5-r);
  background: radial-gradient(60% 120% at 100% 0%, rgba(208, 176, 86, 0.25), transparent 60%), var(--v5-ink);
  color: #fff;
  transition: transform 0.4s var(--ease);
}
.v5-radar:hover { transform: translateY(-3px); }
.v5-radar__k { font-family: var(--v5-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v5-gold); }
.v5-radar__t { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 26ch; }
.v5-radar__t .serif { color: var(--v5-gold); }
.v5-radar__b { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #d6d3cc; max-width: 64ch; }
.v5-radar__b svg { width: 16px; color: var(--v5-gold); }

/* ------------------------------------------------------------------ faq */

.v5-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.v5-faq > div:first-child { position: sticky; top: 110px; }

/* ---------------------------------------------------------------- close */

.v5-close { padding: clamp(96px, 13vw, 180px) 0; overflow: hidden; }
.v5-close::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(208, 176, 86, 0.22), transparent 70%); z-index: -1; }
.v5-close__in { text-align: center; display: grid; justify-items: center; gap: 32px; }
.v5-close__t { font-size: clamp(2.4rem, 1.2rem + 5vw, 5.4rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600; max-width: 16ch; }
.v5-close__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.v5-close__fine { color: var(--fg-2); font-size: var(--fs-sm); }

/* --------------------------------------------------- sticky quote pill */

.v5-pill {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--v5-ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(208, 176, 86, 0.5);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.v5-pill svg { width: 16px; color: var(--v5-gold); }
.v5-pill.is-on { transform: translate(-50%, 0); opacity: 1; }
.v5-pill:hover { background: #000; }

/* ------------------------------------------- other pages on white paper */

.v5--light .pagehead { position: relative; }
.v5--light main .pagehead__title,
.v5--light main .h1 { letter-spacing: -0.045em; }
.v5--light main .eyebrow { font-family: var(--v5-mono); letter-spacing: 0.08em; }
/* The v4 story/rings were tuned for dark. */
.v5--light .appbar { background: rgba(32, 32, 32, 0.92); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .v5-hero__grid { grid-template-columns: 1fr; }
  .v5-fan { max-width: 620px; width: 100%; margin-inline: auto; }
  .v5-halves { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .v5-pill { display: none; }
  .v5 .header { top: 8px; }
  .v5 .header__inner { padding: 6px 6px 6px 14px; }
  .v5 .header .btn--primary { display: none; }
  .v5-hero { padding-top: 112px; }
  .v5-ledger { grid-template-columns: repeat(2, 1fr); }
  .v5-ledger > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .v5-ledger > div:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 14px; }
  .v5-leak { grid-template-columns: 1fr; }
  .v5-steps { grid-template-columns: 1fr; gap: 28px; }
  .v5-steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--v5-gold), rgba(208, 176, 86, 0.1)); }
  .v5-steps li { padding: 0 0 0 66px; }
  .v5-steps__n { position: absolute; left: 0; top: 0; }
  .v5-steps__meta { margin-top: 4px; }
  .v5-est, .v5-faq, .v5-founder__grid { grid-template-columns: 1fr; }
  .v5-est__intro, .v5-faq > div:first-child { position: static; }
  .v5-founder__img { max-width: 320px; }
  .v5-svc a { grid-template-columns: 40px 1fr 20px; gap: 12px; }
  .v5-svc__i { width: 40px; height: 40px; }
  .v5-svc__p { grid-column: 2; grid-row: 2; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .v5-svc__a { grid-column: 3; grid-row: 1; }
  .v5-doc__list li { grid-template-columns: 44px 1fr; }
}

@media (max-width: 560px) {
  .v5-hero__title { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .v5-hero__actions .btn { width: 100%; justify-content: center; }
  .v5-est__who { grid-template-columns: 1fr; }
  .v5-est__send .btn { width: 100%; justify-content: center; }
  .v5-fan { aspect-ratio: 1 / 1; }
  .v5-fan__card { width: 86%; }
  .v5-stamp { width: 84px; }
  .v5-stamp text { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .v5-hero__title, .v5-hero__lead, .v5-hero__actions, .v5-fan__card { animation: none; }
  .v5-stamp svg { animation: none; }
  .v5-fan__card, .v5-pill, .v5-svc a, .v5-radar { transition: none; }
}

/* <picture> wrappers must fill their ratio boxes (see tgbs.css note). */
.v5-founder__img > picture,
.v5-fan__card > picture { display: block; width: 100%; height: 100%; }

/* Footer stays on ink: the logo's "GB" cutout only reads on dark. */
.v5 .footer { margin-top: 0; background: var(--v5-ink); color: #fff; position: relative; isolation: isolate; }
.v5 main { padding-bottom: 80px; }
.v5 main:has(> [data-theme="ink"]:last-child) { padding-bottom: 0; }
