/* Next Pillar Capital — Investor Research
   Visual language mirrors nextpillarcapital.com: near-black ground, serif display,
   gold letter-spaced eyebrows, hairline rules. Detail-first, minimal motion. */

:root {
  --bg: #0b0a08;
  --bg-raise: #11100d;
  --bg-raise-2: #161410;
  --ink: #e8e2d6;
  --ink-dim: #b3aca0;
  --ink-faint: #7d776c;
  --gold: #c2a05c;
  --gold-bright: #dbbd7e;
  --gold-dim: #8a6f3c;
  --hairline: rgba(194, 160, 92, 0.28);
  --hairline-soft: rgba(232, 226, 214, 0.10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "Literata", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 880px;
  --max-wide: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-dim);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(194, 160, 92, 0.35); color: var(--ink); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  max-width: var(--max-wide); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; text-decoration: none; flex-shrink: 0;
}
.brand-logo {
  /* logo.png is a square canvas; the wordmark sits in the center ~20% band —
     fixed box + object-fit:cover crops the empty space above and below */
  width: 168px; height: 36px; object-fit: cover; display: block;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint); text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-ext { color: var(--gold) !important; }

/* ---------------- shared type ---------------- */
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 22px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); }
h1 { font-size: clamp(42px, 6.4vw, 68px); line-height: 1.08; letter-spacing: 0.005em; }
h2 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.12; }
h3 { font-size: 25px; line-height: 1.25; }
.rule {
  width: 64px; height: 1px; background: var(--gold-dim); margin: 30px 0 34px;
}
.gold { color: var(--gold-bright); }
strong { color: var(--ink); font-weight: 600; }
em { color: inherit; }

.section { max-width: var(--max); margin: 0 auto; padding: 110px 28px 30px; }
.section.wide { max-width: var(--max-wide); }
.section-intro { max-width: 760px; font-size: 17.5px; }

/* ---------------- hero ---------------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 120px 28px 60px;
}
.lede { font-size: 18.5px; max-width: 760px; }
.lede-sub { margin-top: 20px; max-width: 760px; font-size: 16px; color: var(--ink-dim); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 58px; border-top: 1px solid var(--hairline-soft);
}
.stat {
  padding: 26px 18px 24px 0; display: flex; flex-direction: column;
}
.stat:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid var(--hairline-soft); }
.stat:nth-child(n + 4) { border-top: 1px solid var(--hairline-soft); }
.stat-n {
  font-family: var(--serif); font-size: 46px; color: var(--gold-bright); line-height: 1;
}
.stat-l {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 10px;
}
.confidential {
  margin-top: 56px; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------------- thesis ---------------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 56px;
}
.duo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card {
  background: var(--bg-raise); border: 1px solid var(--hairline-soft);
  border-top: 1px solid var(--hairline); padding: 34px 32px;
}
.card-kicker {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.card h3 { margin-bottom: 14px; }
.card p:last-child { font-size: 15.5px; }
.pull {
  margin: 64px auto 0; padding: 0 0 0 30px; border-left: 1px solid var(--gold-dim);
  font-family: var(--serif); font-size: 27px; line-height: 1.45; color: var(--ink);
  font-style: italic; max-width: 780px;
}
.pull em { color: var(--gold-bright); font-style: italic; }

/* ---------------- funnel ---------------- */
.funnel { margin: 60px 0 80px; display: flex; flex-direction: column; gap: 0; }
.stage {
  display: grid; grid-template-columns: 180px 1fr; gap: 36px;
  padding: 30px 0; border-top: 1px solid var(--hairline-soft);
}
.stage-bar { padding-top: 8px; }
.stage-bar span {
  display: block; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  width: 0; transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.stage.seen .stage-bar span { width: var(--w, 100%); }
.stage-num {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.stage-num em {
  font-style: normal; color: var(--gold-bright); margin-left: 10px; letter-spacing: 0.14em;
}
.stage-body p:last-child { font-size: 15.5px; color: var(--ink-dim); max-width: 680px; }

/* ---------------- scorecard ---------------- */
.method-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; }
.sub-h {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 28px;
}
.pillars { display: flex; flex-direction: column; gap: 22px; }
.pillar-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 8px;
}
.pw { color: var(--gold-bright); }
.pbar { height: 2px; background: var(--hairline-soft); }
.pbar span {
  display: block; height: 2px; background: var(--gold); width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.pillar.seen .pbar span { width: var(--w, 0%); }
.pillar p { font-size: 14px; color: var(--ink-faint); margin-top: 8px; }

.bands { width: 100%; border-collapse: collapse; font-size: 15px; }
.bands td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--hairline-soft); vertical-align: baseline; }
.band-score { font-family: var(--serif); font-size: 19px; color: var(--ink); white-space: nowrap; padding-right: 18px; }
.band-name {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap; padding-right: 18px;
}
.prime { color: var(--gold-bright); } .strong { color: #9fae8a; }
.cond { color: #a89a7c; } .pass-b, .gated { color: var(--ink-faint); }
.method-note { margin-top: 30px; font-size: 15.5px; color: var(--ink-dim); }

/* ---------------- controls ---------------- */
.controls {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin: 44px 0 26px;
}
.controls input[type="search"] {
  flex: 1 1 260px; background: var(--bg-raise); border: 1px solid var(--hairline-soft);
  color: var(--ink); font-family: var(--body); font-size: 17px; padding: 12px 16px;
  outline: none;
}
.controls input[type="search"]:focus { border-color: var(--gold-dim); }
.controls input::placeholder { color: var(--ink-faint); }
.seg { display: flex; border: 1px solid var(--hairline-soft); }
.seg button {
  background: none; border: none; color: var(--ink-faint); cursor: pointer;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 16px; transition: color 0.2s, background 0.2s;
}
.seg button + button { border-left: 1px solid var(--hairline-soft); }
.seg button.on { color: var(--gold-bright); background: rgba(194, 160, 92, 0.08); }
.controls select {
  background: var(--bg-raise); border: 1px solid var(--hairline-soft); color: var(--ink-dim);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 14px; outline: none; cursor: pointer;
}

.universe-toggle {
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  margin: 0 0 22px; user-select: none;
}
.universe-toggle input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.toggle-switch {
  flex-shrink: 0; width: 38px; height: 20px; border: 1px solid var(--hairline-soft);
  background: var(--bg-raise); position: relative; transition: border-color 0.2s, background 0.2s;
}
.toggle-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px;
  background: var(--ink-faint); transition: transform 0.2s, background 0.2s;
}
.universe-toggle input:checked + .toggle-switch {
  border-color: var(--gold-dim); background: rgba(194, 160, 92, 0.08);
}
.universe-toggle input:checked + .toggle-switch::after {
  transform: translateX(18px); background: var(--gold-bright);
}
.toggle-label {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint); transition: color 0.2s;
}
.universe-toggle input:checked ~ .toggle-label { color: var(--gold-bright); }

/* ---------------- top-60 list ---------------- */
.t60-head {
  display: grid; gap: 18px; padding: 0 18px 12px;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--hairline);
  grid-template-columns: 44px 1fr 230px 64px 96px;
}
.row-divider {
  padding: 22px 18px 14px; text-align: center;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--hairline);
}

.row60 {
  display: grid; grid-template-columns: 44px 1fr 230px 64px 96px; gap: 18px;
  align-items: baseline; width: 100%; text-align: left;
  padding: 17px 18px; background: none; border: none; border-bottom: 1px solid var(--hairline-soft);
  cursor: default; color: var(--ink-dim); font-family: var(--body); font-size: 16px;
}
.row60.has-dossier { cursor: pointer; transition: background 0.2s; }
.row60.has-dossier:hover { background: var(--bg-raise); }
.row60 .c-rank { font-family: var(--serif); font-size: 19px; color: var(--ink-faint); }
.row60 .c-name { color: var(--ink); }
.row60.has-dossier .c-name::after {
  content: "Read dossier \2192"; margin-left: 12px;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); opacity: 0; transition: opacity 0.2s; white-space: nowrap;
}
.row60.has-dossier:hover .c-name::after { opacity: 1; }
.c-theme { font-size: 14.5px; color: var(--ink-faint); }
.c-score { font-family: var(--serif); font-size: 19px; color: var(--gold-bright); }
.tier-pill {
  display: inline-block; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--hairline);
}
.tier-A { color: var(--gold-bright); border-color: var(--gold-dim); }
.tier-B { color: var(--ink-faint); }

.row-sub { grid-column: 2 / -1; font-size: 13.5px; color: var(--ink-faint); margin-top: 4px; }
.row-sub b { color: var(--ink-dim); font-weight: 500; }
.empty { padding: 40px 18px; color: var(--ink-faint); font-style: italic; }

/* ---------------- bundles (umbrellas) ---------------- */
.bundles-note { font-size: 14.5px; color: var(--ink-faint); margin-top: 16px; }
#bundleList { margin-top: 48px; display: flex; flex-direction: column; gap: 26px; }
.bundle {
  background: var(--bg-raise); border: 1px solid var(--hairline-soft);
  border-top: 1px solid var(--hairline); padding: 30px 32px 28px;
}
.bundle-lead {
  background: var(--bg-raise-2); border-color: var(--hairline);
  box-shadow: 0 0 0 1px rgba(194, 160, 92, 0.12);
}
.bundle-head {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: start;
}
.bundle-rank { font-family: var(--serif); font-size: 40px; color: var(--ink-faint); line-height: 1.1; }
.bundle-lead .bundle-rank { color: var(--gold-bright); }
.bundle-title h3 { margin-bottom: 6px; color: var(--ink); }
.bundle-buy { font-size: 14.5px; color: var(--ink-faint); }
.bundle-score { text-align: right; }
.bundle-score-n { display: block; font-family: var(--serif); font-size: 34px; color: var(--gold-bright); line-height: 1.1; }
.bundle-status {
  display: inline-block; margin-top: 8px; font-family: var(--sans); font-size: 9.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--hairline-soft); padding: 4px 10px; white-space: nowrap;
}
.bundle-lead .bundle-status { color: var(--gold-bright); border-color: var(--gold-dim); }
.bundle-stats {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 0 86px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
}
.bundle-stats b { color: var(--gold-bright); font-weight: 600; font-size: 13px; }
.bundle-niches { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0 86px; }
.b-niche {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: none; border: 1px solid var(--hairline-soft); color: var(--ink-dim);
  font-family: var(--body); font-size: 13.5px; padding: 6px 12px; cursor: default;
}
.b-niche.has-dossier { cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.b-niche.has-dossier:hover { border-color: var(--gold-dim); color: var(--ink); }
.b-niche-rank { font-family: var(--serif); font-size: 14px; color: var(--gold-bright); }
.b-niche-tier {
  font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.b-niche-tier.t-A { color: var(--gold-bright); }
.b-niche-tier.t-B { color: var(--ink-faint); }
.bundle-body { margin: 20px 0 0 86px; }
.bundle-verdict { font-size: 15.5px; color: var(--ink-dim); max-width: 760px; }
.bundle-watch { margin-top: 10px; font-size: 13.5px; color: var(--ink-faint); max-width: 760px; }
.bundle-watch b { color: var(--ink-dim); font-weight: 500; }
.b-dims {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 34px; margin-top: 22px;
  max-width: 860px;
}
.b-dim { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.b-dim-label {
  grid-column: 1 / -1;
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.b-dim-bar { height: 2px; background: var(--hairline-soft); align-self: center; }
.b-dim-bar span { display: block; height: 2px; background: var(--gold); width: var(--w, 0%); }
.b-dim-val { font-family: var(--serif); font-size: 15px; color: var(--ink-dim); }

/* ---------------- universe list ---------------- */
.rowU {
  display: grid; grid-template-columns: 52px 1fr 230px 64px; gap: 18px; align-items: baseline;
  padding: 13px 18px; border-bottom: 1px solid var(--hairline-soft);
  font-size: 15px; color: var(--ink-dim);
}
.rowU .c-rank { font-family: var(--serif); color: var(--ink-faint); }
.rowU .c-name { color: var(--ink); }
.rowU .c-score { font-size: 17px; }
.rowU .c-score.s-strong { color: #9fae8a; }
.rowU .c-score.s-cond { color: var(--ink-faint); }
.show-more-wrap { text-align: center; padding: 30px 0 10px; }
.show-more {
  background: none; border: 1px solid var(--hairline); color: var(--gold-bright);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 14px 34px; cursor: pointer; transition: background 0.2s;
}
.show-more:hover { background: rgba(194, 160, 92, 0.08); }

/* ---------------- spreadsheet ---------------- */
.dl-btn {
  background: none; border: 1px solid var(--gold-dim); color: var(--gold-bright);
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 13px 22px; cursor: pointer; transition: background 0.2s;
}
.dl-btn:hover { background: rgba(194, 160, 92, 0.1); }

.sheet-outer { position: relative; }
.sheet-wrap {
  border: 1px solid var(--hairline-soft); background: var(--bg-raise);
  overflow: auto;
}
.sheet-outer:not(.expanded) .sheet-wrap {
  max-height: 440px; overflow: hidden;
}
.sheet-outer.expanded .sheet-wrap { max-height: 74vh; }
.sheet-fade {
  display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 88px;
  background: linear-gradient(to bottom, transparent, #0b0a08);
  pointer-events: none;
}
.sheet-outer:not(.expanded) .sheet-fade { display: block; }
.sheet { border-collapse: collapse; width: 100%; min-width: 1180px; }
.sheet th {
  position: sticky; top: 0; z-index: 2; background: var(--bg-raise-2);
  font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); text-align: left; white-space: nowrap;
  padding: 12px 14px; border-bottom: 1px solid var(--hairline); cursor: pointer;
  user-select: none;
}
.sheet th:hover { color: var(--gold-bright); }
.sheet th .arrow { color: var(--gold-bright); margin-left: 5px; }
.sheet td {
  font-size: 13.5px; line-height: 1.45; color: var(--ink-dim); vertical-align: top;
  padding: 9px 14px; border-bottom: 1px solid var(--hairline-soft);
  border-right: 1px solid rgba(232, 226, 214, 0.045);
}
.sheet td:last-child { border-right: none; }
.sheet tbody tr:nth-child(even) td { background: rgba(232, 226, 214, 0.018); }
.sheet tbody tr:hover td { background: rgba(194, 160, 92, 0.05); }
.sheet td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sheet td.gold-cell { color: var(--gold-bright); }
.sheet td.name-cell { color: var(--ink); min-width: 240px; }
.sheet td.long-cell { min-width: 260px; color: var(--ink-faint); }
.sheet td.id-cell { color: var(--ink-faint); font-size: 12px; white-space: nowrap; }
.sheet-count {
  margin-top: 14px; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
}

/* ---------------- next steps ---------------- */
.next-steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.nstep {
  border-top: 1px solid var(--hairline); padding-top: 24px;
}
.nstep-n {
  font-family: var(--serif); font-size: 30px; color: var(--gold-bright);
  display: block; margin-bottom: 14px;
}
.nstep p { font-size: 15px; }

/* ---------------- footer ---------------- */
.footer {
  max-width: var(--max); margin: 90px auto 0; padding: 60px 28px 70px;
  border-top: 1px solid var(--hairline-soft);
}
.footer-brand {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--ink); margin-bottom: 24px;
}
.footer-brand span { color: var(--gold); font-weight: 400; }
.footer p { font-size: 13.5px; color: var(--ink-faint); max-width: 720px; }
.footer-fine { margin-top: 20px; }
.footer a { color: var(--gold); text-decoration: none; }

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, 0.82); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; max-width: 860px; margin: 4vh auto; height: 92vh;
  background: var(--bg-raise); border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
}
.modal-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 34px 40px 22px; border-bottom: 1px solid var(--hairline-soft);
}
.modal-meta .m-eyebrow {
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.modal-meta h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.m-chip {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px solid var(--hairline-soft); padding: 5px 11px;
}
.m-chip.gold-chip { color: var(--gold-bright); border-color: var(--gold-dim); }
.modal-close {
  background: none; border: 1px solid var(--hairline-soft); color: var(--ink-dim);
  width: 40px; height: 40px; font-size: 20px; cursor: pointer; flex-shrink: 0; margin-left: 20px;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
.modal-scroll { overflow-y: auto; padding: 12px 40px 40px; flex: 1; }
.modal-scroll::-webkit-scrollbar { width: 8px; }
.modal-scroll::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.modal-scroll::-webkit-scrollbar-track { background: var(--bg-raise-2); }

.d-section { padding: 30px 0; border-bottom: 1px solid var(--hairline-soft); }
.d-section:last-child { border-bottom: none; }
.d-title {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.d-section p { font-size: 16px; line-height: 1.78; color: var(--ink-dim); margin-bottom: 14px; }
.d-section p:last-child { margin-bottom: 0; }
.d-section ul { padding-left: 20px; }
.d-section li { font-size: 15.5px; line-height: 1.7; color: var(--ink-dim); margin-bottom: 10px; }
.d-section.d-bottom { background: rgba(194, 160, 92, 0.05); margin: 0 -40px -40px; padding: 30px 40px 38px; border-top: 1px solid var(--hairline); }
.d-section.d-bottom p { font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.5; }
.d-section.d-deepdive { background: rgba(194, 160, 92, 0.06); border: 1px solid var(--gold-dim); padding: 22px 26px; margin-top: 26px; }
.deep-dive-link {
  font-family: var(--serif); font-size: 20px; color: var(--gold-bright); text-decoration: none;
  line-height: 1.4; transition: color 0.2s;
}
.deep-dive-link:hover { color: var(--ink); }

.modal-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px; border-top: 1px solid var(--hairline-soft); background: var(--bg-raise-2);
}
.modal-nav button {
  background: none; border: none; color: var(--gold); cursor: pointer;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 8px 0; transition: color 0.2s;
}
.modal-nav button:hover { color: var(--gold-bright); }
.modal-nav button:disabled { color: var(--ink-faint); cursor: default; }
#modalPos { font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-faint); text-transform: uppercase; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.seen { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .two-col, .duo-cards, .method-grid, .next-steps { grid-template-columns: 1fr; }
  .method-grid { gap: 70px; }
  .stage { grid-template-columns: 1fr; gap: 14px; }
  .t60-head { display: none; }
  .row60 { grid-template-columns: 40px 1fr 60px; }
  .row60 .c-theme, .row60 .c-tier { display: none; }
  .rowU { grid-template-columns: 44px 1fr 56px; }
  .rowU .c-theme { display: none; }
  .row-sub { grid-column: 1 / -1; }
  .bundle-head { grid-template-columns: 1fr auto; }
  .bundle-rank { display: none; }
  .bundle-stats, .bundle-niches, .bundle-body { margin-left: 0; }
  .b-dims { grid-template-columns: 1fr 1fr; }
  .modal-panel { margin: 0; height: 100vh; max-width: none; }
  .modal-top, .modal-scroll, .modal-nav { padding-left: 22px; padding-right: 22px; }
  .d-section.d-bottom { margin: 0 -22px -40px; padding: 26px 22px 34px; }
  .nav-links a:not(.nav-ext) { display: none; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:not(:nth-child(3n + 1)) { padding-left: 0; border-left: none; }
  .stat:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--hairline-soft); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--hairline-soft); }
  .stat-n { font-size: 38px; }
}
