/* ═══════════════════════════════════════════════════════════
     BUTTERFLY OS — MASTER PUBLIC SITE
     Apple-clean. Locked language. Brand palette.
     ═══════════════════════════════════════════════════════════ */

:root {
  --black: #000000;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --paper: #ffffff;
  --paper-soft: #fbfbfd;
  --paper-warm: #f5f5f7;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-dark: rgba(255, 255, 255, 0.12);
  --muted: #6e6e73;

  /* Brand palette — Butterfly OS locked */
  --teal: #1de9c5; /* season: beginning */
  --teal-2: #0ea5a0;
  --green: #34c759; /* season: growth */
  --purple: #af52de; /* season: retreat */
  --blue: #2d7dd2; /* season: change */
  --indigo: #5e5ce6; /* season: alignment */
  --navy: #1a3a5c;
  --gold: #d97706;

  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 110, 115, 0.5) transparent;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(110, 110, 115, 0.5);
  border-radius: 980px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.25s ease;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--teal-2);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.47;
  font-weight: 400;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Display type — Apple-style, big, tight */
.display {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.lede {
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink-2);
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-2);
}
.dark .eyebrow {
  color: var(--teal);
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
}
/* Background + glass blur lives on a pseudo, NOT on the nav itself.
   backdrop-filter establishes a containing block for fixed-positioned
   descendants — putting it on nav was clipping the mobile menu
   (.nav-links is fixed) to the nav's 56px height. The pseudo has
   no children, so it doesn't constrain anything. */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: -1;
  pointer-events: none;
}
.nav-inner {
  width: 100%;
  max-width: 1240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.nav-mark svg,
.nav-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink);
}
.nav-links a {
  position: relative;
  transition: color 0.25s ease, opacity 0.25s ease;
  opacity: 0.85;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal-2);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover {
  color: var(--teal-2);
  opacity: 1;
}
.nav-links a:hover::after {
  width: 100%;
  left: 0;
}
/* Hamburger toggle — only visible on mobile */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 8px;
}
/* Bars are absolutely centered, then offset on Y so the resting
   state shows three stacked lines and the open state collapses
   them all to the center for a clean X. */
.nav-toggle-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background: var(--ink);
  border-radius: 1px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}
.nav-toggle-bar:nth-child(1) {
  transform: translateY(-7px);
}
.nav-toggle-bar:nth-child(2) {
  transform: translateY(0);
}
.nav-toggle-bar:nth-child(3) {
  transform: translateY(7px);
}

@media (max-width: 740px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    /* Full-screen-below-nav overlay with glassmorphism.
       The menu element is ALWAYS positioned at top: 56px to bottom: 0.
       Open/close is animated via clip-path: inset(...) — the menu
       is clipped from its bottom edge upward when closed, then the
       clip retracts downward to reveal the items. The menu can never
       visually cross above y=56, so it never covers the header
       during the transition. */
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(36px) saturate(160%);
    -webkit-backdrop-filter: blur(36px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    clip-path: inset(0 0 100% 0);
    -webkit-clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    will-change: clip-path, opacity;
    transition:
      clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      -webkit-clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
  }
  .nav-links li {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 18px 24px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ink);
    opacity: 1;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a:hover,
  .nav-links a:active {
    color: var(--teal-2);
  }
  /* Open state — clip-path retracts from bottom upward, revealing
     the menu as if a drawer extending down from the header's edge. */
  .nav-open .nav-links {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
  }
  /* Hamburger morphs to clean X — both diagonals meet at the
     button's center because every bar collapses to translateY(0). */
  .nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(0) rotate(45deg);
  }
  .nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: translateY(0);
  }
  .nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
  }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: var(--black);
  color: var(--paper);
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(29, 233, 197, 0.12),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 70%,
      rgba(45, 125, 210, 0.08),
      transparent 60%
    );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
}

/* Locked tri-line stack */
.tri-stack {
  margin-top: 72px;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}
.tri-line {
  padding: 28px 24px;
  text-align: center;
}
.tri-line .key {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.tri-line .key.t {
  color: var(--teal);
}
.tri-line .key.b {
  color: var(--blue);
}
.tri-line .key.w {
  color: var(--paper);
}
.tri-line .sub {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
@media (max-width: 740px) {
  .tri-stack {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* The luminous butterfly mark */
.butterfly-mark {
  width: clamp(120px, 14vw, 180px);
  margin: 0 auto 48px;
  filter: drop-shadow(0 0 60px rgba(29, 233, 197, 0.35));
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .tagline {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero .ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}
.btn-arrow {
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.btn:hover .btn-arrow {
  transform: translateX(6px);
}
.btn.dark-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn.dark-primary:hover {
  background: var(--black);
}
.btn.dark-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.18);
}
.btn.dark-ghost:hover {
  border-color: var(--ink);
}

/* ─── SECTION RHYTHM (Apple-style) ───────────────────────── */
section {
  padding: 130px 24px;
}
section.tight {
  padding: 90px 24px;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
}
.container-wide {
  max-width: 1240px;
  margin: 0 auto;
}
section.dark {
  background: var(--black);
  color: var(--paper);
}
section.warm {
  background: var(--paper-warm);
}
section.soft {
  background: var(--paper-soft);
}

.head {
  text-align: center;
  margin-bottom: 96px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.head .eyebrow {
  display: inline-block;
  margin-bottom: 24px;
}
.head h2 {
  text-wrap: balance;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.head h2 .accent {
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
section.dark .head h2 .accent {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.head .lede {
  font-size: clamp(18px, 1.7vw, 22px);
}
section.dark .head .lede {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 740px) {
  section {
    padding: 90px 20px;
  }
  .head {
    margin-bottom: 64px;
  }
}

/* ─── PROBLEM STATEMENT ──────────────────────────────────── */
.problem-statement {
  text-align: center;
  padding: 160px 24px;
  background: linear-gradient(180deg, #d8dde2 0%, #f5f5f7 100%);
}
.problem-statement h2 {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 80px;
  color: var(--ink-2);
}
.problem-statement h2 .emphasis {
  color: var(--ink);
}
.problem-statement p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── STATS STRIP (Help still comes too late) ────────────── */
.stats-section {
  padding: 140px 24px;
  background: var(--paper);
}
.stats-head {
  text-align: center;
  margin-bottom: 80px;
}
.stats-head h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stats-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  padding: 56px 32px;
  text-align: center;
}
.stat .num {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}
.stat .src {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 740px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── TWO-LAYER (Movement / Infrastructure) ──────────────── */
.two-layer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.architecture-stack {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}
.architecture-stack .layer-card {
  border-radius: 0;
  min-height: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.architecture-stack .layer-card-text {
  display: flex;
  flex-direction: column;
}
.architecture-stack .layer-card-text > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.architecture-stack .layer-card-viz {
  display: flex;
  align-items: center;
  justify-content: center;
}
.architecture-stack .layer-card-viz svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}
@media (max-width: 740px) {
  .architecture-stack .layer-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .architecture-stack .layer-card-viz {
    order: 2;
  }
  .architecture-stack .layer-card-viz svg {
    max-width: 220px;
  }
}

/* ─── ARCHITECTURE VISUALIZATIONS — entrance + continuous ─── */

/* Cultural — looping butterfly video with black bg dissolved into the card.
   Two stacked <video> elements crossfade at the loop boundary so the
   end-of-clip jump is hidden behind a 0.7s opacity dissolve.
   The wrap MUST stay at opacity:1 always — any parent with opacity<1
   creates a stacking-context isolation that breaks the children's
   mix-blend-mode: screen against the card's gradient backdrop. */
.viz-cultural-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  isolation: auto;
}
.viz-cultural-video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  mix-blend-mode: screen;
  background: transparent;
}
.viz-cultural-video-b {
  position: absolute;
  inset: 0;
  opacity: 0;
}
/* Override the global .reveal opacity-fade on the architecture stack so
   mix-blend-mode keeps working from frame one. The stack still slides
   up via the reveal's transform, but stays fully opaque throughout. */
.architecture-stack.reveal,
.architecture-stack.reveal.in {
  opacity: 1;
}

/* Institutional — looping emotional-infrastructure video.
   Source is 9:16 portrait — forced into a square render area via
   aspect-ratio: 1/1 + object-fit: cover.

   Background blending strategy: mix-blend-mode: LIGHTEN (not screen).
     - lighten formula: result = max(backdrop, source) per channel.
     - The institutional card's ink backdrop is ~rgb(29, 29, 31).
     - Any video pixel darker than that — pure black, near-black,
       compression-noise dark, slightly-tinted dark — is replaced
       by the backdrop, completely hidden.
     - Only video pixels brighter than the ink (the actual scene
       content) remain visible. No rectangle, no trace, no edge.
   This is more aggressive than screen and the correct mode for a
   dark uniform backdrop. The cultural card uses screen because its
   teal-blue gradient is bright; for the dark ink card, lighten is
   the right call. */
.viz-institutional-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  isolation: auto;
}
.viz-institutional-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  mix-blend-mode: lighten;
  background: transparent;
}
.viz-institutional-video-b {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.architecture-stack .layer-card.cultural::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 100%);
  z-index: 2;
}
.architecture-stack .layer-card.institutional {
  box-shadow: inset 0 28px 60px -28px rgba(29, 233, 197, 0.22);
}
.layer-card {
  border-radius: 24px;
  overflow: hidden;
  padding: 64px 48px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.layer-card.cultural {
  background: linear-gradient(160deg, #1de9c5 0%, #2d7dd2 100%);
  color: var(--paper);
}
.layer-card.institutional {
  background: var(--ink);
  color: var(--paper);
}
.layer-card .layer-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 24px;
}
.layer-card h3 {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.layer-card p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
  max-width: 360px;
}
.layer-card .layer-tags {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.layer-card.institutional .tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
@media (max-width: 740px) {
  .two-layer {
    grid-template-columns: 1fr;
  }
  .layer-card {
    padding: 48px 32px;
    min-height: auto;
  }
}

/* ─── THE SYMBOL ─────────────────────────────────────────── */
.symbol-section {
  background: var(--black);
  color: var(--paper);
  padding: 160px 24px;
  text-align: center;
}
.symbol-stage {
  margin: 0 auto 96px;
  width: clamp(180px, 24vw, 300px);
  filter: drop-shadow(0 0 80px rgba(29, 233, 197, 0.4));
}
.symbol-meanings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.meaning {
  padding: 56px 32px;
  text-align: center;
}
.meaning-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  object-fit: contain;
}
.meaning h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.meaning p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 740px) {
  .symbol-meanings {
    grid-template-columns: 1fr;
  }
}

/* ─── THE SIGN ───────────────────────────────────────────── */
.sign-section {
  background: var(--paper);
  padding: 160px 24px;
  text-align: center;
}
.sign-graphic {
  margin: 0 auto 56px;
  width: clamp(160px, 18vw, 220px);
}
.sign-section h2 {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.sign-section .sign-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 96px;
  line-height: 1.55;
}
.sign-triplet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 880px;
  margin: 0 auto;
  gap: 0;
}
.sign-mvmt {
  text-align: center;
  padding: 40px 24px;
}
.sign-mvmt .verb {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.sign-mvmt .meaning-line {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 740px) {
  .sign-triplet {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─── THE FIVE SEASONS — CENTERPIECE ─────────────────────── */
.seasons-section {
  padding: 140px 24px 160px;
  background: var(--black);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.seasons-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(29, 233, 197, 0.06),
    transparent 55%
  );
  pointer-events: none;
}
.seasons-inner {
  position: relative;
  z-index: 2;
}

/* Hero image — the ringed system poster */
.seasons-hero-img {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto 80px;
  filter: drop-shadow(0 0 80px rgba(29, 233, 197, 0.15));
}
.seasons-hero-caption {
  text-align: center;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin: 0 auto 80px;
  line-height: 1.5;
}
.seasons-keynote-caption {
  text-align: center;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 720px;
  margin: 24px auto 0;
  line-height: 1.5;
}

/* The locked product doorway prompt */
.season-prompt {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 720px;
}
.prompt-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--teal);
  margin-bottom: 28px;
}
.season-prompt h3 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 20px;
}
.season-prompt h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}
.season-prompt p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* Interactive button row — canonical names */
.seasons-buttons {
  max-width: 1100px;
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.season-btn {
  cursor: pointer;
  padding: 28px 16px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Strip browser default button look */
  font-family: var(--font);
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.season-btn:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(29, 233, 197, 0.3);
}
.season-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}
.season-btn.s1::before {
  background: var(--teal);
}
.season-btn.s2::before {
  background: #5eead4;
}
.season-btn.s3::before {
  background: #67e8f9;
}
.season-btn.s4::before {
  background: #5ba9ff;
}
.season-btn.s5::before {
  background: #2d7dd2;
}
.season-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    0 12px 40px rgba(29, 233, 197, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.season-btn:hover::before {
  opacity: 1;
}
.season-btn.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}
.season-btn.is-active::before {
  opacity: 1;
  height: 3px;
}
.season-btn .btn-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
}
.season-btn .season-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  object-fit: contain;
}
.season-btn .btn-name {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 8px;
}
.season-btn .btn-of {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.season-btn .btn-of .accent {
  font-weight: 500;
}
.season-btn.s1 .btn-of .accent {
  color: var(--teal);
}
.season-btn.s2 .btn-of .accent {
  color: #5eead4;
}
.season-btn.s3 .btn-of .accent {
  color: #67e8f9;
}
.season-btn.s4 .btn-of .accent {
  color: #5ba9ff;
}
.season-btn.s5 .btn-of .accent {
  color: #2d7dd2;
}

/* Detail panel — opens on click */
.season-detail {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  text-align: left;
  border-left: 4px solid var(--teal);
  backdrop-filter: blur(12px);
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.season-detail.open {
  max-height: 1500px;
  opacity: 1;
  transform: translateY(0);
  padding: 56px 48px;
}
.season-detail .det-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.season-detail h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--paper);
}
.season-detail .det-sub {
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
}
.season-detail .det-body {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}
.season-detail .det-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.season-detail .det-row .lbl {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.season-detail .det-row .val {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* Keynote bottom image */
.seasons-keynote-wrap {
  margin-top: 130px;
  text-align: center;
}
.keynote-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 32px;
}
.seasons-keynote-img {
  display: block;
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .seasons-buttons {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  .season-btn {
    padding: 20px 8px 24px;
  }
}
@media (max-width: 600px) {
  .seasons-section {
    padding: 100px 16px 120px;
  }
  .seasons-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .season-btn:nth-child(5) {
    grid-column: 1 / -1;
  }
  .season-detail {
    padding: 40px 28px;
  }
  .season-detail .det-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .seasons-keynote-wrap {
    margin-top: 80px;
  }
}

/* ─── BUTTERFLY MONTH DIAL ───────────────────────────────── */
.month-section {
  background: var(--black);
  color: var(--paper);
  padding: 160px 24px;
  text-align: center;
}
.month-dial-wrap {
  margin: 0 auto 80px;
  width: clamp(280px, 32vw, 420px);
  aspect-ratio: 1;
  position: relative;
}
.month-dial-svg {
  width: 100%;
  height: 100%;
}
.month-section h2 {
  font-size: clamp(56px, 7.5vw, 110px);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.month-section .one-line {
  font-size: clamp(18px, 1.8vw, 22px);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}
.month-section .every-may {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.04em;
}
.month-pillars {
  margin-top: 96px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.month-pillar {
  padding: 48px 32px;
  text-align: left;
}
.month-pillar h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.month-pillar p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}
@media (max-width: 740px) {
  .month-pillars {
    grid-template-columns: 1fr;
  }
}

/* ─── ONE HUMANITY · MANY FLAGS · ONE BUTTERFLY ──────────── */
.flags-section {
  background: var(--black);
  color: var(--paper);
  padding: 130px 24px 160px;
  text-align: center;
}
.flags-image-wrap {
  max-width: 1280px;
  margin: 0 auto 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.flags-image {
  display: block;
  width: 100%;
  height: auto;
}
.flags-section .flag-sub {
  margin-top: 56px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ─── GLOBAL FLAGS — image on pure white, edges dissolved ───────── */
.global-flags-section {
  padding: 130px 24px 160px;
  background: var(--paper);
  text-align: center;
}
.global-flags-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--teal-2);
  margin-bottom: 24px;
}
.global-flags-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 auto 64px;
  max-width: 880px;
  color: var(--ink);
}
.global-flags-heading .accent {
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.global-flags-wrap {
  max-width: 1280px;
  margin: 0 auto;
}
.global-flags-image {
  display: block;
  width: 100%;
  height: auto;
  /* Section bg matches image bg (white). Multiply blend mode also
     dissolves any anti-aliased edge pixels into the page so the
     butterflies appear to float directly on the site. */
  mix-blend-mode: multiply;
}
/* Mobile rendering uses a single <canvas> that draws three horizontal
   slices of the SAME source bitmap stacked vertically. The image has
   21 columns of butterflies; 21 / 3 = 7, so each slice breaks cleanly
   between butterflies. The <img> stays in the DOM (loaded once) but is
   hidden — the canvas reads pixels from it. Result: ~50px butterflies,
   no horizontal scroll, one image asset, no clones. */
.global-flags-canvas {
  display: none;
}
@media (max-width: 540px) {
  .global-flags-image {
    display: none;
  }
  .global-flags-canvas {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
  }
}

/* ─── NETWORKS — PARTNER ADOPTION LAYER ───────────────── */
.networks-section {
  padding: 160px 24px;
  background: var(--paper);
  position: relative;
}
.networks-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.08),
    transparent
  );
}
.networks-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 80px;
}
.networks-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--teal-2);
  margin-bottom: 28px;
}
.networks-head h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.networks-head h2 .accent {
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.networks-head p {
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
}

/* Module cards — the 5 partner modules */
.modules-grid {
  max-width: 1180px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.module-card {
  background: var(--paper-warm);
  border-radius: 20px;
  padding: 40px 32px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(29, 233, 197, 0.1);
}
/* The first card spans 2 cols on wide screens for visual rhythm */
.module-card.feature {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
  background-image:
    radial-gradient(
      circle at 80% 20%,
      rgba(29, 233, 197, 0.12),
      transparent 50%
    ),
    linear-gradient(135deg, #0a0a0a 0%, #1a3a5c 100%);
}
.module-card.feature .mod-num,
.module-card.feature .mod-meta {
  color: rgba(255, 255, 255, 0.5);
}
.module-card.feature p {
  color: rgba(255, 255, 255, 0.78);
}

.mod-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.module-card h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.module-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  flex-grow: 1;
}
.mod-meta {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Who it's for */
.who-its-for {
  max-width: 1080px;
  margin: 96px auto 0;
  text-align: center;
}
.who-its-for h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.who-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.who-pill {
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* Partner CTA strip */
.partner-cta {
  max-width: 1080px;
  margin: 96px auto 0;
  padding: 56px 48px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  text-align: center;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(29, 233, 197, 0.1),
      transparent 50%
    ),
    radial-gradient(circle at 80% 50%, rgba(45, 125, 210, 0.1), transparent 50%);
}
.partner-cta h3 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.partner-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.partner-cta .btn {
  margin: 0 6px;
}

@media (max-width: 980px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .module-card.feature {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .networks-section {
    padding: 100px 20px;
  }
  .modules-grid {
    grid-template-columns: 1fr;
  }
  .module-card.feature {
    grid-column: span 1;
  }
  .partner-cta {
    padding: 40px 28px;
  }
  /* On narrow screens the two CTA buttons wrap to separate lines.
     Default margin: 0 6px leaves no vertical gap between wrapped
     rows, so the buttons touch. Add vertical margin so wrapped
     buttons get clean breathing room (16px gap between rows). */
  .partner-cta .btn {
    margin: 8px 6px;
  }
}

/* Wrapper section when partner-cta is standalone (Networks section hidden) */
.cta-bridge {
  padding: 130px 24px;
  background: var(--paper);
}
.cta-bridge .partner-cta {
  margin-top: 0;
}

/* ─── EMOTIONAL INFRASTRUCTURE — DEFEND/ENDURE/REINVENT ──── */
.infra-section {
  padding: 160px 24px;
  background: var(--paper-soft);
}
.infra-hero-img {
  display: block;
  width: clamp(230px, 26vw, 350px);
  height: auto;
  margin: 0 auto 96px;
  filter: drop-shadow(0 0 80px rgba(29, 233, 197, 0.4));
}
.infra-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.pillar-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 48px 36px;
  border: 1px solid var(--rule);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.pillar-card.defend::before {
  background: var(--teal);
}
.pillar-card.endure::before {
  background: var(--green);
}
.pillar-card.reinvent::before {
  background: var(--teal);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.pillar-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 24px;
}
.pillar-card h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.pillar-card .pillar-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pillar-card .pillar-body {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .infra-pillars {
    grid-template-columns: 1fr;
  }
}

/* ─── SIX STEPS ─────────────────────────────────────────── */
.six-steps {
  padding: 130px 24px;
  background: var(--ink);
  color: var(--paper);
}
.steps-flow {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.step {
  padding: 48px 20px;
  text-align: center;
  position: relative;
}
.step-num {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.step h4 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.step p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.six-steps .gate-line {
  text-align: center;
  margin-top: 56px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  font-style: italic;
}
@media (max-width: 980px) {
  .steps-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── THREE RAILS ─────────────────────────────────────────── */
.rails-section {
  padding: 160px 24px;
  background: var(--paper);
}
.rails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.rail-card {
  border-radius: 24px;
  padding: 56px 40px;
  background: linear-gradient(160deg, #f5f5f7 0%, #ffffff 100%);
  border: 1px solid var(--rule);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.rail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.rail-card:hover {
  transform: translateY(-4px);
}
.rail-card:hover::before {
  transform: scaleX(1);
}
.rail-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 24px;
}
.rail-card h3 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.rail-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.rails-footer {
  text-align: center;
  margin-top: 80px;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-2);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}
@media (max-width: 900px) {
  .rails-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── OUTCOMES ─────────────────────────────────────────── */
.outcomes-section {
  padding: 160px 24px;
  background: var(--paper-warm);
}
.outcomes-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.outcome {
  padding: 48px 32px;
}
.outcome-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  color: var(--teal-2);
}
.outcome h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.outcome p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── CONTACT — single editorial CTA ─────────────────────── */
.contact-section {
  padding: 160px 24px;
  background: var(--paper-soft);
  text-align: center;
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}
.contact-section .eyebrow {
  display: inline-block;
  margin-bottom: 28px;
}
.contact-section h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.contact-section h2 .accent {
  background: linear-gradient(135deg, var(--teal-2) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 auto 56px;
  max-width: 560px;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding: 6px 4px;
  transition:
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-email::after {
  content: "→";
  display: inline-block;
  margin-left: 14px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-email:hover {
  color: var(--teal-2);
}
.contact-email:hover::after {
  transform: translateX(8px);
}
.contact-email:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 6px;
  border-radius: 4px;
}
@media (max-width: 540px) {
  .contact-section {
    padding: 110px 20px;
  }
  .contact-email::after {
    margin-left: 8px;
  }
}

/* ─── CLOSING SEAL ─────────────────────────────────────────── */
.closing {
  background: var(--black);
  color: var(--paper);
  padding: 180px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(29, 233, 197, 0.08),
    transparent 60%
  );
}
.closing-mark {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0 0 64px calc(-50vw + 50%);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 80px rgba(29, 233, 197, 0.5));
}

/* ─── BLOB FIELD — drifting elongated blurred shapes ─── */
.blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0.55;
}
.blob-teal {
  background: radial-gradient(
    ellipse 60% 100% at center,
    rgba(29, 233, 197, 1),
    rgba(29, 233, 197, 0.6) 40%,
    transparent 75%
  );
}
.blob-blue {
  background: radial-gradient(
    ellipse 60% 100% at center,
    rgba(91, 169, 255, 1),
    rgba(91, 169, 255, 0.5) 40%,
    transparent 75%
  );
}
.blob-indigo {
  background: radial-gradient(
    ellipse 60% 100% at center,
    rgba(94, 92, 230, 0.95),
    rgba(94, 92, 230, 0.45) 40%,
    transparent 75%
  );
}

/* Per-section blob shape, size, position, animation timings */
.hero .blob-a,
.symbol-section .blob-a,
.seasons-section .blob-a,
.closing .blob-a {
  width: 55vw;
  height: 22vh;
  top: 12%;
  left: -25%;
  border-radius: 50% / 50%;
  animation: blobDriftA 32s ease-in-out infinite alternate;
}
.hero .blob-b,
.symbol-section .blob-b,
.seasons-section .blob-b,
.closing .blob-b {
  width: 45vw;
  height: 26vh;
  top: 55%;
  left: 80%;
  border-radius: 50% / 50%;
  animation: blobDriftB 38s ease-in-out infinite alternate;
}
.hero .blob-c,
.symbol-section .blob-c,
.seasons-section .blob-c,
.closing .blob-c {
  width: 38vw;
  height: 18vh;
  top: 75%;
  left: 25%;
  border-radius: 50% / 50%;
  animation: blobDriftC 28s ease-in-out infinite alternate;
}

/* Per-section staggered animation-delay so they don't all sync */
.symbol-section .blob-a {
  animation-delay: -10s;
}
.symbol-section .blob-b {
  animation-delay: -18s;
}
.symbol-section .blob-c {
  animation-delay: -6s;
}
.seasons-section .blob-a {
  animation-delay: -22s;
}
.seasons-section .blob-b {
  animation-delay: -8s;
}
.seasons-section .blob-c {
  animation-delay: -14s;
}
.closing .blob-a {
  animation-delay: -16s;
}
.closing .blob-b {
  animation-delay: -28s;
}
.closing .blob-c {
  animation-delay: -4s;
}

@keyframes blobDriftA {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(110vw, -8vh) scale(1.2);
  }
}
@keyframes blobDriftB {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-110vw, 6vh) scale(1.15);
  }
}
@keyframes blobDriftC {
  from {
    transform: translate(0, 0) scale(0.95);
  }
  to {
    transform: translate(80vw, -16vh) scale(1.25);
  }
}

/* Make sure the section content sits ABOVE the blob-field */
.symbol-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.symbol-section > .head,
.symbol-section > .symbol-stage,
.symbol-section > .symbol-meanings {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none !important;
  }
}
.closing h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.closing .you-not-alone {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}
.closing .seal-line {
  font-size: 14px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 2;
}

/* ─── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--paper-warm);
  color: var(--ink-2);
  padding: 48px 24px;
  font-size: 12px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .legal {
  color: var(--muted);
}
.footer-inner .right {
  color: var(--muted);
}

/* Help button (always one tap away) */
.help-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.help-button:hover {
  transform: translateY(-2px);
  background: var(--black);
}
.help-button .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: helpDotGlow 2.4s ease-in-out infinite;
}
.help-button .dot::before,
.help-button .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--teal);
  pointer-events: none;
  animation: helpDotPing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.help-button .dot::after {
  animation-delay: 1.2s;
}
@keyframes helpDotGlow {
  0%,
  100% {
    box-shadow:
      0 0 6px var(--teal),
      0 0 12px rgba(29, 233, 197, 0.35);
  }
  50% {
    box-shadow:
      0 0 12px var(--teal),
      0 0 22px rgba(29, 233, 197, 0.55);
  }
}
@keyframes helpDotPing {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  80% {
    opacity: 0;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .help-button .dot,
  .help-button .dot::before,
  .help-button .dot::after {
    animation: none;
  }
}

/* ─── HELP MODAL ─────────────────────────────────────── */
.help-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.help-modal[hidden] {
  display: none;
}
.help-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.help-modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, #1d1d1f 0%, #0a0a0a 100%);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.98);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}
.help-modal.open .help-modal-panel {
  transform: translateY(0) scale(1);
}
.help-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.help-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}
.help-modal-close:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.help-modal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.help-modal h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--paper);
}
.help-modal-lede {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
}
.help-region {
  margin-bottom: 22px;
}
.help-region-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.help-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--paper);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.help-line:hover {
  background: rgba(29, 233, 197, 0.08);
  border-color: rgba(29, 233, 197, 0.3);
  transform: translateY(-1px);
}
.help-line:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.help-line-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
}
.help-line-action {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.help-modal-emergency {
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--teal);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}
.help-modal-emergency strong {
  font-weight: 600;
  color: var(--paper);
}
.help-modal-emergency a {
  color: var(--teal);
  font-weight: 500;
}
.help-modal-emergency a:hover {
  text-decoration: underline;
}
.help-modal-disclaimer {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}
@media (max-width: 540px) {
  .help-modal-panel {
    padding: 32px 22px 22px;
    border-radius: 20px;
  }
  .help-modal h2 {
    font-size: 20px;
  }
}

/* ─── REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 {
  transition-delay: 0.1s;
}
.reveal.d2 {
  transition-delay: 0.2s;
}
.reveal.d3 {
  transition-delay: 0.3s;
}
.reveal.d4 {
  transition-delay: 0.4s;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION — fixes for narrow viewports
   ═══════════════════════════════════════════════════════════ */

/* Tablet and below */
@media (max-width: 740px) {
  /* "One humanity. Many flags. One butterfly..." was forced onto a
     single line via white-space: nowrap, overflowing the viewport
     and causing horizontal scroll. On mobile let it wrap normally. */
  .flags-section .flag-sub {
    white-space: normal;
    max-width: 540px;
    padding: 0 24px;
    line-height: 1.5;
  }

  /* Architecture cards — base padding (64px 48px) is too generous on
     small screens. Tighten to 40px lateral / 56px vertical. */
  .architecture-stack .layer-card {
    padding: 56px 28px;
  }

  /* Global Flags section — tighten section padding so the image
     doesn't crowd the section edges. */
  .global-flags-section {
    padding: 80px 20px 50px;
  }

  /* CTA bridge wrapper */
  .cta-bridge {
    padding: 100px 20px;
  }

  /* Architecture lede h2 — text-wrap balance + nbsp can produce
     awkward narrow-screen wraps; let it flow more naturally. */
  .head h2 {
    text-wrap: pretty;
  }
}

/* Phone — small to medium */
@media (max-width: 540px) {
  /* Help button — was too wide on narrow viewports because its
     ~280px content overhang plus 24px right margin pushed it
     toward (or past) the viewport's left edge. Compact it and
     pin a max-width so it can never escape the viewport. */
  .help-button {
    bottom: 16px;
    right: 16px;
    padding: 9px 14px;
    font-size: 11.5px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
  }
  .help-button .dot {
    width: 7px;
    height: 7px;
  }

  /* Tighter season-section padding (less bottom space below caption) */
  .seasons-section {
    padding: 90px 16px 56px;
  }
  /* "The full system" eyebrow + caption — was floating with too
     much air above and below on mobile. Tighten the chain:
       - wrap sits much closer below the season cards / detail panel
       - eyebrow sits closer to its caption
       - caption hugs the eyebrow */
  .seasons-keynote-wrap {
    margin-top: 28px;
  }
  .keynote-eyebrow {
    margin-bottom: 12px;
  }
  .seasons-keynote-caption {
    margin-top: 10px;
  }

  /* Butterfly Month section — was inheriting desktop 160px padding,
     leaving a large empty space directly under the keynote caption
     before the dial appeared. Both top and bottom trimmed so the
     transition into the next dark flags-section is short. */
  .month-section {
    padding: 90px 20px 60px;
  }
  .month-pillars {
    margin-top: 56px;
  }

  /* "One humanity. Many flags. One butterfly..." section — had no
     mobile override, was inheriting desktop padding 130px / 160px
     and an extra 56px margin-top on the text itself. Combined with
     the prior section's padding-bottom this produced ~276px of
     dark empty space on phones. Collapse aggressively. */
  .flags-section {
    padding: 40px 20px 70px;
  }
  .flags-section .flag-sub {
    margin-top: 0;
  }

  /* The Symbol section — large padding on small screens wastes space */
  .symbol-section {
    padding: 100px 20px;
  }

  /* The Sign section */
  .sign-section {
    padding: 100px 20px;
  }

  /* Stats section */
  .stats-section {
    padding: 90px 20px;
  }

  /* Problem statement */
  .problem-statement {
    padding: 110px 20px;
  }

  /* Outcomes */
  .outcomes-section {
    padding: 100px 20px;
  }

  /* Emotional Infrastructure section — was inheriting 160px desktop
     padding so the empty space directly below the global-flags
     image was huge on phones (both sections share paper background,
     so the gap reads as one void). */
  .infra-section {
    padding: 70px 20px 90px;
  }

  /* Closing seal */
  .closing {
    padding: 110px 20px;
  }

  /* Architecture inner cards — tighter still */
  .architecture-stack .layer-card {
    padding: 44px 22px;
  }

  /* Layer card heading scales down a hair */
  .layer-card h3 {
    font-size: clamp(28px, 6.5vw, 36px);
  }
  .layer-card p {
    font-size: 15px;
  }

  /* Season detail panel — open state padding override.
     Without this, mobile open uses the desktop 56px 48px which is
     too wide for a 320–400px viewport. */
  .season-detail.open {
    padding: 36px 22px;
  }
  .season-detail .det-eyebrow,
  .season-detail h3,
  .season-detail .det-sub,
  .season-detail .det-body {
    word-break: break-word;
  }

  /* Hero text safety */
  .hero h1 {
    font-size: clamp(40px, 12vw, 72px);
  }
  .hero .tagline {
    font-size: clamp(15px, 4vw, 18px);
    padding: 0 8px;
  }

  /* Contact email — ensure it never overflows */
  .contact-email {
    font-size: clamp(20px, 6vw, 30px);
    word-break: break-word;
  }

  /* Global flags heading scales */
  .global-flags-heading {
    font-size: clamp(28px, 7.5vw, 42px);
  }

  /* Section heads scale */
  .head h2 {
    font-size: clamp(28px, 7.5vw, 48px);
  }
  .stats-head h2 {
    font-size: clamp(28px, 7vw, 42px);
  }
  .month-section h2 {
    font-size: clamp(40px, 12vw, 72px);
  }
  .closing h2 {
    font-size: clamp(28px, 7vw, 48px);
  }
  .closing .you-not-alone {
    font-size: clamp(22px, 5.5vw, 32px);
  }
}

/* Very narrow phones (iPhone SE 1st gen, older Androids) */
@media (max-width: 380px) {
  .help-button {
    padding: 8px 12px;
    font-size: 11px;
  }
  .architecture-stack .layer-card {
    padding: 36px 18px;
  }
  .layer-card h3 {
    font-size: 26px;
  }
  .layer-card p {
    font-size: 14px;
  }
  .global-flags-eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
  }
  .contact-email {
    font-size: 20px;
  }
  /* Stats numbers fit narrower */
  .stat .num {
    font-size: clamp(40px, 14vw, 64px);
  }
}
