/* San Diego Reapers — Flash-era stage. Palette from the studio jersey. */
:root {
  --ink: #1A1A1A;
  --ink-deep: #0D0D0D;
  --charcoal: #292929;
  --night: #0E1629;
  --silver: #ABABAB;
  --steel: #AAA9A8;
  --crimson-edge: #841E1A;
  --crimson: #711D1A;
  --bone: #E7EDEF;
}

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

html {
  background: var(--ink);
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-booting {
  overflow: hidden;
}

/* ---------- Stage: generated night atmosphere, no photographs ---------- */

.stage {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2.25rem 1.25rem;
  background-color: var(--night);
  border-top: 3px solid var(--crimson);
}

.stage-layers {
  position: absolute;
  inset: -5%;
  pointer-events: none;
  will-change: transform;
}

.layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.layer-atmosphere {
  background-image: url("/static/img/atmosphere.png");
  background-color: var(--night);
}

.layer-rays {
  background-image: url("/static/img/rays.png");
  mix-blend-mode: screen;
  opacity: 0.52;
  animation: rays-drift 28s ease-in-out infinite alternate;
}

.layer-fog {
  background-image: url("/static/img/fog.png");
  mix-blend-mode: soft-light;
  opacity: 0.72;
  animation: fog-drift 22s ease-in-out infinite alternate;
}

@keyframes rays-drift {
  from { transform: translate3d(-1.4%, -0.8%, 0) scale(1.04); }
  to   { transform: translate3d(1.4%, 0.8%, 0) scale(1.08); }
}

@keyframes fog-drift {
  from { transform: translate3d(-2%, 0.6%, 0) scale(1.05); }
  to   { transform: translate3d(2%, -0.8%, 0) scale(1.1); }
}

.stage-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.stage-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(14, 22, 41, 0.18) 0,
    rgba(14, 22, 41, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

.stage-grain {
  position: absolute;
  inset: -20%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.85  0 0 0 0 0.82  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  animation: grain-shift 0.45s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -3%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(0, 0); }
}

.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(14, 22, 41, 0.15) 0%, rgba(14, 22, 41, 0.55) 70%, rgba(8, 10, 14, 0.88) 100%),
    linear-gradient(180deg, rgba(14, 22, 41, 0.35) 0%, rgba(14, 22, 41, 0.08) 40%, rgba(13, 13, 13, 0.55) 100%);
}

.letterbox {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  height: 7.2vh;
  background: #0D0D0D;
  pointer-events: none;
  transition: height 700ms ease;
}

.letterbox-top {
  top: 0;
  border-bottom: 1px solid rgba(113, 29, 26, 0.55);
}

.letterbox-bottom {
  bottom: 0;
  border-top: 1px solid rgba(171, 171, 171, 0.12);
}

body.is-ready .letterbox {
  height: 3.4vh;
}

.hero-plate {
  position: relative;
  z-index: 9;
  width: min(40rem, 100%);
  text-align: center;
  padding: 1.35rem 1.4rem 1.2rem;
  background: rgba(8, 10, 14, 0.92);
  border: 1px solid rgba(171, 171, 171, 0.28);
  will-change: transform;
}

.hero-city {
  color: var(--silver);
  font-weight: 700;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
  opacity: 1;
}

.hero-reapers {
  margin: 0.15rem 0 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(3.6rem, 12vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: #CECECC;
  -webkit-text-stroke: 3px #841E1A;
  paint-order: stroke fill;
  opacity: 1;
}

.hairline {
  width: 8.5rem;
  margin: 1.15rem auto 1.05rem;
  border: 0;
  border-top: 1px solid var(--silver);
  opacity: 0.7;
}

.hero-tag {
  color: var(--bone);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.88), 0 0 8px rgba(0, 0, 0, 0.7);
  opacity: 1;
}

@keyframes track-in {
  from {
    opacity: 0;
    letter-spacing: 0.85em;
    text-indent: 0.85em;
    transform: translateX(-1.6rem);
  }
  to {
    opacity: 1;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    transform: translateX(0);
  }
}

@keyframes slam-in {
  from {
    opacity: 0;
    transform: scale(1.28);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

@keyframes fade-up-full {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.is-booting .hero-city { opacity: 0; animation: track-in 780ms 280ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  body.is-booting .hero-reapers { opacity: 0; animation: slam-in 440ms 980ms cubic-bezier(0.2, 1.6, 0.32, 1) both; }
  body.is-booting .hairline { opacity: 0; animation: fade-up 480ms 1550ms ease both; }
  body.is-booting .hero-tag { opacity: 0; animation: fade-up-full 560ms 1780ms ease both; }
}

/* ---------- Copy band ---------- */

.copy-band {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 6rem);
  background: var(--charcoal);
  border-top: 3px solid var(--crimson);
  text-align: center;
}

.copy-band p {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 34em;
  margin: 0 auto;
}

.copy-band p.copy-sub {
  margin-top: 1rem;
  color: var(--silver);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */

.foot {
  padding: 2.2rem 1.25rem;
  background: var(--ink-deep);
  border-top: 1px solid rgba(171, 171, 171, 0.2);
  text-align: center;
}

.foot p {
  color: var(--silver);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  .stage {
    padding: 1.5rem 1rem;
  }
  .hero-plate {
    padding: 1.65rem 0.7rem 1.4rem;
  }
  .hero-city {
    font-size: 1.25rem;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }
  .hairline {
    margin: 0.8rem auto 0.7rem;
  }
  .hero-tag {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer-rays,
  .layer-fog,
  .stage-grain,
  .hero-city,
  .hero-reapers,
  .hairline,
  .hero-tag {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1;
  }
  .hairline {
    opacity: 0.7;
  }
  .letterbox {
    height: 3.4vh;
    transition: none;
  }
  .stage-particles {
    display: none;
  }
  body.is-booting {
    overflow: auto;
  }
}
