:root {
  --color-tangerine: #f37942;
  --color-bubblegum: #fed3cd;
  --color-lavender: #c1b7fe;
  --color-forest-green: #1c6257;
  --color-blue: #196ed5;
  --color-cream: #fcf1e4;
  --color-sunshine: #ffc500;
  --color-navy: #1a2449;
  --color-navy-soft: #31406f;
  --color-paper: #fff8f0;
  --color-line: rgba(26, 36, 73, 0.12);
  --color-line-strong: rgba(26, 36, 73, 0.22);
  --color-overlay: rgba(252, 241, 228, 0.74);
  --color-shadow: rgba(26, 36, 73, 0.14);
  --color-error: #9c3030;

  --font-brand: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;

  --header-height: 5.5rem;
  --container-width: min(1200px, calc(100vw - 3rem));
  --container-narrow: min(980px, calc(100vw - 3rem));
  --modal-width: min(31rem, calc(100vw - 1.75rem));

  --space-2xs: 0.35rem;
  --space-xs: 0.625rem;
  --space-sm: 0.875rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --radius-sm: 0.9rem;
  --radius-md: 1.4rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px var(--color-shadow);
  --shadow-panel: 0 22px 60px rgba(26, 36, 73, 0.09);

  --z-base: 1;
  --z-copy: 2;
  --z-header: 10;
  --z-modal: 20;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-brand);
  background:
    radial-gradient(circle at top left, rgba(255, 197, 0, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(243, 121, 66, 0.18), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, var(--color-cream) 48%, #f8eddf 100%);
  color: var(--color-navy);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

body.is-loading {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 2);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 197, 0, 0.16), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(243, 121, 66, 0.16), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, var(--color-cream) 100%);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader-inner {
  display: grid;
  justify-items: center;
  gap: 0;
}

.site-loader-character {
  width: clamp(5.75rem, 14vw, 8.25rem);
  height: auto;
  animation: loader-spin 1.35s linear infinite;
  will-change: transform;
}

@keyframes loader-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.canvas-shell {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  width: 100%;
  height: var(--page-sim-height, 100vh);
  pointer-events: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-cream);
  text-decoration: none;
  z-index: calc(var(--z-modal) + 1);
}

.skip-link:focus-visible {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  padding: 1rem 0 0;
}

.header-shell {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.75rem;
  background: rgba(252, 241, 228, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(26, 36, 73, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(8.6rem, 14vw, 10.5rem);
  height: auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--color-navy-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notify-trigger {
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.notify-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-cream);
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(26, 36, 73, 0.16);
  cursor: pointer;
}

.notify-trigger:hover {
  transform: translateY(-2px);
  background: var(--color-blue);
}

.notify-trigger:active {
  transform: translateY(1px) scale(0.985);
}

.notify-trigger-header {
  min-height: 2.9rem;
  padding-inline: 1rem;
}

.notify-trigger:focus-visible,
.notify-close:focus-visible,
.notify-form input:focus-visible,
.notify-form button:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.hero {
  width: var(--container-width);
  margin: 0 auto;
  padding: 1.1rem 0 1rem;
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(24rem, 1.15fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
  --hero-intro-height: auto;
}

.hero-intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  padding: 1.5rem 0 0.5rem;
}

.hero-intro h1,
.section-heading h2,
.notify-panel h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-intro h1 {
  max-width: 8ch;
  font-size: clamp(3rem, 8vw, 6.3rem);
}

.hero-lead,
.section-heading,
.story-card p,
.cta-panel p,
.site-footer p,
.notify-panel p {
  text-wrap: pretty;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  line-height: 1.6;
  color: var(--color-navy-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  align-items: center;
  margin: 1.8rem 0 2rem;
}

.hero-facts {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-facts div {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 1rem;
  max-width: 22rem;
  border: 1px solid rgba(26, 36, 73, 0.08);
  border-radius: 1.35rem;
  background: rgba(255, 248, 240, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-facts dt {
  color: var(--color-navy-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-stage {
  position: relative;
  min-height: 0;
  padding: 3rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 0;
}

.hourglass-frame {
  position: relative;
  width: min(100%, 46rem);
  height: var(--hero-intro-height);
  min-height: 28rem;
  max-height: calc(100dvh - 8rem);
  margin: 0 0 0 auto;
  flex-shrink: 0;
}

.canvas-copy {
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-width: 17rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1.4rem;
  background: rgba(255, 248, 240, 0.76);
  border: 1px solid rgba(26, 36, 73, 0.08);
  box-shadow: var(--shadow-panel);
  z-index: var(--z-copy);
}

.canvas-note,
.canvas-caption {
  margin: 0;
  /* font-size: 0.95rem; */
  font-size: 0.7rem;
  line-height: 1.5;
}

.canvas-caption {
  margin-top: 0.4rem;
  color: var(--color-navy-soft);
}

.canvas-shell canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.section,
.site-footer {
  width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: 3rem 0 1rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p:last-child,
.section-heading + p {
  color: var(--color-navy-soft);
}

.story-disclosure {
  padding-top: 1.2rem;
}

.story-disclosure {
  display: grid;
  justify-items: center;
}

.story-disclosure summary {
  list-style: none;
}

.story-disclosure summary::-webkit-details-marker {
  display: none;
}

.story-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: min(100%, 22rem);
  min-height: 3.15rem;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  box-shadow: 0 14px 24px rgba(26, 36, 73, 0.16);
  color: var(--color-cream);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.story-toggle::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(252, 241, 228, 0.16);
  font-size: 1rem;
  line-height: 1;
}

.story-disclosure[open] .story-toggle::after {
  content: "-";
}

.story-toggle:hover {
  transform: translateY(-1px);
  background: var(--color-blue);
}

.story-toggle:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

.story-disclosure-content {
  display: grid;
  gap: 0;
  margin-top: 1.4rem;
  width: 100%;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr);
  gap: 1rem 1.35rem;
  align-items: center;
  min-height: 13rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 240, 0.82);
  box-shadow: var(--shadow-panel);
}

.story-card-wide {
  min-height: 14.5rem;
  padding: 1.45rem;
}
/* .story-card-1 {
  min-height: 14.5rem;
  padding: 1.45rem;
  background:
    radial-gradient(circle at top right, var(--color-bubblegum), transparent 34%),
    rgba(255, 248, 240, 0.88);
}
.story-card-2 {
  min-height: 14.5rem;
  padding: 1.45rem;
  background:
    radial-gradient(circle at top right, var(--color-forest-green), transparent 34%),
    rgba(255, 248, 240, 0.88);
}
.story-card-3 {
  min-height: 14.5rem;
  padding: 1.45rem;
  background:
    radial-gradient(circle at top right, var(--color-sunshine), transparent 34%),
    rgba(255, 248, 240, 0.88);
} */

.story-card-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-card img {
  width: clamp(5.25rem, 10vw, 7rem);
  height: auto;
}

.story-card-copy {
  display: grid;
  gap: 0.65rem;
}

.story-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 0;
  max-width: 42ch;
  line-height: 1.6;
  color: var(--color-navy-soft);
}

.card-kicker {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-navy-soft);
}

.cta-panel {
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 240, 0.82);
  box-shadow: var(--shadow-panel);
}

.section-cta {
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.countdown-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 1.7rem);
  margin-bottom: 1rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, var(--color-lavender), transparent 32%),
    rgba(255, 248, 240, 0.88);
  box-shadow: var(--shadow-panel);
}

.countdown-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.countdown-unit {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 36, 73, 0.08);
}

.countdown-value {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy-soft);
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(circle at right center, rgba(25, 110, 213, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 248, 240, 0.92), rgba(255, 211, 205, 0.65));
}

.cta-panel h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin: 0;
  max-width: 34rem;
  color: var(--color-navy-soft);
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 0 0 1.25rem;
}

.footer-brand {
  max-width: 30rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  line-height: 1.6;
  color: var(--color-navy-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-content: start;
  justify-content: end;
}

.footer-links a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}

.notify-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.notify-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.notify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 36, 73, 0.35);
  backdrop-filter: blur(8px);
}

.notify-panel {
  position: relative;
  width: var(--modal-width);
  padding: clamp(1.3rem, 3vw, 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.98), rgba(252, 241, 228, 0.95));
  box-shadow: 0 26px 60px rgba(26, 36, 73, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.notify-panel h2 {
  font-size: clamp(2rem, 5vw, 2.85rem);
}

.notify-panel p {
  margin: 0.75rem 0 0;
  max-width: 30ch;
  line-height: 1.55;
  color: var(--color-navy-soft);
}

.notify-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(26, 36, 73, 0.08);
  color: var(--color-navy);
  font-weight: 700;
  cursor: pointer;
}

.notify-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.notify-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-line-strong);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-navy);
}

.notify-form input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.notify-form button {
  min-height: 3.25rem;
  border: 0;
  border-radius: 1rem;
  background: var(--color-sunshine);
  color: var(--color-navy);
  font-weight: 800;
  cursor: pointer;
  transition: transform 220ms ease, background-color 220ms ease;
}

.notify-form button:hover {
  transform: translateY(-1px);
  background: #ffcf26;
}

.notify-form button:active {
  transform: translateY(1px) scale(0.985);
}

.notify-form button[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.form-feedback {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-feedback.error {
  color: var(--color-error);
}

.form-feedback.success {
  color: var(--color-forest-green);
}

.geometry-controls {
  display: none;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    position: relative;
    top: auto;
    padding-top: 2rem;
  }

  .hero-stage {
    min-height: auto;
    padding-top: 2rem;
  }

  .canvas-copy {
    top: 0.9rem;
    right: 0.9rem;
    max-width: min(15rem, calc(100% - 1.8rem));
  }

  .canvas-shell {
    height: var(--page-sim-height, 100vh);
  }

  .hourglass-frame {
    width: min(100%, 42rem);
    height: min(48rem, 74dvh);
    margin-top: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .story-card-wide {
    min-height: auto;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  :root {
    --container-width: min(100vw - 2rem, 1200px);
    --container-narrow: min(100vw - 2rem, 980px);
    --modal-width: calc(100vw - 2rem);
  }

  .site-header {
    padding-top: 0.65rem;
  }

  .header-shell {
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .notify-trigger-header {
    display: none;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-intro {
    padding-top: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .notify-trigger,
  .cta-panel .notify-trigger {
    width: 100%;
  }

  .hero-facts div {
    max-width: none;
  }

  .canvas-copy {
    margin-bottom: 0.9rem;
  }

  .canvas-shell {
    height: var(--page-sim-height, 100vh);
  }

  .hourglass-frame {
    width: 100%;
    height: min(38rem, 62dvh);
  }

  .canvas-copy {
    top: 0.75rem;
    right: 0.75rem;
    max-width: min(14rem, calc(100% - 1.5rem));
  }

  .page-noise {
    opacity: 0.14;
  }

  .section {
    padding-top: 2.5rem;
  }

  .story-card,
  .cta-panel,
  .countdown-card {
    border-radius: 1.35rem;
  }

  .story-card {
    grid-template-columns: 1fr;
    align-items: start;
    text-align: left;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .notify-panel {
    padding-top: 3.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
