/* DawnScore — "A Day in the Light"
 *
 * Ported verbatim from the marketing app's dawnscore.css. Two deliberate
 * differences, both forced by the destination:
 *   1. Self-hosted @font-face blocks replace the @fontsource-variable imports
 *      (the CSP allows font-src 'self' only; there is no npm step here).
 *   2. A zero-specificity compat block replaces the Tailwind preflight the
 *      source app rendered under. See the note above it.
 * Everything else is unchanged.
 *
 * The whole page consumes the ambient tokens below; nothing hardcodes a
 * background or ink color. The ambient engine (site.js) writes
 * --bg/--surface/--accent/--accent-2 per frame and flips the discrete ink
 * set (--ink/--ink-soft/--rail) between light and Dusk values per the ink
 * contrast rule. Every color here is a brand color or a sanctioned blend of
 * exactly two brand colors.
 *
 * Scoping: every rule is anchored on html.ds or a .ds-* class so this sheet
 * can never leak into the SPA's stylesheet. Do not globalize anything. */

/* ---------- self-hosted variable fonts ------------------------------------
 * Fraunces (opsz axis) and Archivo (wght axis), latin + latin-ext only.
 * unicode-range values are copied from @fontsource-variable's own CSS
 * (fraunces/opsz.css, archivo/index.css) — do not hand-edit them. */

/* fraunces-latin-ext-opsz-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/marketing/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* fraunces-latin-opsz-normal */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/marketing/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* archivo-latin-ext-wght-normal */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/marketing/fonts/archivo-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* archivo-latin-wght-normal */
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/marketing/fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- registered discrete tokens (160ms crossfade per spec 6.2) ---- */

@property --ink {
  syntax: "<color>";
  inherits: true;
  initial-value: #2b1b3d;
}
@property --ink-soft {
  syntax: "<color>";
  inherits: true;
  initial-value: #6b5c80;
}
@property --rail {
  syntax: "<color>";
  inherits: true;
  initial-value: #2b1b3d;
}

/* ---------- tokens -------------------------------------------------------- */

:root {
  /* brand constants */
  --c-bone: #f7f1e8;
  --c-plum: #2b1b3d;
  --c-coral: #f26b5e;
  --c-amber: #f4a24c;
  --c-pale-gold: #ffe8b8;
  --c-plum-20: #d4ccdd;
  --c-plum-40: #a99bbb;

  /* ambient tokens — initial state is Dawn (act I) */
  --bg: #fbedd0;
  --surface: #fdf6e4;
  --ink: #2b1b3d;
  --ink-soft: #6b5c80;
  --accent: #f4a24c;
  --accent-2: #f26b5e;
  --rail: #2b1b3d;

  /* derived, always ambient-driven */
  --hairline: color-mix(in srgb, var(--ink) 18%, transparent);
  --wash: color-mix(in srgb, var(--accent) 12%, transparent);

  /* sun-cast shadow channel (rewritten per frame by the ambient engine:
   * long right at Dawn, tight at Noon, long left through Golden and Dusk) */
  --shadow-x: 16px;
  --shadow-y: 10px;
  --shadow-blur: 30px;
  --shadow-a: 12%;

  /* type */
  --font-display: "Fraunces Variable", Georgia, "Times New Roman", serif;
  --font-body: "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --text-finale: clamp(3.25rem, 9.6vw, 7.5rem);
  --text-h1: clamp(2.5rem, 6.5vw, 4.75rem);
  --text-h2: clamp(2rem, 4.2vw, 3.25rem);
  --text-score: clamp(3rem, 5.5vw, 4.25rem);
  --text-body: 1.0625rem; /* 17px */
  --text-small: 0.875rem;
  --text-eyebrow: 0.72rem; /* ~11.5px */

  /* spacing scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 72px;
  --sp-act: clamp(88px, 15vh, 150px);

  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-pill: 999px;

  --reveal-ms: 600ms;
  --measure: 68ch;
  --col: min(1120px, calc(100vw - clamp(32px, 8vw, 96px)));

  transition:
    --ink 160ms ease-out,
    --ink-soft 160ms ease-out,
    --rail 160ms ease-out;
}

/* ---------- preflight compat ----------------------------------------------
 * The source app rendered under Tailwind's preflight, so these rules were
 * ambient there and the sheet below silently depends on two of them:
 * border-box sizing (.ds-input is width:100% plus padding inside a flex row)
 * and zeroed default block margins (.ds-dim__line and .ds-footer__fine set
 * only a top margin). Wrapped in :where() so the whole selector carries zero
 * specificity — every .ds-* rule below still wins, exactly as it did under
 * preflight. Scoped to html.ds; nothing here can reach the SPA. */

:where(html.ds) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
:where(html.ds *, html.ds *::before, html.ds *::after) {
  box-sizing: border-box;
}
:where(html.ds) :where(h1, h2, h3, p, ul, ol, figure, blockquote) {
  margin: 0;
}

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

html.ds {
  background-color: var(--bg);
  color: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
}

html.ds body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out;
}

html.ds ::selection {
  background: color-mix(in srgb, var(--c-amber) 40%, var(--c-bone));
  color: var(--c-plum);
}

html.ds :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.ds-skip {
  position: fixed;
  top: -100px;
  left: var(--sp-2);
  z-index: 100;
  padding: 10px 18px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  font-size: var(--text-small);
  text-decoration: none;
}
.ds-skip:focus-visible {
  top: var(--sp-2);
}

/* ---------- shared primitives -------------------------------------------- */

.ds-col {
  width: var(--col);
  margin-inline: auto;
}

.ds-act {
  padding-block: var(--sp-act);
}
.ds-act[data-ambient="noon"] {
  padding-bottom: calc(var(--sp-act) * 0.7);
}
.ds-act[data-ambient="golden"] {
  padding-bottom: calc(var(--sp-act) * 0.55);
}
.ds-act[data-ambient="dusk"] {
  padding-top: calc(var(--sp-act) * 0.55);
}

.ds-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-3);
}

.ds-h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-h1);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-3);
  max-width: 22ch;
}

.ds-h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
  max-width: 26ch;
}

.ds-lede {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 var(--sp-4);
}

.ds-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--c-amber);
  color: var(--c-plum);
  text-decoration: none;
  transition:
    background-color 180ms ease-out,
    transform 180ms ease-out;
}
.ds-btn:hover {
  background: color-mix(in srgb, var(--c-amber) 62%, var(--c-coral));
}
.ds-btn:active {
  transform: translateY(1px);
}

.ds-input {
  appearance: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--c-plum);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: border-color 180ms ease-out;
}
.ds-input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.ds-input:focus-visible {
  outline: 2px solid var(--c-amber);
  outline-offset: 2px;
  border-color: var(--c-amber);
}

/* On the Dusk ground, form fields keep readable plum ink on a bone field. */
[data-ambient="dusk"] .ds-input {
  background: var(--c-bone);
  border-color: color-mix(in srgb, var(--c-bone) 35%, transparent);
}

/* ---------- the Mark ------------------------------------------------------ */

.ds-mark {
  display: block;
}
.ds-mark path {
  transition: stroke-dashoffset 600ms ease-out;
}
.ds-mark [data-band="outer"] {
  transition-delay: 0ms;
}
.ds-mark [data-band="middle"] {
  transition-delay: 150ms;
}
.ds-mark [data-band="inner"] {
  transition-delay: 300ms;
}

/* ---------- nav ----------------------------------------------------------- */

.ds-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 240ms ease-out,
    border-color 240ms ease-out;
}
.ds-nav.is-solid {
  background: var(--surface);
  border-bottom-color: var(--hairline);
}
.ds-nav.is-clear {
  /* Transparent over the photo hero: bone ink for legibility on the scrim. */
  --ink: #f7f1e8;
  color: var(--ink);
}
.ds-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.ds-nav__wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.ds-nav .ds-btn {
  /* CTA hierarchy (R1.4): the nav pill stays quiet so the hero form owns
   * the loudest amber in the viewport. */
  padding: 10px 20px;
  font-size: var(--text-small);
  background: transparent;
  box-shadow: none;
  border: 1.5px solid color-mix(in srgb, currentColor 55%, transparent);
  color: var(--ink);
}
.ds-nav .ds-btn:hover {
  background: color-mix(in srgb, var(--c-amber) 26%, transparent);
}

/* ---------- progress rail ------------------------------------------------- */

.ds-prog {
  position: fixed;
  top: 0;
  bottom: 0;
  left: clamp(14px, 2vw, 28px);
  z-index: 40;
  width: 2px;
  pointer-events: none;
}
.ds-prog__line {
  position: absolute;
  inset: 10vh 0;
  width: 2px;
  background: var(--rail);
  opacity: 0.28;
  border-radius: 1px;
}
.ds-prog__sun {
  position: absolute;
  left: 50%;
  top: calc(10vh + var(--progress, 0) * 80vh);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-amber);
  transform: translate(-50%, -50%);
}
.ds-prog.is-clear .ds-prog__line {
  background: #f7f1e8;
  opacity: 0.4;
}
@media (max-width: 900px) {
  .ds-prog {
    display: none;
  }
}

/* ---------- act I: hero — the monumental full-bleed stage ----------------- */

.ds-hero {
  padding-block: 0;
}

.ds-stage {
  position: relative;
  min-height: 100svh;
  background: #2b1b3d;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  /* Everything over the photo reads in the dusk ink pair (bone on plum
   * scrim) — the sanctioned dark-ground recolor. */
  --ink: #f7f1e8;
  --ink-soft: #c9beda;
  color: var(--ink);
}
.ds-stage picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-stage__scrim {
  position: absolute;
  inset: 0;
  opacity: var(--scrim-gain, 1);
  background:
    linear-gradient(
      78deg,
      rgba(43, 27, 61, 0.8) 0%,
      rgba(43, 27, 61, 0.5) 38%,
      rgba(43, 27, 61, 0.1) 64%,
      rgba(43, 27, 61, 0) 78%
    ),
    linear-gradient(
      0deg,
      rgba(43, 27, 61, 0.5) 0%,
      rgba(43, 27, 61, 0.14) 28%,
      rgba(43, 27, 61, 0) 48%
    ),
    linear-gradient(180deg, rgba(43, 27, 61, 0.38) 0%, rgba(43, 27, 61, 0) 18%);
}
.ds-stage__bloom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    58% 58% at 50% 38%,
    color-mix(in srgb, var(--c-pale-gold) 55%, transparent),
    transparent 72%
  );
  transition: opacity 420ms ease-out;
}
.ds-stage__bloom.is-on {
  opacity: 0.26;
  transition-duration: 150ms;
}

.ds-hero__content {
  position: relative;
  z-index: 2;
  width: var(--col);
  margin-inline: auto;
  padding-top: calc(56px + var(--sp-3));
}
@media (min-width: 1280px) {
  .ds-hero__content {
    /* Keep the headline clear of the floating score card. */
    padding-right: 360px;
    box-sizing: border-box;
  }
}
.ds-hero__content .ds-h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  max-width: 20ch;
}
.ds-hero__mark {
  margin-bottom: var(--sp-3);
}
.ds-hero__sub {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 var(--sp-4);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}
.ds-stage .ds-input {
  background: var(--c-bone);
  color: var(--c-plum);
  border-color: transparent;
}
.ds-stage .ds-waitlist {
  --ink: #2b1b3d;
  --ink-soft: #6b5c80;
  background: var(--c-bone);
  color: var(--ink);
}
.ds-stage .ds-chip {
  background: var(--c-bone);
  color: var(--c-plum);
  border-color: transparent;
}

.ds-hero__card {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 72px);
  bottom: 210px;
  width: min(292px, 24vw);
  --surface: #fdf6e4;
  --ink: #2b1b3d;
  --ink-soft: #6b5c80;
  background: var(--surface);
  color: var(--ink);
  padding: var(--sp-3);
}
.ds-hero__card .ds-mark {
  width: 96px;
  height: auto;
}
.ds-hero__card .ds-card__number {
  font-size: 3rem;
}
.ds-hero__card .ds-card__rows {
  margin-top: var(--sp-2);
  gap: 6px;
}
.ds-hero__card .ds-card__caption {
  margin-top: var(--sp-2);
}
@media (max-width: 1279px) {
  .ds-hero__content {
    order: 1;
  }
  .ds-stage__deck {
    order: 2;
  }
  .ds-hero__card {
    order: 3;
    position: relative;
    right: auto;
    bottom: auto;
    width: min(420px, var(--col));
    margin: var(--sp-2) auto var(--sp-3);
  }
}
@media (max-width: 768px) {
  .ds-stage__scrim {
    /* Content spans the full width on small screens; deepen the veil. */
    box-shadow: inset 0 0 0 100vmax rgba(43, 27, 61, 0.26);
  }
}

.ds-stage__deck {
  position: relative;
  z-index: 2;
  width: var(--col);
  margin-inline: auto;
  padding-bottom: var(--sp-2);
}
.ds-stage__deck .ds-scrub__track {
  max-width: 740px;
}
.ds-stage__deck .ds-scrub__caption {
  min-height: 0;
  margin-top: 6px;
}
.ds-stage .arc-line {
  stroke: #f7f1e8;
  opacity: 0.35;
}

.ds-address {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-bottom: var(--sp-3);
}
.ds-address .ds-input {
  flex: 1;
}
@media (max-width: 640px) {
  .ds-address {
    flex-direction: column;
  }
}

/* ---------- sun scrubber -------------------------------------------------- */

.ds-scrub__caption {
  margin: var(--sp-2) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-small);
  min-height: 2.6em;
}

.ds-scrub__track {
  position: relative;
  margin-top: var(--sp-2);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.ds-scrub__arc {
  display: block;
  width: 100%;
  height: auto;
}
.ds-scrub__arc .arc-line {
  stroke: var(--rail);
  opacity: 0.3;
}
.ds-scrub__handle {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: grab;
  border-radius: 50%;
}
.ds-scrub__handle:active {
  cursor: grabbing;
}
.ds-scrub__handle::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-amber);
  border: 3px solid var(--c-plum);
  box-sizing: border-box;
}
.ds-scrub__handle::after {
  transition: transform 150ms ease-out;
}
.ds-scrub__handle.is-drag::after {
  transform: scale(1.1);
}
.ds-scrub__handle.is-pulse::after {
  animation: ds-pulse 900ms ease-in-out 600ms 1;
}
.ds-stage__deck .ds-scrub__caption {
  animation: ds-cap 180ms ease-out;
}
@keyframes ds-cap {
  from {
    opacity: 0.35;
    transform: translateY(3px);
  }
}
@keyframes ds-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.ds-scrub__chips {
  display: none;
  gap: 8px;
  margin-top: var(--sp-2);
}
.ds-chip {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  cursor: pointer;
  min-height: 44px;
}
.ds-chip[aria-pressed="true"] {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-plum);
}
@media (max-width: 639px) {
  .ds-scrub__track {
    display: none;
  }
  .ds-scrub__chips {
    display: flex;
  }
}

/* ---------- sample score card --------------------------------------------- */

.ds-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  transition: background-color 160ms ease-out;
}
.ds-card__score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: var(--sp-2);
}
.ds-card__number {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-score);
  font-weight: 560;
  line-height: 1;
}
.ds-card__label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ds-card__rows {
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.ds-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  font-size: var(--text-small);
}
.ds-card__row b {
  font-weight: 600;
}
.ds-card__row .val {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  font-size: 1.25rem;
}
.ds-card__caption {
  margin: var(--sp-3) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.04em;
}

/* ---------- sun-cast shadows (driven by the ambient engine) ---------------- */

.ds-card,
.ds-waitlist,
.ds-badge,
.ds-specimen {
  box-shadow: var(--shadow-x) var(--shadow-y) var(--shadow-blur)
    color-mix(in srgb, var(--c-plum) calc(var(--shadow-a) * var(--shadow-gain, 1)), transparent);
}
.ds-btn {
  box-shadow: calc(var(--shadow-x) / 2) calc(var(--shadow-y) / 2) calc(var(--shadow-blur) / 2)
    color-mix(in srgb, var(--c-plum) calc(var(--shadow-a) * var(--shadow-gain, 1)), transparent);
}

/* ---------- shared refinement primitives ----------------------------------- */

.ds-divider {
  display: block;
  width: 170px;
  height: auto;
  color: var(--rail);
  opacity: 0.3;
  margin: 0 0 var(--sp-3);
}

.ds-actintro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(var(--sp-4), 4vw, var(--sp-6));
  align-items: start;
}
@media (max-width: 1023px) {
  .ds-actintro {
    grid-template-columns: 1fr;
  }
  .ds-actintro .ds-specimen {
    max-width: 380px;
  }
}

.ds-specimen {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
}
.ds-specimen img {
  display: block;
  width: 100%;
  height: auto;
}
.ds-specimen--tall {
  max-width: 320px;
  justify-self: end;
}

.ds-golden {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--sp-4), 4vw, var(--sp-6));
  align-items: start;
}
@media (max-width: 1023px) {
  .ds-golden {
    grid-template-columns: 1fr;
  }
}
.ds-golden__side .ds-audience {
  grid-template-columns: 1fr;
  margin-top: var(--sp-3);
}

[data-reveal] {
  transform: translateY(14px);
  transition: transform var(--reveal-ms) ease-out;
}
[data-reveal].is-in {
  transform: none;
}

.ds-tweaks {
  position: fixed;
  right: var(--sp-2);
  bottom: var(--sp-2);
  z-index: 90;
  font-size: var(--text-small);
}
.ds-tweaks__toggle {
  appearance: none;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  cursor: pointer;
  font-family: var(--font-body);
}
.ds-tweaks__panel {
  position: absolute;
  right: 0;
  bottom: 44px;
  width: 240px;
  display: grid;
  gap: 10px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--c-plum) 25%, transparent);
}
.ds-tweaks__panel label {
  display: grid;
  gap: 4px;
}

/* ---------- act II: dimensions -------------------------------------------- */

.ds-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--sp-3), 3vw, var(--sp-5));
  margin-top: var(--sp-5);
}
@media (max-width: 767px) {
  .ds-trio {
    grid-template-columns: 1fr;
  }
}
.ds-dim__value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 2.25rem;
  font-weight: 560;
  line-height: 1;
  margin-top: var(--sp-2);
}
.ds-dim__name {
  font-weight: 600;
  margin-top: 4px;
}
.ds-dim__line {
  color: var(--ink-soft);
  font-size: var(--text-small);
  margin-top: 6px;
  max-width: 34ch;
}

.ds-scale {
  margin-top: var(--sp-6);
}
.ds-scale__intro {
  margin: 0 0 var(--sp-2);
  color: var(--ink-soft);
}
.ds-scale__bar {
  display: grid;
  grid-template-columns: 29fr 20fr 20fr 20fr 11fr;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.ds-scale__seg {
  padding: 14px 12px;
  font-size: var(--text-eyebrow);
  line-height: 1.4;
}
.ds-scale__seg b {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0;
}
.ds-scale__seg--cave {
  background: var(--c-plum-40);
  color: var(--c-plum);
}
.ds-scale__seg--dim {
  background: var(--c-plum-20);
  color: var(--c-plum);
}
.ds-scale__seg--moderate {
  background: var(--c-bone);
  color: var(--c-plum);
  border-inline: 1px solid var(--c-plum-20);
}
.ds-scale__seg--filled {
  background: var(--c-pale-gold);
  color: var(--c-plum);
}
.ds-scale__seg--drenched {
  background: var(--c-amber);
  color: var(--c-plum);
}
@media (max-width: 767px) {
  .ds-scale__bar {
    grid-template-columns: 1fr;
  }
  .ds-scale__seg--moderate {
    border-inline: 0;
    border-block: 1px solid var(--c-plum-20);
  }
}

/* ---------- day strip (act II) --------------------------------------------- */

.ds-daystrip {
  margin-top: var(--sp-3);
}
@media (max-width: 639px) {
  .ds-daystrip__bars {
    gap: 2px;
  }
  .ds-daystrip__bars span:nth-child(2n) {
    display: none;
  }
}
.ds-daystrip__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 74px;
}
.ds-daystrip__bars span {
  flex: 1;
  min-height: 3px;
  border-radius: 2px 2px 0 0;
}
.ds-daystrip__bars .b-cave {
  background: var(--c-plum-40);
  opacity: 0.55;
}
.ds-daystrip__bars .b-dim {
  background: var(--c-plum-20);
}
.ds-daystrip__bars .b-moderate {
  background: color-mix(in srgb, var(--c-plum-20) 35%, var(--c-bone));
}
.ds-daystrip__bars .b-filled {
  background: var(--c-pale-gold);
}
.ds-daystrip__bars .b-drenched {
  background: var(--c-amber);
}
.ds-daystrip__ticks {
  position: relative;
  height: 1.5em;
  margin-top: 8px;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ds-daystrip__ticks span {
  position: absolute;
  transform: translateX(-50%);
}

/* ---------- act III: how it works ----------------------------------------- */

.ds-steps {
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--sp-3);
  max-width: 620px;
}
.ds-steps li {
  counter-increment: step;
  display: flex;
  gap: var(--sp-2);
  align-items: baseline;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
}
.ds-steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--c-plum);
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1rem;
  transform: translateY(6px);
}

.ds-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
@media (max-width: 767px) {
  .ds-audience {
    grid-template-columns: 1fr;
  }
}
.ds-audience .ds-card h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 var(--sp-1);
}
.ds-audience .ds-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- waitlist ------------------------------------------------------ */

.ds-waitlist {
  max-width: 620px;
  margin-top: var(--sp-4);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}
.ds-waitlist__lead {
  margin: 0 0 var(--sp-2);
}
.ds-waitlist__row {
  display: flex;
  gap: 10px;
}
@media (max-width: 640px) {
  .ds-waitlist__row {
    flex-direction: column;
  }
}
.ds-waitlist__msg {
  margin: var(--sp-2) 0 0;
  font-size: var(--text-small);
}
.ds-waitlist__msg.is-error {
  color: var(--c-coral);
  font-weight: 600;
}
.ds-waitlist__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- act IV: agents + finale --------------------------------------- */

.ds-badge {
  /* The badge lives only on the Dusk ground; pin the dusk tokens locally so
   * its contrast is context-independent (Plum 40 cobrand on dusk surface). */
  --surface: #3a2952;
  --ink: #f7f1e8;
  --ink-soft: #c9beda;
  margin-top: var(--sp-4);
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--ink);
}
.ds-badge__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
}
.ds-badge__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-badge__pill {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-bone);
  color: var(--c-plum);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.125rem;
  line-height: 1;
}
.ds-badge__meta {
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-small);
}
.ds-badge__cobrand {
  color: var(--c-plum-40);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-finale {
  /* Sits deep inside the Dusk act where the ambient ground is always full
   * plum; pinning it statically is visually identical and keeps the Pale
   * Gold type's contrast context-independent. */
  --bg: #2b1b3d;
  --ink: #f7f1e8;
  --ink-soft: #c9beda;
  background: var(--bg);
  text-align: center;
  padding-block: var(--sp-act);
  position: relative;
}
.ds-finale::before {
  /* The soft Amber glow behind the finale type. Lives on the section (not
   * the type element) so it never inflates any box's scroll size. Breathes
   * once when the finale enters view (is-lit); static under reduced motion. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background: radial-gradient(
    42% 46% at 50% 42%,
    color-mix(in srgb, var(--c-amber) 26%, transparent),
    transparent 72%
  );
}
.ds-finale.is-lit::before {
  animation: ds-breathe 1.9s ease-in-out both;
}
.ds-finale {
  overflow: hidden;
}
.ds-finale__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0 !important;
  opacity: 0.42;
  animation: ds-vidin 900ms ease-out both;
  -webkit-mask-image: radial-gradient(95% 85% at 50% 50%, #000 35%, transparent 76%);
  mask-image: radial-gradient(95% 85% at 50% 50%, #000 35%, transparent 76%);
}
@keyframes ds-vidin {
  from {
    opacity: 0;
  }
}
@keyframes ds-breathe {
  0% {
    opacity: 0.45;
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0.85;
  }
}
.ds-finale > *:not(.ds-finale__video) {
  position: relative;
  z-index: 1;
}
.ds-finale__type {
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-finale);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-pale-gold);
  margin: 0;
}
.ds-finale .ds-btn {
  margin-top: var(--sp-4);
}

/* ---------- footer -------------------------------------------------------- */

.ds-footer {
  position: relative;
  padding: var(--sp-5) 0;
}
.ds-footer__horizon {
  /* The horizon rule (R1.2): a full-width line passing through the footer
   * mark's baseline — the sun setting behind the horizon at page end. */
  position: relative;
  margin-bottom: var(--sp-4);
}
.ds-footer__horizon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: color-mix(in srgb, var(--c-bone) 26%, transparent);
}
.ds-footer__horizon .ds-mark {
  position: relative;
}
.ds-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  justify-content: space-between;
}
.ds-footer p {
  margin: var(--sp-1) 0 0;
}
.ds-footer nav {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.ds-footer a,
.ds-footer span[title] {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--text-small);
}
.ds-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.ds-footer__fine {
  margin-top: var(--sp-3);
  color: var(--ink-soft);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.02em;
  max-width: 72ch;
}

/* ---------- utilities ----------------------------------------------------- */

.ds-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Static Dusk ground for pages outside the ambient engine (404, error). */
.ds-dusk-page {
  --bg: #2b1b3d;
  --surface: #3a2952;
  --ink: #f7f1e8;
  --ink-soft: #c9beda;
  --rail: #f7f1e8;
  background: var(--bg);
  color: var(--ink);
}

/* ---------- simple pages (privacy, 404) ----------------------------------- */

.ds-simple {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--sp-6) 0;
}
.ds-simple__inner {
  width: min(560px, calc(100vw - 64px));
}
.ds-simple h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: var(--text-h2);
  font-weight: 520;
  margin: var(--sp-3) 0;
}
.ds-simple p {
  color: var(--ink-soft);
}
.ds-simple a {
  color: var(--ink);
}
.ds-simple__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--sp-5);
}
.ds-simple__fine {
  margin-top: var(--sp-5);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.02em;
}
.ds-simple .ds-divider {
  width: 180px;
  margin-bottom: var(--sp-3);
}
.ds-dusk-page .ds-simple__inner {
  position: relative;
}
.ds-dusk-page .ds-simple__inner::before {
  content: "";
  position: absolute;
  inset: -30% -25%;
  pointer-events: none;
  background: radial-gradient(
    42% 36% at 32% 26%,
    color-mix(in srgb, var(--c-amber) 13%, transparent),
    transparent 70%
  );
}

/* ---------- reveals ------------------------------------------------------- */

.ds-reveal {
  animation: ds-rise 600ms ease-out both;
}
@keyframes ds-rise {
  from {
    opacity: 0.001;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html.ds {
    scroll-behavior: auto;
  }
  :root {
    transition: none;
  }
  html.ds body,
  .ds-mark path,
  .ds-nav,
  .ds-btn,
  .ds-input,
  .ds-card {
    transition: none !important;
  }
  .ds-scrub__handle.is-pulse::after {
    animation: none;
  }
  .ds-reveal {
    animation: none;
  }
  .ds-stage__bloom {
    transition: none;
    opacity: 0 !important;
  }
  [data-reveal] {
    transform: none;
    transition: none;
  }
  .ds-stage__deck .ds-scrub__caption {
    animation: none;
  }
  .ds-scrub__handle::after {
    transition: none;
  }
  .ds-finale::before {
    opacity: 0.85;
  }
  .ds-finale.is-lit::before {
    animation: none;
  }
  .ds-finale__video {
    display: none;
  }
}
