
/* Layout concept: the website edition of the Equity Pitch Deck (v28). Near-black field, one warm-gold accent, bold Cambria-style headlines,
   topographic contour texture as the only ornament; substance sits one click away in disclosures. */
:root {
  /* Color — single committed dark theme (matched to the pitch deck: 0D0E11 field, 17191E cards, C9A24A gold; token names kept from v1) */
  --navy: #0D0E11;          /* page field */
  --navy-deep: #0A0B0D;     /* alternate band, footer */
  --navy-raised: #131519;   /* header, raised bands */
  --charcoal: #17191E;      /* cards */
  --charcoal-2: #22252B;    /* card hover / inputs */
  --line: #2A2D34;          /* hairlines */
  --line-strong: #3D414A;
  --line-input: #6E7380;    /* form control borders (WCAG 1.4.11: 3:1 on card and band fields) */
  --gold: #C9A24A;          /* accent */
  --gold-bright: #E3C77E;   /* hover */
  --gold-dim: #8C7130;      /* topo lines, decorative */
  --text: #F3EFE6;          /* off-white */
  --text-2: #DCD7CC;        /* secondary (lightened for contrast, PPM 004 update) */
  --text-3: #BDB8AD;        /* tertiary / captions (lightened for contrast) */
  --ok: #A7BA8F;            /* status: complete */
  --info: #8FB3C9;          /* status: underway */
  --warn: #D9A65A;          /* status: pending */
  --muted-pill: #A29D92;    /* status: planned (AA 4.5:1 on all card/band fields) */
  --focus: #E3C77E;

  /* Type */
  --font-display: "Newsreader", "Caladea", Georgia, serif;
  --font-body: "Instrument Sans", "Carlito", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Instrument Sans", "Carlito", "Segoe UI", system-ui, sans-serif; /* deck has no mono; labels use the body face, letterspaced */

  /* Type scale (1.25 minor third-ish, clamped) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.125rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-xl: clamp(2rem, 1.5rem + 2vw, 2.875rem);
  --fs-2xl: clamp(2.375rem, 1.6rem + 3.4vw, 4rem);

  /* Space */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --radius: 6px;
  --maxw: 1200px;
  --header-h: 92px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--navy); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: var(--s2) var(--s4); z-index: 100; }
.skip-link:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) + 8px); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
/* H1-13: where the window is about as wide as the content (1150-1247 px) the side gutter grows to 48 px, so text never runs 24 px from the screen edge; at 1248 px and wider the centred column already gives at least 48 px */
@media (min-width: 1150px) and (max-width: 1247.98px) { .wrap { padding-left: max(24px, min(48px, calc(648px - 50vw)), env(safe-area-inset-left, 0px)); padding-right: max(24px, min(48px, calc(648px - 50vw)), env(safe-area-inset-right, 0px)); } }
@media (max-width: 480px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: var(--s8); position: relative; }
.band--tight { padding-block: var(--s7); }
.band--deep { background: var(--navy-deep); }
.band--raised { background: var(--navy-raised); }
.band + .band:not(.band--deep):not(.band--raised) { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 880px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); max-width: 46rem; }
.section-head--row { flex-direction: row; justify-content: space-between; align-items: end; max-width: none; flex-wrap: wrap; gap: var(--s4); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--text); letter-spacing: -0.005em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0; }
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.lede { font-size: var(--fs-md); color: var(--text-2); line-height: 1.55; max-width: 40em; }
.prose { max-width: 66ch; color: var(--text-2); display: flex; flex-direction: column; gap: var(--s4); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--s2); }
.prose li::marker { color: var(--gold); }
.meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.fine { font-size: var(--fs-sm); color: var(--text-3); line-height: 1.6; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.02em;
  padding: 0.85rem 1.35rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
  line-height: 1.2; min-height: 44px;
}
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-bright); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-arrow { font-size: var(--fs-sm); font-weight: 600; color: var(--gold); text-decoration: none; display: inline-flex; gap: 0.4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
button.link-arrow { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--navy-raised) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: auto; height: 44px; flex: none; border-radius: 3px; }
.site-footer .brand-mark { height: 64px; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; margin-top: 4px; }
@media (max-width: 420px) { .header-inner { gap: var(--s3); } .brand { gap: var(--s2); } .brand-name small { letter-spacing: 0.08em; } }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); align-items: center; }
.primary-nav a { display: block; padding: 0.55rem 0.7rem; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; border-radius: var(--radius); }
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--gold); }
.primary-nav .nav-cta a { border: 1px solid var(--line-strong); color: var(--text); margin-left: var(--s2); }
.primary-nav .nav-cta a:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: var(--radius); min-height: 44px; padding: 0 var(--s4); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-raised); border-bottom: 1px solid var(--line); padding-block: var(--s3) var(--s5); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .primary-nav:not(.is-open) { display: none; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a { padding: 0.8rem 0.5rem; font-size: var(--fs-base); border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav .nav-cta a { margin: var(--s3) 0 0; text-align: center; border-radius: var(--radius); }
}
.notice-bar { background: var(--navy-deep); border-bottom: 1px solid var(--line); }
.notice-bar p { font-size: var(--fs-xs); color: var(--text-3); padding-block: 0.5rem; letter-spacing: 0.01em; }
.notice-bar a { color: var(--text-2); }

/* ---------- Pages / routing ---------- */
.page { display: block; }
.page[hidden] { display: none !important; }
.page-head { position: relative; overflow: hidden; padding-block: var(--s8) var(--s7); border-bottom: 1px solid var(--line); background: var(--navy); }
.page-head .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s4); }
.page-head h1 { max-width: 18em; }
.breadcrumb { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: 0.06em; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.topo { display: none; } /* contour texture retired in favour of deck photography */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20; background: var(--navy); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); overflow-x: auto; scrollbar-width: none; }
.subnav button, .subnav a { background: none; border: 0; padding: var(--s4) 0; color: var(--text-3); font: 500 var(--fs-sm) var(--font-body); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; display: block; }
.subnav button:hover, .subnav a:hover { color: var(--text); }
.subnav [aria-current="true"] { color: var(--gold); border-bottom-color: var(--gold); }
[data-anchor] { scroll-margin-top: calc(var(--header-h) + 72px); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--s8) var(--s7); border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); max-width: 50rem; }
.hero h1 { font-size: var(--fs-2xl); line-height: 1.06; }
.hero .lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); }
.hero-locator { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s2); }
.hero-locator span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .06em; }
.hero-locator span b { color: var(--text-2); font-weight: 500; }

.hero-grid { display: block; }
.hero-emblem { margin: 0; justify-self: end; width: 100%; max-width: 340px; position: relative; }
/* warm light falling on the plaque (logo asset has a transparent ground) */
.hero-emblem::before { content: ""; position: absolute; inset: -12% -18%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 16%, transparent), transparent 75%); pointer-events: none; }
.hero-emblem img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } .hero-emblem { order: -1; justify-self: start; max-width: 168px; } }

/* ---------- Riveted plate (echoes the logo plaque; use on a few key panels only) ---------- */
.plate { position: relative; border: 1px solid var(--line-strong); outline: 1px solid color-mix(in srgb, var(--gold) 22%, transparent); outline-offset: -6px; border-radius: 5px;
  --rivet: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--gold-bright) 70%, #fff 0%) 0 1px, var(--gold-dim) 2px 3px, transparent 3.5px);
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet);
  background-repeat: no-repeat; background-size: 8px 8px;
  background-position: 12px 12px, calc(100% - 12px) 12px, 12px calc(100% - 12px), calc(100% - 12px) calc(100% - 12px); }
.card.plate { background-color: var(--charcoal); padding: var(--s6); }

/* ---------- Value drivers ---------- */
.drivers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); margin-top: var(--s7); }
.driver { padding: var(--s5) var(--s5) var(--s5) 0; display: flex; flex-direction: column; gap: var(--s3); border-right: 1px solid var(--line); }
.driver + .driver { padding-left: var(--s5); }
.driver:last-child { border-right: 0; }
.driver h2, .driver h3 { font-size: 1.375rem; line-height: 1.25; }
.driver p { color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 880px) {
  .drivers { grid-template-columns: minmax(0, 1fr); }
  .driver, .driver + .driver { padding: var(--s5) 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Cards ---------- */
.card { background: var(--charcoal); border: 1px solid transparent; border-radius: var(--radius); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.card--link { text-decoration: none; color: inherit; transition: border-color .2s, background .2s; }
.card--link:hover { border-color: var(--gold-dim); background: var(--charcoal-2); color: inherit; }
.card h3 { font-size: 1.375rem; }
.card p { color: var(--text-2); font-size: var(--fs-sm); }
.card .card-foot { margin-top: auto; padding-top: var(--s3); }

/* ---------- Facts / key-value ---------- */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 2fr) minmax(0, 3fr); gap: var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.facts dd { margin: 0; color: var(--text); font-size: var(--fs-sm); min-width: 0; }
@media (max-width: 480px) { .facts > div { grid-template-columns: minmax(0, 1fr); gap: var(--s1); } }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--font-body); font-weight: 700; font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; line-height: 1.4; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--complete { color: var(--ok); }
.pill--active { color: var(--info); }
.pill--pending { color: var(--warn); }
.pill--planned { color: var(--muted-pill); }
.pill--planned::before { background: transparent; border: 1px solid currentColor; }

/* ---------- Stages (a real sequence) ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stage-count, 4), minmax(0, 1fr)); counter-reset: stage; }
.stage { position: relative; padding: var(--s6) var(--s4) 0 0; display: flex; flex-direction: column; gap: var(--s2); counter-increment: stage; }
.stage::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-strong); }
.stage::after { content: counter(stage); position: absolute; top: -1rem; left: 0; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; background: var(--gold); color: var(--navy); box-shadow: 0 0 0 4px var(--bg-behind, var(--navy)); }
.stage.is-current::before { background: linear-gradient(90deg, var(--gold) 50%, var(--line-strong) 50%); }
.stage.is-done::before { background: var(--gold); }
.stage.is-current::after, .stage.is-done::after { color: var(--navy); }
.stage h3, .stage h4 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.stage p { font-size: var(--fs-sm); color: var(--text-2); }
.stage .pill, .card > .pill, .person .pill { align-self: flex-start; }
.band--deep .stages { --bg-behind: var(--navy-deep); }
.band--raised .stages { --bg-behind: var(--navy-raised); }
@media (max-width: 880px) {
  .stages { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { padding: 0 0 var(--s5) var(--s6); }
  .stage::before { top: 0.4rem; bottom: 0; left: 0.55rem; right: auto; width: 2px; height: auto; }
  .stage.is-current::before { background: linear-gradient(180deg, var(--gold) 40%, var(--line-strong) 40%); }
  .stage::after { top: -0.1rem; left: -0.4rem; }
}

/* ---------- Disclosure (progressive disclosure) ---------- */
.disclose-group { border-top: 1px solid var(--line); }
details.disclose { border-bottom: 1px solid var(--line); }
details.disclose > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding-block: var(--s5); }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary .disclose-title { font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.2; }
details.disclose > summary .disclose-sub { display: block; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--s1); }
details.disclose > summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; color: var(--gold); width: 2rem; height: 2rem; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform .25s; }
details.disclose[open] > summary::after { content: "–"; }
details.disclose > summary:hover .disclose-title { color: var(--gold-bright); }
.disclose-body { padding-bottom: var(--s6); display: flex; flex-direction: column; gap: var(--s5); }

/* ---------- Notices ---------- */
.notice { border: 1px solid var(--line-strong); border-left: 0; border-right: 0; padding: var(--s5) 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s4); }
.notice .notice-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: 3px; white-space: nowrap; }
.notice p { font-size: var(--fs-sm); color: var(--text-2); }
.notice--risk .notice-label { color: var(--warn); }
@media (max-width: 560px) { .notice { grid-template-columns: minmax(0, 1fr); gap: var(--s2); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap:focus-visible { outline-offset: 2px; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
table.data th, table.data td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--navy-deep); }
table.data td { color: var(--text-2); font-variant-numeric: tabular-nums; }
table.data td:first-child { color: var(--text); }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Figures (maps, diagrams) ---------- */
.figure { margin: 0; background: var(--navy-deep); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure svg { display: block; width: 100%; height: auto; }
/* Dense diagrams keep a legible minimum width on phones and scroll sideways instead of shrinking (app.js makes them keyboard-focusable) */
.figure-scroll { overflow-x: auto; }
.figure-scroll > svg { min-width: var(--fig-min, 0); }
.figure-scroll:focus-visible { outline-offset: -2px; }
.figure figcaption { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .04em; }

/* ---------- Documents list ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.doc-icon { width: 2.5rem; height: 3rem; border: 1px solid var(--line-strong); border-radius: 2px; display: grid; place-items: end center; padding-bottom: 4px; font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: .06em; color: var(--gold); position: relative; }
.doc-icon::before { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; background: linear-gradient(225deg, var(--navy) 50%, var(--line-strong) 50%); }
.doc-title { color: var(--text); font-weight: 500; font-size: var(--fs-base); }
.doc-meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.doc-action { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }
.doc-action .link-arrow { white-space: nowrap; }
@media (max-width: 560px) { .doc { grid-template-columns: 2.5rem minmax(0, 1fr); } .doc-action { grid-column: 2; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s6) var(--s5); }
.person { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; background: var(--charcoal); border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait .monogram { font-family: var(--font-display); font-size: 3rem; color: var(--gold-dim); }
.portrait .portrait-note { position: absolute; bottom: var(--s3); left: var(--s3); right: var(--s3); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); text-align: center; }
.person-name { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; }
.person-role { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.person-bio { font-size: var(--fs-sm); color: var(--text-2); }

/* ---------- News ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s5); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.news-item time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .06em; padding-top: 4px; }
.news-item h3 { font-size: 1.375rem; margin-bottom: var(--s2); }
.news-item p { color: var(--text-2); font-size: var(--fs-sm); max-width: 62ch; }
.news-item .news-tag { margin-bottom: var(--s2); }
@media (max-width: 560px) { .news-item { grid-template-columns: minmax(0, 1fr); gap: var(--s2); } }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.field input, .field select, .field textarea {
  font: 400 var(--fs-base) var(--font-body); color: var(--text); background: var(--charcoal);
  border: 1px solid var(--line-input); border-radius: var(--radius); padding: 0.75rem 0.9rem; min-height: 46px; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: var(--fs-sm); color: var(--text-2); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--gold); }
.form-error { color: var(--warn); font-size: var(--fs-sm); }
.form-success { border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); background: var(--charcoal); }
.form-success h3 { font-size: 1.375rem; }

/* ---------- Draft placeholders (to be confirmed) ---------- */
.tbc { color: var(--gold-bright); border-bottom: 1px dashed var(--gold); background: color-mix(in srgb, var(--gold) 9%, transparent); padding: 0 0.2em; border-radius: 2px; font-style: normal; }
body.hide-drafts .tbc { color: inherit; border-bottom: 0; background: none; padding: 0; }


/* stacked tables on phones */
@media (max-width: 640px) {
  table.data--cards thead { display: none; }
  table.data--cards { min-width: 0 !important; }
  table.data--cards, table.data--cards tbody, table.data--cards tr, table.data--cards td { display: block; width: 100% !important; box-sizing: border-box; }
  table.data--cards tr { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  table.data--cards td { border: 0 !important; padding: 2px var(--s4) !important; white-space: normal !important; }
  table.data--cards td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-top: var(--s2); }
}
/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding-block: var(--s8) var(--s6); }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--s7); padding-bottom: var(--s7); border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.footer-nav a:hover { color: var(--gold); }
.footer-head { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s3); }
.footer-legal { padding-top: var(--s6); display: flex; flex-direction: column; gap: var(--s4); }
.footer-legal p { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; max-width: 110ch; }
.footer-legal strong { color: var(--text-2); font-weight: 600; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); padding-top: var(--s5); margin-top: var(--s5); border-top: 1px solid var(--line); }
.draft-toggle { background: none; border: 1px solid var(--line-strong); color: var(--text-3); font: 500 var(--fs-xs) var(--font-mono); letter-spacing: .06em; padding: 0.4rem 0.7rem; border-radius: var(--radius); cursor: pointer; min-height: 32px; }
.draft-toggle:hover { color: var(--gold); border-color: var(--gold-dim); }

/* ---------- Utilities ---------- */
.mt-s4 { margin-top: var(--s4); } .mt-s5 { margin-top: var(--s5); } .mt-s6 { margin-top: var(--s6); } .mt-s7 { margin-top: var(--s7); }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); } .gold { color: var(--gold); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Deck components ---------- */
/* Big gold figures, as on the deck's stat slides */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--s5) var(--s6); margin: 0; }
.stat { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; margin: 0; }
.stat dt, .stat .stat-label { order: 2; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.4; font-weight: 400; letter-spacing: 0; text-transform: none; }
.stat dd, .stat .stat-value { order: 1; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); line-height: 1.05; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.stat-row--panel .stat { background: var(--charcoal); border-radius: var(--radius); padding: var(--s5); }
/* Gold icon circle (deck highlight cards) */
.icon-circle { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.icon-circle svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Monogram badge (deck Qualified Persons slide) */
.monogram-badge { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; flex: none; }
/* Photo page heads: one photo per page, as in the deck (injected by build.py) */
.page-head--photo { min-height: 22rem; display: flex; align-items: center; }
.page-head--photo .wrap { width: 100%; }
.page-head--photo .wrap > * { max-width: min(40rem, 58%); }
.page-head-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; background-size: cover; background-position: center; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
@media (max-width: 880px) {
  .page-head--photo { display: block; min-height: 0; padding-top: 12.5rem; }
  .page-head--photo .wrap > * { max-width: none; }
  .page-head-photo { width: 100%; height: 12rem; bottom: auto; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
}
/* Photo side panel for a content band */
.photo-panel { border-radius: var(--radius); background-size: cover; background-position: center; min-height: 18rem; height: 100%; }
@media (max-width: 880px) { .photo-panel { min-height: 12rem; } }
/* Home hero: full-bleed deck photograph */
.hero--photo { background: var(--navy); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: 70% center; z-index: 0; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 88%, transparent) 38%, color-mix(in srgb, var(--navy) 35%, transparent) 70%, color-mix(in srgb, var(--navy) 20%, transparent) 100%), linear-gradient(0deg, var(--navy) 0%, transparent 30%); }
@media (max-width: 880px) { .hero-photo { background-position: 75% center; } .hero-photo::after { background: linear-gradient(0deg, var(--navy) 30%, color-mix(in srgb, var(--navy) 70%, transparent) 100%); } }
/* Gold callout box (deck's gold panel), used sparingly */
.callout-gold { background: var(--gold); color: var(--navy); border-radius: var(--radius); padding: var(--s5); }
.callout-gold * { color: var(--navy); }
.page-head h1 { font-size: clamp(2.1rem, 1.55rem + 2.1vw, 3.2rem); }
/* Home (deck cover + strategy slide) */
.hero--photo { padding-block: var(--s9) var(--s7); min-height: 0; }
.hero--photo .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--s7); }
.hero--photo .hero-copy { max-width: 42rem; }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); color: var(--gold-bright); line-height: 1.4; max-width: 34em; }
.hero-stats { border-top: 1px solid var(--line-strong); padding-top: var(--s5); max-width: 60rem; }
.strategy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); counter-reset: none; }
.strategy .card { gap: var(--s3); padding: var(--s6) var(--s5); }
.strategy h3 { font-size: 1.4rem; }
@media (max-width: 980px) { .strategy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strategy { grid-template-columns: minmax(0, 1fr); } }
.person-role { font-size: 0.72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card .monogram-badge { margin-bottom: var(--s2); }
.stage .meta { color: var(--gold); font-weight: 700; letter-spacing: .04em; font-size: var(--fs-sm); }
@media (max-width: 880px) { .hero--photo { padding-block: var(--s8) var(--s6); } }

/* Header logo: the 888 Mines plaque on its own, no wordmark beside it */
.brand-mark--header { height: 76px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.site-header .brand { padding-block: 8px; }
@media (max-width: 480px) { .brand-mark--header { height: 62px; } }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.team-grid h3 { font-size: 1.25rem; }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Photographic styling (deck imagery) ---------- */
.card--photo { padding: 0; overflow: hidden; }
.card--photo > :not(.card-photo) { margin-inline: var(--s5); }
.card--photo > :last-child { margin-bottom: var(--s6); }
.card-photo { aspect-ratio: 16 / 10; max-width: 100%; background-size: cover; background-position: center; margin-bottom: calc(-1 * var(--s6)); position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.card--photo .icon-circle { position: relative; box-shadow: 0 0 0 4px var(--charcoal); }
.card--photo:hover .card-photo { filter: brightness(1.12); }
.card-photo { transition: filter .3s; }
/* Gold-vein texture behind a band */
.band--texture { background: var(--navy); isolation: isolate; }
.band--texture::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, color-mix(in srgb, var(--navy) 94%, transparent), color-mix(in srgb, var(--navy) 78%, transparent)), var(--tex); background-size: cover; background-position: center; }
.band--texture .stages { --bg-behind: transparent; }
.band--texture .stage::after { box-shadow: none; }
.band--cta { padding-block: var(--s8); }
.band--cta h2 { font-size: var(--fs-xl); }
/* Photo behind the two audience panels */
.card--bgphoto { position: relative; overflow: hidden; isolation: isolate; min-height: 20rem; justify-content: flex-end; }
.card--bgphoto::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(0deg, var(--charcoal) 35%, color-mix(in srgb, var(--charcoal) 55%, transparent) 75%, color-mix(in srgb, var(--charcoal) 25%, transparent)), var(--bg); background-size: cover; background-position: center 30%; }
.card--bgphoto.plate { background-color: var(--charcoal); }
.strategy .card--photo { padding: 0; }
.card--bgphoto { padding-top: 12rem; }
.card--bgphoto::before { background-image: linear-gradient(0deg, var(--charcoal) 48%, color-mix(in srgb, var(--charcoal) 40%, transparent) 72%, transparent 100%), var(--bg); background-position: center 35%; }
.card--bgphoto .card-foot { margin-top: var(--s3); }
@media (max-width: 560px) { .card--bgphoto { padding-top: 9rem; } }
.card--bgphoto .eyebrow, .card--bgphoto h3 { text-shadow: 0 1px 4px rgba(0,0,0,.85); }
/* Small screens: keep the photo as a band above the text, never behind it */
@media (max-width: 880px) { .card--bgphoto::before { bottom: auto; height: 12rem; background-image: linear-gradient(0deg, var(--charcoal) 0%, transparent 45%), var(--bg); } }
@media (max-width: 880px) { .card.plate.card--bgphoto { padding-top: 13rem; justify-content: flex-start; } }
@media (max-width: 560px) { .card--bgphoto::before { height: 9rem; } .card.plate.card--bgphoto { padding-top: 10rem; } }

.validate-grid, .review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.validate-grid h3, .review-grid h3 { font-size: 1.2rem; }
@media (max-width: 1080px) { .validate-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .validate-grid, .review-grid { grid-template-columns: minmax(0, 1fr); } }
.qa-table td:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; width: 32%; }
.qa-table td:last-child { width: 9rem; white-space: nowrap; }
.band--texture .table-wrap { background: color-mix(in srgb, var(--navy) 80%, transparent); }
.owners-band { min-height: 0; padding-top: 7rem; }
.owners-band > p:not(.eyebrow) { max-width: 60ch; }

.mgmt-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s4); }
.mgmt-lead { flex-direction: row; gap: var(--s5); align-items: flex-start; }
.mgmt-lead p:not(.person-role) { font-size: var(--fs-base); max-width: 62ch; }
@media (max-width: 880px) { .mgmt-grid { grid-template-columns: minmax(0, 1fr); } .mgmt-lead { flex-direction: column; } }
.project-team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); }
.project-team-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.project-team-list li { display: flex; flex-direction: column; font-size: var(--fs-sm); color: var(--text-3); }
.project-team-list b { color: var(--text-2); font-weight: 700; }
@media (max-width: 880px) { .project-team { grid-template-columns: minmax(0, 1fr); } }

/* BLM claim register on claim-group pages */
table.register { min-width: 640px; }
table.register td, table.register th { white-space: nowrap; }
table.register td:last-child { color: var(--gold); font-weight: 700; }

/* Expandable officer biography */
details.bio-more { border-top: 1px solid var(--line); padding-top: var(--s3); }
details.bio-more > summary { cursor: pointer; color: var(--gold); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; }
details.bio-more > summary:hover { color: var(--gold-bright); }
details.bio-more[open] > summary { margin-bottom: var(--s3); }
details.bio-more p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; margin-top: var(--s3); }

/* Tick list on audience path cards */
ul.ticks { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); }
ul.ticks li { position: relative; padding-left: 1.5em; color: var(--text-2); font-size: var(--fs-sm); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7em; height: .4em; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* ===================== v5: journeys, guides, multi-step forms, consent, analytics preview ===================== */
.btn--sm { padding: .55rem 1rem; font-size: var(--fs-sm); }

/* Staged journey (progressive calls to action) */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); counter-reset: none; }
@media (max-width: 1080px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .journey { grid-template-columns: minmax(0, 1fr); } }
.journey-step { position: relative; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6) var(--s5) var(--s5); background: var(--charcoal); border: 1px solid var(--line); border-radius: 5px; }
.journey-step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold) var(--fill, 25%), var(--line) var(--fill, 25%)); border-radius: 5px 5px 0 0; }
.journey-step:nth-child(2)::before { --fill: 50%; } .journey-step:nth-child(3)::before { --fill: 75%; } .journey-step:nth-child(4)::before { --fill: 100%; }
.journey-n { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.journey-step h3 { font-size: 1.15rem; margin: 0; }
.journey-step p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
.journey-step .journey-meta { color: var(--text-3); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.journey-step > a { margin-top: auto; align-self: flex-start; }
.band--deep .journey-step { background: var(--navy-raised); }

/* Guides */
.guide-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--s3); }
.guide-tile { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); background: var(--charcoal); border: 1px solid var(--line); border-radius: 5px; transition: border-color .2s, transform .2s; }
.guide-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.guide-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.guide-q { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text); line-height: 1.3; }
.guide-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); max-width: 52rem; }
.guide h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.answer { margin: 0; padding: var(--s4) var(--s5); border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); color: var(--text); line-height: 1.6; border-radius: 0 4px 4px 0; }
.guide-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s5); border-top: 1px solid var(--line); }
.guide-next p { margin: 0; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .guide-tile { transition: none; } .guide-tile:hover { transform: none; } }

/* Multi-step form */
.step-progress { display: flex; flex-direction: column; gap: var(--s2); }
.step-progress p { margin: 0; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.step-bar { display: block; height: 3px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.step-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct, 33%); background: var(--gold); transition: width .3s; }
.step-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: flex-end; padding-top: var(--s2); }

/* Returning visitor */
.resume { background: var(--navy-raised); border-bottom: 1px solid var(--line); }
.resume p { margin: 0; padding: var(--s3) 0; display: flex; flex-wrap: wrap; gap: var(--s3); align-items: baseline; font-size: var(--fs-sm); }
.resume a { color: var(--gold); }

/* Consent banner */
.consent { position: fixed; z-index: 60; left: var(--s4); right: var(--s4); bottom: var(--s4); display: flex; justify-content: center; pointer-events: none; }
.consent-inner { pointer-events: auto; max-width: 56rem; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); background: var(--navy-raised); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.55); }
.consent-inner p { margin: 0; flex: 1 1 22rem; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.55; }
.consent-inner p a { color: var(--gold); }

/* Analytics preview panel (preview builds only; remove the footer button in production if not wanted) */
.t8-debug { position: fixed; z-index: 70; right: var(--s4); bottom: var(--s4); width: min(30rem, calc(100vw - 2rem)); max-height: min(70vh, 40rem); display: flex; flex-direction: column; background: #0B0C0F; border: 1px solid var(--gold-dim); border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); font-size: 12px; color: var(--text-2); }
.t8-debug .dbg-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.t8-debug .dbg-top p { margin: 0; color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.t8-debug .dbg-top p span { color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.t8-debug .dbg-close { all: unset; cursor: pointer; font-size: 18px; color: var(--text-2); padding: 0 6px; }
.t8-debug .dbg-close:focus-visible { outline: 2px solid var(--focus); }
.t8-debug .dbg-body { overflow: auto; padding: 10px 12px; }
.t8-debug .dbg-meta { margin: 0 0 8px; } .t8-debug b { color: var(--text); }
.t8-debug .dbg-funnels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.t8-debug .dbg-funnels p, .t8-debug .dbg-head { margin: 0 0 4px; color: var(--text); font-weight: 700; }
.t8-debug ol { margin: 0; padding-left: 16px; } .t8-debug ol li { color: var(--text-3); } .t8-debug ol li.on { color: var(--ok); }
.t8-debug .dbg-log { list-style: none; margin: 0; padding: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; }
.t8-debug .dbg-log li { padding: 3px 0; border-bottom: 1px solid #1a1c21; word-break: break-word; }
.t8-debug .t { color: var(--text-3); } .t8-debug .k { color: var(--info); } .t8-debug .ns { color: var(--warn); }
@media print { .consent, .t8-debug, .resume { display: none !important; } }

/* ===================== v6: secondary audiences, privacy, team dashboard ===================== */
.linklike { all: unset; cursor: pointer; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--gold-bright); } .linklike:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ticks--lg li { font-size: var(--fs-base); line-height: 1.6; padding-left: 1.8em; } .ticks--lg { gap: var(--s4); }
.also { display: flex; flex-direction: column; gap: var(--s3); }
.also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
@media (max-width: 900px) { .also-grid { grid-template-columns: minmax(0, 1fr); } }
.also-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); border: 1px solid var(--line); border-radius: 5px; text-decoration: none; color: inherit; background: transparent; transition: border-color .2s; }
.also-card:hover { border-color: var(--gold); } .also-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.also-h { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text); }
.also-h::after { content: " →"; color: var(--gold); }
.also-p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }

/* Team dashboard */
.dash { padding: var(--s7) 0 var(--s8); min-height: 70vh; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: var(--s6); }
.dash-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: var(--s2) 0 0; }
.dash-tools { display: flex; flex-wrap: wrap; gap: var(--s3); }
.dash-ctl { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.dash-ctl select { min-width: 11rem; padding: .5rem .75rem; background: var(--charcoal-2); color: var(--text); border: 1px solid var(--line-input); border-radius: 4px; font: inherit; font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; }
.dash-gate { max-width: 40rem; padding: var(--s6); border: 1px solid var(--line); border-radius: 6px; background: var(--charcoal); display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; }
.dash-gate-h { font-family: var(--font-display); font-size: 1.3rem; margin: 0; color: var(--text); }
.dash-banner { margin: 0 0 var(--s5); padding: var(--s3) var(--s4); border: 1px dashed var(--warn); color: var(--warn); border-radius: 4px; font-size: var(--fs-sm); }
.dash-sec { background: var(--charcoal); border: 1px solid var(--line); border-radius: 6px; padding: var(--s5); margin-bottom: var(--s5); min-width: 0; }
.dash-sec h2 { font-size: 1.2rem; margin: 0 0 var(--s1); }
.dash-sec-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.dash-sub { margin: 0 0 var(--s4); color: var(--text-3); font-size: var(--fs-sm); }
.dash-subh { margin: var(--s4) 0 var(--s2); color: var(--text); font-weight: 700; font-size: var(--fs-sm); }
.dash-mini-h { margin: var(--s2) 0 4px; color: var(--text-3); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.dash-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s5); }
@media (max-width: 900px) { .dash-grid2 { grid-template-columns: minmax(0, 1fr); } }
.dash-insights { margin: var(--s3) 0 0; padding-left: 1.2em; display: grid; gap: var(--s2); color: var(--text); }
.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); margin: 0; }
@media (max-width: 1000px) { .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-kpis .stat dd { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.dash-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.dash-bars li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto; gap: var(--s3); align-items: center; font-size: var(--fs-sm); }
@media (max-width: 560px) { .dash-bars li { grid-template-columns: minmax(0, 1fr) auto; } .dash-bars .db-track { grid-column: 1 / -1; grid-row: 2; } }
.db-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-track { display: block; height: 10px; background: var(--charcoal-2); border-radius: 5px; overflow: hidden; }
.db-fill { display: block; height: 100%; background: var(--gold); border-radius: 0 5px 5px 0; }
.db-val { color: var(--text); font-variant-numeric: tabular-nums; min-width: 2.5rem; text-align: right; }
.dash-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.df-top { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 4px; }
.df-label { color: var(--text-2); } .df-val { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; }
.df-conv { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--text-3); }
.df-conv--low { color: var(--warn); } .df-conv--low::before { content: "▼ "; }
.dash-empty { color: var(--text-3); font-size: var(--fs-sm); margin: 0; }
.dash-table td, .dash-table th { font-size: var(--fs-sm); vertical-align: top; }
.dash-table .dash-next { color: var(--text); min-width: 16rem; }
.dash-mini td, .dash-mini th { font-size: var(--fs-sm); }
.dash-foot { margin-top: var(--s5); }
.dash-drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); display: flex; justify-content: flex-end; }
.dash-drawer-inner { width: min(34rem, 100vw); height: 100%; overflow: auto; background: var(--navy-raised); border-left: 1px solid var(--line-strong); padding: var(--s5); }
.dash-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); }
.dash-drawer-top h2 { margin: 0; font-size: 1.3rem; }
.dash-drawer .dbg-close { all: unset; cursor: pointer; font-size: 22px; color: var(--text-2); padding: 0 6px; }
.dd-stages { margin: 0 0 var(--s2); padding-left: 1.2em; font-size: var(--fs-sm); color: var(--text-3); } .dd-stages li.on { color: var(--ok); }
.dd-timeline { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); color: var(--text-2); display: grid; gap: 6px; }
.dd-timeline .t { color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Team avatars (v7) */
.avatar { display: block; width: 5.5rem; height: 5.5rem; border-radius: var(--radius); border: 1.5px solid var(--gold); object-fit: cover; background: var(--charcoal-2); flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.card .avatar { margin-bottom: var(--s3); }
.avatar--lg { width: 9.5rem; height: 9.5rem; border-width: 2px; }
.person-head { display: flex; align-items: center; gap: var(--s5); }
@media (max-width: 480px) { .avatar--lg { width: 7rem; height: 7rem; } .person-head { gap: var(--s4); } }
.avatar--sm { width: 3rem; height: 3rem; border-width: 1px; box-shadow: none; margin: 0 !important; }
.avatar-row { display: flex; gap: var(--s2); margin: var(--s2) 0 var(--s3); }
.link-btn{background:none;border:0;padding:0;font:inherit;color:var(--gold,#C9A24A);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.link-btn:hover{color:var(--gold-bright)}
#ct-scope{margin:-4px 0 14px}
.ok-body { display: flex; flex-direction: column; gap: var(--s2); }
.ok-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--text-2, #CDC8BD); }
.ok-steps li::marker { color: var(--gold); }
.form-success { scroll-margin-top: 140px; }
.field-msg { color: var(--warn); font-size: var(--fs-xs); margin: 4px 0 0; }

/* portrait photos in gold oval frames (Oct 19) */
.photo-oval { display: block; width: 8.5rem; height: auto; aspect-ratio: 480 / 595; flex: none; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.card .photo-oval { margin-bottom: var(--s4); }
.photo-oval--lg { width: 11rem; }
@media (max-width: 480px) { .photo-oval--lg { width: 8.5rem; } }


