/* ==========================================================================
   Ozone landing page

   Layout concept: blue hour over Colombo. A left-aligned editorial headline
   sits in the dark; a live night-map glows to its right; a glass console
   under it lets you move the clock. Everything below stays quiet so the map
   is the one memorable thing. The page ends on a faint dawn.

   One committed look (night), so every colour is set explicitly here.
   Change the look by editing the tokens in :root.
   ========================================================================== */

:root {
  /* Colour: night navy family, pearl text, ozone blue = calmer, ember = more risk */
  --night-950: #050B1A;
  --night-900: #08122A;
  --night-800: #0E1B3D;
  --night-700: #16264F;
  --line: rgba(190, 215, 255, 0.13);
  --line-strong: rgba(190, 215, 255, 0.28);
  --pearl: #F1F4FA;
  --mist: #A7B4D0;
  --ozone: #9FD4FF;
  --ozone-soft: rgba(159, 212, 255, 0.16);
  --ember: #FF9477;
  --lamp: #FFE3B5;

  /* Type */
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Playfair Display', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Shape and motion */
  --r-lg: 32px;
  --r-md: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night-900);
  color: var(--pearl);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A fine film grain over everything: the tactile part of the luxury. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ozone); outline-offset: 3px; border-radius: 8px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--pearl); color: var(--night-950);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; font-optical-sizing: auto; }
.h2 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.04; }
.h3 { font-size: clamp(1.75rem, 2.7vw, 2.35rem); line-height: 1.1; }
.intro { color: var(--mist); font-size: 1.125rem; max-width: 36rem; }
.fine { color: var(--mist); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--sans); text-decoration: none; letter-spacing: 0.01em;
  color: var(--night-950);
  background: linear-gradient(180deg, #D3EBFF 0%, #98CBF8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 12px 40px -10px rgba(159,212,255,0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 16px 44px -10px rgba(159,212,255,0.7); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--ghost {
  color: var(--pearl); background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: rgba(255,255,255,0.09); box-shadow: inset 0 0 0 1px rgba(190,215,255,0.5); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pearl); }
.mark { width: 28px; height: 28px; flex: none; }
.brand__word { font: 500 1.7rem/1 var(--serif); letter-spacing: 0.005em; }
.nav__links { display: none; gap: clamp(18px, 2.4vw, 34px); margin-inline: auto; }
.nav__links a { color: var(--mist); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav__links a:hover { color: var(--pearl); }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow-x: clip;
  background:
    radial-gradient(60% 70% at 80% 36%, rgba(95,168,242,0.20), transparent 70%),
    radial-gradient(50% 45% at 6% 100%, rgba(255,148,119,0.09), transparent 70%),
    linear-gradient(180deg, var(--night-950) 0%, var(--night-900) 75%);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero__stage { position: relative; display: flex; flex-direction: column; }
.hero__map { position: relative; order: 2; height: 380px; margin-top: 8px; }
.hero__map canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.hero__copy { order: 1; padding-top: clamp(20px, 5vw, 56px); }
.hero__copy h1 { font-size: clamp(3.5rem, 15vw, 7.2rem); line-height: 0.94; letter-spacing: -0.025em; }
.lede { margin-top: 26px; max-width: 30rem; color: var(--mist); font-size: 1.1875rem; line-height: 1.6; }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
  .hero__stage { min-height: clamp(500px, 38vw, 580px); justify-content: center; }
  .hero__map { position: absolute; inset: 0; height: auto; margin: 0; z-index: 0; order: 0; }
  .hero__map canvas {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 14%, #000 46%);
            mask-image: linear-gradient(90deg, transparent 0, transparent 14%, #000 46%);
  }
  .hero__copy { position: relative; z-index: 1; padding-top: 0; max-width: min(1240px, 100%); }
  .hero__copy > * { max-width: min(30rem, 42vw); }
  .hero__copy h1 { max-width: min(36rem, 44vw); font-size: clamp(4.4rem, 7.4vw, 7.2rem); }
}

/* Labels that sit on the map */
.pin, .tag { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.is-laid .pin, .is-laid .tag { opacity: 1; }
.pin { font-size: 13px; font-weight: 600; color: var(--pearl); text-shadow: 0 1px 12px rgba(5,11,26,0.9); }
#pin-start { transform: translate(-50%, 18px); }
#pin-end { transform: translate(-50%, calc(-100% - 16px)); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1;
  color: var(--pearl); background: rgba(8,18,42,0.72); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(-50%, calc(-100% - 22px));
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ozone); box-shadow: 0 0 10px var(--ozone); }
.tag--warm { border-color: rgba(255,148,119,0.5); }
.tag--warm::before { background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.tag--below { transform: translate(-50%, 22px); }
@media (max-width: 560px) { .tag { font-size: 12px; padding: 7px 11px; } }

/* ---------- Console ---------- */
.console {
  position: relative; z-index: 2; margin-top: 12px; padding: 20px;
  display: grid; gap: 14px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22,38,79,0.66), rgba(8,18,42,0.78));
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.07);
}
@media (min-width: 900px) {
  .console { grid-template-columns: 290px minmax(0,1fr) minmax(0,1fr); gap: 16px; padding: 22px; margin-top: 0; }
}
.console__time { display: flex; flex-direction: column; padding: 6px 8px 0 6px; min-width: 0; }
.console__label { color: var(--mist); font-size: 14px; }
.console__clock { font: 400 clamp(2.6rem, 5vw, 3.4rem)/1.05 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; margin-block: 2px 8px; }
.console__scale { display: flex; justify-content: space-between; color: var(--mist); font-size: 12px; margin-top: -2px; }
.console__phase { margin-top: 10px; display: flex; align-items: center; gap: 9px; color: var(--pearl); font-size: 14px; font-weight: 500; }
.console__phase::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--phase, var(--ozone)); box-shadow: 0 0 12px var(--phase, var(--ozone)); }
.console__phase[data-phase="Daylight"] { --phase: #FFD9A0; }
.console__phase[data-phase="Dusk"] { --phase: #E9A2B8; }
.console__phase[data-phase="After dark"] { --phase: var(--ozone); }
.console__foot {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 12px 6px 0; border-top: 1px solid var(--line);
}
.console__summary { font-size: 15px; font-weight: 500; flex: 1 1 320px; }
.console__note { color: var(--mist); font-size: 13px; flex: 1 1 280px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 4px 0 0;
  background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
  background: linear-gradient(90deg, #8CC4FA 0%, #5E8FDA 14%, #2D4C9A 28%, #17285C 46%, #0B1634 72%, #070F26 100%);
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
  background: linear-gradient(90deg, #8CC4FA 0%, #5E8FDA 14%, #2D4C9A 28%, #17285C 46%, #0B1634 72%, #070F26 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; border: 0;
  background: var(--pearl); box-shadow: 0 0 0 5px rgba(159,212,255,0.22), 0 4px 16px rgba(0,0,0,0.55);
  transition: box-shadow 0.2s;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--pearl);
  box-shadow: 0 0 0 5px rgba(159,212,255,0.22), 0 4px 16px rgba(0,0,0,0.55);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(159,212,255,0.45), 0 4px 16px rgba(0,0,0,0.55); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 7px rgba(159,212,255,0.45), 0 4px 16px rgba(0,0,0,0.55); }

.route {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; text-align: left;
  padding: 16px 18px 17px; border-radius: var(--r-md); cursor: pointer;
  font: inherit; color: inherit; background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.route:hover { background: rgba(255,255,255,0.06); border-color: var(--line-strong); }
.route[aria-pressed="true"] { background: rgba(159,212,255,0.09); border-color: rgba(159,212,255,0.55); }
.route__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route__name { font-weight: 600; font-size: 15px; }
.route__badge { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; color: var(--mist); box-shadow: inset 0 0 0 1px var(--line-strong); }
.route__badge--suggest { color: var(--night-950); background: var(--ozone); box-shadow: none; }
.route__badge[hidden] { display: none; }
.route__main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.route__time { color: var(--mist); font-size: 15px; }
.route__time b { font: 400 2.5rem/1 var(--serif); color: var(--pearl); font-variant-numeric: tabular-nums lining-nums; margin-right: 2px; }
.route__level { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.num { color: var(--mist); font-variant-numeric: tabular-nums; font-weight: 400; }
.meter { display: block; height: 6px; border-radius: 99px; background: rgba(190,215,255,0.12); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; transition: width 0.35s var(--ease), background-color 0.35s; }
.route__why { color: var(--mist); font-size: 14px; line-height: 1.45; min-height: 2.9em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 150px); }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(36px, 6vw, 72px); }
.section__head .h2 { max-width: 16em; }

.feature { display: grid; gap: 28px; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.feature__copy { display: grid; gap: 18px; align-content: center; max-width: 30rem; }
.feature__copy p { color: var(--mist); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
}

.stage {
  position: relative; min-width: 0; padding: 56px clamp(22px, 3vw, 34px) clamp(22px, 3vw, 34px);
  min-height: 330px; display: grid; align-content: center;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 85% 0%, rgba(95,168,242,0.14), transparent 70%),
    linear-gradient(165deg, rgba(22,38,79,0.55), rgba(8,18,42,0.45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.demo-pill { position: absolute; top: 16px; right: 18px; font-size: 12px; color: var(--mist); padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.stage__cap { margin-top: 14px; color: var(--mist); font-size: 14px; }

/* Chart (drawn by main.js) */
.chart { width: 100%; min-width: 0; touch-action: pan-y; cursor: ew-resize; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-night { fill: rgba(5,11,26,0.5); }
.c-txt { fill: var(--mist); font: 500 12px var(--sans); }
.c-a { fill: none; stroke: var(--ember); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.c-b { fill: none; stroke: var(--ozone); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.c-cursor { stroke: rgba(241,244,250,0.45); stroke-width: 1; stroke-dasharray: 3 4; }
.c-lbl-a { fill: var(--ember); font: 600 13px var(--sans); }
.c-lbl-b { fill: var(--ozone); font: 600 13px var(--sans); }
.c-dot-a { fill: var(--ember); stroke: var(--night-900); stroke-width: 2.5; }
.c-dot-b { fill: var(--ozone); stroke: var(--night-900); stroke-width: 2.5; }
.c-val { fill: var(--pearl); font: 600 13px var(--sans); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: rgba(8,18,42,0.9); stroke-width: 4px; }

/* Report demo */
.report { display: grid; gap: 22px; }
.report__set { border: 0; padding: 0; margin: 0; min-width: 0; }
.report__q { font: 400 1.5rem/1.2 var(--serif); margin-bottom: 16px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 11px 17px; border-radius: 999px; cursor: pointer; font: 500 15px/1 var(--sans); color: var(--pearl);
  background: transparent; border: 1px solid var(--line-strong);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { background: rgba(255,255,255,0.06); }
.chip[aria-pressed="true"] { background: var(--ozone-soft); border-color: rgba(159,212,255,0.7); }
.report__where { display: flex; align-items: center; gap: 8px; color: var(--mist); font-size: 14px; }
.report__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.report__status { color: var(--ozone); font-size: 14px; flex: 1 1 220px; }
.journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 8px; }
.journey li { position: relative; padding-top: 18px; color: var(--mist); font-size: 13px; line-height: 1.35; border-top: 1px solid var(--line); transition: color 0.4s, border-color 0.4s; }
.journey li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--night-800); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background 0.4s, box-shadow 0.4s; }
.journey li.is-on { color: var(--pearl); border-color: var(--ozone); }
.journey li.is-on::before { background: var(--ozone); box-shadow: 0 0 12px var(--ozone); }

/* Live location demo */
.share { display: grid; gap: 22px; }
.share__map { width: 100%; height: auto; display: block; overflow: visible; }
.trail { fill: none; stroke: rgba(190,215,255,0.3); stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.trail--done { stroke: var(--ozone); stroke-width: 3.2; stroke-dasharray: none; filter: drop-shadow(0 0 7px rgba(159,212,255,0.7)); }
.share__start { fill: var(--pearl); }
.share__end { fill: none; stroke: var(--pearl); stroke-width: 1.8; }
.walker__halo { fill: rgba(159,212,255,0.22); }
.walker__dot { fill: var(--pearl); }
.share.is-paused .trail--done { stroke: var(--mist); filter: none; }
.share.is-paused .walker__halo { fill: rgba(167,180,208,0.15); }
.share__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  font: 500 1.05rem/1 var(--serif); background: var(--night-700); box-shadow: 0 0 0 2px var(--night-900), inset 0 0 0 1px var(--line-strong);
}
.avatars span + span { margin-left: -10px; }
.share__text { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; }
.share__text strong { font-weight: 600; font-size: 15px; }
.share__text span { color: var(--mist); font-size: 14px; }

/* SOS demo */
.stage--sos { min-height: 400px; }
.sos { display: grid; justify-items: center; gap: 18px; text-align: center; }
.sos__btn {
  position: relative; width: 196px; height: 196px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: inherit; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.sos__btn::before {
  content: ""; position: absolute; inset: 15px; border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #FFC8B2 0%, #FF9477 46%, #E4584B 100%);
  box-shadow: 0 0 70px rgba(255,120,95,0.45), inset 0 2px 0 rgba(255,255,255,0.4);
  transition: transform 0.3s var(--ease), background 0.6s, box-shadow 0.6s;
}
.sos__btn.is-holding::before { transform: scale(0.94); }
.sos__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.sos__track { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 3; }
.sos__prog { fill: none; stroke: var(--pearl); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 578; stroke-dashoffset: 578; transition: stroke-dashoffset 0.4s var(--ease); }
.sos__btn.is-holding .sos__prog { transition: none; }
.sos__label { position: absolute; inset: 0; display: grid; place-items: center; font: 500 2rem/1 var(--serif); color: #2B0B06; letter-spacing: 0.01em; }
.sos.is-sent .sos__btn::before { background: radial-gradient(circle at 50% 28%, #E4F3FF 0%, #9FD4FF 50%, #5FA8F2 100%); box-shadow: 0 0 70px rgba(159,212,255,0.45), inset 0 2px 0 rgba(255,255,255,0.5); }
.sos.is-sent .sos__label { color: var(--night-950); }
.sos__hint { color: var(--mist); font-size: 14px; max-width: 22rem; }
.sos__sent { display: grid; gap: 10px; justify-items: center; max-width: 24rem; }
.sos__title { font: 400 1.4rem/1.2 var(--serif); }
.sos__detail { color: var(--mist); font-size: 14px; }
.sos__sent[hidden], .sos__hint[hidden] { display: none; }

/* ---------- Principles ---------- */
.principles { display: grid; gap: 0 clamp(32px, 6vw, 88px); }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.principle h3 { font: 600 1.125rem/1.3 var(--sans); margin-bottom: 8px; }
.principle p { color: var(--mist); max-width: 28rem; }

/* ---------- Roadmap ---------- */
.phases { display: grid; gap: 8px 40px; }
@media (min-width: 860px) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.phase { position: relative; padding: 38px 0 28px; }
.phase::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.phase::after {
  content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--night-900); box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.phase--now::after { background: var(--ozone); box-shadow: 0 0 18px var(--ozone); }
.phase--later::before { background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.phase h3 { font-size: 1.75rem; line-height: 1.1; margin-bottom: 14px; }
.phase li { color: var(--mist); padding: 9px 0; line-height: 1.45; }
.phase--now li { color: var(--pearl); }

/* ---------- Team ---------- */
.team__grid { display: grid; gap: 40px; }
.team__intro { display: grid; gap: 20px; align-content: start; }
@media (min-width: 900px) {
  .team__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
  .team__intro { position: sticky; top: 40px; }
}
.web { width: min(100%, 320px); height: auto; margin-top: 14px; overflow: visible; }
.web__lines path { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-linejoin: round; }
.web__halo { fill: rgba(159, 212, 255, 0.12); }
.web__n { cursor: default; }
.web__pop { transform-box: fill-box; transform-origin: center; transition: transform 0.35s var(--ease); }
.web__c { fill: var(--night-900); stroke: var(--ozone); stroke-width: 1.7; transition: filter 0.35s, fill 0.35s; }
.web__c--lead { fill: var(--ozone); stroke: none; }
.web__t { fill: var(--pearl); font: 500 15px var(--serif); text-anchor: middle; pointer-events: none; }
.web__t--lead { fill: var(--night-950); }
.web__n.is-active .web__pop { transform: scale(1.2); }
.web__n.is-active .web__c { filter: drop-shadow(0 0 9px rgba(159, 212, 255, 0.85)); fill: var(--night-700); }
.web__n.is-active .web__c--lead { fill: var(--ozone); }

.roster { display: grid; }
.member {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 24px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line); transition: background 0.3s var(--ease);
}
.member:last-child { border-bottom: 1px solid var(--line); }
.member__ring {
  width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
  font: 500 1.35rem/1 var(--serif); color: var(--pearl); letter-spacing: 0.02em;
  background: radial-gradient(circle at 50% 30%, rgba(159, 212, 255, 0.16), rgba(8, 18, 42, 0.2));
  box-shadow: inset 0 0 0 1.5px rgba(159, 212, 255, 0.55);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.member--lead .member__ring { color: var(--night-950); background: radial-gradient(circle at 50% 28%, #E4F3FF, #9FD4FF 55%, #5FA8F2); box-shadow: 0 0 34px rgba(159, 212, 255, 0.4); }
.member.is-active .member__ring { box-shadow: inset 0 0 0 1.5px var(--ozone), 0 0 34px rgba(159, 212, 255, 0.55); transform: scale(1.06); }
.member--lead.is-active .member__ring { box-shadow: 0 0 48px rgba(159, 212, 255, 0.7); }
.member__body { display: grid; gap: 6px; min-width: 0; }
.member__name { font: 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.member__role { color: var(--ozone); font-weight: 600; font-size: 15px; }
.member__desc { color: var(--mist); max-width: 32rem; }
/* Student IDs are public once the page is hosted. To hide them, delete the
   .member__id lines in index.html or add:  .member__id { display: none; }  */
.member__id { margin-top: 4px; color: var(--mist); font-size: 13px; letter-spacing: 0.02em; }
.member__id span { color: var(--pearl); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .member { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .member__ring { width: 54px; height: 54px; font-size: 1.2rem; }
}
/* ---------- Join ---------- */
.join {
  padding-bottom: clamp(120px, 16vw, 220px);
  background:
    radial-gradient(60% 75% at 72% 112%, rgba(255,148,119,0.46), rgba(255,148,119,0.14) 40%, transparent 70%),
    radial-gradient(90% 70% at 50% 125%, rgba(159,212,255,0.30), transparent 65%);
  border-top: 1px solid var(--line);
}
.join__inner { display: grid; gap: 22px; justify-items: start; }
.join__inner .h2 { max-width: 12em; }
.join__form { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 34rem; margin-top: 8px; }
.join__form input {
  flex: 1 1 240px; min-width: 0; padding: 16px 22px; border-radius: 999px; font: 400 16px/1.2 var(--sans); color: var(--pearl);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong);
  transition: border-color 0.2s, background 0.2s;
}
.join__form input::placeholder { color: rgba(167,180,208,0.7); }
.join__form input:focus { outline: none; border-color: var(--ozone); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 4px rgba(159,212,255,0.18); }
.join__status { color: var(--ozone); font-size: 15px; max-width: 34rem; }
.join__status:empty { display: none; }
.join__status[data-tone="error"] { color: var(--ember); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 44px 56px; background: var(--night-950); }
.footer__inner { display: grid; gap: 28px 64px; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.footer__brand { display: grid; gap: 14px; justify-items: start; }
.footer__brand p, .footer__notes p { color: var(--mist); font-size: 14px; max-width: 34rem; }
.footer__notes { display: grid; gap: 10px; }
.footer__notes strong { color: var(--pearl); font-weight: 600; }

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