/* ============================================================================
   PRIMEPC — DESIGN SYSTEM "VANGUARD"
   Warm-black substrate · bone type · coral signal · teal telemetry
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* substrate — warm blacks, never neutral */
  --void:      #090708;
  --carbon:    #0D0A0C;
  --iron:      #141011;
  --graphite:  #1C1719;
  --slate:     #262022;

  /* type */
  --bone:      #EFEAE4;
  --ash:       #A39B99;
  --steel:     #6B6265;
  --dust:      #443C3F;

  /* signal */
  --signal:    #FF5F5C;
  --ember:     #FF3A22;
  --flux:      #5FE3C8;
  --amber:     #FFB65C;

  /* seams */
  --seam:       rgba(239, 234, 228, 0.09);
  --seam-soft:  rgba(239, 234, 228, 0.05);
  --seam-hard:  rgba(239, 234, 228, 0.16);
  --signal-dim: rgba(255, 95, 92, 0.28);
  --signal-wash:rgba(255, 95, 92, 0.07);

  /* metrics */
  --gutter: clamp(20px, 4vw, 68px);
  --rail: 46px;
  --hud-h: 68px;
  --maxw: 1560px;

  /* type scale */
  --t-micro: 10px;
  --t-mono: 11px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.72s;
}

/* ---------- 2. RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--void);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.is-locked, body.is-locked { overflow: hidden; }

body {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-variation-settings: 'wdth' 100;
  background: var(--void);
  color: var(--bone);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--signal); color: var(--void); }

:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- 3. TYPOGRAPHY ----------------------------------------------- */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono-xs { font-size: var(--t-micro); letter-spacing: 0.22em; }

.display {
  font-variation-settings: 'wdth' 118, 'wght' 700;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.h-xl { font-size: clamp(2.9rem, 9vw, 8.4rem); }
.h-lg { font-size: clamp(2.3rem, 6vw, 5.2rem); }
.h-md { font-size: clamp(1.7rem, 3.4vw, 3.1rem); }
.h-sm { font-size: clamp(1.15rem, 1.9vw, 1.6rem); }

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  line-height: 1.55;
  color: var(--ash);
  font-weight: 300;
  max-width: 62ch;
}
p { color: var(--ash); font-weight: 300; }

.sig { color: var(--signal); }
.flx { color: var(--flux); }
.dim { color: var(--steel); }
.bone { color: var(--bone); }

.outline-txt {
  color: transparent;
  -webkit-text-stroke: 1px var(--seam-hard);
}

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
}

section { position: relative; }

.band {
  padding-block: clamp(88px, 12vh, 168px);
  position: relative;
}
.band--tight { padding-block: clamp(56px, 7vh, 96px); }

.rule { height: 1px; background: var(--seam); width: 100%; border: 0; }

/* ---------- 5. ATMOSPHERE (fixed overlays) ------------------------------- */
/* backdrop video sits beneath the particle field */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  height: var(--vph, 100lvh);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#bg-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: grayscale(0.45) contrast(1.22) brightness(0.5) saturate(1.15);
  transition: opacity 2.2s ease 0.6s;
}
#bg-video.ready video { opacity: 0.5; }
#bg-video::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(85% 65% at 50% 42%, transparent 8%, rgba(9,7,8,0.72) 74%, var(--void) 100%),
    linear-gradient(to bottom, rgba(9,7,8,0.55), rgba(9,7,8,0.2) 40%, var(--void) 96%);
}

#gl-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  height: var(--vph, 100lvh);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease 0.3s;
}
#gl-stage.ready { opacity: 0.8; }
#gl-stage canvas { width: 100%; height: 100%; display: block; }

/* fallback wash when WebGL is unavailable */
.gl-fallback {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 72% 18%, rgba(255,95,92,0.16), transparent 68%),
    radial-gradient(52% 40% at 18% 76%, rgba(95,227,200,0.07), transparent 70%);
  filter: blur(30px);
}

.atmos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  height: var(--vph, 100lvh);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

/* hairline column grid */
.atmos__grid {
  position: absolute;
  inset: 0 var(--rail);
  background-image: repeating-linear-gradient(
    to right,
    var(--seam-soft) 0 1px,
    transparent 1px calc(100% / 6)
  );
  background-size: 100% 100%;
  opacity: 0.75;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

/* animated film grain */
.atmos__grain {
  position: absolute;
  inset: -120%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 0.7s steps(4) infinite;
  mix-blend-mode: overlay;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* scanline sheet */
.atmos__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0 2px,
    rgba(0,0,0,0.22) 2px 3px
  );
  opacity: 0.28;
  mix-blend-mode: multiply;
}

/* corner vignette */
.atmos__vig {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(9,7,8,0.82) 100%);
}

/* ---------- 6. SIDE RAILS ------------------------------------------------ */
.rail {
  position: fixed;
  top: 0;
  height: 100vh;
  height: 100lvh;
  height: var(--vph, 100lvh);
  width: var(--rail);
  z-index: 40;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-inline: 1px solid transparent;
}
.rail--l { left: 0; border-right-color: var(--seam-soft); }
.rail--r { right: 0; border-left-color: var(--seam-soft); }

.rail__txt {
  writing-mode: vertical-rl;
  color: var(--dust);
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.34em;
}
.rail--l .rail__txt { transform: rotate(180deg); }

.rail__ticks {
  position: absolute;
  top: 0; bottom: 0; right: -1px;
  width: 7px;
  background-image: repeating-linear-gradient(
    to bottom, var(--seam) 0 1px, transparent 1px 44px
  );
}

/* scroll progress bar inside right rail */
.rail__prog {
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 0%;
  background: linear-gradient(to bottom, transparent, var(--signal));
  transform: translateX(-50%);
}
.rail__prog::after {
  content: '';
  position: absolute; bottom: -3px; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}

/* ---------- 7. HUD / NAV ------------------------------------------------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hud-h);
  z-index: 60;
  display: flex;
  align-items: center;
  padding-inline: calc(var(--rail) + 18px);
  gap: 22px;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
}
.hud.stuck {
  background: rgba(9, 7, 8, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--seam);
}

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark {
  width: 26px; height: 26px;
  position: relative;
  flex: 0 0 auto;
}
.brand__mark svg { width: 100%; height: 100%; overflow: visible; }
.brand__word {
  font-variation-settings: 'wdth' 112, 'wght' 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__word i { font-style: normal; color: var(--signal); }

.hud__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.hud__link {
  position: relative;
  padding: 9px 14px;
  color: var(--ash);
  transition: color 0.3s var(--ease);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hud__link::before {
  content: '';
  position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.hud__link:hover, .hud__link.on { color: var(--bone); }
.hud__link:hover::before, .hud__link.on::before { transform: scaleX(1); }
.hud__link.on { color: var(--signal); }

.hud__meta {
  display: flex; align-items: center; gap: 10px;
  color: var(--steel);
  padding-right: 6px;
}
.hud__meta .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--flux);
  box-shadow: 0 0 9px var(--flux);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* burger */
.burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  margin-left: auto;
  z-index: 70;
}
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1px;
  background: var(--bone);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0;
  z-index: 55;
  background: rgba(9,7,8,0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
.drawer.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--seam-soft);
  font-variation-settings: 'wdth' 115, 'wght' 700;
  font-size: clamp(1.9rem, 8vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
}
.drawer a em {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--signal);
  letter-spacing: 0.2em;
}
.drawer__foot { margin-top: 34px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- 8. BUTTONS --------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--seam-hard);
  background: transparent;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.btn > * { position: relative; z-index: 2; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--signal);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  z-index: 1;
}
.btn:hover { color: var(--void); border-color: var(--signal); }
.btn:hover::before { transform: translateY(0); }

.btn--solid {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--void);
}
.btn--solid::before { background: var(--bone); }
.btn--solid:hover { color: var(--void); border-color: var(--bone); }

.btn--ghost { border-color: var(--seam); color: var(--ash); }
.btn--ghost:hover { color: var(--void); }

.btn__ico { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.btn--wide { width: 100%; }

/* corner brackets on hover */
.btn::after {
  content: '';
  position: absolute; inset: 3px;
  border: 1px solid transparent;
  clip-path: polygon(0 0, 9px 0, 9px 1px, 1px 1px, 1px 9px, 0 9px,
                     0 100%, 9px 100%, 9px calc(100% - 1px), 1px calc(100% - 1px), 1px calc(100% - 9px), 0 calc(100% - 9px),
                     100% 100%, calc(100% - 9px) 100%, calc(100% - 9px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 9px), 100% calc(100% - 9px),
                     100% 0, calc(100% - 9px) 0, calc(100% - 9px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) 9px, 100% 9px);
  transition: border-color 0.4s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.btn:hover::after { border-color: rgba(9,7,8,0.55); }

/* text link with animated arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--seam-hard);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tlink svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform 0.4s var(--ease); }
.tlink:hover { color: var(--signal); border-color: var(--signal); }
.tlink:hover svg { transform: translateX(5px); }

/* ---------- 9. MICROGRAPHICS -------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
}
.kicker::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--signal);
}
.kicker b { color: var(--signal); font-weight: 500; }

.sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--seam);
  margin-bottom: clamp(38px, 6vh, 72px);
  flex-wrap: wrap;
}
.sechead__idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--steel);
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 14px;
}
.sechead__idx s { text-decoration: none; color: var(--signal); }

/* corner-bracket frame */
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: '';
  position: absolute;
  width: 13px; height: 13px;
  border: 1px solid var(--seam-hard);
  pointer-events: none;
  transition: border-color 0.4s var(--ease);
}
.brackets::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brackets::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* reticle marker */
.reticle {
  width: 15px; height: 15px;
  position: relative;
  flex: 0 0 auto;
}
.reticle::before, .reticle::after {
  content: ''; position: absolute; background: var(--signal);
}
.reticle::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.reticle::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }

/* tick ruler */
.ruler {
  height: 12px;
  background-image: repeating-linear-gradient(to right, var(--seam) 0 1px, transparent 1px 11px);
  mask-image: linear-gradient(to right, #000, transparent);
  opacity: 0.7;
}

/* data readout row */
.readout {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
}
.readout b { color: var(--bone); font-weight: 500; }

/* status chip */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--seam);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ash);
  background: rgba(239,234,228,0.02);
}
.chip i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--flux); box-shadow: 0 0 8px var(--flux);
}
.chip--sig i { background: var(--signal); box-shadow: 0 0 8px var(--signal); }

/* ---------- 10. PANELS --------------------------------------------------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(239,234,228,0.035), rgba(239,234,228,0.008));
  border: 1px solid var(--seam);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  overflow: hidden;
}
.panel--flat { background: rgba(13,10,12,0.62); }

/* scan sweep on hover */
.sweep { position: relative; overflow: hidden; }
.sweep::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,95,92,0.14) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.sweep:hover::after { transform: translateX(120%); }

/* ---------- 11. CURSOR --------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  z-index: 999;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.live { opacity: 1; }
.cursor__ring {
  position: absolute; inset: 0;
  border: 1px solid var(--bone);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), border-radius 0.35s var(--ease), opacity 0.3s;
}
.cursor__dot {
  position: absolute; top: 50%; left: 50%;
  width: 3px; height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: var(--bone);
  border-radius: 50%;
}
.cursor__tick {
  position: absolute; background: var(--bone); opacity: 0;
  transition: opacity 0.3s;
}
.cursor__tick:nth-child(3) { top: -7px; left: 50%; width: 1px; height: 5px; }
.cursor__tick:nth-child(4) { bottom: -7px; left: 50%; width: 1px; height: 5px; }
.cursor__tick:nth-child(5) { left: -7px; top: 50%; height: 1px; width: 5px; }
.cursor__tick:nth-child(6) { right: -7px; top: 50%; height: 1px; width: 5px; }
.cursor.hot .cursor__ring { transform: scale(1.65); border-radius: 2px; }
.cursor.hot .cursor__tick { opacity: 1; }
.cursor__label {
  position: absolute; top: 50%; left: 44px;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.hot .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 12. PRELOADER ------------------------------------------------ */
.boot {
  position: fixed; inset: 0;
  z-index: 900;
  background: var(--void);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  transition: opacity 0.6s ease;
}
.boot.done { pointer-events: none; }
.boot__wipe {
  position: absolute; inset: 0;
  background: var(--void);
  transform-origin: top;
}
.boot__inner { position: relative; z-index: 2; width: 100%; }
.boot__log {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel);
  min-height: 88px;
  display: flex; flex-direction: column; gap: 5px;
  margin-bottom: 18px;
}
.boot__log span { opacity: 0; animation: bootline 0.35s forwards; }
.boot__log span b { color: var(--flux); font-weight: 500; }
@keyframes bootline { to { opacity: 1; } }
.boot__bar { height: 1px; background: var(--seam); position: relative; overflow: hidden; }
.boot__bar i { position: absolute; inset: 0 100% 0 0; background: var(--signal); transition: right 0.2s linear; }
.boot__foot {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dust);
}
.boot__pct { color: var(--signal); }
.boot__logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-variation-settings: 'wdth' 120, 'wght' 700;
  font-size: clamp(2.4rem, 11vw, 8rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.boot__logo i { font-style: normal; color: var(--signal); }

/* ---------- 13. REVEALS -------------------------------------------------- */
[data-rv] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition:
    opacity 0.95s var(--ease),
    transform 1.05s var(--ease),
    filter 0.95s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rv].in { opacity: 1; transform: none; filter: blur(0); }

[data-rv='wipe'] {
  clip-path: inset(0 100% 0 0);
  opacity: 1; transform: none; filter: none;
  transition: clip-path 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rv='wipe'].in { clip-path: inset(0 0 0 0); }

[data-rv='scale'] {
  opacity: 0; transform: scale(1.08); filter: blur(10px);
}
[data-rv='scale'].in { opacity: 1; transform: scale(1); filter: blur(0); }

/* split-line headline */
.lines { display: block; }
.lines .ln { display: block; overflow: hidden; }
.lines .ln > span {
  display: block;
  transform: translateY(105%) rotate(2.4deg);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.lines.in .ln > span { transform: none; }

/* word stagger */
.wsplit .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 42ms);
}
.wsplit.in .w { opacity: 1; transform: none; filter: blur(0); }

/* ---------- 14. MARQUEE -------------------------------------------------- */
.marq {
  overflow: hidden;
  border-block: 1px solid var(--seam);
  padding-block: 15px;
  position: relative;
  background: rgba(13,10,12,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.marq__row { display: flex; width: max-content; will-change: transform; }
.marq__row > span {
  display: inline-flex; align-items: center; gap: 22px;
  padding-inline: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}
.marq__row > span::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--signal);
  transform: rotate(45deg);
}
.marq::before, .marq::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 130px; z-index: 2; pointer-events: none;
}
.marq::before { left: 0; background: linear-gradient(to right, var(--void), transparent); }
.marq::after { right: 0; background: linear-gradient(to left, var(--void), transparent); }

/* ---------- 15. FORMS ---------------------------------------------------- */
.field { position: relative; margin-bottom: 2px; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 9px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 2px;
  background: transparent;
  border-bottom: 1px solid var(--seam);
  color: var(--bone);
  font-size: 16px;
  font-weight: 300;
  transition: border-color 0.4s var(--ease);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { cursor: pointer; }
.field select option { background: var(--iron); color: var(--bone); }
.field input::placeholder, .field textarea::placeholder { color: var(--dust); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--signal);
}
.field__bar {
  position: absolute; bottom: 0; left: 0;
  height: 1px; width: 100%;
  background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.field:focus-within .field__bar { transform: scaleX(1); }

.field input[type='file'] {
  padding: 12px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ash);
}
.field input[type='file']::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  border: 1px solid var(--seam-hard);
  background: transparent;
  color: var(--bone);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.field input[type='file']::file-selector-button:hover { background: var(--signal); color: var(--void); border-color: var(--signal); }

.formgrid { display: grid; gap: 26px; }
@media (min-width: 720px) { .formgrid--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- 16. FOOTER --------------------------------------------------- */
.foot {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--seam);
  background: linear-gradient(180deg, rgba(9,7,8,0.4), var(--void));
  padding-top: clamp(56px, 8vh, 96px);
  overflow: hidden;
}
.foot__grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
}
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
}
.foot__col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--seam-soft);
}
.foot__col a, .foot__col p {
  display: block;
  color: var(--ash);
  font-size: 14px;
  font-weight: 300;
  padding: 4px 0;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.foot__col a:hover { color: var(--signal); transform: translateX(4px); }

.foot__word {
  font-variation-settings: 'wdth' 122, 'wght' 700;
  font-size: clamp(3.2rem, 15.5vw, 15rem);
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--seam-hard);
  white-space: nowrap;
  user-select: none;
  padding-bottom: 0.06em;
}
.foot__word i { font-style: normal; -webkit-text-stroke-color: var(--signal-dim); }

.foot__legal {
  display: flex; flex-wrap: wrap; gap: 16px 30px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid var(--seam);
  color: var(--dust);
}

/* ---------- 17. UTILITIES ------------------------------------------------ */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g32 { gap: 32px; }
.mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt40 { margin-top: 40px; } .mt64 { margin-top: 64px; }
.rel { position: relative; }
.z5 { position: relative; z-index: 5; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* content sits above the WebGL stage */
.page { position: relative; z-index: 5; }

/* ---------- 18. RESPONSIVE ----------------------------------------------- */
@media (max-width: 1100px) {
  :root { --rail: 26px; }
  .rail__txt { font-size: 8px; }
}
@media (max-width: 860px) {
  :root { --rail: 0px; --hud-h: 58px; }
  .rail { display: none; }
  .hud { padding-inline: 16px; gap: 8px; }
  .hud__nav, .hud__meta { display: none; }
  .burger { display: block; margin-left: auto; }
  .atmos__grid { display: none; }
  .atmos__scan { opacity: 0.18; }

  /* the desktop CTA collapses to an icon-only call button */
  .hud > .btn {
    margin-left: auto;
    padding: 0 !important;
    width: 42px; height: 42px;
    border-color: var(--seam-hard);
  }
  .hud > .btn span { display: none; }
  .hud > .btn .btn__ico { width: 16px; height: 16px; }
  .hud > .btn::after { display: none; }

  .brand__word { font-size: 15px; }
  .brand__mark { width: 22px; height: 22px; }

  /* the field is a texture on a phone, never a subject */
  #gl-stage.ready { opacity: 0.5; }

  .drawer { padding-top: calc(var(--hud-h) + 24px); justify-content: flex-start; overflow-y: auto; }
  .drawer a { padding: 12px 0; }
  .drawer__foot { margin-top: 26px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .lines .ln > span { transform: none !important; }
  .wsplit .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .atmos__grain { display: none; }
}

/* ---------- HUD CTA SWAP ------------------------------------------------- */
.hud__cta { padding: 12px 18px; }
.hud__call { display: none; }
@media (max-width: 860px) {
  .hud__cta { display: none; }
  .hud__call { display: inline-flex; }
}

/* drawer footer items are buttons/links, not display type */
.drawer__cta { font-size: 11px !important; border: 1px solid var(--signal) !important; padding: 16px 22px !important; margin-bottom: 6px; }
.drawer__cta span { font-size: 11px; }
.drawer__line {
  font-size: 12px !important;
  border: 0 !important;
  padding: 8px 0 !important;
  font-variation-settings: normal !important;
  text-transform: uppercase;
}
