/* ────────────────────────────────────────────────────────────────
   CosmodromEdu — v2 LIGHT theme (lavender / indigo · moon hero)
   ──────────────────────────────────────────────────────────────── */

@property --hue { syntax: '<angle>'; inherits: false; initial-value: 250deg; }
@property --glow-x { syntax: '<percentage>'; inherits: false; initial-value: 50%; }

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

:root {
  /* page surfaces (light) */
  --bg:        #EDEBF9;
  --bg-2:      #E7E4F6;
  --bg-3:      #F4F3FC;
  --surface:   #FFFFFF;
  --surface-2: #F7F6FD;

  /* foregrounds (dark on light) */
  --ink:       #211D45;   /* headings / primary */
  --ink-soft:  #332E5C;
  --text:      #4C4869;   /* body copy */
  --muted:     #8B88A3;
  --faint:     #B4B1C8;

  /* lines */
  --line:        rgba(33,29,69,0.10);
  --line-strong: rgba(33,29,69,0.18);
  --line-soft:   rgba(33,29,69,0.05);

  /* accent — indigo/violet */
  --accent:        #5B4DE0;
  --accent-bright: #6C5CE7;
  --accent-deep:   #4334B8;
  --accent-2:      #877AF0;   /* lighter violet (italic emphasis) */
  --accent-tint:   #EBE8FB;   /* pale icon/tag wash */

  /* state colors */
  --live:     #E0A53B;   /* amber — live mission */
  --breaking: #F0436E;   /* coral — breaking news */
  --ok:       #25B374;   /* green — status */

  /* shadows (indigo-tinted) */
  --shadow-sm: 0 1px 2px rgba(40,33,110,0.06);
  --shadow-md: 0 10px 30px rgba(40,33,110,0.08);
  --shadow-lg: 0 24px 60px rgba(40,33,110,0.14);

  /* type */
  --display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --sans:    'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --serif:   'Newsreader', 'Times New Roman', serif;
  --mono:    'Geist Mono', ui-monospace, Menlo, monospace;

  /* rhythm */
  --container: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);

  /* easing */
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 380;
  line-height: 1.55;
  font-variation-settings: 'wdth' 100, 'opsz' 16;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: default;
}

/* ────── LIGHT COSMIC BACKDROP ────── */
.space-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 78% -10%, #CFD2F4 0%, rgba(207,210,244,0) 55%),
    radial-gradient(90% 70% at 12% 8%, #E9E3FA 0%, rgba(233,227,250,0) 60%),
    linear-gradient(180deg, #DEDCF6 0%, #ECEAF8 38%, #F4F3FC 100%);
}
.space-bg #warp { display:block; width:100%; height:100%; }

/* ────── MOON STAGE (hero focal, recedes on scroll) ────── */
.globe-stage {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  /* Seat the pale moon into the lavender sky: multiply lets its bright body
     melt away while only the soft craters/limb tint the background, so it
     reads as a quiet daytime Moon rather than a flat sticker. The blend MUST
     live here (the stacking-context element), not on the lone canvas inside. */
  mix-blend-mode: multiply;
}
#globe {
  position: absolute; left: 50%; top: 50%;
  transform:
    translate(-50%, -50%)
    translate(var(--globe-tx, 30%), var(--globe-ty, 2%))
    scale(var(--globe-scale, 0.65));
  transform-origin: center center;
  /* Pale + non-invasive: the hero is already busy, so keep the Moon faint. */
  opacity: var(--globe-op, 0.42);
  will-change: transform, opacity;
}
@media (max-width: 900px) {
  #globe {
    transform:
      translate(-50%, -50%)
      translate(8%, var(--globe-ty, 8%))
      scale(var(--globe-scale, 0.55));
  }
}

.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.11  0 0 0 0 0.27  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* soft top glow / bottom fade to seat content on the gradient */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 50% at 50% 108%, rgba(255,255,255,0.7), transparent 65%);
}

/* ────── LAYOUT ────── */
.shell { position: relative; z-index: 2; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ────── TRANSMISSION TICKER ────── */
.transmission {
  position: relative; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  height: 32px; display: flex; align-items: center; overflow: hidden;
}

.transmission .track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker 70s linear infinite;
}

.transmission .ticker-group {
  display: flex;
  flex-shrink: 0;
  gap: 56px;
  padding-right: 56px;
}

.transmission .item { display: inline-flex; align-items: center; gap: 10px; }
.transmission .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 3px rgba(224,165,59,0.18);
  animation: blink 1.6s ease-in-out infinite;
}
.transmission .item b { color: var(--ink); font-weight: 500; letter-spacing: 0.08em; }
.transmission .item.accent b { color: var(--accent); }
.transmission .item.gold b   { color: #C98A18; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity: .25; } }

/* ────── BREAKING NEWS TOPBAR ────── */
.newsbar {
  position: relative; z-index: 29;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  background: linear-gradient(90deg, var(--breaking), #FF6F93);
  color: #fff;
  padding: 9px var(--gutter);
  font-size: 13.5px; letter-spacing: 0.01em;
  overflow: hidden;
  max-height: 60px;
  transition: max-height .4s var(--ease), padding .4s var(--ease), opacity .3s var(--ease);
}
.newsbar.hide { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.newsbar .nb-inner { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.newsbar .nb-flag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(255,255,255,0.22);
  padding: 4px 9px; border-radius: 4px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.newsbar .nb-flag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: blink 1.2s ease-in-out infinite;
}
.newsbar .nb-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newsbar .nb-msg b { font-weight: 600; }
.newsbar .nb-msg a {
  color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 1px; margin-left: 6px; white-space: nowrap; font-weight: 600;
}
.newsbar .nb-msg a:hover { border-color: #fff; }
.newsbar .nb-close {
  border: none; background: rgba(255,255,255,0.16); color: #fff; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%; line-height: 0;
  display: grid; place-items: center; transition: background .2s var(--ease);
}
.newsbar .nb-close:hover { background: rgba(255,255,255,0.32); }
@media (max-width: 720px) {
  .newsbar { font-size: 12.5px; }
  .newsbar .nb-flag { display: none; }
}

/* ────── NAV ────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(247,246,253,0.7);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.nav .container { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-logo {
  height: 37px; width: auto; display: block;
  color: var(--ink); fill: currentColor;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.brand:hover .brand-logo { color: var(--accent); }
.footer .brand-logo { height: 50px; }
@media (max-width: 720px) {
  .brand-logo { height: 31px; }
  .footer .brand-logo { height: 42px; }
}

.nav-links { display: flex; gap: 26px; list-style: none; font-size: 13.5px; letter-spacing: 0.01em; font-weight: 500; }
.nav-links a { color: var(--ink-soft); text-decoration: none; position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .3s var(--ease); }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { right: 0; }
.nav-links a .num { font-family: var(--mono); font-size: 10px; color: var(--faint); margin-right: 6px; letter-spacing: 0.06em; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; letter-spacing: 0.01em; color: #fff; text-decoration: none;
  background: var(--accent); box-shadow: var(--shadow-sm);
  transition: all .25s var(--ease); font-family: var(--display); font-weight: 600;
}
.nav-cta .dot { width:6px; height:6px; border-radius:50%; background: #fff; }
.nav-cta:hover { background: var(--accent-bright); box-shadow: 0 8px 22px rgba(91,77,224,0.35); }
@media (max-width: 980px) { .nav-links { display: none; } }

/* ── Mobile menu (hamburger) ── */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  background: var(--surface); cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 9px;
  transition: border-color .2s var(--ease);
}
.nav-burger:hover { border-color: var(--accent); }
.nav-burger span { display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: 108px; z-index: 39;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; padding: 8px var(--gutter) 26px;
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--ink-soft);
  text-decoration: none; padding: 16px 2px; border-bottom: 1px solid var(--line);
  display: flex; gap: 14px; align-items: baseline; font-variation-settings: 'wdth' 95, 'opsz' 24;
}
.mobile-menu a .num { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.mobile-menu a em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 300; }
.mobile-menu .m-cta { margin-top: 18px; justify-content: center; background: var(--accent); color: #fff; border-radius: 999px; border-bottom: none; padding: 16px; font-weight: 600; font-size: 15px; }
@media (max-width: 980px) { .nav-burger { display: flex; } .nav-cta { display: none; } }
@media (min-width: 981px) { .mobile-menu { display: none; } }

/* ────── HERO ────── */
.hero { position: relative; isolation: isolate; padding-top: clamp(36px, 5vw, 64px); padding-bottom: 0; overflow: hidden; }
/* legibility scrim — keeps the left light & clean where dark text sits */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, var(--bg) 2%, rgba(237,235,249,0.55) 30%, rgba(237,235,249,0) 60%);
}
@media (max-width: 900px) {
  .hero::after { background: linear-gradient(180deg, rgba(237,235,249,0.85) 0%, rgba(237,235,249,0.6) 40%, rgba(237,235,249,0.2) 72%, rgba(237,235,249,0) 100%); }
}
.hero .grid-overlay {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(33,29,69,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,29,69,0.04) 1px, transparent 1px);
  background-size: 104px 104px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 22px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: clamp(20px, 2.6vw, 32px); position: relative; z-index: 2;
}
.hero-eyebrow .tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-soft); background: rgba(255,255,255,0.5); }
.hero-eyebrow .tag b { color: var(--ink); font-weight: 600; }
.hero-eyebrow .pip { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 2.4s ease-in-out infinite; }
.hero-eyebrow .rule { flex: 1; height: 1px; background: var(--line); max-width: 280px; }
.hero-eyebrow .stamp { color: var(--muted); }

.hero h1 {
  position: relative; z-index: 2;
  font-family: var(--display); font-weight: 420;
  font-size: clamp(38px, 5.3vw, 82px);
  line-height: 0.95; letter-spacing: -0.04em; color: var(--ink);
  max-width: 18ch; font-variation-settings: 'wdth' 95, 'opsz' 96, 'wght' 420;
  text-wrap: balance;
}
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 320; font-variation-settings: 'opsz' 72; font-size: 1.02em; color: var(--accent); letter-spacing: -0.01em; }
.hero h1 .amp { font-family: var(--serif); font-style: italic; font-weight: 360; color: var(--accent-2); font-variation-settings: 'opsz' 72; }

.hero-body {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: end; margin-top: clamp(18px, 2.4vw, 30px);
}
.hero-body p.lead { font-family: var(--sans); font-weight: 400; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: var(--text); max-width: 42ch; font-variation-settings: 'wdth' 100, 'opsz' 24; }
.hero-body p.lead em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 400; }

.hero-side-data {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  display: grid; gap: 14px; padding: 20px 22px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px); border-radius: 8px; box-shadow: var(--shadow-md);
}
.hero-side-data .row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: baseline; }
.hero-side-data .row .k { color: var(--faint); font-weight: 500; }
.hero-side-data .row .v { color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.hero-side-data .row .v.bright { color: var(--accent); }
.hero-side-data .row .v.live   { color: #C98A18; }
.hero-side-data hr { border: none; height: 1px; background: var(--line); }

.hero-cta { display: flex; gap: 14px; margin-top: clamp(22px, 2.6vw, 32px); flex-wrap: wrap; position: relative; z-index: 2; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px;
  font-family: var(--display); font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em;
  border-radius: 999px; border: 1px solid var(--accent); color: #fff; background: var(--accent);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 10px 30px rgba(91,77,224,0.32); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-md); }
.btn .arr { width: 14px; height: 14px; }

/* ────── MISSION CONTROL STRIP ────── */
.mission-strip {
  position: relative; z-index: 3; margin-top: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.55); backdrop-filter: blur(10px);
}
.mission-strip-inner { display: grid; grid-template-columns: minmax(160px, auto) 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: stretch; padding: 18px 0 4px; }
.mission-strip .ms-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 6px; padding: 14px 0 22px; align-self: stretch; }
.mission-strip .ms-label .small { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-variation-settings: 'wdth' 90, 'opsz' 18; }
.mission-strip .ms-label b { color: #C98A18; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.mission-strip .ms-label b::before { content: ''; width: 6px; height: 6px; background: var(--live); border-radius: 50%; box-shadow: 0 0 0 3px rgba(224,165,59,0.2); animation: blink 1.6s ease-in-out infinite; }
.mission-strip .ms-clock { display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: clamp(8px, 2vw, 24px); padding: 8px 0 18px; }
.mission-strip .ms-clock .seg { display: flex; flex-direction: column; gap: 6px; }
.mission-strip .ms-clock .v { font-family: var(--display); font-weight: 380; font-size: clamp(40px, 4.6vw, 76px); line-height: 0.88; color: var(--ink); font-variation-settings: 'wdth' 75, 'opsz' 96, 'wght' 380; font-feature-settings: 'tnum' 1; letter-spacing: -0.035em; }
.mission-strip .ms-clock .seg:first-child .v { color: var(--accent); }
.mission-strip .ms-clock .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--faint); }
.mission-strip .ms-meta { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 22px; align-items: flex-end; text-align: right; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mission-strip .ms-meta b { font-family: var(--display); font-weight: 500; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -0.01em; text-transform: none; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 22; }
.mission-strip .ms-meta .coords { color: var(--accent); font-size: 11px; }
@media (max-width: 980px) {
  .hero-body { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .mission-strip-inner { grid-template-columns: 1fr; }
  .mission-strip .ms-meta { align-items: flex-start; text-align: left; padding-top: 0; }
  .mission-strip .ms-label { padding-bottom: 0; }
}

/* ────── SECTION ATOMS ────── */
section { position: relative; z-index: 2; }
.section { padding: var(--section-y) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-head .eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 10px; }
.section-head .eyebrow b { color: var(--ink); font-weight: 600; }
.section-head .eyebrow .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-soft); font-family: var(--mono); font-size: 10px; }
.section-head h2 { font-family: var(--display); font-weight: 420; font-size: clamp(32px, 4.8vw, 68px); line-height: 1.0; letter-spacing: -0.035em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 64, 'wght' 420; text-wrap: balance; }
.section-head h2 em { font-family: var(--serif); font-style: italic; font-weight: 320; font-variation-settings: 'opsz' 72; color: var(--accent); }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* ────── MANIFESTO ────── */
.manifesto { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.manifesto .pull { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.10; letter-spacing: -0.025em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 60, 'wght' 400; text-wrap: balance; }
.manifesto .pull em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); font-variation-settings: 'opsz' 60; }
.manifesto .prose p { color: var(--text); font-size: 16px; line-height: 1.65; margin-bottom: 18px; max-width: 48ch; }
.manifesto .prose p:first-of-type::first-letter { font-family: var(--serif); font-size: 4.4em; float: left; font-style: italic; line-height: 0.85; margin: 0.07em 0.14em 0 -0.04em; font-weight: 320; color: var(--accent); }
.manifesto .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.manifesto .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-strong); padding: 6px 10px; border-radius: 3px; font-weight: 500; background: var(--surface); }
.manifesto .tag.live { color: #C98A18; border-color: rgba(224,165,59,0.4); background: rgba(224,165,59,0.08); }
.manifesto .tag.blue { color: var(--accent); border-color: rgba(91,77,224,0.3); background: var(--accent-tint); }
@media (max-width: 880px) { .manifesto { grid-template-columns: 1fr; gap: 32px; } }

/* ────── DISCIPLINES — grouped families ────── */
.fam { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3.4fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.fam:last-of-type { border-bottom: 1px solid var(--line); }
.fam .fam-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 12px; position: sticky; top: 100px; }
.fam .fam-label .n { color: var(--accent); font-weight: 600; }
.fam .fam-label .h { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; color: var(--ink); font-variation-settings: 'wdth' 90, 'opsz' 24; text-transform: none; }
.fam .fam-label .h em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.fam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fam-grid .disc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  min-height: 130px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.fam-grid .disc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease); }
.fam-grid .disc:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(91,77,224,0.25); }
.fam-grid .disc:hover::before { transform: scaleX(1); }
.fam-grid .disc .num { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.12em; }
/* Quiet lucide glyph at the top-left of each discipline card — a visual aid,
   not decoration. Brightens with the card's hover treatment. */
.fam-grid .disc .disc-ic { width: 24px; height: 24px; stroke-width: 1.6; color: var(--accent); opacity: 0.9; margin-bottom: 2px; transition: color .35s var(--ease), transform .35s var(--ease), opacity .35s var(--ease); }
.fam-grid .disc:hover .disc-ic { color: var(--accent-bright); opacity: 1; transform: translateY(-2px); }
.fam-grid .disc h3 { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.1; letter-spacing: -0.018em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 22; }
.fam-grid .disc p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: auto; }
@media (max-width: 880px) { .fam { grid-template-columns: 1fr; } .fam .fam-label { position: static; } .fam-grid { grid-template-columns: 1fr; } }

.interdisc { margin-top: 40px; padding: clamp(28px, 4vw, 44px); border: 1px solid rgba(91,77,224,0.18); border-radius: 14px; background: linear-gradient(135deg, var(--accent-tint), rgba(255,255,255,0.6)); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; box-shadow: var(--shadow-sm); }
.interdisc h3 { font-family: var(--display); font-weight: 460; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.022em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 28; max-width: 30ch; }
.interdisc h3 em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.interdisc p { color: var(--text); font-size: 15px; line-height: 1.6; max-width: 48ch; }
@media (max-width: 720px) { .interdisc { grid-template-columns: 1fr; } }

/* ────── PROGRAMME — MISSION BRIEF ────── */
.brief { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.brief::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 300px at 90% 0%, rgba(91,77,224,0.06), transparent 60%); }
.brief-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); position: relative; z-index: 1; background: var(--surface-2); }
.brief-head .stamp { display: inline-flex; align-items: center; gap: 8px; }
.brief-head .stamp::before { content: ''; width: 8px; height: 8px; background: var(--live); border-radius: 50%; box-shadow: 0 0 0 3px rgba(224,165,59,0.2); animation: blink 1.6s ease-in-out infinite; }
.brief-head b { color: var(--ink); font-weight: 600; }
.brief-body { display: grid; grid-template-columns: 1.6fr 1fr; position: relative; z-index: 1; }
.brief-main { padding: clamp(36px, 5vw, 64px); border-right: 1px solid var(--line); }
.brief-side { padding: clamp(36px, 5vw, 64px); background: var(--surface-2); }
.brief .tag-row { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.brief .tag-row span { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 3px; }
.brief .tag-row span.live { color: #C98A18; border-color: rgba(224,165,59,0.4); background: rgba(224,165,59,0.08); }
.brief h3.title { font-family: var(--display); font-weight: 440; font-size: clamp(36px, 4.6vw, 64px); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 72, 'wght' 440; text-wrap: balance; }
.brief h3.title em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); font-variation-settings: 'opsz' 72; }
.brief .lede { margin-top: 24px; color: var(--text); font-size: 16px; line-height: 1.6; max-width: 52ch; }
.thematic { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; border-radius: 10px; overflow: hidden; }
.thematic .ti { background: var(--surface); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text); transition: background .25s var(--ease); }
.thematic .ti:hover { background: var(--accent-tint); color: var(--ink); }
.thematic .ti .n { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: 0.10em; min-width: 26px; }
.thematic .ti .ic { color: var(--accent); font-size: 11px; opacity: .85; }
.brief-cta { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.countdown { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.countdown .ch { padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.countdown .ch b { color: #C98A18; font-weight: 600; }
.countdown .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.countdown .seg { background: var(--surface); padding: 22px 8px 16px; text-align: center; }
.countdown .seg .v { font-family: var(--display); font-weight: 440; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; color: var(--ink); font-variation-settings: 'wdth' 80, 'opsz' 48; font-feature-settings: 'tnum' 1; letter-spacing: -0.025em; }
.countdown .seg .k { margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.18em; text-transform: uppercase; }
.location-card { margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; background: var(--surface); }
.location-card .row { display: flex; justify-content: space-between; gap: 14px; }
.location-card .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.location-card .v { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 17px; font-variation-settings: 'wdth' 95, 'opsz' 18; }
.location-card hr { border: none; height: 1px; background: var(--line); margin: 14px 0; }
.location-card .coords { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.partners { margin-top: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.partners b { color: var(--ink-soft); font-weight: 500; display: block; margin-top: 8px; letter-spacing: 0.005em; font-family: var(--display); font-size: 13px; text-transform: none; font-variation-settings: 'wdth' 100, 'opsz' 14; }
.partners b em { font-family: var(--serif); font-style: italic; color: var(--muted); font-weight: 320; }
@media (max-width: 900px) { .brief-body { grid-template-columns: 1fr; } .brief-main { border-right: none; border-bottom: 1px solid var(--line); } .thematic { grid-template-columns: 1fr; } }

/* ────── RADAR ────── */
.radar { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 36px); }
.radar .feature-article { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; position: relative; min-height: 480px; overflow: hidden; box-shadow: var(--shadow-md); }
.radar .feature-article::before { content: ''; position: absolute; right: -120px; top: -120px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(91,77,224,0.10), transparent 70%); pointer-events: none; }
.radar .feature-article .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.radar .feature-article .cat::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.radar .feature-article h3 { margin-top: 24px; font-family: var(--display); font-weight: 440; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -0.030em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 56; text-wrap: balance; max-width: 22ch; }
.radar .feature-article h3 em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.radar .feature-article p { margin-top: 22px; color: var(--text); font-size: 16px; line-height: 1.65; max-width: 52ch; }
.radar .feature-article .meta { margin-top: auto; padding-top: 28px; display: flex; gap: 18px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--faint); }
.radar .feature-article .meta .read-more { margin-left: auto; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; letter-spacing: 0.08em; font-weight: 600; }
.radar .stack { display: flex; flex-direction: column; gap: 20px; }
.r-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); text-decoration: none; color: inherit; }
.r-card:hover { border-color: rgba(91,77,224,0.25); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.r-card .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.r-card .cat::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.r-card h4 { font-family: var(--display); font-weight: 560; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 24; text-wrap: balance; }
.r-card h4 em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.r-card .meta { margin-top: auto; display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--faint); }
.r-card .meta .arr { margin-left: auto; display: inline-block; color: var(--accent); transition: transform .3s var(--ease); }
.r-card:hover .meta .arr { transform: translateX(4px); }
@media (max-width: 980px) { .radar { grid-template-columns: 1fr; } }

/* ────── DIFFERENCE ────── */
.diff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.diff-col { padding: clamp(36px, 5vw, 56px) clamp(20px, 3vw, 36px); border-right: 1px solid var(--line); }
.diff-col:last-child { border-right: none; }
.diff-col .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 26px; color: var(--accent); background: var(--accent-tint); }
.diff-col:nth-child(2) .ic { color: #C98A18; background: rgba(224,165,59,0.12); }
.diff-col:nth-child(3) .ic { color: var(--accent-2); background: rgba(135,122,240,0.14); }
.diff-col h4 { font-family: var(--display); font-weight: 480; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); margin-bottom: 14px; font-variation-settings: 'wdth' 95, 'opsz' 36; }
.diff-col h4 em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.diff-col p { color: var(--text); font-size: 15px; line-height: 1.6; max-width: 44ch; }
@media (max-width: 880px) { .diff-grid { grid-template-columns: 1fr; } .diff-col { border-right: none; border-bottom: 1px solid var(--line); } .diff-col:last-child { border-bottom: none; } }

/* ────── JOIN / LEAD MAGNET ────── */
.join { position: relative; padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.join::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 500px at 80% 0%, rgba(91,77,224,0.10), transparent 60%); pointer-events: none; }
.join-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; border-top: 1px solid var(--line); padding-top: clamp(50px, 7vw, 80px); }
.join h2 { font-family: var(--display); font-weight: 440; font-size: clamp(40px, 6.4vw, 96px); line-height: 0.93; letter-spacing: -0.045em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 96, 'wght' 440; text-wrap: balance; }
.join h2 em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.join .sub { margin-top: 24px; font-family: var(--sans); font-weight: 400; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--text); max-width: 40ch; }
.join ul { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.join ul li { font-size: 14px; color: var(--text); display: flex; gap: 12px; align-items: center; }
.join ul li::before { content: ''; width: 14px; height: 2px; background: var(--accent); border-radius: 2px; }
.form { position: relative; border: 1px solid var(--line); background: var(--surface); padding: clamp(30px, 4vw, 44px); border-radius: 16px; box-shadow: var(--shadow-lg); --hue: 250deg; }
.form::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; padding: 1.5px; background: conic-gradient(from var(--hue), transparent 0%, rgba(91,77,224,0.55) 25%, transparent 50%, rgba(135,122,240,0.4) 75%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; pointer-events: none; animation: hueShift 12s linear infinite; }
@keyframes hueShift { to { --hue: 610deg; } }
.form .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.form .label::before { content:''; width:6px; height:6px; background: var(--live); border-radius:50%; box-shadow: 0 0 0 3px rgba(224,165,59,0.2); animation: blink 1.6s ease-in-out infinite; }
.form h3 { margin-top: 12px; font-family: var(--display); font-weight: 480; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 32; }
.form h3 em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.form .row { margin-top: 22px; display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: stretch; }
.form input[type=email] { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); padding: 16px 18px; font-family: var(--display); font-weight: 500; font-size: 15px; outline: none; border-radius: 8px; transition: border-color .2s var(--ease), background .2s var(--ease); }
.form input[type=email]:focus { border-color: var(--accent); background: #fff; }
.form input[type=email]::placeholder { color: var(--faint); }
.form button { border: none; background: var(--accent); color: #fff; padding: 0 22px; min-height: 52px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .2s var(--ease); }
.form button { transition: background .2s var(--ease), box-shadow .25s var(--ease); }
.form button:hover { background: var(--accent-bright); box-shadow: 0 9px 24px rgba(91,77,224,0.32); }
.form .fine { margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 880px) { .join-inner { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

/* ────── DOCKED RADAR BAR ────── */
.dock {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 200%); z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
  padding: 12px 14px 12px 20px; width: min(880px, calc(100% - 32px)); user-select: none;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px) saturate(120%); border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform .6s var(--ease-out), opacity .4s var(--ease); opacity: 0;
}
.dock.show { transform: translate(-50%, 0); opacity: 1; }
.dock .dock-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.dock .dock-label::before { content: ''; width: 7px; height: 7px; background: var(--live); border-radius: 50%; box-shadow: 0 0 0 3px rgba(224,165,59,0.22); animation: blink 1.6s ease-in-out infinite; }
.dock .dock-msg { font-family: var(--display); font-weight: 500; font-size: 13.5px; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 16; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dock .dock-msg em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 320; }
.dock-form { display: flex; gap: 8px; align-items: stretch; }
.dock-form input { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); padding: 10px 14px; font-family: var(--display); font-weight: 500; font-size: 13px; outline: none; border-radius: 999px; width: 210px; transition: border-color .2s var(--ease), width .25s var(--ease); }
.dock-form input::placeholder { color: var(--faint); }
.dock-form input:focus { border-color: var(--accent); width: 240px; }
.dock-form button { border: none; background: var(--accent); color: #fff; padding: 0 18px; white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 13px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .2s var(--ease), box-shadow .25s var(--ease); }
.dock-form button:hover { background: var(--accent-bright); box-shadow: 0 8px 20px rgba(91,77,224,0.34); }
.dock-close { border: none; background: transparent; color: var(--muted); cursor: pointer; padding: 8px; line-height: 0; border-radius: 50%; transition: color .2s var(--ease), background .2s var(--ease); }
.dock-close:hover { color: var(--ink); background: rgba(33,29,69,0.06); }
@media (max-width: 780px) { .dock { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 16px; } .dock .dock-label, .dock .dock-msg { display: none; } .dock-form input { width: 100%; } }

/* ────── BREAKING-NEWS MODAL ────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: 24px; background: rgba(33,29,69,0.38); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-card {
  position: relative; width: min(560px, 100%); background: var(--surface);
  border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.97); transition: transform .45s var(--ease-out);
  border: 1px solid var(--line);
}
.modal-overlay.show .modal-card { transform: none; }
.modal-banner { background: linear-gradient(100deg, var(--breaking), #FF6F93); color: #fff; padding: 10px 16px 10px 26px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.modal-banner::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
.modal-body { padding: clamp(28px, 5vw, 44px); }
.modal-body .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.modal-body h3 { margin-top: 14px; font-family: var(--display); font-weight: 460; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); font-variation-settings: 'wdth' 95, 'opsz' 40; text-wrap: balance; }
.modal-body h3 em { font-family: var(--serif); font-style: italic; font-weight: 320; color: var(--accent); }
.modal-body p { margin-top: 16px; color: var(--text); font-size: 15.5px; line-height: 1.6; }
.modal-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.modal-meta .mm { display: flex; flex-direction: column; gap: 4px; }
.modal-meta .mm .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.modal-meta .mm .v { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); }
.modal-meta .mm .v.accent { color: var(--accent); }
.modal-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.modal-close { margin-left: auto; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(255,255,255,0.22); color: #fff; cursor: pointer; display: grid; place-items: center; line-height: 0; transition: background .2s var(--ease); }
.modal-close:hover { background: rgba(255,255,255,0.4); }
.modal-body .modal-dismiss { background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; margin-top: 14px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.modal-body .modal-dismiss:hover { color: var(--ink); }

/* ────── FOOTER ────── */
.footer { border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 80px) 0 30px; position: relative; z-index: 2; background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(28px, 4vw, 60px); }
.footer-grid h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; font-size: 14px; font-family: var(--display); font-weight: 500; font-variation-settings: 'wdth' 100, 'opsz' 14; transition: color .2s var(--ease); }
.footer-grid a:hover { color: var(--accent); }
.footer .brand .word { font-size: 22px; }
.footer .footer-blurb { margin-top: 18px; font-family: var(--display); font-weight: 440; font-size: 17px; color: var(--ink-soft); max-width: 32ch; line-height: 1.45; font-variation-settings: 'wdth' 100, 'opsz' 18; }
.footer .footer-blurb em { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 320; }
.footer-bottom { margin-top: clamp(40px, 6vw, 70px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--faint); flex-wrap: wrap; }
.footer-bottom .left { display: flex; gap: 18px; align-items: center; }
.footer-bottom .dot { width:5px; height:5px; background: var(--ok); border-radius:50%; box-shadow: 0 0 0 3px rgba(37,179,116,0.18); animation: blink 2s ease-in-out infinite; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ────── REVEAL UTIL ────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.show { opacity: 1; transform: none; }

/* selection + utility */
::selection { background: var(--accent); color: #fff; }
.magnetic { transition: transform .25s var(--ease-out); will-change: transform; }

/* GSAP split-headline words */
.wd { display: inline-block; will-change: transform, opacity, filter; }
/* Mask box for the word-rise headline animation. The horizontal padding gives
   slanted italic-serif ink (e.g. "Radar", "explorers") room so overflow:hidden
   doesn't shear the R's leg or the trailing r; the matching negative margins
   cancel that padding so word spacing is unchanged. Vertical values clip the
   word while it sits below the baseline pre-animation. */
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.14em 0.16em; margin: 0 -0.14em -0.16em; }
.mw-i { display: inline-block; will-change: transform; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ════════════════════════════════════════════════════════════════
   PHONE TIER (≤600 / ≤380)
   The 720–980px rules already collapse the multi-column grids; this
   layer tunes the result for ~320–600px so nothing overflows or gets
   clipped by `overflow-x:hidden`, taps are comfortable, and the type
   rhythm stays balanced. clamp() ceilings meet the existing values at
   the 600px boundary so sizes never jump up as the query engages.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Tighter vertical rhythm — full desktop spacing wastes phone height */
  .section { padding: clamp(56px, 15vw, 84px) 0; }

  /* HERO eyebrow: the long "EUROPEAN SPACE EDUCATION INITIATIVE" pill was
     overflowing the viewport (and getting clipped). Allow it to wrap, drop
     the decorative rule + edition stamp, ease the tracking. */
  .hero-eyebrow { flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
  .hero-eyebrow .rule, .hero-eyebrow .stamp { display: none; }
  .hero-eyebrow .tag { flex-wrap: wrap; font-size: 10px; letter-spacing: 0.07em; line-height: 1.5; }

  /* HERO headline: smaller floor so the hard <br> lines sit on one row each */
  .hero h1 { font-size: clamp(30px, 6.2vw, 38px); }

  /* HERO data card: tighter label column for the long network/status values */
  .hero-side-data { padding: 18px; }
  .hero-side-data .row { grid-template-columns: 92px 1fr; gap: 12px; }

  /* HERO + brief CTAs: full-width, centered, thumb-friendly */
  .hero-cta .btn, .brief-cta .btn, .modal-cta .btn { flex: 1 1 100%; justify-content: center; }

  /* MISSION clock: ease the 4 big digits so the columns breathe */
  .mission-strip .ms-clock { gap: 10px; }
  .mission-strip .ms-clock .v { font-size: clamp(28px, 7vw, 40px); }

  /* PROGRAMME brief header: the two mono labels collided — stack them */
  .brief-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 20px; line-height: 1.5; }

  /* RADAR feature card: let it size to its content instead of a 480px floor */
  .radar .feature-article { min-height: 0; }

  /* FOOTER: larger tap rows for the link lists */
  .footer-grid a { padding: 6px 0; }

  /* MODAL: a touch more room on small screens */
  .modal-overlay { padding: 16px; }

  /* DOCK: respect the iOS home indicator, use full usable width */
  .dock { width: calc(100% - 24px); bottom: max(16px, env(safe-area-inset-bottom)); }

  /* Comfortable burger hit area */
  .nav-burger { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  /* Smallest phones — final guard against tight strings */
  .hero h1 { font-size: clamp(27px, 8.4vw, 32px); }
  .hero-side-data .row { grid-template-columns: 1fr; gap: 3px; }
  .hero-side-data .row .v { letter-spacing: 0.02em; }
  .mission-strip .ms-clock .v { font-size: clamp(26px, 12vw, 36px); }
  .countdown .seg { padding: 18px 4px 12px; }
}/* ────── TEMPLATE / REFACTOR UTILITIES ────── */
.svg-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.delay-60  { --d: 60ms; }
.delay-80  { --d: 80ms; }
.delay-120 { --d: 120ms; }
.delay-160 { --d: 160ms; }
.delay-180 { --d: 180ms; }
.delay-240 { --d: 240ms; }
.delay-280 { --d: 280ms; }
.delay-340 { --d: 340ms; }
.delay-440 { --d: 440ms; }
.delay-560 { --d: 560ms; }

.ms-meta-date {
  margin-top: 6px;
}

.partners .scientific-coordination {
  margin-top: 14px;
  font-size: 12px;
}

.dock .dock-confirm {
  grid-column: span 2;
}

.dock-form input.is-invalid {
  border-color: var(--breaking);
}

body.modal-open {
  overflow: hidden;
}
