:root {
  --bg: #07070d;
  --bg-2: #0c0d16;
  --red: #d6132a;
  --red-bright: #ff2f4b;
  --blue: #1a66ff;
  --blue-bright: #4f8bff;
  --magenta: #ff2d8e;
  --ink: #eef0f8;
  --muted: #9aa0b8;
  --line: rgba(255, 255, 255, 0.08);
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --disp: "Rajdhani", system-ui, sans-serif;
  --comic: "Anton", "Rajdhani", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--disp);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle blueprint web grid behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 85, 196, 0.10), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(224, 32, 58, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

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

/* ---------- spider-sense radial shockwave ---------- */
.spider-sense {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  opacity: 0;
}
.spider-sense.is-firing {
  animation: senseFire 900ms ease-out;
}
.spider-sense::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at center, transparent 38%, rgba(255, 47, 75, 0.22) 46%, transparent 60%),
    radial-gradient(circle at center, transparent 30%, rgba(26, 102, 255, 0.18) 40%, transparent 55%);
}
@keyframes senseFire {
  0% { opacity: 0; transform: scale(0.6); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.5); }
}

/* ---------- web-shooter cursor ---------- */
.web-cursor {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 36;
  pointer-events: none;
}
@media (hover: none), (pointer: coarse) {
  .web-cursor { display: none; }
}

/* ---------- web corner overlays ---------- */
.web-corner {
  position: fixed;
  width: clamp(120px, 18vw, 260px);
  height: clamp(120px, 18vw, 260px);
  color: rgba(255, 255, 255, 0.07);
  z-index: 30;
  pointer-events: none;
}
.web-corner--tl { top: 0; left: 0; }
.web-corner--br { bottom: 0; right: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(7, 7, 13, 0.85), transparent);
  backdrop-filter: blur(2px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { color: var(--red-bright); display: grid; place-items: center; }
.brand__text {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.brand__text span { color: var(--muted); margin-left: 6px; font-weight: 500; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--red-bright); }

/* ---------- shared bits ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.band__label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

section { position: relative; z-index: 1; }

/* ---------- hero (scroll-scrubbed) ---------- */
.hero-scroll {
  position: relative;
  /* tall track: the extra height is the scroll distance that scrubs the clip */
  height: 360vh;
  z-index: 1;
}
.hero-scroll__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(20px, 6vw, 90px) 90px;
}
.hero-scroll__canvas,
.hero-scroll__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) contrast(1.05);
}
/* canvas is what we paint; the <video> is the decode source, kept invisible */
.hero-scroll__video { opacity: 0; pointer-events: none; }
.hero-scroll__canvas { background: #07070d; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(7,7,13,0.92) 0%, rgba(7,7,13,0.55) 45%, rgba(7,7,13,0.30) 100%),
    linear-gradient(to top, rgba(7,7,13,0.95) 0%, transparent 40%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 18px 0 22px;
}
.hero__title span {
  color: var(--red-bright);
  text-shadow: 0 0 30px rgba(255, 47, 75, 0.45);
}
/* comic-impact display face for headline */
.display {
  font-family: var(--comic);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
}
.hero__sub {
  max-width: 540px;
  color: #c7cbe0;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-width: 620px;
}
.readout__cell {
  background: rgba(10, 11, 20, 0.66);
  backdrop-filter: blur(6px);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.readout__k {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout__v { font-family: var(--mono); font-size: 1.1rem; color: var(--ink); }
.readout__v.live { color: #3ddc7e; }
.readout__v.live::before {
  content: "● ";
  font-size: 0.6em;
  vertical-align: middle;
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- scrub loader ---------- */
.scrub-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #07070d;
  transition: opacity 0.6s ease;
}
.scrub-loader.is-done { opacity: 0; pointer-events: none; }
.scrub-loader__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.scrub-loader__bar {
  width: min(260px, 60vw);
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.scrub-loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width 0.2s ease;
}
.scrub-loader__pct { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- bands ---------- */
.band { padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 90px); }
.band--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.quotes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  border-left: 2px solid var(--red);
  padding: 6px 0 6px 22px;
}
.quote p {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}
.quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- boot bar ---------- */
.boot {
  padding: 70px clamp(20px, 6vw, 90px);
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.boot__label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.boot__bar {
  margin: 20px 0 12px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.boot__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  box-shadow: 0 0 18px rgba(255, 47, 75, 0.5);
  transition: width 0.1s linear;
}
.boot__pct { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* ---------- feature (sequence video, scroll-scrubbed) ---------- */
.feature-scroll {
  position: relative;
  height: 320vh;
  z-index: 1;
}
.feature-scroll__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 6vw, 90px);
}
.feature-scroll__canvas,
.feature-scroll__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.feature-scroll__video { opacity: 0; pointer-events: none; }
.feature-scroll__canvas { background: #07070d; }
.feature__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(7,7,13,0.96) 0%, rgba(7,7,13,0.35) 55%, rgba(7,7,13,0.55) 100%),
    linear-gradient(to right, rgba(7,7,13,0.7), transparent 60%);
}
.feature__copy { position: relative; z-index: 2; max-width: 620px; }
.feature__title {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.96;
  margin: 16px 0 18px;
}
.feature__title span { color: var(--blue-bright); }
.feature__sub { color: #c7cbe0; max-width: 480px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: rgba(10, 11, 20, 0.5);
}

/* ---------- log archive ---------- */
.archive__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.archive__seq { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--blue-bright); }
.log { list-style: none; margin: 36px 0 30px; }
.log__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.log__row:last-child { border-bottom: 1px solid var(--line); }
.log__no {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--red);
}
.log__tag {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.log__line {
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.22;
  margin: 8px 0 10px;
  max-width: 760px;
}
.log__meta { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.restoring { display: block; text-align: center; color: var(--blue-bright); }

/* ---------- specs ---------- */
.specs { padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 90px); }
.specgrid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.spec {
  background: var(--bg-2);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec__v {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  color: var(--ink);
  line-height: 1;
}
.spec__k { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red-bright); }
.spec__note { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }

/* ---------- closing ---------- */
.closing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px clamp(20px, 6vw, 90px);
}
.closing__title {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
}
.closing__title span { color: var(--red-bright); text-shadow: 0 0 36px rgba(255, 47, 75, 0.4); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px clamp(20px, 6vw, 90px) 40px;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.footer__brand { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.footer__addr { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 6px; }
.footer__archive span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__archive ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.footer__archive li { font-family: var(--mono); font-size: 0.74rem; color: #c7cbe0; }
.footer__meta {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .readout { grid-template-columns: repeat(2, 1fr); }
  .specgrid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 18px; }
}
@media (max-width: 520px) {
  .readout { grid-template-columns: 1fr 1fr; }
  .log__row { grid-template-columns: 38px 1fr; gap: 14px; }
}

/* ---------- mobile / no-scrub fallback ----------
   When JS can't (or shouldn't) scroll-scrub, the tall tracks collapse to a
   single viewport and the <video> plays as a normal looping background. */
.no-scrub .hero-scroll,
.no-scrub .feature-scroll { height: 100svh; }
.no-scrub .hero-scroll__video,
.no-scrub .feature-scroll__video { opacity: 1; }
.no-scrub .hero-scroll__canvas,
.no-scrub .feature-scroll__canvas { display: none; }
.no-scrub .scrub-loader { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
