/**
 * Marketing landing chrome (full-bleed hero, sections, rail gutters).
 * Structure first (`landing-structure.css`), then type/skin overrides here.
 * Fonts / rail default in tokens.css (`--font-landing-*`, `--rail-slot`).
 */

@import "./landing-structure.css";
@import "./hero-intro.css";
@import "./link-chip.css";


/* ── Marketing layout ─────────────────────────────────────────────── */
body.cx-page {
  background: var(--page-surface);
  font-family: var(--font-landing-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.cx-canvas {
  gap: var(--space-section);
  padding: 0;
}
/* Mid-page blocks: mirror left rail with matching right gutter (hero + footer stay full-bleed) */
.cx-canvas > *:not(.cx-hero):not(.cx-footer) {
  margin-right: var(--rail-slot);
}
.cx-brand-rail {
  padding: 12px 12px 24px;
}
/* Collapsed + expanded lockup: sit slightly lower in the rail */
.cx-brand-rail__mark {
  margin-top: 0.35rem;
}
.cx-nav {
  min-height: 72px;
  height: auto;
}
.cx-nav__brand {
  margin-top: 0.4rem;
}
.cx-nav__link {
  font-size: var(--type-landing-nav-size);
  line-height: 1.25;
  height: auto;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
}
.cx-nav__cta {
  font-size: var(--type-landing-caption-size);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  height: auto;
  min-height: 3rem;
  padding: 0 1.5rem;
}
.cx-section {
  padding: 0 var(--pad-inline);
  gap: var(--space-block);
}
.cx-supporters {
  padding: 1.25rem var(--pad-inline);
  min-height: 0;
}
.cx-spotlight {
  padding: var(--space-block) var(--pad-inline);
  height: auto;
  min-height: 480px;
  gap: 4rem;
}
.cx-section.cx-pillars {
  padding: var(--space-block) var(--pad-inline);
}
.cx-pillars {
  gap: 4rem;
}
.cx-grid {
  gap: 2rem;
}
.cx-card {
  gap: 1rem;
  padding: 0;
}
.cx-card--soft {
  padding: 2rem;
  gap: 0.875rem;
}
.cx-card__title {
  font-family: var(--font-landing-display);
  font-size: var(--type-landing-title-size);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cx-card__body,
.cx-section__lede,
.cx-flow__step p,
.cx-spotlight__copy p {
  font-size: var(--type-landing-body-size);
  line-height: var(--type-landing-body-leading);
}
.cx-hero {
  height: auto;
  /* Leave nav + supporters strip (+ short join) above the fold */
  min-height: min(620px, calc(100svh - 16rem));
}
/* Tighter join than --space-section so supporters stays in the first viewport */
.cx-hero + .cx-supporters {
  margin-top: calc(2.5rem - var(--space-section));
}
.cx-hero__copy {
  flex: 0 0 min(var(--hero-copy-max), 46%);
  width: min(var(--hero-copy-max), 46%);
  padding: var(--pad-hero-block) var(--pad-inline) var(--pad-hero-block)
    max(var(--pad-inline), calc(var(--rail-slot) + 1.25rem));
  gap: 1.5rem;
  justify-content: center;
}
.cx-hero__headline {
  font-family: var(--font-landing-display);
  font-size: var(--type-landing-hero-size);
  line-height: var(--type-landing-hero-leading);
  font-weight: 300;
  letter-spacing: -0.015em;
  max-width: 11em;
}
.cx-hero__lede {
  font-size: var(--type-landing-lede-size);
  line-height: var(--type-landing-lede-leading);
  max-width: 32em;
}
.cx-supporters__award {
  font-size: var(--type-landing-caption-size);
  line-height: 1.45;
}
.cx-hero__ctas {
  gap: 1rem;
  margin-top: 0.5rem;
}
.cx-btn {
  border-radius: var(--btn-radius);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--type-landing-caption-size);
  font-weight: 700;
  min-height: 3rem;
  padding: 0 1.35rem;
}
/* Beat Tailwind preflight `h*:not(#\#)` inherit (2 IDs) so section type lands. */
h1.cx-section__heading:not(#\#):not(#\#), h2.cx-section__heading:not(#\#):not(#\#), h3.cx-section__heading:not(#\#):not(#\#), h4.cx-section__heading:not(#\#):not(#\#), h5.cx-section__heading:not(#\#):not(#\#), h6.cx-section__heading:not(#\#):not(#\#) {
  font-family: var(--font-landing-display);
  font-size: var(--type-landing-section-size);
  line-height: var(--type-landing-section-leading);
  font-weight: 300;
  letter-spacing: -0.015em;
  max-width: 16em;
}
.cx-nav__links {
  font-size: var(--type-landing-nav-size);
  letter-spacing: 0;
  gap: 2.25rem;
}
.cx-nav .cx-text-link {
  font-size: var(--type-landing-nav-size);
}
.cx-kicker__label,
.cx-eyebrow:not(.cx-eyebrow--mark):not(.cx-eyebrow--mark-icon) {
  font-size: var(--type-landing-eyebrow-size);
  letter-spacing: var(--type-landing-eyebrow-tracking);
  font-weight: 500;
}
.cx-flow {
  gap: 2rem;
}
.cx-flow__step {
  gap: 0.875rem;
}
.cx-flow__heading {
  font-family: var(--font-landing-display);
  font-size: var(--type-landing-title-size);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cx-flow__n {
  font-size: var(--type-landing-eyebrow-size);
  letter-spacing: var(--type-landing-eyebrow-tracking);
}
.cx-timeline__title {
  font-size: var(--type-landing-title-size);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cx-timeline__body {
  font-size: var(--type-landing-body-size);
  line-height: var(--type-landing-body-leading);
}
.cx-timeline__year {
  font-size: var(--type-landing-caption-size);
  letter-spacing: 0.04em;
}
.cx-footer h1.cx-section__heading:not(#\#):not(#\#), .cx-footer h2.cx-section__heading:not(#\#):not(#\#), .cx-footer h3.cx-section__heading:not(#\#):not(#\#), .cx-footer h4.cx-section__heading:not(#\#):not(#\#), .cx-footer h5.cx-section__heading:not(#\#):not(#\#), .cx-footer h6.cx-section__heading:not(#\#):not(#\#) {
  font-size: var(--type-landing-section-size);
}
.cx-footer .cx-section__lede:not(#\#):not(#\#) {
  font-size: var(--type-landing-body-size);
  line-height: var(--type-landing-body-leading);
}

.cx-nav {
  background: var(--page-surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.cx-nav__cta {
  border: 0;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.cx-nav__cta:hover,
.cx-nav__cta:focus-visible {
  background: var(--btn-primary-active-bg);
  color: var(--btn-primary-active-text);
}
/* Page dock (sticky supporters header) — always opaque; host may override ink/surface. */
#supporters.cx-page-dock,
header.cx-page-dock.cx-supporters {
  background: var(--page-surface-inset);
  color: var(--ink);
  box-shadow: none;
}

html[data-cx-theme='dark'] #supporters.cx-page-dock,
html.dark #supporters.cx-page-dock,
html[data-cx-theme='dark'] header.cx-page-dock.cx-supporters,
html.dark header.cx-page-dock.cx-supporters {
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.cx-section,
.cx-supporters:not(.cx-page-dock) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
/* Diffuse lift over the hero as the strip docks — soft, no hard edge */
.cx-supporters:not(.cx-page-dock) {
  box-shadow:
    0 -20px 48px rgba(0, 2, 26, 0.07),
    0 -6px 18px rgba(0, 2, 26, 0.04);
}

/* Index sticky stage — dock may sit as next sibling; optional pull over hero media */
@media (min-width: 768px) {
  [data-cx-hero-stage='sticky'] + .cx-supporters--parallax {
    margin-top: calc(-1 * var(--supporters-parallax-overlap));
  }

  [data-cx-hero-stage='sticky'] #hero .cx-device-key__layer {
    background-position: center 32%;
  }
}
html.dark .cx-supporters:not(.cx-page-dock),
html[data-cx-theme='dark'] .cx-supporters:not(.cx-page-dock) {
  box-shadow:
    0 -24px 56px rgba(0, 0, 0, 0.32),
    0 -8px 20px rgba(0, 0, 0, 0.18);
}
.cx-spotlight {
  border: 0;
  background: var(--page-surface-elevated);
  box-shadow: none;
}
/* Pillars uses .cx-section + .cx-pillars — restore elevated card (.cx-section bg is cleared above). */
.cx-section.cx-pillars {
  border: 0;
  background: var(--page-surface-elevated);
  box-shadow: none;
}
.cx-footer {
  border: 0;
  background: var(--footer-bg);
  margin-top: auto;
  box-shadow: none;
}
.cx-footer .cx-cta {
  border: 0;
  background: transparent;
}
.cx-hero {
  position: relative;
  isolation: isolate;
  border: 0;
  background: transparent;
  color: var(--brand-white);
  overflow: hidden;
}
/*
 * Biolum chrome (`.ds-biolum*`, legacy `.cx-*`) lives in `ds/biolum/biolum.css`
 * (via `ds/ds.css`, or link `ds/biolum/biolum.css` / `dist/bioluminescence.css`).
 */

.cx-hero__copy,
.cx-hero__media {
  position: relative;
  z-index: 1;
}
.cx-hero .cx-kicker__label,
.cx-hero__headline,
.cx-hero__lede {
  color: rgba(255, 255, 255, 0.88);
}
.cx-hero__headline {
  color: var(--brand-white);
}
.cx-hero__lede {
  color: rgba(255, 255, 255, 0.8);
}
.cx-supporters__award {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 18, 28, 0.94);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.cx-supporters__award::after {
  background: rgba(8, 18, 28, 0.94);
  border-right-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.cx-btn {
  border: 0;
}
.cx-hero .cx-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.cx-hero .cx-btn--secondary:hover,
.cx-hero .cx-btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--brand-white);
}
.cx-card,
.cx-flow__step {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.cx-dash-box {
  border-style: solid;
  border-color: var(--line);
  background: var(--page-surface-elevated);
}
.cx-mode-switch {
  border: 0;
  background: var(--page-surface-elevated);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cx-field input,
.cx-field select {
  border-style: solid;
  background: var(--page-surface-elevated);
}

