/* =============================================================================
   HANARO — SNU Rocket Team
   Rebuilt from scratch. Palette + system fonts + deep-navy field taken from the
   team's own 3D livery file; layout language = engineering blueprint / mission
   terminal. No webfonts, no starfield (the 3D file itself is "별 없음").
   Single, deliberately committed dark theme.
   ============================================================================= */

:root {
  /* palette — from the 3D livery file (#0A1A3F navy, #F5A623 gold, #F4F2EC bone,
     #1E5BC6 blue, #0e1116 paper) + coral from the logo mark */
  --paper: #0e1116;      /* base page */
  --paper-2: #12161d;    /* raised surface */
  --paper-3: #171d27;    /* higher surface */
  --navy: #0a1a3f;       /* brand navy */
  --navy-line: #22345c;  /* blueprint line navy */
  --blue: #1e5bc6;
  --gold: #f5a623;
  --gold-d: #d98a12;
  --gold-hi: #ffc65c;
  --coral: #f98a80;      /* logo mark / flame */
  --bone: #f4f2ec;

  --ink-0: #e8ebf1;      /* primary text (not pure white) */
  --ink-1: #aeb9cc;      /* secondary */
  --ink-2: #7c8aa3;      /* muted / labels (>=4.5:1 on paper) */
  --line: rgba(180, 200, 235, 0.13);
  --line-2: rgba(180, 200, 235, 0.22);
  --grid: rgba(120, 150, 210, 0.06);

  --sans: 'Helvetica Neue', Helvetica, Arial, 'Apple SD Gothic Neo',
    'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, 'Cascadia Mono', Menlo,
    Consolas, 'Liberation Mono', monospace;

  --wrap: 1240px;
  --pad: clamp(18px, 4.5vw, 52px);
  --nav-h: 62px;
  --r: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink-0);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* blueprint field: deep-navy radial (from the 3D file) + faint engineering grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 72% -12%, #1a2437 0%, #0e1116 52%, #0a0c10 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 92%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(245, 166, 35, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 18px; background: var(--gold); color: #10161f;
  font-weight: 700; border-radius: 4px; transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section.tight { padding-top: 0; }

/* mono utilities */
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--gold); opacity: .8;
}
.eyebrow.no-rule::before { display: none; }

/* section head */
.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 60px); }
.head .eyebrow { margin-bottom: 16px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.h-xl { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; }
.h-md { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.title-ko { line-height: 1.18; }             /* Korean headings need more leading */
h2 .g, h1 .g, .g { color: var(--gold); }
.c { color: var(--coral); }
.lead { color: var(--ink-1); font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 46ch; margin-top: 20px; }
p.body { color: var(--ink-1); }
.prose { max-width: 42ch; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r); font-weight: 700; font-size: 0.97rem;
  border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn .ar { transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-solid { background: var(--gold); color: #12161f; }
.btn-solid:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn-line { border-color: var(--line-2); color: var(--ink-0); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(10, 13, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand svg { width: 26px; height: 30px; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.08; }
.brand b { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.16em; }
.brand em { font-style: normal; font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.24em; color: var(--ink-2); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 12px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2); transition: color .2s;
}
.nav-links a:hover { color: var(--ink-0); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 15px; border: 1px solid var(--gold); color: var(--gold); border-radius: 4px; transition: background-color .2s, color .2s;
}
.nav-cta:hover { background: var(--gold); color: #12161f; }
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink-0); transition: transform .3s var(--ease), opacity .2s; }

/* mobile menu */
.mobile {
  position: fixed; inset: 0; z-index: 95; background: rgba(8, 11, 16, 0.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; padding: var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font-size: clamp(1.7rem, 8vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em; color: var(--ink-0); transform: translateY(14px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s, color .2s;
}
.mobile a small { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ink-2); text-transform: uppercase; }
.mobile a.active { color: var(--gold); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile { opacity: 1; visibility: visible; }
body.menu-open .mobile a { transform: none; opacity: 1; }
body.menu-open .mobile a:nth-child(1){transition-delay:.04s}
body.menu-open .mobile a:nth-child(2){transition-delay:.08s}
body.menu-open .mobile a:nth-child(3){transition-delay:.12s}
body.menu-open .mobile a:nth-child(4){transition-delay:.16s}
body.menu-open .mobile a:nth-child(5){transition-delay:.20s}
body.menu-open .mobile a:nth-child(6){transition-delay:.24s}
body.menu-open .mobile a:nth-child(7){transition-delay:.28s}
body.menu-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
body.menu-open .nav-toggle span:nth-child(2){opacity:0}
body.menu-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---------- panel (corner-tick blueprint card) ---------- */
.panel {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3vw, 34px); background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
}
.panel::before, .panel::after {
  content: ''; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--gold); opacity: .6; pointer-events: none;
}
.panel::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.panel > .eyebrow { margin-bottom: 12px; }
.panel h3 { font-size: 1.18rem; margin-bottom: 8px; }
.panel p { color: var(--ink-1); font-size: 0.95rem; }
a.panel { display: block; transition: border-color .2s, transform .2s var(--ease); }
a.panel:hover { border-color: var(--line-2); transform: translateY(-3px); }

/* generic grids (non-breaking) */
.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(30px, 6vw, 70px)); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 56px); align-items: center; min-height: min(76vh, 720px); }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-title { font-size: clamp(3.2rem, 11vw, 8.5rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.04em; }
.hero-sub { font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 700; margin-top: 14px; letter-spacing: -0.02em; }
.hero-sub .g { color: var(--gold); }
.hero-desc { color: var(--ink-1); max-width: 44ch; margin-top: 20px; }
.telemetry { margin-top: 26px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.telemetry b { color: var(--gold); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); padding: 6px 11px; border-radius: 3px; }

/* rocket schematic column */
.schematic { position: relative; display: flex; justify-content: center; align-items: stretch; }
.schematic .rocket { height: min(70vh, 660px); width: auto; filter: drop-shadow(0 24px 60px rgba(0,0,0,.6)); }
.schematic .frame { position: absolute; inset: 0; pointer-events: none; }
.schematic .frame i { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--line-2); }
.schematic .frame i.tl { top: 0; left: 8%; border-right: 0; border-bottom: 0; }
.schematic .frame i.tr { top: 0; right: 8%; border-left: 0; border-bottom: 0; }
.schematic .frame i.bl { bottom: 0; left: 8%; border-right: 0; border-top: 0; }
.schematic .frame i.br { bottom: 0; right: 8%; border-left: 0; border-top: 0; }
.schematic .tag { position: absolute; top: 4px; left: 8%; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--ink-2); text-transform: uppercase; }

/* ---------- ticker (mono, minimal) ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); padding: 14px 34px; white-space: nowrap; }
.ticker-track span b { color: var(--gold); font-weight: 600; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- metrics (spec sheet) ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.metric { background: var(--paper-2); padding: clamp(18px, 2.6vw, 28px); }
.metric .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 600; color: var(--gold-hi); line-height: 1; display: flex; align-items: baseline; gap: 3px; }
.metric .v .u { font-size: 0.4em; color: var(--ink-2); font-weight: 500; }
.metric .k { margin-top: 10px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

/* spec table */
.spec { width: 100%; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-2); font-size: 0.86rem; }
.spec dd { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.95rem; text-align: right; }

/* ---------- status pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 3px; font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-1); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.go { color: var(--gold-hi); border-color: rgba(245,166,35,.4); }
.pill.warn { color: var(--coral); border-color: rgba(249,138,128,.45); }

/* ---------- process cycle ---------- */
.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: ph; }
.phase { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 26px); background: rgba(255,255,255,.02); transition: border-color .2s, transform .2s var(--ease); }
.phase:hover { border-color: var(--line-2); transform: translateY(-3px); }
.phase .n { counter-increment: ph; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); }
.phase .n::before { content: 'PHASE ' counter(ph, decimal-leading-zero); }
.phase h3 { margin: 26px 0 3px; font-size: 1.1rem; }
.phase .en { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 10px; }
.phase p { color: var(--ink-1); font-size: 0.88rem; }

/* ---------- launch log ---------- */
.log { display: grid; gap: 12px; }
.log-row { display: grid; grid-template-columns: 84px 1fr auto; gap: clamp(12px, 3vw, 28px); align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(15px, 2vw, 22px) clamp(16px, 2.4vw, 26px); background: rgba(255,255,255,.018); transition: border-color .2s, transform .2s var(--ease); }
.log-row:hover { border-color: var(--line-2); transform: translateX(3px); }
.log-row .yr { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 600; color: var(--gold-hi); }
.log-row .nm { font-size: 1rem; font-weight: 700; }
.log-row .ds { margin-top: 3px; color: var(--ink-2); font-size: 0.85rem; }
.log-row .mt { justify-self: end; }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: clamp(26px, 4vw, 40px); }
.tab { padding: 12px 18px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink-0); }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.tabpanel[hidden] { display: none; }

/* ---------- gallery (scroll-snap) ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(76%, 440px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.gallery figure { scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.gallery .ph-img { aspect-ratio: 4/3; display: grid; place-items: center; }
.gallery figcaption { padding: 13px 16px 15px; font-size: 0.83rem; color: var(--ink-1); }
.gallery figcaption .m { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }

/* ---------- tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.tier { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.6vw, 30px); background: rgba(255,255,255,.02); }
.tier.feat { border-color: rgba(245,166,35,.5); background: rgba(245,166,35,.06); }
.tier .tn { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.tier .ta { margin-top: 10px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; }
.tier .ta small { font-size: 0.5em; color: var(--ink-2); font-weight: 500; }
.tier ul { margin-top: 16px; display: grid; gap: 8px; }
.tier li { position: relative; padding-left: 18px; color: var(--ink-1); font-size: 0.88rem; }
.tier li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--gold); }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; max-width: 620px; }
.form .row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03); color: var(--ink-0); font: inherit; transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field :is(input,select,textarea):focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.05); }
.field select { appearance: none; }
.note { color: var(--ink-2); font-size: 0.8rem; }

/* ---------- placeholder (club-specific data to fill) ---------- */
.ph {
  border: 1px dashed var(--line-2); border-radius: var(--r); padding: 3px 9px;
  font-family: var(--mono); font-size: 0.82em; color: var(--gold); letter-spacing: 0.02em;
  background: rgba(245,166,35,.05); display: inline-block;
}
.ph-block { border: 1px dashed var(--line-2); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); background: rgba(245,166,35,.03); }
.ph-block .eyebrow { color: var(--coral); margin-bottom: 10px; }
.ph-block .eyebrow::before { background: var(--coral); }
.ph-note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.04em; }
.gallery .ph-img { color: var(--ink-2); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; }

/* ---------- legend / tags ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-1); text-transform: uppercase; }
.legend i { width: 11px; height: 11px; }
.d-prop { background: var(--gold); } .d-air { background: var(--gold-hi); } .d-avi { background: var(--blue); } .d-rec { background: var(--coral); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.tags span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--ink-1); border: 1px solid var(--line); padding: 5px 10px; border-radius: 3px; }

/* bullet list */
.blist { display: grid; gap: 9px; margin-top: 16px; }
.blist li { position: relative; padding-left: 20px; color: var(--ink-1); font-size: 0.94rem; }
.blist li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; background: var(--gold); }

/* split (media + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split.rev .media { order: 2; }
.figure-schematic { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); padding: 22px; display: flex; justify-content: center; position: relative; }
.figure-schematic .rocket-mini { height: min(52vh, 480px); }
.figure-schematic .cap { position: absolute; bottom: 12px; left: 16px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; color: var(--ink-2); text-transform: uppercase; }

/* org chart */
.org { display: grid; gap: 18px; justify-items: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.node { min-width: 170px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; text-align: center; background: rgba(255,255,255,.02); }
.node.lead { border-color: rgba(245,166,35,.4); background: rgba(245,166,35,.05); }
.node .role { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.node .who { font-size: 1.05rem; font-weight: 700; }
.node .who small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0.02em; }
.org-line { width: 1px; height: 24px; background: linear-gradient(var(--gold), var(--line)); }
.org-teams { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; width: 100%; }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding-block: clamp(72px, 12vw, 140px); border-block: 1px solid var(--line); position: relative; }
.cta h2 { font-size: clamp(2rem, 5.5vw, 3.8rem); line-height: 1.1; }
.cta p { color: var(--ink-1); max-width: 46ch; margin: 18px auto 0; }
.cta .actions { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 84px) 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); padding-bottom: 40px; }
.footer-brand p { color: var(--ink-2); font-size: 0.9rem; max-width: 34ch; margin-top: 14px; }
.footer h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; font-weight: 500; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-links span { color: var(--ink-1); font-size: 0.92rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bot { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-2); font-size: 0.8rem; }
.footer-bot .mono { letter-spacing: 0.06em; }

/* page hero (subpages) */
.page-hero { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 100px)); padding-bottom: clamp(20px, 4vw, 44px); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.06; }
.page-hero .lead { margin-top: 22px; }

/* mobile sticky cta */
.sticky-cta { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .schematic { order: -1; }
  .schematic .rocket { height: min(46vh, 380px); }
  .split { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .org-teams { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  html.js .nav-toggle { display: flex; }
  .log-row { grid-template-columns: 60px 1fr; grid-template-areas: 'yr main' 'yr mt'; row-gap: 8px; }
  .log-row .yr { grid-area: yr; } .log-row .mt { grid-area: mt; justify-self: start; }
}
@media (max-width: 620px) {
  .cycle { grid-template-columns: 1fr; }
  .org-teams { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 84%; }
  .actions .btn { flex: 1; justify-content: center; }
  .sticky-cta {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 90; gap: 10px;
    padding: 11px var(--pad) calc(11px + env(safe-area-inset-bottom));
    background: rgba(9,12,17,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { flex: 1; justify-content: center; }
  body.has-sticky-cta { padding-bottom: 72px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  * { transition: none !important; }
}
