/* Oculus — industrialist page system.
 *
 * The stylesheet for every marketing page except the flight (index.html), which keeps its own
 * styles.css. Same tokens, same chrome, same components, so a visitor moving from the flight to
 * /mission never leaves the material. See brand/brand-guidelines.md.
 *
 * The brand is restraint. Structure carries the pages: type, rule, spec table, negative space.
 * Images are sparse and commanding, never decorative. This file gives structure the tools to do
 * the work Anduril lets photography do — so most sections here are built from nothing but a mono
 * eyebrow, a Cinzel headline, a column of body, and a datasheet.
 */

:root {
  --black:  #0A0A0C;
  --panel:  #101216;
  --panel2: #14171C;   /* a second, barely-lifted panel for nested surfaces */
  --steel:  #2A2E33;
  --brass:  #B98A45;
  --amber:  #E0A55B;
  --rust:   #C2603A;   /* the single warning tint — revoked, expired, hazard */
  --text:   #EDE4D6;
  --soft:   #C9BFAF;   /* body-in-lede, a touch below --text */
  --muted:  #8A8072;
  --dim:    #5E5850;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --display: "Cinzel", "Iowan Old Style", Palatino, Georgia, serif;

  --header-h: 62px;
  --margin: clamp(18px, 4vw, 44px);
  --maxw: 1180px;
  --section-y: clamp(72px, 12vh, 156px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--margin); }

/* Grain + vignette — the overlays that make flat panels read as lit material. Fixed, behind
   everything, pointer-transparent. The grain is a tiny tiled SVG data URI. */
.grain, .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.vignette { background: radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(0,0,0,.55)); }
.grain {
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Chrome — identical to the flight ─────────────────────────────────────── */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--margin);
  background: linear-gradient(180deg, rgba(10,10,12,.94), rgba(10,10,12,.6) 70%, transparent);
  backdrop-filter: blur(3px);
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.wordmark__name { font-family: var(--mono); font-size: 13px; letter-spacing: .26em; font-weight: 500; }
.wordmark__tag { font-size: 12px; color: var(--muted); }
.diamond {
  width: 9px; height: 9px; flex: none; transform: rotate(45deg);
  background: var(--brass); box-shadow: 0 0 10px rgba(185,138,69,.6);
}
.wordmark__mark { width: 34px; height: 34px; flex: none; display: block; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav__cta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--brass) !important;
  border: 1px solid var(--steel); padding: 8px 14px; border-radius: 2px; transition: .2s;
}
.nav__cta:hover { border-color: var(--brass); background: rgba(185,138,69,.08); }

.burger { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--text); margin: 4px auto; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-5.5px) rotate(-45deg); }

.menu { position: fixed; inset: var(--header-h) 0 0; z-index: 29; background: var(--black); padding: 28px var(--margin); }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 4px; }
.menu a {
  display: flex; align-items: baseline; gap: 12px; padding: 14px 0;
  font-size: 20px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--steel);
}
.menu a .mono { font-size: 10px; color: var(--dim); letter-spacing: .2em; }
.menu__cta { color: var(--amber) !important; border-bottom: 0 !important; margin-top: 16px; }
.menu__cta--ghost { color: var(--muted) !important; }

/* ── Type ─────────────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass); display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--brass); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1.12; color: var(--text); }
.h-hero { font-size: clamp(38px, 6.5vw, 84px); }
.h-sect { font-size: clamp(30px, 4.4vw, 58px); }
.h-sub  { font-size: clamp(22px, 2.6vw, 34px); }

.lede { max-width: 54ch; font-size: clamp(16px, 1.3vw, 20px); color: var(--soft); line-height: 1.6; }
.body { max-width: 62ch; color: var(--muted); }
.body strong { color: var(--text); font-weight: 500; }

/* ── Hero — the top of every page. Structure-first: eyebrow, Cinzel headline, lede, jump nav.
   An optional image sits full-bleed behind a scrim. Most pages will have none. ── */

.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 40px) 0 var(--section-y); overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,.35) 40%, rgba(10,10,12,.92) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; max-width: 16ch; }
.hero .lede { margin-bottom: 34px; }

/* Jump nav — the little mono index a page's own sections. Sits under the hero lede. */
.jump { display: flex; flex-wrap: wrap; gap: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.jump a { color: var(--muted); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid transparent; transition: .2s; }
.jump a:hover { color: var(--brass); border-color: var(--brass); }

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section { padding-block: var(--section-y); border-top: 1px solid var(--steel); }
.section:first-of-type { border-top: 0; }
.section > .wrap > .eyebrow { margin-bottom: 26px; }
.section h2 { margin-bottom: 28px; max-width: 20ch; }

/* Two-column: statement left, body/spec right. The workhorse layout. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--wide { grid-template-columns: 5fr 7fr; }

/* Spec / datasheet — the way every fact is shown. */
.spec { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--steel); }
.spec > div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--steel); }
.spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-size: 14px; color: var(--text); }
.spec dd .sub { display: block; color: var(--dim); font-size: 12px; margin-top: 3px; }

/* Numbered rows — "01 Sourced / 02 Delivered / 03 Financed", deployment lanes, etc. */
.rows { display: grid; gap: 0; margin-top: 20px; }
.row { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); padding: 30px 0; border-top: 1px solid var(--steel); align-items: baseline; }
.row:last-child { border-bottom: 1px solid var(--steel); }
.row__idx { font-family: var(--mono); font-size: 12px; color: var(--brass); letter-spacing: .1em; }
.row h3 { margin-bottom: 10px; }
.row .body { max-width: 52ch; font-size: 15px; }

/* The three-verb module — Sourced / Delivered / Financed. The brand's spine. */
.verbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--steel); border: 1px solid var(--steel); margin-top: 40px; }
.verb { background: var(--panel); padding: clamp(24px, 3vw, 40px); }
.verb__idx { font-family: var(--mono); font-size: 11px; color: var(--brass); letter-spacing: .16em; }
.verb h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 14px 0 12px; }
.verb .body { font-size: 14px; color: var(--muted); max-width: none; }

/* Cards — services, article previews, lane openers. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--steel); border: 1px solid var(--steel); margin-top: 44px; }
.card { background: var(--panel); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background .25s; }
a.card:hover { background: var(--panel2); }
.card__idx { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--brass); margin-bottom: 20px; }
.card h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 14px; }
.card .body { font-size: 14px; color: var(--muted); flex: 1; }
.card__go { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-top: 22px; }
a.card:hover .card__go { color: var(--amber); }

/* Full-bleed image band — used at most once or twice per page, never to fill space. */
.figure { position: relative; margin-block: var(--section-y); aspect-ratio: 21/9; overflow: hidden; border-block: 1px solid var(--steel); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { position: absolute; left: var(--margin); bottom: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brass); text-decoration: none;
  border: 1px solid var(--brass); border-radius: 2px; padding: 13px 22px; transition: .2s;
}
.btn:hover { background: rgba(185,138,69,.1); }
.btn--solid { background: rgba(185,138,69,.14); }
.btn--solid:hover { background: rgba(185,138,69,.24); }
.btn--ghost { border-color: var(--steel); color: var(--muted); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); background: transparent; }

.note { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* ── Prose — article body ─────────────────────────────────────────────────── */

.prose { max-width: 68ch; margin-inline: auto; }
.prose p { color: var(--soft); margin-bottom: 24px; line-height: 1.75; }
.prose h2 { font-size: clamp(24px, 2.8vw, 36px); margin: 56px 0 22px; }
.prose ul { list-style: none; margin: 0 0 24px; display: grid; gap: 14px; }
.prose li { position: relative; padding-left: 26px; color: var(--soft); line-height: 1.6; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--brass); }
.prose .pull { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--text); border-left: 2px solid var(--brass); padding-left: 26px; margin: 44px 0; }

/* ── Contact form ─────────────────────────────────────────────────────────── */

.form { display: grid; gap: 22px; margin-top: 36px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--panel); border: 1px solid var(--steel); border-radius: 2px;
  color: var(--text); font-family: var(--sans); font-size: 15px; padding: 13px 14px; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brass); }
.field textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--steel); border-radius: 2px; padding: 9px 15px; cursor: pointer; background: var(--panel); transition: .2s; }
.chip[aria-pressed="true"] { border-color: var(--brass); color: var(--amber); background: rgba(185,138,69,.08); }

/* Two-up definition list, e.g. Direct contact block */
.dl { display: grid; gap: 0; }
.dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--steel); }
.dl > div:last-child { border-bottom: 1px solid var(--steel); }
.dl dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dl dd { color: var(--text); font-size: 15px; }

/* ── Footer — matches the flight ──────────────────────────────────────────── */

.foot { border-top: 1px solid var(--steel); padding: clamp(40px, 6vh, 72px) 0; }
.foot .wrap { display: flex; flex-direction: column; gap: 26px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.foot__cols { display: flex; flex-wrap: wrap; gap: clamp(30px, 6vw, 80px); }
.foot__col { display: grid; gap: 10px; }
.foot__col p.mono { font-size: 10px; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; margin-bottom: 4px; }
.foot__col a { font-size: 14px; color: var(--muted); text-decoration: none; }
.foot__col a:hover { color: var(--text); }
.foot__mark { display: flex; align-items: center; gap: 12px; }
.foot__mark p { font-family: var(--mono); font-size: 9px; letter-spacing: .24em; color: var(--dim); text-transform: uppercase; }
.foot__legal { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
  .wordmark__tag { display: none; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .verbs { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .hero { min-height: 68vh; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
