/* ==========================================================================
   42nd Airborne Division
   Palette pulled from the unit crest (gold / violet) and trooper armor.
   ========================================================================== */

:root {
  --ink: #09070d;
  --ink-2: #0f0b16;
  --panel: #151020;
  --panel-2: #1c1529;
  --line: rgba(238, 234, 226, 0.09);
  --line-2: rgba(238, 234, 226, 0.16);

  --violet: #8a3ffc;
  --violet-hi: #a66bff;
  --violet-deep: #43198a;
  --violet-glow: rgba(138, 63, 252, 0.35);
  --gold: #e3b341;
  --gold-hi: #f2cb6b;

  --bone: #eeeae2;
  --mute: #aaa2b8;
  --faint: #6f6780;

  --danger: #e5484d;
  --success: #3dd68c;
  --info: #5eb1ef;
  --warning: var(--gold);

  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --chamfer: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain over everything — subtle, keeps flat darks from banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  color: var(--bone);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: .01em; }
h4 { font-size: 1.1rem; letter-spacing: .04em; }

p { margin: 0 0 1.1em; }
strong { color: #fff; font-weight: 600; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- small type helpers ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.kicker .num { color: var(--mute); }

.mono {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--mute);
  max-width: 60ch;
}

.accent { color: var(--violet-hi); }
.gold { color: var(--gold); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.always-solid {
  background: rgba(9, 7, 13, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
  flex-shrink: 0;
}
.brand:hover { color: var(--bone); }
.brand img {
  width: 44px;
  height: 44px;
  transition: transform .6s var(--ease);
}
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .line1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-text .line2 {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--bone); }

.nav-links a.cta {
  margin-left: 10px;
  padding: 10px 22px;
  color: #fff;
  background: var(--violet);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background .2s;
}
.nav-links a.cta::after { display: none; }
.nav-links a.cta:hover { background: var(--violet-hi); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--bone);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); border-color: var(--bone); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  --btn-bg: var(--violet);
  --btn-fg: #fff;
  --btn-bd: var(--violet);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
}
.btn-primary:hover { --btn-bg: var(--violet-hi); border-color: var(--violet-hi); }

.btn-gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bd: var(--gold);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
}
.btn-gold:hover { --btn-bg: var(--gold-hi); border-color: var(--gold-hi); }

.btn-ghost { --btn-bd: var(--line-2); --btn-fg: var(--bone); }
.btn-ghost:hover { background: rgba(238, 234, 226, .06); }

.btn-danger { --btn-bd: rgba(229, 72, 77, .5); --btn-fg: #ff8a8d; }
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #fff; border-color: var(--danger); }

.btn-sm { padding: 9px 16px; font-size: .92rem; letter-spacing: .08em; }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(100vh, 1000px);
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 8vh, 90px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.08);
  animation: drift 26s ease-out forwards;
}
@keyframes drift { to { transform: scale(1) translate3d(-1.2%, 0, 0); } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 7, 13, .92) 0%, rgba(9, 7, 13, .55) 45%, rgba(9, 7, 13, .15) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(9, 7, 13, 0) 40%),
    radial-gradient(60% 60% at 80% 60%, rgba(138, 63, 252, .25), transparent 70%);
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  line-height: .86;
  letter-spacing: -0.01em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone);
}
@keyframes rise { to { transform: translateY(0); } }

.hero .lede {
  color: #cfc8db;
  margin-bottom: 34px;
  max-width: 54ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .9s var(--ease) forwards;
}
.d1 { animation-delay: .45s; }
.d2 { animation-delay: .6s; }
.d3 { animation-delay: .75s; }
.d4 { animation-delay: .95s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* HUD card: next deployment */
.hud {
  position: relative;
  width: 300px;
  padding: 20px 22px 18px;
  background: rgba(15, 11, 22, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
}
.hud::before, .hud::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}
.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, .6); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(61, 214, 140, 0); }
}
.hud-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 14px 0 4px;
}
.hud-when { font-size: .9rem; color: var(--mute); }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-2);
}
.countdown div { text-align: center; }
.countdown b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.countdown small {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--faint);
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
}
.scroll-cue i {
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  position: relative;
  background: var(--violet-deep);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.ticker-track {
  display: inline-flex;
  animation: marquee 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #efe6ff;
  padding-right: 36px;
}
.ticker-track span::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 36px;
  background: var(--gold);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0;
}
.section.tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-alt { background: var(--ink-2); }
.section + .section-alt,
.section-alt + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 32px 60px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--mute); max-width: 52ch; }

/* intro / statement */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.statement-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.04;
  text-transform: uppercase;
  margin: 0;
}
.statement-big em {
  font-style: normal;
  color: var(--violet-hi);
}
.statement-body p { color: var(--mute); }
.statement-body p:first-child { color: var(--bone); }

.facts {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt, .facts .k {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.facts .v { text-align: right; color: var(--bone); }

/* wide cinematic image */
.cinema {
  position: relative;
  margin: clamp(60px, 9vw, 120px) 0 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.cinema img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.cinema figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 14px 18px;
  background: rgba(9, 7, 13, .78);
  color: var(--mute);
}

/* in-house kit — split sticky */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.split-media {
  position: sticky;
  top: calc(var(--header-h) + 30px);
}
.split-media .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 7, 13, .7), transparent 50%);
}
.split-media .stamp {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.split-media .stamp img { width: 64px; height: 64px; }
.split-media .stamp span { color: var(--bone); }

.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numbered li {
  counter-increment: n;
  position: relative;
  padding: 34px 0 34px 74px;
  border-top: 1px solid var(--line);
}
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 36px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .1em;
}
.numbered h3 { margin-bottom: 10px; }
.numbered p { color: var(--mute); margin: 0; }

/* roles index */
.roles { border-top: 1px solid var(--line-2); }
.role {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.25fr) 40px;
  gap: 30px;
  align-items: center;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  isolation: isolate;
  transition: padding .35s var(--ease);
}
.role:hover { color: var(--bone); }
.role::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(138, 63, 252, .22), rgba(138, 63, 252, 0) 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.role:hover::before { transform: scaleX(1); }
.role:hover { padding-left: 22px; }
.role-code {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .16em;
  color: var(--gold);
}
.role h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.role p { margin: 0; color: var(--mute); font-size: .98rem; }
.role-arrow {
  justify-self: end;
  color: var(--faint);
  font-size: 1.4rem;
  transition: transform .35s var(--ease), color .2s;
}
.role:hover .role-arrow { color: var(--gold); transform: translateX(6px); }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(120px, 14vw, 190px);
  gap: 10px;
}
.shot {
  position: relative;
  overflow: hidden;
  margin: 0;
  cursor: zoom-in;
  background: var(--panel);
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s;
  filter: saturate(.92);
}
.shot:hover img { transform: scale(1.06); filter: saturate(1.1); }
.shot .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(9, 7, 13, .85), transparent);
  color: var(--bone);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s var(--ease);
}
.shot:hover .cap, .shot:focus-visible .cap { opacity: 1; transform: none; }
.g1 { grid-column: span 7; grid-row: span 3; }
.g2 { grid-column: span 5; grid-row: span 2; }
.g3 { grid-column: span 5; grid-row: span 1; }
.g4 { grid-column: span 4; grid-row: span 2; }
.g5 { grid-column: span 4; grid-row: span 2; }
.g6 { grid-column: span 4; grid-row: span 2; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  background: rgba(5, 4, 8, .94);
}
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; color: var(--mute); text-align: center; }
.lb-btn {
  position: absolute;
  background: none;
  border: 1px solid var(--line-2);
  color: var(--bone);
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
}
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } }

/* pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pipeline li {
  position: relative;
  padding: 0 28px 0 0;
  counter-increment: step;
}
.pipeline li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  margin-bottom: 18px;
  transition: -webkit-text-stroke-color .3s, color .3s;
}
.pipeline li:hover::before { color: var(--violet); -webkit-text-stroke-color: var(--violet); }
.pipeline .bar {
  position: relative;
  height: 2px;
  background: var(--line-2);
  margin-bottom: 24px;
}
.pipeline .bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
}
.pipeline h3 { margin-bottom: 8px; }
.pipeline p { color: var(--mute); margin: 0; font-size: .97rem; }

.req-strip {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}
.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.req-list li {
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  font-size: .94rem;
  color: var(--bone);
}

/* call to action band */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 160px) 0;
  background:
    radial-gradient(80% 120% at 85% 50%, rgba(138, 63, 252, .45), transparent 60%),
    linear-gradient(120deg, #1a0c33 0%, var(--ink) 70%);
  isolation: isolate;
}
.cta-band .crest-bg {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(620px, 60vw);
  transform: translateY(-50%) rotate(-8deg);
  opacity: .18;
  z-index: -1;
  animation: slowspin 120s linear infinite;
}
@keyframes slowspin { to { transform: translateY(-50%) rotate(352deg); } }
.cta-band h2 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: .9;
  max-width: 13ch;
  margin-bottom: 26px;
}
.cta-band p { color: #cfc8db; max-width: 48ch; margin-bottom: 36px; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(70px, 12vw, 140px)) 0 clamp(56px, 8vw, 90px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  animation: drift 30s ease-out forwards;
  transform: scale(1.08);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 10%, rgba(9, 7, 13, .5) 70%, rgba(9, 7, 13, .3)),
    linear-gradient(0deg, var(--ink), transparent 60%);
}
.page-hero h1 { margin-bottom: 22px; max-width: 14ch; }
.page-hero .lede { color: #cfc8db; }
.crumbs { color: var(--faint); margin-bottom: 26px; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--gold); }

/* ==========================================================================
   Ethos / org chart / timeline (about)
   ========================================================================== */

.ethos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.ethos article {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--line);
}
.ethos article + article { padding-left: 36px; }
.ethos article:last-child { border-right: 0; }
.ethos .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 18px;
}
.ethos p { color: var(--mute); margin: 0; }

.org { position: relative; }
.org-top {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}
.org-node {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 28px 28px 26px;
}
.org-node .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 10px;
}
.org-node h3 { margin-bottom: 10px; }
.org-node p { color: var(--mute); font-size: .96rem; margin: 0 0 14px; }
.org-node ul {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--bone);
  letter-spacing: .04em;
}
.org-node li { padding: 3px 0; }
.org-node li::before { content: "› "; color: var(--violet-hi); }
.org-top .org-node { border-top: 3px solid var(--gold); }
.org-top ul { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

.org-stem {
  width: 1px;
  height: 46px;
  margin: 0 auto;
  background: var(--line-2);
}
.org-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 46px;
}
.org-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--line-2);
}
.org-row .org-node::before {
  content: "";
  position: absolute;
  top: -47px;
  left: 50%;
  width: 1px;
  height: 46px;
  background: var(--line-2);
}
.org-row .org-node { border-top: 3px solid var(--violet); transition: transform .4s var(--ease), border-color .3s; }
.org-row .org-node:hover { transform: translateY(-4px); border-color: var(--violet-hi); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 6px;
}
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--mute); margin: 0; max-width: 62ch; }

.modset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mod {
  background: var(--ink-2);
  padding: 24px 22px;
  transition: background .25s;
}
.mod:hover { background: var(--panel); }
.mod .mono { color: var(--faint); font-size: .7rem; }
.mod h4 { margin: 8px 0 6px; font-size: 1.3rem; }
.mod p { margin: 0; color: var(--mute); font-size: .92rem; }
.mod.house { background: linear-gradient(160deg, rgba(138, 63, 252, .16), var(--ink-2) 60%); }
.mod.house .mono { color: var(--violet-hi); }

/* ==========================================================================
   Operations
   ========================================================================== */

.schedule { border-top: 1px solid var(--line-2); }
.slot {
  display: grid;
  grid-template-columns: 170px 130px minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  padding: 26px 18px;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.slot:hover { background: rgba(238, 234, 226, .025); }
.slot .day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
}
.slot .time {
  font-family: var(--font-mono);
  color: var(--mute);
  font-size: .95rem;
}
.slot h3 { margin: 0 0 4px; font-size: 1.35rem; }
.slot p { margin: 0; color: var(--mute); font-size: .94rem; }
.slot .pill { justify-self: end; }
.slot.is-next {
  background: linear-gradient(90deg, rgba(138, 63, 252, .2), transparent 85%);
  box-shadow: inset 3px 0 0 var(--violet);
}
.slot .next-flag {
  display: none;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--success);
  text-transform: uppercase;
}
.slot.is-next .next-flag { display: block; }

.pill {
  display: inline-block;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--mute);
  white-space: nowrap;
}
.pill.req { border-color: rgba(227, 179, 65, .5); color: var(--gold); }

.note { color: var(--faint); font-size: .92rem; margin-top: 20px; }

.optypes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.optype {
  position: relative;
  background: var(--ink);
  padding: 36px 30px 34px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background .35s;
}
.optype .code {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  color: var(--gold);
}
.optype h3 { margin: 64px 0 10px; font-size: 1.8rem; }
.optype p { margin: 0; color: var(--mute); font-size: .95rem; }
.optype::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--violet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.optype:hover { background: var(--panel); }
.optype:hover::after { transform: scaleX(1); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
}
.checklist li strong { display: block; color: var(--bone); font-weight: 600; }
.checklist .box {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 1.5px solid var(--gold);
  position: relative;
}
.checklist .box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ==========================================================================
   Enlist page
   ========================================================================== */

.enlist {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.enlist-aside {
  position: sticky;
  top: calc(var(--header-h) + 30px);
}
.enlist-aside .crest { width: 120px; margin-bottom: 28px; }
.enlist-aside h2 { font-size: 2rem; margin-bottom: 18px; }
.steps-mini { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: s; }
.steps-mini li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 44px;
  color: var(--mute);
  font-size: .95rem;
}
.steps-mini li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--gold);
  border: 1px solid rgba(227, 179, 65, .5);
}
.steps-mini li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: 4px;
  width: 1px;
  background: var(--line-2);
}
.steps-mini li:last-child::after { display: none; }
.steps-mini strong { display: block; color: var(--bone); font-weight: 600; }
.aside-box {
  border: 1px solid var(--line-2);
  padding: 20px 22px;
  font-size: .93rem;
  color: var(--mute);
}
.aside-box a { font-weight: 600; }

.form-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 52px);
}
.fieldset {
  border: 0;
  margin: 0;
  padding: 0 0 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.fieldset:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 10px; }
.fieldset legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 0;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  line-height: 1;
}
.fieldset legend .mono { color: var(--gold); font-size: .8rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}
.form-row { grid-column: 1 / -1; }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 9px;
}
label .req { color: var(--gold); margin-left: 3px; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--line-2);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: rgba(238, 234, 226, .28); }
input:focus, select:focus, textarea:focus {
  border-color: var(--violet);
  background: #0d0915;
  box-shadow: 0 0 0 3px var(--violet-glow);
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select option { background: var(--panel); color: var(--bone); }
textarea { resize: vertical; min-height: 130px; line-height: 1.55; }

.help-text { font-size: .84rem; color: var(--faint); margin: 7px 0 0; }

.form-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.success-panel {
  text-align: left;
  border: 1px solid rgba(61, 214, 140, .35);
  background: linear-gradient(160deg, rgba(61, 214, 140, .08), var(--ink-2) 50%);
  padding: clamp(28px, 5vw, 56px);
}
.success-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.success-panel p { color: var(--mute); }

/* ==========================================================================
   Alerts, badges, tables (shared by admin)
   ========================================================================== */

.alert {
  padding: 14px 18px;
  margin-bottom: 22px;
  border-left: 3px solid var(--info);
  background: rgba(94, 177, 239, .1);
  color: var(--bone);
  font-size: .96rem;
}
.alert-success { border-color: var(--success); background: rgba(61, 214, 140, .1); }
.alert-error { border-color: var(--danger); background: rgba(229, 72, 77, .12); }
.alert-warning { border-color: var(--warning); background: rgba(227, 179, 65, .1); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { color: var(--gold); }
.badge-interview { color: var(--info); }
.badge-accepted { color: var(--success); }
.badge-rejected { color: #ff8a8d; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
.app-table th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel);
  white-space: nowrap;
}
.app-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.app-table tbody tr { transition: background .15s; }
.app-table tbody tr:hover td { background: rgba(138, 63, 252, .07); }
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-table td:first-child { font-family: var(--font-mono); color: var(--faint); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar select { width: auto; min-width: 180px; padding-top: 10px; padding-bottom: 10px; }
.toolbar label { margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.stat { background: var(--ink-2); padding: 22px 22px 20px; }
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.stat:nth-child(2) .num { color: var(--gold); }
.stat:nth-child(3) .num { color: var(--info); }
.stat:nth-child(4) .num { color: var(--success); }
.stat:nth-child(5) .num { color: #ff8a8d; }

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 40px;
  overflow-y: auto;
  background: rgba(5, 4, 8, .82);
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; animation: fadeIn .2s ease; }
.modal {
  width: 100%;
  max-width: 820px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--violet);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal h2 { font-size: 2rem; margin-bottom: 22px; }
.modal h3 { font-size: 1.15rem; margin: 26px 0 12px; color: var(--mute); }
.detail-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 0;
  margin: 0 0 10px;
  border-top: 1px solid var(--line);
}
.detail-grid dt, .detail-grid dd {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.detail-grid dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 14px;
}
.detail-grid dd { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ==========================================================================
   Staff login
   ========================================================================== */

.auth {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.auth-media {
  position: relative;
  overflow: hidden;
}
.auth-media img { width: 100%; height: 100%; object-fit: cover; }
.auth-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 7, 13, .2), var(--ink)), linear-gradient(0deg, rgba(9, 7, 13, .7), transparent 50%);
}
.auth-media .quote {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 5vw, 60px);
  z-index: 1;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(20px, 6vw, 90px);
}
.auth-panel .brand { margin-bottom: 64px; }
.login-card { width: 100%; max-width: 400px; }
.login-card h1 { font-size: clamp(2.6rem, 4vw, 3.4rem); margin-bottom: 8px; }
.login-card .sub { color: var(--mute); margin-bottom: 36px; }
.login-card .field { margin-bottom: 20px; }
.auth-foot { margin-top: 48px; color: var(--faint); font-size: .88rem; }
.auth-foot a { color: var(--mute); }

/* ==========================================================================
   Dashboard shell
   ========================================================================== */

.dash-main { padding: calc(var(--header-h) + 48px) 0 80px; min-height: 80vh; }
.dash-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}
.dash-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0; }
.user-chip { color: var(--mute); }
.user-chip span { color: var(--bone); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  background: #060509;
  border-top: 1px solid var(--line);
  padding: 80px 0 34px;
  color: var(--mute);
  font-size: .95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { width: 84px; margin-bottom: 20px; }
.footer-brand .motto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--bone);
  max-width: 18ch;
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--bone); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: .82rem;
  color: var(--faint);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 15vw, 15rem);
  line-height: .8;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 234, 226, .07);
  white-space: nowrap;
  margin: 50px 0 0;
  user-select: none;
  overflow: hidden;
}

/* ==========================================================================
   404
   ========================================================================== */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.lost .bg { position: absolute; inset: 0; z-index: -2; }
.lost .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.lost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(9, 7, 13, .4), var(--ink));
}
.lost .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8rem, 30vw, 20rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px var(--violet);
  margin: 0 0 10px;
}
.lost h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.lost p { color: var(--mute); margin-bottom: 30px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--mute); }
.mt-2 { margin-top: 1em; }
.mb-2 { margin-bottom: 1em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hud { width: 100%; max-width: 420px; }
  .role { grid-template-columns: 90px minmax(0, 1fr) 30px; }
  .role p { grid-column: 2 / 3; }
  .role-arrow { grid-row: 1; grid-column: 3; }
  .optypes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot { grid-template-columns: 140px 110px minmax(0, 1fr); }
  .slot .pill { grid-column: 3; justify-self: start; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gutter);
    background: var(--ink);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  /* backdrop-filter makes the header the containing block for the fixed menu,
     shrinking it to header height; drop it while the menu is open. */
  .nav-open .site-header { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-links { height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav-open { overflow: hidden; }
  .nav-links a {
    font-size: 2rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--bone);
  }
  .nav-links a::after { display: none; }
  .nav-links a.cta { margin: 24px 0 0; text-align: center; font-size: 1.3rem; padding: 18px; }

  .section-head,
  .statement,
  .split,
  .enlist,
  .auth { grid-template-columns: 1fr; }
  .split-media, .enlist-aside { position: static; }
  .split-media .frame { aspect-ratio: 16 / 10; }
  .auth-media { height: 34vh; }
  .auth-media::after { background: linear-gradient(0deg, var(--ink), rgba(9, 7, 13, .2)); }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .gallery .shot { grid-column: span 1; grid-row: span 1; }
  .gallery .g1, .gallery .g6 { grid-column: span 2; }
  .shot .cap { opacity: 1; transform: none; }

  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 0; }
  .req-strip { grid-template-columns: 1fr; gap: 16px; }

  .ethos { grid-template-columns: 1fr; }
  .ethos article, .ethos article + article { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }

  .org-row { grid-template-columns: 1fr; padding-top: 0; gap: 20px; }
  .org-row::before, .org-row .org-node::before { display: none; }
  .org-stem { height: 24px; }

  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .modset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cinema { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-cta .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .role { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .role:hover { padding-left: 10px; }
  .role p, .role-arrow { grid-column: 1; }
  .role-arrow { display: none; }
  .optypes, .modset { grid-template-columns: 1fr; }
  .optype { min-height: 0; }
  .optype h3 { margin-top: 30px; }
  .slot { grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 22px 12px; }
  .slot .day { grid-column: 1; }
  .slot .time { grid-column: 2; justify-self: end; }
  .slot > div:nth-child(3) { grid-column: 1 / -1; }
  .slot .pill { grid-column: 1 / -1; }
  .pipeline { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:first-child { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dt { border-bottom: 0; padding-bottom: 0; }
  .brand-text .line2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
