/* Skylight Real Estate Partners — Design System
   Institutional, editorial, restrained. Navy + brass + ivory. */

/* Responsive density: JS in scripts/nav.js scales zoom to viewport width
   (reference design width 2240px). This static value is the no-JS fallback. */
html { zoom: 0.675; }

:root {
  /* Palette — Skylight blue, taken from the deck */
  --ink: #0E1B2E;
  --ink-soft: #1F2D44;
  /* Dark surfaces (heroes, footer, accent bands) — lighter institutional blue.
     A gradient (deep → mid blue) gives the surfaces dimension instead of a flat fill.
     Separate from --ink so body text stays crisp near-black. */
  --ink-bg: radial-gradient(130% 120% at 50% 102%, rgba(150,178,208,0.18) 0%, rgba(150,178,208,0) 60%), linear-gradient(168deg, #1B2A41 0%, #283A56 100%);
  --ink-bg-solid: #21314A;
  --ink-bg-2: #2C3E5A;
  --paper: #FFFFFF;
  --paper-2: #F4F7FB;
  --paper-3: #E8EFF7;
  --ivory: #FFFFFF;
  --rule: rgba(14, 27, 46, 0.10);
  --rule-strong: rgba(14, 27, 46, 0.22);
  --mute: rgba(14, 27, 46, 0.58);
  --mute-2: rgba(14, 27, 46, 0.76);

  /* Skylight signature blues (from cover gradient) */
  --sky-1: #0A4FB0;     /* deep blue */
  --sky-2: #1574D9;     /* brand mid */
  --sky-3: #2FA7E6;     /* cyan-blue */
  --sky-4: #6EC9F0;     /* light cyan */
  --sky-grad: linear-gradient(135deg, #0A4FB0 0%, #1574D9 35%, #2FA7E6 75%, #6EC9F0 100%);
  --sky-grad-soft: linear-gradient(180deg, #1574D9 0%, #2FA7E6 100%);

  --on-dark: rgba(255, 255, 255, 0.82);
  --on-dark-rule: rgba(255, 255, 255, 0.20);

  /* Type — institutional, refined */
  --display: "Source Serif 4", Georgia, serif;
  --sans: "Source Serif 4", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --pad-x: clamp(24px, 5vw, 128px);
  --max: 1600px;
  --header-h: 140px;
}

/* Theme overrides */
/* Palette: Twilight — deeper navy/violet evening sky */
:root[data-palette="twilight"] {
  --sky-1: #1A1B4B;
  --sky-2: #3A2E7E;
  --sky-3: #6E47B8;
  --sky-4: #B488E0;
  --sky-grad: linear-gradient(135deg, #1A1B4B 0%, #3A2E7E 35%, #6E47B8 75%, #B488E0 100%);
}
/* Palette: Dawn — warm rose / amber sunrise sky */
:root[data-palette="dawn"] {
  --sky-1: #B43A4F;
  --sky-2: #E0623F;
  --sky-3: #F2A14D;
  --sky-4: #F7D89A;
  --sky-grad: linear-gradient(135deg, #B43A4F 0%, #E0623F 35%, #F2A14D 75%, #F7D89A 100%);
}
/* Palette: Forest — institutional green */
:root[data-palette="forest"] {
  --sky-1: #1C3A2E;
  --sky-2: #2A6048;
  --sky-3: #3F8763;
  --sky-4: #8FC2A5;
  --sky-grad: linear-gradient(135deg, #1C3A2E 0%, #2A6048 50%, #3F8763 75%, #8FC2A5 100%);
}

/* Voice: editorial — serif takes over display, italic tagline */
:root[data-voice="editorial"] {
  --display: "Source Serif 4", Georgia, serif;
}
:root[data-voice="editorial"] .hero-headline,
:root[data-voice="editorial"] .h1,
:root[data-voice="editorial"] .h2,
:root[data-voice="editorial"] .strat-title,
:root[data-voice="editorial"] .diff-headline,
:root[data-voice="editorial"] .cta-headline,
:root[data-voice="editorial"] .stat .num,
:root[data-voice="editorial"] .lead-card .name,
:root[data-voice="editorial"] .inv-card .meta .name {
  font-weight: 400;
  letter-spacing: -0.02em;
}
:root[data-voice="editorial"] .hero-headline .accent,
:root[data-voice="editorial"] .diff-headline .accent,
:root[data-voice="editorial"] .cta-headline .accent {
  font-style: italic;
}

/* Voice: bold — sans-only, heavier, tighter */
:root[data-voice="bold"] {
  --serif: "Inter Tight", "Inter", sans-serif;
}
:root[data-voice="bold"] .hero-headline,
:root[data-voice="bold"] .h1,
:root[data-voice="bold"] .h2,
:root[data-voice="bold"] .diff-headline,
:root[data-voice="bold"] .cta-headline {
  font-weight: 700;
  letter-spacing: -0.045em;
}
:root[data-voice="bold"] .hero-headline .accent,
:root[data-voice="bold"] .diff-headline .accent,
:root[data-voice="bold"] .cta-headline .accent,
:root[data-voice="bold"] .srg-text .mark .accent {
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
}

/* Density: airy — extra breathing room */
:root[data-density="airy"] {
  --pad-x: clamp(40px, 7vw, 144px);
}
:root[data-density="airy"] .section { padding-top: clamp(160px, 18vw, 240px); padding-bottom: clamp(160px, 18vw, 240px); }
:root[data-density="airy"] .section-head { margin-bottom: 128px; }
:root[data-density="airy"] .stat { padding-top: 80px; padding-bottom: 80px; }
:root[data-density="airy"] .hero-inner { padding-top: calc(var(--header-h) + 96px); padding-bottom: 96px; }

/* Density: dense — tighter, more financial */
:root[data-density="dense"] {
  --pad-x: clamp(20px, 3.5vw, 56px);
}
:root[data-density="dense"] .section { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(64px, 8vw, 96px); }
:root[data-density="dense"] .section-head { margin-bottom: 48px; }
:root[data-density="dense"] .stat { padding-top: 36px; padding-bottom: 36px; }
:root[data-density="dense"] .hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
:root[data-density="dense"] .hero-headline { font-size: clamp(48px, 6.4vw, 108px); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern", "liga", "tnum";
  font-size: 18px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* —— Type scale —— */
.eyebrow {
  font-family: var(--sans);
  font-size: 23px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky-2);
  font-weight: 600;
}
.eyebrow .num { color: var(--sky-2); margin-right: 12px; opacity: 0.6; font-weight: 500; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(68px, 10vw, 176px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(50px, 6.2vw, 94px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
}
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 72;
}
.h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(27px, 2.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}
.lede {
  font-family: var(--sans);
  font-size: 31px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink-soft);
}
.body { font-size: 31px; line-height: 1.7; color: var(--mute-2); }
.small { font-size: 19px; line-height: 1.5; color: var(--mute); }
.tab {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.num-display {
  font-family: var(--display);
  font-feature-settings: "tnum", "lnum";
  letter-spacing: -0.02em;
}

/* —— Surfaces —— */
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-paper2 { background: var(--paper-2); color: var(--ink); }
.bg-paper3 { background: var(--paper-3); color: var(--ink); }
.bg-sky { background: var(--sky-grad); color: #fff; }
.bg-ink { background: var(--ink-bg); color: #fff; }
.on-dark { color: var(--on-dark); }
.on-dark .eyebrow { color: rgba(255,255,255,0.7); }
.on-dark .eyebrow .num { color: rgba(255,255,255,0.5); }
.on-dark .body { color: rgba(255,255,255,0.82); }
.on-dark .small { color: rgba(255,255,255,0.65); }
.on-dark .lede { color: rgba(255,255,255,0.92); }

/* —— Section head: eyebrow column + title/lede column (matches index) —— */
.section-head {
  display: grid; grid-template-columns: 2fr 6fr; gap: 64px;
  margin-bottom: 56px; align-items: start;
}
.section-head .label .eyebrow { letter-spacing: 0.22em; }
.section-head .title h2 { letter-spacing: -0.025em; }
.section-head .title .lede { margin-top: 24px; max-width: 80ch; color: var(--ink); line-height: 1.55; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

/* —— Layout —— */
.shell { width: 100%; padding: 0 var(--pad-x); }
.cap { max-width: var(--max); margin: 0 auto; }
.row-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 24px;
}

/* —— Rules —— */
.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-strong { height: 1px; background: var(--rule-strong); width: 100%; }
.on-dark .rule { background: var(--on-dark-rule); }

/* —— Header / nav —— */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex; align-items: center;
  padding: 0 var(--pad-x);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  transition: background .25s, border-color .25s, color .25s;
}
.nav::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--sky-grad);
}
.nav.dark { background: var(--paper-2); border-bottom-color: var(--rule); color: var(--ink); }
.nav.dark .nav-links a { color: var(--ink); }
.nav.dark .nav-cta { background: var(--sky-2); border-color: var(--sky-2); color: #fff; }
.nav.dark .nav-cta:hover { background: var(--sky-1); border-color: var(--sky-1); color: #fff; }
.nav-links a { color: var(--ink); opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--sky-2); }
.nav-inner {
  width: 100%; max-width: none; margin: 0 auto; padding: 0;
  display: flex; align-items: center; justify-content: flex-start; gap: clamp(20px, 2.4vw, 44px);
  gap: 32px;
  font-family: var(--mono);
}
.nav-mark {
  display: flex; align-items: center; gap: 12px;
}
.nav-mark { flex-shrink: 0; min-width: 0; }
.nav-mark .nav-logo {
  height: 61px;
  width: auto;
  max-height: none;
  max-width: none;
  object-fit: contain;
  aspect-ratio: 2550 / 451;
  display: block;
}
/* Logo always renders in its native colors — never invert */
.nav-mark .wordmark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
}
.nav-mark .lockup-tag {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  border-left: 1px solid var(--rule-strong);
  padding-left: 12px;
  margin-left: 4px;
}
.nav .skylight-mark {
  width: 32px; height: 32px;
  background-image: url("../assets/skylight-mark.png");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; justify-content: space-evenly; flex: 1; margin: 0 clamp(24px, 2.4vw, 48px);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 450;
}
.nav-links a {
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  color: inherit;
  opacity: 0.78;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px;
  height: 2px; background: var(--sky-2);
  opacity: 0;
  transition: left .28s ease, right .28s ease, opacity .15s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { left: 0; right: 0; opacity: 1; }
.nav-cta {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.01em;
  font-weight: 500;
  padding: 10px 18px;
  background: var(--sky-2);
  color: #fff;
  border: 1px solid var(--sky-2);
  border-radius: 4px;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-cta:hover { background: var(--sky-1); border-color: var(--sky-1); color: #fff; }

/* SRG — distinct affiliate-brand button in the nav (matches nav-cta geometry) */
.nav a.nav-srg {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.01em;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid rgba(110, 201, 240, 0.65);
  border-radius: 4px;
  background: rgba(110, 201, 240, 0.10);
  color: rgba(214,222,234,0.88); opacity: 1; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.nav a.nav-srg::after { display: none; }
.nav a.nav-srg:hover,
.nav a.nav-srg.is-active { background: var(--sky-2); border-color: var(--sky-2); color: #fff; }

/* —— Buttons / links —— */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 18px;
  letter-spacing: 0.01em; font-weight: 500;
  padding: 14px 24px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn .arrow { display: inline-block; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.solid { background: var(--sky-2); color: #fff; border-color: var(--sky-2); }
.btn.solid:hover { background: var(--sky-1); border-color: var(--sky-1); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn.ghost-light { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn.ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.link-inline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 18px;
  letter-spacing: 0.02em; font-weight: 500;
  text-transform: uppercase;
  color: var(--sky-2);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: color .2s;
}
.link-inline:hover { color: var(--sky-1); }
.on-dark .link-inline { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.on-dark .link-inline:hover { color: #fff; border-bottom-color: #fff; }

/* —— Footer common —— */
.footer {
  background: var(--ink-bg);
  color: #fff;
  font-family: var(--mono);
  min-height: 300px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: clamp(96px, 9vw, 140px) var(--pad-x) 72px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,0.16);
}
.footer .cap { display: grid; gap: 56px; width: 100%; max-width: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.footer-brand { display: grid; gap: 24px; justify-items: start; }
.footer-brand .footer-copy { margin-top: 4px; position: static; }
.footer-logo { height: 61px; width: auto; display: block; }
.footer-addr { color: #FFFFFF; font-size: 18px; line-height: 1.55; margin: 0; }
.footer-base {
  display: none;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-top {
  display: block;
}
.footer .display-mark {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255,255,255,0.55);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.footer-col a { font-size: 22px; color: rgba(255,255,255,0.82); text-decoration: none; }
.footer-col a:hover { color: var(--sky-4); }
.footer-press {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; font-size: 19px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  color: #fff; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.footer-press:hover { background: rgba(255,255,255,0.10); border-color: #fff; }
.footer-press .arr { transition: transform .25s; }
.footer-press:hover .arr { transform: translateX(4px); }
.footer-bottom {
  display: none;
}
.footer-copy {
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  color: rgba(255,255,255,0.55); white-space: nowrap;
}

@media (max-width: 605px), (max-height: 480px) {
  :root { --header-h: 108px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { display: contents; }
  .footer-grid .footer-copy { order: 99; margin-top: 8px; }
  .footer-addr { font-size: 18px; }
  .nav-links { display: none; }
  .nav .nav-cta, .nav a.nav-srg { display: none; }
  .nav .nav-burger { display: flex; }
}
@media (max-height: 480px) and (min-width: 606px) {
  .footer-addr { font-size: 18px !important; }
}

/* —— Mobile hamburger menu (injected by nav.js) —— */
.nav-burger {
  display: none; margin-left: auto; align-items: center; justify-content: center;
  width: 76px; height: 76px; background: transparent; border: 0; cursor: pointer;
  flex-direction: column; gap: 12px; padding: 0;
}
.nav-burger span { display: block; width: 44px; height: 4px; background: #6EC9F0; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(16px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-16px) rotate(-45deg); }
.nav-menu {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 49; flex-direction: column;
  height: auto; overflow-y: auto;
  background: var(--paper-2); border-bottom: 1px solid var(--rule);
  padding: 0;
}
body.theme-dark .nav-menu { background: var(--ink-bg); border-bottom-color: rgba(255,255,255,0.14); }
body.theme-dark .nav-menu a { color: #fff; }
.nav-menu.open { display: flex; }
.nav-menu a {
  font-family: var(--mono); font-size: 28px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 0 var(--pad-x);
  min-height: 88px; display: flex; align-items: center; white-space: nowrap;
  border-top: 1px solid rgba(128,128,128,0.15);
}
.nav-menu a.is-active { color: var(--sky-2); }
.nav-menu a.menu-srg, body.theme-dark .nav-menu a.menu-srg { color: #6EC9F0; border-bottom: 1px solid rgba(128,128,128,0.15); }
body.theme-dark .nav-menu a.menu-srg { border-bottom-color: rgba(255,255,255,0.14); }
.nav-menu a svg.ext-ico { width: 22px; height: 22px; }
@media (max-height: 480px) { .nav-menu { overflow-y: visible; } .nav-menu a { min-height: 0; flex: 1 1 0; font-size: 20px; padding-top: 0; padding-bottom: 0; } }

/* —— Scroll animations (light) —— */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .40s; }

/* —— Chrome-y bits —— */
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 18px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  color: var(--mute);
  background: var(--paper);
}
.on-dark .tag-pill { border-color: rgba(255,255,255,0.32); color: #fff; background: rgba(0,0,0,0.2); }
.tag-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sky-2);
}
.on-dark .tag-pill .dot { background: var(--sky-4); }
.tab {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* placeholders */
.ph-img {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--paper-2) 0%, var(--ivory) 100%);
  position: relative;
  overflow: hidden;
}
.ph-img::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
}

/* utility */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mt-96 { margin-top: 96px; } .mt-128 { margin-top: 128px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; } .mb-48 { margin-bottom: 48px; } .mb-64 { margin-bottom: 64px; }
.mb-96 { margin-bottom: 96px; } .mb-128 { margin-bottom: 128px; }
.pt-128 { padding-top: 128px; } .pb-128 { padding-bottom: 128px; }
.pt-96 { padding-top: 96px; } .pb-96 { padding-bottom: 96px; }
.pt-160 { padding-top: 160px; } .pb-160 { padding-bottom: 160px; }

/* ============================================================
   PAGE-LEVEL DARK THEME
   Apply to <body class="theme-dark"> to invert paper↔ink surfaces.
   Previously-dark accent sections (.srg-section, .diff-section,
   .contact-band, .footer, strategies .bg-ink) are explicitly
   re-inverted to LIGHT so they remain visual accents.
   ============================================================ */
body.theme-dark {
  /* Token swap — flips all paper↔ink surfaces, rules, and mutes.
     Hazy slate-blue with a touch of gray — atmospheric (sky-photo mood). */
  --paper:        #20304A;
  --paper-2:      #283A56;
  --paper-3:      #344865;
  --ivory:        #20304A;
  --ink:          #D6DEEA;
  --ink-soft:     rgba(232, 238, 246, 0.97);
  --rule:         rgba(255, 255, 255, 0.16);
  --rule-strong:  rgba(255, 255, 255, 0.26);
  --mute:         rgba(226, 233, 243, 0.86);
  --mute-2:       rgba(232, 238, 246, 0.97);
  --sky-2:        #6EC9F0; /* brand cyan accent reads cleanly on the deep slate */
  --sky-4:        #8FD8F5;
  background: #20304A;
  color: #fff;
}

/* Nav — uses tokens already, this just kills hardcoded #fff fallbacks */
body.theme-dark .nav {
  background:
    radial-gradient(120% 280% at 86% -60%, rgba(150,178,208,0.14) 0%, rgba(150,178,208,0) 60%),
    linear-gradient(100deg, #1E2D45 0%, #273A56 55%, #314765 100%);
  border-bottom-color: rgba(255,255,255,0.12);
}
body.theme-dark .nav-cta { background: transparent; border-color: rgba(255,255,255,0.45); color: #fff; }
.nav-links .ext-ico { display: inline-block; vertical-align: baseline; margin-left: 2px; opacity: 0.8; }

/* Logos — full-color marks render dark elements that disappear on dark bg.
   Filter to a pure white silhouette in nav; flip footer's white mark back to dark. */
/* Nav logo keeps its colored emblem; the wordmark is already white in this asset */
body.theme-dark .nav-mark .nav-logo { filter: none; }
body.theme-dark .partners-grid .plogo { filter: brightness(0) invert(1); opacity: 0.78; }

/* Investments filter chip — was dark bg + white text; after swap becomes white bg, white text. Re-darken text. */
body.theme-dark .chip.on { color: #0E1B2E; }
body.theme-dark .chip:hover { color: #fff; border-color: #fff; }

/* Soft radial "light spots" across the whole page (matches the SRG band's vibe).
   Fixed to the viewport so the glow follows the scroll. */
body.theme-dark {
  position: relative;
  background: linear-gradient(165deg, #1A2840 0%, #20304A 42%, #2A3C58 100%);
  background-attachment: fixed;
}
body.theme-dark::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(52% 62% at 85% 10%, rgba(110,201,240,0.22), transparent 62%),
    radial-gradient(46% 60% at 6% 88%, rgba(30,104,184,0.24), transparent 60%),
    radial-gradient(30% 42% at 72% 94%, rgba(110,201,240,0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body.theme-dark > *:not(.nav) { position: relative; z-index: 1; }
/* Keep the fixed header pinned above the glow overlay while scrolling */
body.theme-dark > .nav { z-index: 50; }
/* Sections that paint a solid surface cover the body gradient. Make the
   common surface classes transparent in dark mode so the glow shows through.
   The SRG band is intentionally excluded — it has its own dark fill + glow. */
body.theme-dark .bg-paper,
body.theme-dark .bg-paper2,
body.theme-dark .bg-paper3,
body.theme-dark .ov-strip,
body.theme-dark .hero { background: transparent; }

/* SRG preview band (index.html) — keep DARK in theme-dark mode.
   The .srg-section's own CSS uses var(--ink), which theme-dark inverts to white,
   so we re-pin the dark colors explicitly here. */
body.theme-dark .srg-section { background: linear-gradient(160deg, #1D2C44 0%, #2A3D5A 100%); color: #fff; }
body.theme-dark .srg-text h2,
body.theme-dark .srg-text .stats .n { color: #D6DEEA; }
body.theme-dark .srg-text .key,
body.theme-dark .srg-text h2 .accent,
body.theme-dark .srg-text .stats .l { color: #6EC9F0; }
body.theme-dark .srg-text p { color: rgba(214,222,234,0.78); }
body.theme-dark .srg-text .stats { border-top-color: rgba(255,255,255,0.22); }
body.theme-dark .srg-text .btn { color: #fff; border-color: rgba(255,255,255,0.45); }
body.theme-dark .srg-text .btn:hover { background: rgba(255,255,255,0.10); border-color: #fff; }

/* Diff section — flip to LIGHT accent */
body.theme-dark .diff-section { background: #FFFFFF; color: #0E1B2E; }
body.theme-dark .diff-section::before { display: none; }
body.theme-dark .diff-section .section-head .title h2,
body.theme-dark .diff-section .diff-cell h3 { color: #0E1B2E; }
body.theme-dark .diff-section .section-head .title .lede,
body.theme-dark .diff-section .diff-cell p { color: rgba(14,27,46,0.76); }
body.theme-dark .diff-section .section-head .label .eyebrow,
body.theme-dark .diff-section .diff-cell .key { color: #1574D9; }
body.theme-dark .diff-grid { border-top-color: rgba(14,27,46,0.16); }
body.theme-dark .diff-cell { border-bottom-color: rgba(14,27,46,0.12); }
body.theme-dark .diff-cell:nth-child(odd) { border-right-color: rgba(14,27,46,0.16); }

/* Contact band — flip to LIGHT accent */
body.theme-dark .contact-band { background: #FFFFFF; color: #0E1B2E; }
body.theme-dark .contact-band::before { display: none; }
body.theme-dark .contact-band h2 { color: #0E1B2E; }
body.theme-dark .contact-band h2 .accent { color: #1574D9; }
body.theme-dark .contact-grid { background: rgba(14,27,46,0.14); border-color: rgba(14,27,46,0.14); }
body.theme-dark .contact-cell { background: #FFFFFF; }
body.theme-dark .contact-cell .role { color: rgba(14,27,46,0.55); }
body.theme-dark .contact-cell .name { color: #0E1B2E; }
body.theme-dark .contact-cell a { color: #1574D9; }
body.theme-dark .contact-cell a:hover { color: #0E1B2E; }
body.theme-dark .contact-cell .phone { color: rgba(14,27,46,0.70); }

/* Footer stays DARK in all themes (navy bg, light text) */

/* Strategies page: .strategy.bg-ink was a dark accent band — re-invert to LIGHT */
body.theme-dark .strategy.bg-ink { background: #FFFFFF; color: #0E1B2E; }
body.theme-dark .strategy.bg-ink::before { display: none; }
body.theme-dark .strategy.bg-ink .mech-grid { background: rgba(14,27,46,0.14); border-color: rgba(14,27,46,0.14); }
body.theme-dark .strategy.bg-ink .mech { background: #FFFFFF; }
body.theme-dark .strategy.bg-ink .mech .step { color: #1574D9; }
body.theme-dark .strategy.bg-ink .mech ul li { color: rgba(14,27,46,0.82); border-top-color: rgba(14,27,46,0.16); }
body.theme-dark .strategy.bg-ink .mech ul li::before { background: #1574D9; }
body.theme-dark .strategy.bg-ink .mech p { color: rgba(14,27,46,0.82); }
body.theme-dark .strategy.bg-ink h2,
body.theme-dark .strategy.bg-ink h3 { color: #0E1B2E; }
body.theme-dark .strategy.bg-ink .key { color: #1574D9; }
body.theme-dark .strategy.bg-ink .lede,
body.theme-dark .strategy.bg-ink p { color: rgba(14,27,46,0.76); }

/* tag-pill on hero photos uses rgba(14,27,46,0.65) bg + white text — stays fine */

/* ============================================================
   CROSS-PAGE RADIAL-GRADIENT BLEEDTHROUGH
   Make top-level page section backgrounds transparent in
   theme-dark so the body::before radial gradients show on every
   page (not just the home). Card-level surfaces (.pillar, .mode,
   .tc, .tcd, .mech, .ic .img-wrap) intentionally keep their own
   paper-tinted fill so cards stay readable against the glow.
   ============================================================ */
body.theme-dark .ph,
body.theme-dark .press-section,
body.theme-dark .scale-strip,
body.theme-dark .strategy.bg-paper,
body.theme-dark .strategy.bg-paper2,
body.theme-dark .ai-block,
body.theme-dark .section.bg-paper,
body.theme-dark .section.bg-paper2,
body.theme-dark .section.bg-paper3 {
  background: transparent !important;
}

