/* ═══ MACHINE GUN AMERICA — holding page ═══
   Self-contained by design: /css/* sits behind the holding redirect,
   so this file must not depend on base.css or sections.css.
   Tokens mirror css/base.css so launch day is visually continuous. */

:root {
  --void: #0A0A0B;
  --steel: #141416;
  --blood: #C41E24;
  --blood-hi: #E5292F;
  --blood-dark: #8E1518;
  --white: #F5F3EF;
  --ash: #A3A3A6;
  --brass: #C9A227;
  --line-d: rgba(245, 243, 239, .13);

  --display: "Black Ops One", "Arial Black", sans-serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --body: "Roboto", -apple-system, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --ticker-h: 36px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
::selection { background: var(--blood); color: var(--white); }
:focus-visible { outline: 2px solid var(--blood-hi); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blood); color: var(--white);
  padding: 10px 18px; font-family: var(--cond); font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ── ticker ───────────────────────────────────────────── */
.ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--ticker-h);
  display: flex; align-items: stretch;
  background: var(--blood); color: var(--white);
  font-family: var(--cond); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 3px solid var(--blood-dark);
}
.ticker__status {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: var(--void); color: var(--white);
  white-space: nowrap; flex-shrink: 0;
}
.hot-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blood-hi);
  box-shadow: 0 0 8px var(--blood-hi);
  animation: hotpulse 1.6s ease-in-out infinite;
}
@keyframes hotpulse { 50% { opacity: .3; } }
.ticker__track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker__belt { display: flex; white-space: nowrap; animation: belt 42s linear infinite; }
@keyframes belt { to { transform: translateX(-50%); } }

/* ── stage ────────────────────────────────────────────── */
.stage {
  position: relative;
  min-height: 100svh;
  padding-top: var(--ticker-h);
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
/* Still and motion sit in one wrapper so the slow drift below scales both
   together — animate only the video and the two layers slide apart during the
   fade, which reads as a jump. */
.stage__bg {
  position: absolute; inset: 0; z-index: -3;
  animation: drift 46s ease-in-out infinite alternate;
  will-change: transform;
}
.stage__bg img,
.stage__motion {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center;
}
/* Scale only up. Dipping below 1 would pull the cover edges into frame. */
@keyframes drift { to { transform: scale(1.05); } }

/* Held at 0 until the video reports `playing`, so a refused autoplay or a
   404 leaves the still untouched rather than flashing black over it. */
.stage__motion { opacity: 0; transition: opacity .9s ease-out; }
.stage.is-live .stage__motion { opacity: 1; }
.stage__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.74) 30%, rgba(10,10,11,.12) 58%, rgba(10,10,11,.42) 100%),
    linear-gradient(to top, rgba(10,10,11,.85) 0%, transparent 38%);
}
/* Painted straight, not blended. `mix-blend-mode: overlay` here composites the
   whole stage to black against the dark photo — base.css paints the noise flat
   for the same reason. */
.stage__grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--noise);
  opacity: .28;
}

/* ── tracer fire ──────────────────────────────────────── */
.has-tracers { position: relative; overflow: hidden; }
.tracer {
  position: absolute; top: var(--ty, 30%); left: -14%;
  width: 110px; height: 1.5px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,195,120,.5), rgba(255,235,200,.75));
  border-radius: 2px;
  filter: drop-shadow(0 0 4px rgba(255,180,100,.45));
  transform: skewX(-24deg);
  opacity: 0;
  animation: tracer var(--tdur, 18s) linear infinite;
  animation-delay: var(--td, 0s);
  pointer-events: none;
}
@keyframes tracer {
  0%   { left: -14%; opacity: 0; }
  1%   { opacity: .6; }
  5.5% { left: 110%; opacity: .6; }
  6%   { left: 110%; opacity: 0; }
  100% { left: 110%; opacity: 0; }
}

/* ── content ──────────────────────────────────────────── */
.stage__inner {
  flex: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center;
  gap: 22px;
  max-width: 44rem;
  padding: clamp(40px, 7vh, 88px) var(--pad);
}

.brand {
  height: clamp(64px, 9vw, 96px); width: auto;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.8));
}

.eyebrow {
  font-family: var(--cond); font-size: 14px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--blood-hi);
}
.eyebrow::before { content: "★ "; animation: starglow 2.8s ease-in-out infinite; display: inline-block; }
@keyframes starglow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 6px 34px rgba(0,0,0,.75);
}
.title__line { display: block; }
.title__line--hot {
  color: var(--blood-hi);
  text-shadow: 0 0 44px rgba(229,41,47,.45), 0 6px 34px rgba(0,0,0,.75);
}

.lede {
  max-width: 46ch;
  font-size: clamp(1rem, .96rem + .3vw, 1.16rem);
  color: #D8D6D1;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

/* ── signup ───────────────────────────────────────────── */
.signup {
  width: 100%;
  margin-top: 10px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(20, 20, 22, .74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-d);
  border-left: 4px solid var(--blood);
}
.signup__h {
  font-family: var(--cond); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.2;
}
.signup__sub { margin-top: 8px; font-size: 14.5px; color: var(--ash); }
.signup__sub strong { color: var(--brass); font-weight: 700; }

.signup__form { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.field { flex: 1 1 12rem; min-width: 0; }
.field input {
  width: 100%; height: 54px;
  padding: 0 16px;
  background: rgba(10,10,11,.85);
  border: 1px solid var(--line-d);
  color: var(--white);
  font-family: var(--body); font-size: 16px;
  transition: border-color .18s ease, background .18s ease;
}
.field input::placeholder { color: #6E6E72; }
.field input:hover { border-color: rgba(245,243,239,.28); }
.field input:focus {
  outline: none;
  border-color: var(--blood-hi);
  background: rgba(10,10,11,.96);
  box-shadow: 0 0 0 3px rgba(196,30,36,.22);
}
.field input[aria-invalid="true"] { border-color: var(--blood-hi); }

/* honeypot — off-screen, never shown, never announced */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  position: relative; display: inline-block;
  font-family: var(--cond); font-size: 15px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--white);
  padding: 13px 30px; border: none; cursor: pointer;
  background: transparent;
  transition: color .18s ease;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: skewX(-9deg);
  background: var(--blood);
  box-shadow: 3px 3px 0 rgba(0,0,0,.55);
  transition: background .18s ease, transform .12s ease;
}
.btn:hover::before { background: var(--blood-hi); transform: skewX(-9deg) translateY(-2px); }
.btn:active::before { transform: skewX(-9deg) translateY(0); box-shadow: 1px 1px 0 rgba(0,0,0,.55); }
.btn--lg { padding: 17px 40px; font-size: 17px; height: 54px; }
.btn[disabled] { cursor: not-allowed; color: rgba(245,243,239,.75); }
.btn[disabled]::before { background: var(--blood-dark); transform: skewX(-9deg); }

/* bolt-cycle pulse while submitting */
.btn.is-cycling .btn__label { animation: cycle .55s steps(3, end) infinite; }
@keyframes cycle { 50% { opacity: .45; } }

.signup__status {
  margin-top: 14px; min-height: 1.4em;
  font-family: var(--cond); font-size: 14.5px;
  letter-spacing: .06em; text-transform: uppercase;
}
.signup__status.is-error { color: var(--blood-hi); }
.signup__status.is-ok { color: var(--brass); }

.signup__fine { margin-top: 10px; font-size: 12.5px; color: #77777A; }

/* ── success ticket ───────────────────────────────────── */
.ticket {
  width: 100%;
  padding: clamp(24px, 3.5vw, 34px);
  background: rgba(20,20,22,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-d);
  border-left: 4px solid var(--brass);
}
.ticket[hidden] { display: none; }
.js .ticket:not([hidden]) { animation: stamp .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes stamp {
  from { opacity: 0; transform: scale(1.06) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.ticket__stamp {
  display: inline-block;
  font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2.1rem);
  text-transform: uppercase; color: var(--brass);
  border: 3px solid var(--brass);
  padding: 8px 18px; transform: rotate(-3deg);
  box-shadow: 0 0 30px rgba(201,162,39,.18);
}
.ticket__body { margin-top: 18px; color: #D8D6D1; font-size: 15.5px; max-width: 48ch; }
.ticket__code {
  font-family: var(--cond); font-weight: 600; letter-spacing: .18em;
  color: var(--void); background: var(--brass);
  padding: 2px 10px;
}

/* ── footer ───────────────────────────────────────────── */
.foot {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  border-top: 1px solid var(--line-d);
  background: rgba(6,6,7,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px;
}
.foot strong {
  display: block;
  font-family: var(--cond); letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); font-size: 13px;
}
.foot a { color: var(--ash); text-decoration: none; transition: color .15s ease; }
.foot a:hover { color: var(--white); }
.foot__social { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 760px) {
  .stage__bg img,
  .stage__motion { object-position: center 58%; }
  .stage__scrim {
    background:
      linear-gradient(to bottom, rgba(10,10,11,.90) 0%, rgba(10,10,11,.30) 30%, rgba(10,10,11,.32) 52%, rgba(10,10,11,.88) 88%, rgba(10,10,11,.97) 100%);
  }
  .stage__inner { justify-content: flex-start; gap: 18px; }
  .signup__form { flex-direction: column; }
  /* column direction makes flex-basis apply to HEIGHT — without this reset the
     field wrapper inflates to 12rem tall and leaves a gap above the button */
  .field { flex: 0 0 auto; width: 100%; }
  .btn--lg { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__belt, .hot-dot, .eyebrow::before, .stage__bg { animation: none; }
  .tracer { display: none; }
  /* holding-bg.js already declines to load the video here; this is the belt to
     that suspenders, in case the preference flips after the source is attached. */
  .stage__motion { display: none; }
  .btn.is-cycling .btn__label { animation: none; }
  .js .ticket:not([hidden]) { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
