/* STARVEX, site v4 (20 Nov 2026). Five pages built on the pattern of SpaceX, Anduril and Shield AI: a fixed header that
   turns solid on scroll, full-bleed photographs with the headline at the bottom left, split sections (text beside a
   picture), thin rules, small spaced capitals for labels, a light "updates" section, stars only for the launch. Space
   black, one signal red. Pages are made by site/v4-src/build_pages.py; edit that, not the HTML. */
:root {
  --bg: #050608;
  --bg-2: #0B0C0F;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.26);
  --text: #F4F5F6;
  --muted: #A2A7AE;
  --dim: #6D727A;
  --red: #E11D2A;
  --paper: #ECEBE6;
  --paper-ink: #111214;
  --paper-muted: #5E6066;
  --paper-line: rgba(0, 0, 0, 0.14);
  --head: "Chakra Petch", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: 20px;
  --hdr: 68px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --pad: 40px; --hdr: 76px; } }
@media (min-width: 1200px) { :root { --pad: 64px; } }
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/chakra-petch-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; text-transform: uppercase; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; }
.label { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--head); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 7px; height: 7px; background: var(--red); flex: none; }
.label.plain::before { display: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-hdr { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--hdr); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.site-hdr::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 6, 8, 0.55), transparent); transition: opacity 0.3s; }
.site-hdr.solid { background: rgba(5, 6, 8, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-hdr.solid::before { opacity: 0; }
.site-hdr .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 20px; width: auto; }
@media (min-width: 700px) { .brand img { height: 22px; } }
.nav { display: none; margin-left: auto; align-items: center; gap: clamp(22px, 2.6vw, 40px); }
@media (min-width: 900px) { .nav { display: flex; } }
.nav > a { position: relative; font: 600 12px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding: 10px 0; transition: color 0.2s; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--text); }
.nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0.22em; bottom: 0; height: 1px; background: var(--red); }

/* the Follow menu: a real list of the four accounts */
details.follow { position: relative; }
details.follow > summary, details.menu > summary { list-style: none; cursor: pointer; }
details.follow > summary::-webkit-details-marker, details.menu > summary::-webkit-details-marker { display: none; }
.follow-list { position: absolute; right: 0; top: calc(100% + 12px); min-width: 240px; padding: 8px; background: #0E0F12; border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.follow-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; font: 600 12px/1 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); transition: color 0.2s, background 0.2s; }
.follow-list a:last-child { border-bottom: 0; }
.follow-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.follow-list a span { color: var(--dim); letter-spacing: 0.06em; text-transform: none; font-family: var(--body); font-weight: 400; font-size: 12px; }

/* the phone menu */
details.menu { margin-left: auto; }
@media (min-width: 900px) { details.menu { display: none; } }
details.menu > summary { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.burger { width: 22px; height: 12px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--text); transition: transform 0.25s, top 0.25s; }
.burger::before { top: 0; }
.burger::after { top: 10px; }
details.menu[open] .burger::before { top: 5px; transform: rotate(45deg); }
details.menu[open] .burger::after { top: 5px; transform: rotate(-45deg); }
.menu-panel { position: fixed; inset: var(--hdr) 0 0 0; background: var(--bg); border-top: 1px solid var(--line); padding: 18px var(--pad) 40px; overflow-y: auto; }
.menu-panel a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font: 600 22px/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase; }
.menu-panel a[aria-current="page"] { color: var(--red); }
.menu-panel .menu-follow { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-panel .menu-follow a { justify-content: center; border: 1px solid var(--line-2); padding: 16px 0; font-size: 12px; letter-spacing: 0.2em; }
body.menu-open { overflow: hidden; }
/* a blurred header would become the box the fixed menu is measured from: drop the blur while the menu is open */
body.menu-open .site-hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 26px; font: 600 12px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line-2); background: rgba(5, 6, 8, 0.3); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.btn:hover, details[open] > summary.btn { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(5px); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: #fff; border-color: #fff; color: var(--bg); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line-2); transition: border-color 0.25s, gap 0.25s; }
.more:hover { border-color: var(--red); gap: 18px; }

/* ---------- full-bleed photo panels ---------- */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--bg); }
.panel > .bg, .panel > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.45) 0%, rgba(5, 6, 8, 0) 22%, rgba(5, 6, 8, 0) 50%, rgba(5, 6, 8, 0.86) 100%); }
.panel.left::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.72) 0%, rgba(5, 6, 8, 0.25) 38%, transparent 60%); }
.panel .wrap { padding-bottom: clamp(56px, 10vh, 112px); }
.panel h1, .panel h2 { font-size: clamp(2.6rem, 8.6vw, 6.2rem); line-height: 0.95; margin: 20px 0 22px; max-width: 9.5em; }
.panel .sub { color: #C9CDD2; font-size: clamp(1.02rem, 2.3vw, 1.2rem); max-width: 31em; margin-bottom: 34px; }
.panel .note { position: absolute; right: var(--pad); bottom: 22px; font: 600 10px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.hero > picture > img { object-position: 60% 25%; }
@media (min-width: 760px) {
  .hero h1 { font-size: clamp(2.8rem, 4.4vw, 5.6rem); max-width: 9.6em; margin: 18px 0 18px; }
  .hero .sub { max-width: min(40vw, 30em); margin-bottom: 30px; }
  .hero .wrap { padding-bottom: clamp(48px, 8vh, 96px); }
}
@media (max-width: 759px) {
  .hero > picture > img { object-position: 50% 0%; height: 78%; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 6, 8, 0.4) 0%, transparent 18%, transparent 42%, var(--bg) 76%); }
}
/* text at the top, centred: for pictures with an empty middle (the pair) */
.panel.top { align-items: flex-start; text-align: center; }
.panel.top .wrap { padding-top: calc(var(--hdr) + clamp(40px, 9vh, 96px)); padding-bottom: 0; display: flex; flex-direction: column; align-items: center; }
.panel.top::before { background: linear-gradient(180deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0.2) 38%, transparent 60%, rgba(5, 6, 8, 0.5) 100%); }
.panel.top h2 { margin-left: auto; margin-right: auto; }
.panel.top .sub { margin-left: auto; margin-right: auto; }
@media (max-width: 759px) {
  .panel.top { min-height: 0; display: block; }
  .panel.top > .bg { position: relative; height: auto; aspect-ratio: 16 / 10; z-index: 0; }
  .panel.top .wrap { padding-top: 70px; padding-bottom: 20px; }
  .panel.top::before { display: none; }
}

/* ---------- inner page head: stars, the title at the bottom left ---------- */
.pagehead { position: relative; min-height: 64vh; min-height: 64svh; display: flex; align-items: flex-end; background: url("/assets/img/stars-3.webp") center / cover no-repeat var(--bg); border-bottom: 1px solid var(--line); }
.pagehead::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 85% 120%, rgba(225, 29, 42, 0.14), transparent 70%); }
.pagehead .wrap { position: relative; padding-top: calc(var(--hdr) + 60px); padding-bottom: clamp(48px, 8vh, 88px); }
.pagehead h1 { font-size: clamp(2.8rem, 9vw, 7.4rem); line-height: 0.93; margin: 20px 0 24px; max-width: 10em; }
.pagehead .sub { color: var(--muted); font-size: clamp(1.05rem, 2.3vw, 1.25rem); max-width: 34em; }

/* ---------- sections ---------- */
.sec { padding: clamp(84px, 13vh, 150px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(2.1rem, 5.6vw, 4.4rem); line-height: 0.98; margin: 20px 0 24px; max-width: 12em; }
.sec .lead { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.22rem); max-width: 33em; }

/* split: words beside a photo */
.split .wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .split .wrap { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 110px); }
  .split.flip .wrap { grid-template-columns: 7fr 5fr; }
  .split.flip figure { order: -1; }
}
figure { margin: 0; position: relative; }
figure img { width: 100%; border: 1px solid var(--line); }
figcaption { margin-top: 12px; font: 600 10px/1.4 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.split .actions, .split .more { margin-top: 34px; }

/* the three points (numbered, with rules) */
.points { display: grid; gap: 0; margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, 1fr); } }
.point { padding: 30px 0 34px; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 900px) { .point { padding: 34px 36px 8px 0; border-bottom: 0; } .point + .point { padding-left: 36px; border-left: 1px solid var(--line); } }
.point .n { display: block; font: 600 12px/1 var(--head); letter-spacing: 0.22em; color: var(--red); margin-bottom: 22px; }
.point h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.05; margin-bottom: 12px; }
.point p { color: var(--muted); font-size: 1rem; max-width: 26em; }

/* numbers strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 26px 0 26px 14px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
@media (min-width: 760px) { .stat { padding: 44px 0 44px 36px; } }
.stat b { display: block; font: 600 clamp(1.15rem, 5vw, 3.4rem)/1 var(--head); letter-spacing: 0.02em; margin-bottom: 12px; }
.stat span { display: block; font: 600 clamp(9px, 2.4vw, 12px)/1.4 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* a picture across the whole width */
.wide { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.wide img { width: 100%; height: auto; max-height: 92vh; object-fit: cover; }
.wide .note { position: absolute; right: var(--pad); bottom: 18px; font: 600 10px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }

/* centred statement, then a wide picture that fades in from the black */
.sec.center { text-align: center; padding-bottom: clamp(36px, 6vh, 64px); }
.sec.center h2, .sec.center .lead { margin-left: auto; margin-right: auto; }
.sec.center .lead { margin-bottom: 34px; }
.sec.center .label { justify-content: center; }
.wide.fade { border: 0; }
.wide.fade::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.wide.fade .note { z-index: 1; }

/* planned specifications */
.specs { margin-top: clamp(36px, 6vh, 60px); border-top: 1px solid var(--line); }
.spec { display: grid; gap: 6px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .spec { grid-template-columns: 260px 1fr; padding: 26px 0; } }
.spec dt { font: 600 12px/1.5 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.spec dd { margin: 0; font-size: 1.06rem; }
.fine { margin-top: 26px; font-size: 0.85rem; color: var(--dim); max-width: 60em; }

/* people */
.people { display: grid; gap: 0; margin-top: clamp(40px, 7vh, 64px); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .people { grid-template-columns: 1fr 1fr; } }
.person { padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .person { padding: 36px 36px 36px 0; } .person + .person { padding-left: 36px; border-left: 1px solid var(--line); } }
.person .role { display: block; font: 600 12px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.person h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1; margin-bottom: 12px; }
.person p { color: var(--muted); max-width: 28em; }

/* ---------- light section: updates, like Anduril's news ---------- */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .label { color: var(--paper-muted); }
.paper .sec + .sec, .paper.sec + .sec { border-top-color: var(--paper-line); }
.paper .head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 6vh, 60px); }
.paper .head-row h2 { margin-bottom: 0; }
.paper .more { border-bottom-color: rgba(0, 0, 0, 0.3); }
.log { display: grid; border-top: 1px solid var(--paper-line); }
@media (min-width: 900px) { .log.cols { grid-template-columns: repeat(4, 1fr); border-top: 0; } }
.entry { padding: 28px 0; border-bottom: 1px solid var(--paper-line); }
.log.cols .entry { padding: 26px 28px 26px 0; }
@media (min-width: 900px) { .log.cols .entry { border-bottom: 0; border-top: 1px solid var(--paper-line); } }
.entry time { display: block; font: 600 12px/1 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 14px; }
.entry h3 { font-size: 1.35rem; line-height: 1.12; margin-bottom: 10px; }
.entry p { color: var(--paper-muted); font-size: 0.98rem; max-width: 40em; }
.entry.next time { color: var(--red); }
/* the full updates page: date on the left, text on the right */
.log.list .entry { display: grid; gap: 8px 40px; padding: 34px 0; }
@media (min-width: 900px) { .log.list .entry { grid-template-columns: 220px 1fr; } .log.list .entry time { margin: 6px 0 0; } }
.log.list .entry h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.paper .pagehead { background: var(--paper); border-bottom-color: var(--paper-line); }
.paper .pagehead::before { display: none; }
.paper .pagehead .sub { color: var(--paper-muted); }

/* ---------- the launch: stars ---------- */
.launch { position: relative; text-align: center; overflow: hidden; border-top: 1px solid var(--line); background: url("/assets/img/stars-3.webp") center / cover no-repeat var(--bg); }
.launch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(42% 70% at 50% 120%, rgba(225, 29, 42, 0.18), transparent 70%); pointer-events: none; }
.launch .wrap { position: relative; padding-top: clamp(100px, 16vh, 170px); padding-bottom: clamp(100px, 16vh, 170px); }
.launch h2 { font-size: clamp(3rem, 12vw, 9rem); line-height: 0.92; margin: 22px 0 26px; }
.launch p { color: var(--muted); font-size: 1.15rem; margin: 0 auto 40px; max-width: 30em; }
.launch .actions { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg); }
footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.foot { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot .about { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot .about { grid-column: auto; } }
.foot .about img { height: 24px; width: auto; }
.foot .about p { color: var(--muted); margin-top: 20px; max-width: 24em; }
.foot h4 { margin: 0 0 18px; font: 600 12px/1 var(--head); letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot ul a { color: #C9CDD2; transition: color 0.2s; }
.foot ul a:hover { color: var(--red); }
.legal { padding-top: 26px; display: grid; gap: 10px; font-size: 0.8rem; color: var(--dim); max-width: 74em; }

/* ---------- gentle reveal on scroll (only when JavaScript runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.hero .wrap > * { animation: rise 1.1s ease-out both; }
.hero .wrap > *:nth-child(2) { animation-delay: 0.08s; }
.hero .wrap > *:nth-child(3) { animation-delay: 0.16s; }
.hero .wrap > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .wrap > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn .arrow, .more { transition: none; }
}
