/* Atlas website v2
   Palette: Atlas navy / Atlas blue / bone (existing brand) + tracer lime and
   hi-vis orange carried over from the promo videos. */
:root {
  --ink: #001523;        /* deepest navy, page base */
  --navy: #002C48;       /* Atlas navy */
  --navy-2: #0A3A5C;
  --blue: #1554B8;       /* Atlas blue */
  --sky: #6FA8FF;
  --bone: #F2F2ED;       /* Atlas off-white */
  --mist: #9DB2C4;       /* muted text on navy */
  --lime: #B8F53D;       /* tracer */
  --orange: #FF7A1A;     /* the old way */
  --line: rgba(242, 242, 237, 0.14);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

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

/* ---------- Fixed parallax terrain ---------- */
.terrain { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #06406A 0%, var(--navy) 38%, var(--ink) 100%); }
.terrain-layer, .terrain-grid { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; background-repeat: repeat; }
.terrain-layer { background-size: 1600px 2400px; background-position: 50% 0; }
#terrainFar { opacity: 0.5; }
#terrainNear { opacity: 0.55; }
.terrain-grid {
  background-image:
    linear-gradient(to right, rgba(111,168,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(111,168,255,0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(90% 70% at 50% 40%, #000 0%, transparent 100%);
          mask-image: radial-gradient(90% 70% at 50% 40%, #000 0%, transparent 100%);
}
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  transition: background 0.3s, backdrop-filter 0.3s, transform 0.35s;
}
.nav.is-stuck { background: rgba(0, 21, 35, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; }
.nav-brand span { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.04em; text-transform: uppercase; font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--mist); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--bone); }
.nav-links .nav-cta { color: var(--ink); background: var(--lime); padding: 9px 16px; border-radius: 6px; font-weight: 600; }
.nav-links .nav-cta:hover { color: var(--ink); background: #CBFF5E; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--bone); margin: 5px 0; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 6px;
    background: rgba(0, 21, 35, 0.97);
    font-family: var(--display); font-size: 34px; font-weight: 700; text-transform: uppercase;
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; }
  .nav-links a { color: var(--bone); padding: 6px 12px; }
  .nav-links .nav-cta { margin-top: 18px; font-family: var(--body); font-size: 17px; text-transform: none; padding: 14px 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 6px;
  font-family: var(--body); font-weight: 600; font-size: 17px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #CBFF5E; }
.btn-ghost { border-color: rgba(242,242,237,0.4); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(242,242,237,0.08); }
.btn-navy { background: var(--navy); color: var(--bone); }
.btn-navy:hover { background: var(--blue); }

/* ---------- Type ---------- */
.title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(46px, 8.4vw, 104px); line-height: 0.92; letter-spacing: -0.005em;
  text-wrap: balance;
}
.title-xl { font-size: clamp(56px, 11vw, 148px); }
.subtitle { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 52px); line-height: 1; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--mist); max-width: 34em; margin-top: 22px; }

/* scan-wipe reveal for section titles (JS adds .js to <html>) */
.title-in { display: block; }
.js .title-in { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s cubic-bezier(0.2, 0.7, 0.1, 1); }
.js .title.is-in .title-in { clip-path: inset(0 0 0 0); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 96px var(--pad) 84px; overflow: hidden; isolation: isolate;
}
.hero-bbs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 980px; }

.reticle { position: relative; width: clamp(120px, min(24vw, 21vh), 240px); aspect-ratio: 1; margin-bottom: clamp(10px, 2.4vh, 28px); will-change: transform; }
.hero-logo { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55)); transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); transition: transform 0.25s ease-out; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, min(15.5vw, 23vh), 212px); line-height: 0.84; letter-spacing: -0.012em;
  will-change: transform;
}
.hero-title .line { display: block; overflow: hidden; padding-top: 0.06em; }
.hero-title .line > span { display: block; }
.hero-title .line:nth-child(2) > span { color: var(--lime); }
.js .hero-title .line > span { transform: translateY(105%); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.1, 1) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub { font-size: clamp(17px, 1.9vw, 22px); color: #C6D3DE; max-width: 33em; margin-top: clamp(16px, 2.6vh, 28px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(20px, 3.4vh, 36px); }

.hud { position: absolute; z-index: 2; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: var(--mist); letter-spacing: 0.02em; }
.hud b { color: var(--lime); font-weight: 500; }
.hud-tl { left: var(--pad); top: 92px; }
.hud-tr { right: var(--pad); top: 92px; text-align: right; }
.hud-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 4px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
@media (max-width: 720px) { .hud { font-size: 10.5px; top: 78px; } .hud-tr br:last-of-type, .hud-tr #hudRange { } }
@media (max-width: 420px) { .hud-tr { display: none; } }

.hero-scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 44px; margin-left: -13px; border: 1.5px solid rgba(242,242,237,0.45); border-radius: 14px; z-index: 2; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--bone); animation: drop 1.8s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
@keyframes drop { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(20px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 1; overflow: hidden; background: var(--lime); color: var(--ink); transform: rotate(-1.2deg) scale(1.03); margin: -18px 0 0; padding: 12px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; will-change: transform; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.4vw, 40px); text-transform: uppercase; line-height: 1; }
.ticker-track i { width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--ink); flex: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }

/* Fields / state map */
.fields-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.stats { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: 36px; }
.stats dt { font-size: 14px; color: var(--mist); order: 2; }
.stats div { display: flex; flex-direction: column; }
.stats dd { font-family: var(--display); font-weight: 800; font-size: clamp(60px, 8vw, 104px); line-height: 0.9; color: var(--lime); font-variant-numeric: tabular-nums; }
.readout { margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--mist); min-height: 2.6em; border-left: 2px solid var(--lime); padding-left: 12px; }
.readout b { color: var(--bone); font-weight: 500; }

.statemap { position: relative; display: grid; grid-template-columns: repeat(11, 1fr); gap: clamp(3px, 0.6vw, 7px); will-change: transform; }
.st {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 4px; cursor: pointer;
  background: rgba(111, 168, 255, calc(0.08 + var(--heat, 0) * 0.5));
  color: var(--bone); font-family: var(--mono); font-size: clamp(8px, 1.05vw, 12px); font-weight: 500;
  display: grid; place-items: center; line-height: 1;
  transition: transform 0.18s, background 0.25s, box-shadow 0.25s;
}
.st small { display: block; font-size: 0.82em; color: var(--lime); margin-top: 2px; font-weight: 400; }
.st.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: rgba(157,178,196,0.5); cursor: default; }
.st:not(.is-empty):hover, .st.is-on { transform: scale(1.14); background: var(--lime); color: var(--ink); z-index: 2; box-shadow: 0 8px 24px rgba(184,245,61,0.25); }
.st:not(.is-empty):hover small, .st.is-on small { color: var(--ink); }
.js .st { opacity: 0; transform: scale(0.4); }
.js .statemap.is-in .st { opacity: 1; transform: none; transition: opacity 0.4s calc(var(--c) * 55ms), transform 0.5s calc(var(--c) * 55ms) cubic-bezier(0.2, 1.4, 0.4, 1), background 0.25s, box-shadow 0.25s; }
.js .statemap.is-in .st:not(.is-empty):hover, .js .statemap.is-in .st.is-on { transform: scale(1.14); transition-delay: 0s; }
.statemap.is-in .st:not(.is-empty)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1.5px var(--lime); opacity: 0; animation: ping 4.4s calc(var(--c) * 0.2s + 0.6s) linear infinite; }
@keyframes ping { 0% { opacity: 0.9; } 14% { opacity: 0; } 100% { opacity: 0; } }
.sweep { position: absolute; top: -4%; bottom: -4%; left: 0; width: 9%; z-index: 3; pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(184,245,61,0.16) 80%, rgba(184,245,61,0.7) 100%);
  opacity: 0; }
.statemap.is-in .sweep { opacity: 1; animation: sweep 4.4s 0.6s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(1110%); } }

/* Split layouts with phones */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 104px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; }
.split-media { display: flex; justify-content: center; perspective: 1400px; will-change: transform; }
.split-sticky { position: sticky; top: 96px; }

.phone {
  position: relative; width: min(100%, 330px); aspect-ratio: 9 / 16; border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #23364a, #050d14 60%);
  box-shadow: 0 0 0 1px rgba(242,242,237,0.18), 0 40px 90px rgba(0,0,0,0.55), 0 0 120px rgba(21,84,184,0.28);
  transform: rotateY(calc(var(--tilt, 0) * 1deg)) rotateX(calc(var(--pitch, 0) * 1deg));
  transform-style: preserve-3d; will-change: transform;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 78px; height: 20px; margin-left: -39px; border-radius: 12px; background: #050d14; z-index: 2; }
.phone-video { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: var(--navy); }
.sound {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3;
  font: 600 13px var(--body); color: var(--bone); background: rgba(0,21,35,0.72); border: 1px solid rgba(242,242,237,0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.sound[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.kit { margin: 34px 0 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.kit li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.kit h3, .kit h4 { font-family: var(--body); font-size: 18px; font-weight: 600; line-height: 1.25; }
.kit p { color: var(--mist); font-size: 16px; }
.kit-tight { margin: 12px 0 0; }
.kit-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; border-top: 0; }
.kit-row li { grid-template-columns: 1fr; border-top: 2px solid var(--lime); border-bottom: 0; padding-top: 14px; align-content: start; }

.phase { margin-top: 40px; }
.phase-name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 1; color: var(--lime); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.organizers { margin-top: clamp(72px, 10vw, 128px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.organizers .kit { margin-bottom: 0; }

/* Patches */
.patches { overflow: hidden; }
.patches-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.patch-stage { position: relative; aspect-ratio: 1.15; }
.patch { position: absolute; width: 58%; height: auto; border-radius: 50%; filter: drop-shadow(0 26px 34px rgba(0,0,0,0.55)); will-change: transform; }
.patch-a { left: 2%; top: 4%; }
.patch-b { right: 0; bottom: 0; width: 50%; }

/* Versus */
.versus::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,21,35,0) 0%, rgba(0,21,35,0.86) 18%, rgba(0,21,35,0.86) 82%, rgba(0,21,35,0) 100%); z-index: -1; }
.versus-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-top: clamp(40px, 6vw, 72px); }
.versus-media { display: flex; justify-content: center; perspective: 1400px; }
.timeline { position: relative; }
.timeline li { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 22px; padding: 22px 0; border-top: 1px solid var(--line); align-items: start; transition: opacity 0.4s; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .tl-head { padding: 0 0 10px; border-top: 0; font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.timeline .tl-head .old { color: var(--orange); }
.timeline .tl-head .new { color: var(--lime); }
.timeline time { font-family: var(--mono); font-size: 14px; color: var(--mist); grid-row: span 2; padding-top: 5px; }
.timeline h3 { grid-column: 2 / -1; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 1; }
.timeline p { font-size: 16px; }
.timeline p.old { color: #C9B6A6; text-decoration: line-through; text-decoration-color: transparent; transition: text-decoration-color 0.5s 0.25s, color 0.5s 0.25s; }
.timeline p.new { color: var(--bone); position: relative; padding-left: 20px; }
.timeline p.new::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); transform: scale(0); transition: transform 0.4s 0.35s cubic-bezier(0.2, 1.6, 0.4, 1); }
.js .timeline li:not(.tl-head) { opacity: 0.32; }
.js .timeline li.is-hit { opacity: 1; }
.timeline li.is-hit p.old { text-decoration-color: var(--orange); color: #8E7B6C; }
.timeline li.is-hit p.new::before { transform: scale(1); }
html:not(.js) .timeline p.new::before { transform: scale(1); }

/* Proof */
.stamp { font-family: var(--mono); font-size: 13px; color: var(--lime); margin-bottom: 18px; }
.stats-wide { flex-wrap: wrap; }
.quote { margin-top: 30px; padding-left: 18px; border-left: 2px solid var(--blue); }
.quote blockquote { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.3; }
.quote figcaption { font-size: 14px; color: var(--mist); margin-top: 6px; }

/* Pricing: bone "paper target" block */
.pricing { background: var(--bone); color: var(--navy); z-index: 1; overflow: hidden; }
.pricing::before { content: ""; position: absolute; right: -180px; top: -180px; width: 620px; height: 620px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 38px, rgba(0,44,72,0.09) 38px 40px); pointer-events: none; }
.pricing .wrap { position: relative; }
.pricing .lede { color: #3B5568; }
.pricing .zero { color: var(--blue); }
.calc { margin: clamp(40px, 6vw, 72px) 0 36px; }
.calc-label { display: flex; align-items: baseline; gap: 14px; font-weight: 600; font-size: 18px; }
.calc-label output { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; max-width: 640px; height: 44px; background: transparent; cursor: pointer; margin: 4px 0 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--blue) var(--fill, 6%), rgba(0,44,72,0.18) var(--fill, 6%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(0,44,72,0.18); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 4px 12px rgba(0,44,72,0.3); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-top: 2px solid var(--navy); }
.plan { padding: 26px 28px 26px 0; border-right: 1px solid rgba(0,44,72,0.18); }
.plan + .plan { padding-left: 28px; }
.plan:last-child { border-right: 0; padding-right: 0; }
.plan h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 1; }
.plan-note { font-size: 15px; color: #3B5568; margin-top: 10px; min-height: 4.6em; }
.plan dl { margin-top: 18px; }
.plan dl div { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(0,44,72,0.14); }
.plan dt { font-size: 15px; }
.plan dd { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.plan dd.win { color: var(--blue); }
.plan-fee { font-family: var(--mono); font-size: 12px; color: #3B5568; margin-top: 12px; }
.calc-foot { font-size: 15px; color: #3B5568; margin-top: 28px; max-width: 46em; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about .title { font-size: clamp(38px, 5vw, 70px); overflow-wrap: break-word; }
.about-copy p { color: #C6D3DE; font-size: 18px; max-width: 34em; }
.about-copy p + p { margin-top: 1.1em; }
.about-copy .about-origin { color: var(--bone); font-weight: 600; }
.veteran { font-size: 15px !important; color: var(--mist) !important; margin-top: 2em !important; }

/* Final */
.final { overflow: hidden; padding-bottom: clamp(72px, 10vw, 120px); }
.final-word { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(120px, 31vw, 460px); line-height: 0.8; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(184,245,61,0.5); will-change: transform; user-select: none; }
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(-90px, -9vw, -40px); position: relative; }
.door { display: flex; flex-direction: column; gap: 8px; padding: clamp(24px, 3.4vw, 40px); border-radius: 10px; text-decoration: none; background: rgba(0, 44, 72, 0.82); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.25s, background 0.25s, border-color 0.25s; }
.door:hover { transform: translateY(-6px); background: var(--blue); border-color: transparent; }
.door-who { font-size: 15px; color: var(--mist); }
.door:hover .door-who { color: #DCE8FF; }
.door-do { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 5vw, 64px); line-height: 0.95; }
.door-go { margin-top: 14px; font-weight: 600; color: var(--lime); }

/* Footer */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 44px 0 56px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.footer-grid img { width: 64px; height: auto; }
.footer p { color: var(--mist); font-size: 15px; }
.footer a { color: var(--bone); text-underline-offset: 3px; }
.footer-small { margin-left: auto; }

/* ---------- Trading cards ---------- */
.cards { overflow-x: clip; }
.cards-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 104px); align-items: start; }
.cards-stage { display: flex; flex-direction: column; align-items: center; perspective: 1600px; position: sticky; top: max(96px, calc(50vh - 280px)); }
.tcard {
  --ry: -18deg; --rx: 4deg;
  position: relative; width: min(100%, 340px); aspect-ratio: 5 / 7;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  will-change: transform;
}
.tcard.is-dragging { cursor: grabbing; }
.tcard-face {
  position: absolute; inset: 0; border-radius: 22px; padding: 11px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: linear-gradient(135deg, #e8fbff 0%, #9be7ff 28%, #f4f0ff 55%, #b9c8ff 78%, #e8fbff 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 90px rgba(155,231,255,0.18);
}
.tcard-front { transform: rotateY(0deg) translateZ(1px); }
.tcard-back { transform: rotateY(180deg) translateZ(1px); }
.tcard-face * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* Belt and braces: some browsers (Safari especially) still paint the far face
   through the near one, so the script also hides whichever face points away. */
.tcard.is-back .tcard-front, .tcard:not(.is-back) .tcard-back { visibility: hidden; }
.tcard-in { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #0A2236; }
.tcard-photo { position: absolute; inset: 0; background: #0b2438; }
.tcard-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; pointer-events: none; }
.tcard-front .tcard-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,12,22,0.92) 0%, rgba(0,12,22,0) 46%); }
.tcard-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 6px 13px; border-radius: 999px; font: 700 12px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #0b1f4d; background: linear-gradient(135deg, #e8fbff, #9be7ff 60%, #f4f0ff); }
.tcard-call { position: absolute; z-index: 2; left: 18px; bottom: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 62px); line-height: 0.9; text-transform: uppercase; color: var(--bone); }
.tcard-fabric {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 6px),
    radial-gradient(100% 80% at 50% 40%, #12406a 0%, #0A2A45 60%, #071C2E 100%);
}
.tcard-fabric::before { content: ""; position: absolute; inset: 9px; border-radius: 8px; border: 2px dashed rgba(214,244,255,0.55); pointer-events: none; }
.tcard-fabric img { width: 66%; height: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.5)); }
.tcard-word { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: 0.32em; margin-right: -0.32em; text-transform: uppercase; color: #EAF6FF; }
.tcard-ed { position: absolute; bottom: 22px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(214,244,255,0.75); }
.tcard-holo { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.22;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 45%, rgba(155,231,255,0.35) 52%, transparent 66%);
  background-size: 260% 100%; background-position: var(--sheen, 50%) 0; }
.cards-hint { margin-top: 26px; font-size: 14px; color: var(--mist); }

.soon { display: inline-block; font-weight: 600; font-size: 15px; color: var(--ink); background: var(--lime); padding: 5px 12px; border-radius: 4px; margin-bottom: 20px; }
.ladder-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 30px; line-height: 1; margin-top: 44px; }
.ladder-note { color: var(--mist); font-size: 16px; margin-top: 10px; max-width: 34em; }
.ladder { margin-top: 22px; border-top: 1px solid var(--line); }
.ladder li { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); }
.ladder li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--rk); transform-origin: bottom; }
.ladder b { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1; color: var(--rk); }
.ladder span { font-size: 15px; color: #C6D3DE; }
.ladder-gift span { color: var(--mist); font-style: italic; }
.ladder-foot { font-size: 14px; color: var(--mist); margin-top: 14px; }
.js .ladder li { opacity: 0.25; transition: opacity 0.4s calc(var(--i) * 90ms); }
.js .ladder li::before { transform: scaleY(0); transition: transform 0.45s calc(var(--i) * 90ms + 80ms) cubic-bezier(0.2, 1.4, 0.4, 1); }
.js .ladder.is-in li { opacity: 1; }
.js .ladder.is-in li::before { transform: scaleY(1); }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: minmax(0, 1fr); }
  .cards-stage { position: static; }
  .tcard { width: min(72vw, 300px); }
}
@media (max-width: 560px) {
  .ladder li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ladder li { opacity: 1; }
  .js .ladder li::before { transform: none; }
}

/* ---------- Mag scroll meter ---------- */
.mag { position: fixed; right: 14px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-family: var(--mono); font-size: 11px; color: var(--mist); padding: 8px 6px; border-radius: 8px; background: rgba(0,21,35,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.mag.is-live { opacity: 1; transform: none; pointer-events: auto; }
.mag-rounds { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.mag-rounds i { width: 6px; height: 6px; border-radius: 50%; background: var(--bone); transition: opacity 0.2s, transform 0.2s; }
.mag-rounds i.is-spent { opacity: 0.14; transform: scale(0.6); }
.mag-count b { color: var(--lime); font-weight: 500; }
.mag-reload { display: none; color: var(--lime); }
.mag.is-empty .mag-reload { display: block; animation: blink 1s steps(2) infinite; }
.mag.is-empty .mag-count { display: none; }
@media (max-width: 760px) { .mag { right: 8px; bottom: 10px; } .mag-rounds { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fields-grid, .split, .split-rev, .patches-grid, .versus-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .split-rev .split-media { order: -1; }
  .split-sticky { position: static; }
  .phone { width: min(74vw, 300px); }
  .kit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(0,44,72,0.18); }
  .plan-note { min-height: 0; }
  .patch-stage { max-width: 460px; margin: 0 auto; width: 100%; }
  .versus-media { order: -1; }
  .final-grid { grid-template-columns: 1fr; }
  .footer-small { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .kit li { grid-template-columns: 1fr; }
  .kit-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 52px minmax(0, 1fr); }
  .timeline h3 { grid-column: 2; }
  .timeline p { grid-column: 2; }
  .timeline .tl-head { display: none; }
  .timeline time { grid-row: span 3; }
  .hero-cta .btn { width: 100%; }
  .hero-title { font-size: clamp(56px, min(21vw, 17vh), 120px); }
  .stats dd { font-size: 64px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .title-in { clip-path: none; }
  .js .hero-title .line > span { transform: none; }
  .js .st { opacity: 1; transform: none; }
  .js .timeline li:not(.tl-head) { opacity: 1; }
  .timeline p.new::before { transform: scale(1); }
  .sweep { display: none; }
}
