:root {
  --bg: #050708;
  --panel: rgba(8, 11, 12, 0.86);
  --panel-solid: #090c0d;
  --line: rgba(234, 245, 239, 0.12);
  --line-strong: rgba(234, 245, 239, 0.22);
  --text: #edf4f0;
  --muted: #96a19c;
  --dim: #5b6460;
  --green: #70f0ad;
  --red: #ef263e;
  --red-dark: #80101e;
  --mono: "IBM Plex Mono", monospace;
  --display: "Space Grotesk", sans-serif;
  --page: min(1420px, calc(100vw - 72px));
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.backdrop, .backdrop > div {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.backdrop { z-index: -1; overflow: hidden; background: #050708; }
.grid {
  background-image:
    linear-gradient(rgba(112, 240, 173, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 240, 173, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 45%, #000 25%, transparent 82%);
  opacity: 0.35;
}
.depth {
  border: 1px solid rgba(112, 240, 173, 0.08);
  border-radius: 50%;
  filter: blur(1px);
}
.depth-one {
  width: 70vw;
  height: 70vw;
  left: 52%;
  top: 48%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 140px rgba(112, 240, 173, 0.035), inset 0 0 180px rgba(112, 240, 173, 0.025);
}
.depth-two {
  width: 42vw;
  height: 42vw;
  left: -15vw;
  top: 8vh;
  background: rgba(239, 38, 62, 0.05);
  filter: blur(80px);
}
.scanlines {
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.022) 0, rgba(255,255,255,0.022) 1px, transparent 2px, transparent 5px);
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: scan-drift 9s linear infinite;
}
.grain {
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.7) 0.6px, transparent 0.8px);
  background-size: 5px 5px;
  animation: grain-shift 0.25s steps(2) infinite;
}
.light-rays {
  inset: -20% -10% !important;
  opacity: 0.16;
  background: repeating-linear-gradient(105deg, transparent 0 13%, rgba(112,240,173,0.06) 14%, transparent 19% 30%);
  filter: blur(20px);
  transform: translateX(var(--pointer-x)) rotate(-5deg);
  animation: ray-drift 18s ease-in-out infinite alternate;
}
.caustics {
  inset: 35% -15% -25% !important;
  opacity: 0.1;
  background:
    radial-gradient(ellipse at 20% 40%, transparent 44%, rgba(112,240,173,0.22) 47%, transparent 51%),
    radial-gradient(ellipse at 60% 60%, transparent 42%, rgba(112,240,173,0.18) 45%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, transparent 45%, rgba(112,240,173,0.14) 48%, transparent 52%);
  background-size: 420px 180px, 500px 220px, 380px 160px;
  filter: blur(15px);
  animation: caustic-drift 22s linear infinite;
}
.particles i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(173,255,214,0.56);
  box-shadow: 0 0 8px rgba(112,240,173,0.4);
  animation: particle-rise 14s linear infinite;
}
.particles i:nth-child(1) { left: 9%; top: 88%; animation-delay: -2s; }
.particles i:nth-child(2) { left: 23%; top: 64%; animation-delay: -9s; animation-duration: 19s; }
.particles i:nth-child(3) { left: 41%; top: 80%; animation-delay: -5s; }
.particles i:nth-child(4) { left: 56%; top: 72%; animation-delay: -12s; animation-duration: 17s; }
.particles i:nth-child(5) { left: 69%; top: 90%; animation-delay: -7s; }
.particles i:nth-child(6) { left: 78%; top: 58%; animation-delay: -3s; animation-duration: 20s; }
.particles i:nth-child(7) { left: 88%; top: 84%; animation-delay: -11s; }
.particles i:nth-child(8) { left: 95%; top: 50%; animation-delay: -6s; animation-duration: 18s; }

.hud {
  width: var(--page);
  height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.wordmark-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 38, 62, 0.32);
  background: radial-gradient(circle, rgba(239,38,62,0.1), transparent 68%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 28px rgba(239, 38, 62, 0.14);
}
.wordmark-icon img { width: 28px; height: 28px; }
.wordmark-dim { color: var(--dim); }
.hud-status { display: flex; align-items: center; gap: 8px; }
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: rgba(5, 7, 8, 0.7);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status-danger { border-color: rgba(239, 38, 62, 0.28); color: #ffc9d0; }
.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: blink 2.2s ease-in-out infinite;
}
.status-dot-red { background: var(--red); box-shadow: 0 0 14px var(--red); animation-duration: 1.1s; }

.gateway {
  width: var(--page);
  min-height: calc(100vh - 166px);
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.8fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.intro { max-width: 760px; min-width: 0; }
.kicker, .index-label {
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.kicker span { width: 30px; height: 1px; background: var(--green); box-shadow: 0 0 12px var(--green); }
.index-label { margin: 0 0 12px; color: var(--dim); }
h1 {
  margin: 0 0 24px;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(4.8rem, 8.3vw, 9.2rem);
  line-height: 0.79;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}
h1 span { display: block; }
.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 244, 240, 0.52);
}
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch::before { color: var(--red); animation: glitch-a 4.8s steps(2) infinite; }
.glitch::after { color: var(--green); animation: glitch-b 5.4s steps(2) infinite; }
.lede, .breach-lede {
  max-width: 620px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}

.intel-card, .terminal {
  position: relative;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(15, 20, 20, 0.86), rgba(6, 8, 9, 0.94));
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.intel-card::before, .terminal::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(transparent, var(--green), transparent);
}
.intel-head, .terminal-bar, .panel-meta {
  min-height: 42px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.signal, .green { color: var(--green) !important; }
.red { color: var(--red) !important; }
.intel-body { padding: 15px; color: var(--muted); font-size: 0.68rem; line-height: 1.8; }
.intel-body p { margin: 4px 0; }
.intel-body .advisory { margin-top: 11px; color: #c5aeb1; }
.redact {
  display: inline-block;
  height: 0.85em;
  border-radius: 1px;
  background: linear-gradient(90deg, #141819, #020303, #161a1a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}
.redact-xs { width: 42px; }
.redact-sm { width: 78px; }
.redact-md { width: 110px; }
.redact-lg { width: 156px; }
.actions, .breach-actions { display: flex; align-items: center; gap: 24px; }
.access-button {
  min-width: 330px;
  min-height: 74px;
  padding: 0 8px 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(239, 38, 62, 0.32);
  background: linear-gradient(100deg, rgba(128,16,30,0.34), rgba(11,8,9,0.95));
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.access-button > *:not(.hold-progress) { position: relative; z-index: 2; }
.hold-progress {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: scaleX(var(--hold-progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, rgba(128,16,30,0.48), rgba(239,38,62,0.22));
  box-shadow: inset 0 0 35px rgba(239,38,62,0.12);
}
.hold-access.is-holding { border-color: rgba(239,38,62,0.8); box-shadow: 0 0 35px rgba(239,38,62,0.18); }
.hold-access { touch-action: none; user-select: none; }
.hold-access.is-holding .access-copy small { color: #ff8997; }
.hold-access.is-holding .access-arrow { animation: hold-pulse 0.5s ease-in-out infinite alternate; }
.access-copy small, .access-copy strong { display: block; text-transform: uppercase; }
.access-copy small { margin-bottom: 6px; color: var(--red); font-size: 0.51rem; font-weight: 600; letter-spacing: 0.18em; }
.access-copy strong { font-size: 0.68rem; letter-spacing: 0.09em; }
.access-arrow {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(239, 38, 62, 0.26);
  color: var(--red);
  font-size: 1.3rem;
}
.access-button:hover { transform: translateY(-3px); border-color: rgba(239, 38, 62, 0.72); box-shadow: 0 16px 50px rgba(128,16,30,0.22); }
.text-link {
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.text-link:hover { color: var(--green); }

.scanner-panel, .breach-card, .trace-panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(7, 10, 11, 0.78);
  box-shadow: 0 32px 100px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
}
.scanner-panel { padding-bottom: 18px; }
.scanner, .trace-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 240, 173, 0.12);
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(112,240,173,0.05), transparent 52%),
    linear-gradient(45deg, rgba(255,255,255,0.015), transparent);
  --scan-x: 0px;
  --scan-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}
.scanner img, .trace-visual img {
  width: 82%;
  position: relative;
  z-index: 3;
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(0.9) drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  animation: float 5s ease-in-out infinite;
}
.interactive-scanner { perspective: 900px; }
.interactive-scanner .radar-rings,
.interactive-scanner .radar-sweep,
.interactive-scanner .crosshair,
.interactive-scanner img {
  transform: translate3d(var(--scan-x), var(--scan-y), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.2s ease-out;
}
.interactive-scanner .radar-sweep { animation: sweep-interactive 5s linear infinite; }
.interactive-scanner img { animation: none; }
.target-blip {
  position: absolute;
  z-index: 5;
  width: 9px;
  height: 9px;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(112,240,173,0.65);
  animation: target-ping 2.6s ease-out infinite;
}
.target-blip::before, .target-blip::after { content: ""; position: absolute; inset: 50% auto auto 50%; background: var(--green); opacity: 0.5; transform: translate(-50%,-50%); }
.target-blip::before { width: 19px; height: 1px; }
.target-blip::after { width: 1px; height: 19px; }
.target-one { left: 20%; top: 28%; }
.target-two { right: 16%; top: 60%; animation-delay: -0.9s; }
.target-three { left: 45%; bottom: 11%; animation-delay: -1.7s; }
.radar-rings {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(112,240,173,0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(112,240,173,0.025), 0 0 0 110px rgba(112,240,173,0.018);
}
.radar-sweep {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 10deg, transparent 0 84%, rgba(112,240,173,0.18) 96%, transparent 100%);
  animation: sweep 5s linear infinite;
}
.radar-sweep-red { background: conic-gradient(from 10deg, transparent 0 84%, rgba(239,38,62,0.24) 96%, transparent 100%); }
.crosshair { position: absolute; background: rgba(112,240,173,0.13); }
.crosshair-x { width: 100%; height: 1px; }
.crosshair-y { height: 100%; width: 1px; }
.corner { position: absolute; width: 26px; height: 26px; z-index: 4; border-color: var(--green); opacity: 0.65; }
.corner-tl { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.coordinate {
  position: absolute;
  z-index: 5;
  color: var(--dim);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
}
.coordinate-a { left: 14px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: left center; }
.coordinate-b { right: 14px; bottom: 14px; }
.live-label { display: flex; align-items: center; gap: 7px; color: var(--green); }
.readouts, .trace-list { padding: 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); }
.readouts div, .trace-list div { padding: 4px 12px; border-left: 1px solid var(--line); }
.readouts span, .readouts strong, .trace-list span, .trace-list strong { display: block; }
.readouts span, .trace-list span { margin-bottom: 5px; color: var(--dim); font-size: 0.48rem; letter-spacing: 0.14em; }
.readouts strong, .trace-list strong { font-size: 0.62rem; letter-spacing: 0.05em; }
footer {
  width: var(--page);
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-line { height: 1px; flex: 1; background: var(--line); }
footer a:hover { color: var(--green); }

.utility-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 7px;
}
.utility-button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(112,240,173,0.2);
  border-radius: 0;
  background: rgba(6,10,9,0.86);
  color: var(--green);
  font: 600 0.48rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.utility-button:hover { transform: translateY(-2px); border-color: rgba(112,240,173,0.58); box-shadow: 0 0 24px rgba(112,240,173,0.12); }
.utility-button-red { color: var(--red); border-color: rgba(239,38,62,0.2); }
.utility-button-red:hover { border-color: rgba(239,38,62,0.62); box-shadow: 0 0 24px rgba(239,38,62,0.13); }
.utility-button img { width: 20px; height: 20px; }
.sound-bars { height: 16px; display: flex; align-items: center; gap: 2px; }
.sound-bars i { width: 2px; height: 5px; background: currentColor; transition: height 0.2s ease; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(1) { height: 9px; animation: sound-bar 0.7s ease-in-out infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2) { height: 15px; animation: sound-bar 0.9s ease-in-out -0.3s infinite alternate; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3) { height: 11px; animation: sound-bar 0.6s ease-in-out -0.2s infinite alternate; }

.access-sequence {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background:
    radial-gradient(circle, rgba(112,240,173,0.09), transparent 32%),
    rgba(2,4,4,0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sequence-reticle {
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112,240,173,0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(112,240,173,0.025), 0 0 0 70px rgba(112,240,173,0.014);
}
.sequence-reticle img { width: 84px; filter: drop-shadow(0 0 20px rgba(239,38,62,0.3)); }
.sequence-code { margin: 36px 0 0; color: var(--dim); font-size: 0.58rem; letter-spacing: 0.25em; }
.sequence-title { color: var(--green); font-family: var(--display); font-size: clamp(2.4rem, 7vw, 6rem); letter-spacing: -0.06em; }
.sequence-log { display: flex; gap: 18px; color: var(--dim); font-size: 0.5rem; letter-spacing: 0.15em; }
.sequence-log span { opacity: 0.25; }
.cinematic-active { overflow: hidden; }
.cinematic-active .access-sequence { visibility: visible; animation: sequence-in 2.6s ease both; }
.cinematic-active .sequence-reticle { animation: reticle-lock 1.7s cubic-bezier(.2,.8,.2,1) both; }
.cinematic-active .sequence-title { animation: title-lock 1.8s steps(2) both; }
.cinematic-active .sequence-log span:nth-child(1) { animation: log-step 0.4s ease 0.5s both; }
.cinematic-active .sequence-log span:nth-child(2) { animation: log-step 0.4s ease 1.1s both; }
.cinematic-active .sequence-log span:nth-child(3) { animation: log-step 0.4s ease 1.75s both; }

.breach-page { background: #080506; }
.breach-page .backdrop { background: radial-gradient(circle at 50% 40%, rgba(128,16,30,0.18), transparent 48%), #080506; }
.breach-page .grid { opacity: 0.28; background-image: linear-gradient(rgba(239,38,62,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(239,38,62,0.05) 1px, transparent 1px); }
.breach-page .caustics { opacity: 0.055; filter: hue-rotate(120deg) blur(16px); }
.alert-rail {
  position: fixed;
  left: 0;
  right: 0;
  max-width: 100vw;
  z-index: 20;
  height: 26px;
  overflow: clip;
  border-color: rgba(239,38,62,0.25);
  background: rgba(50,5,11,0.5);
  color: var(--red);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 26px;
  white-space: nowrap;
}
.alert-rail div { width: max-content; animation: rail 16s linear infinite; }
.alert-top { top: 0; border-bottom: 1px solid rgba(239,38,62,0.25); }
.alert-bottom { bottom: 0; border-top: 1px solid rgba(239,38,62,0.25); }
.alert-bottom div { animation-direction: reverse; }
.breach-hud { height: 112px; padding-top: 26px; }
.breach-main {
  width: var(--page);
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 44px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.62fr);
  gap: 22px;
  align-items: stretch;
}
.breach-card, .trace-panel { min-height: 650px; }
.breach-content { padding: clamp(30px, 4vw, 62px); }
.breach-alert {
  width: max-content;
  max-width: 100%;
  margin-bottom: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(239,38,62,0.3);
  background: rgba(128,16,30,0.18);
  color: #ffc7ce;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.breach-title { margin-bottom: 26px; color: #fff; font-size: clamp(5rem, 10.6vw, 10.8rem); text-shadow: 0 0 55px rgba(239,38,62,0.22); }
.breach-lede strong { color: #fff; }
.terminal { margin: 0 0 34px; }
.terminal::before { background: linear-gradient(transparent, var(--red), transparent); }
.terminal-feed { min-height: 145px; padding: 14px 16px; color: var(--muted); font-size: 0.63rem; line-height: 1.7; }
.terminal-feed p { margin: 4px 0; }
.terminal-feed b { color: var(--green); }
.terminal-feed em { color: var(--red); font-style: normal; font-weight: 600; }
.terminal-cursor span { color: var(--green); animation: blink 0.7s steps(2) infinite; }
.compact { min-width: 270px; }
.trace-panel { padding-bottom: 22px; }
.trace-visual { aspect-ratio: 1 / 0.92; margin: 18px; }
.trace-visual img { width: 80%; opacity: 0.9; }
.trace-panel .corner { border-color: var(--red); }
.trace-list { padding: 4px 18px 22px; }
.trace-note { margin: 0 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.61rem; line-height: 1.8; }
.entry-flash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #080305;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  animation: flash-out 1s ease 0.3s both;
  pointer-events: none;
}

@keyframes blink { 50% { opacity: 0.35; } }
@keyframes scan-drift { to { transform: translateY(10px); } }
@keyframes grain-shift { 50% { transform: translate(1px, -1px); } }
@keyframes ray-drift { to { transform: translateX(calc(var(--pointer-x) + 25px)) rotate(-2deg); opacity: 0.23; } }
@keyframes caustic-drift { to { background-position: 420px 80px, -500px -50px, 380px 40px; } }
@keyframes particle-rise { from { transform: translate(0, 20vh); opacity: 0; } 15% { opacity: 0.65; } to { transform: translate(24px, -110vh); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-6px) scale(1.01); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes sweep-interactive { to { transform: translate3d(var(--scan-x), var(--scan-y), 0) rotate(360deg) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); } }
@keyframes target-ping { 0%,100% { opacity: 0.3; transform: scale(0.75); } 45% { opacity: 1; transform: scale(1); } 70% { opacity: 0.2; transform: scale(1.65); } }
@keyframes hold-pulse { to { transform: translateX(5px); color: #fff; } }
@keyframes sound-bar { to { height: 4px; } }
@keyframes sequence-in { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 1; background-color: #140207; } }
@keyframes reticle-lock { 0% { opacity: 0; transform: scale(2.8) rotate(-120deg); } 45% { opacity: 1; transform: scale(0.85) rotate(6deg); } 60%,100% { transform: scale(1) rotate(0); border-color: var(--red); } }
@keyframes title-lock { 0%,50% { opacity: 0; transform: translateX(-10px); } 53% { opacity: 1; transform: translateX(8px); color: var(--red); } 56%,100% { opacity: 1; transform: translateX(0); } }
@keyframes log-step { to { opacity: 1; color: var(--green); } }
@keyframes rail { to { transform: translateX(-50%); } }
@keyframes flash-out { 0%, 65% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes glitch-a {
  0%, 90%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0 0 0 0); }
  91% { opacity: 0.65; transform: translate(-4px, 1px); clip-path: inset(15% 0 64% 0); }
  92% { opacity: 0.4; transform: translate(3px, -1px); clip-path: inset(70% 0 8% 0); }
}
@keyframes glitch-b {
  0%, 84%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0 0 0 0); }
  85% { opacity: 0.55; transform: translate(4px, -1px); clip-path: inset(64% 0 12% 0); }
  86% { opacity: 0.35; transform: translate(-2px, 1px); clip-path: inset(10% 0 73% 0); }
}

@media (max-width: 1100px) {
  :root { --page: min(920px, calc(100vw - 42px)); }
  .gateway, .breach-main { grid-template-columns: 1fr; }
  .gateway { padding-top: 52px; }
  .scanner-panel { max-width: 650px; }
  .breach-card, .trace-panel { min-height: auto; }
}

@media (max-width: 720px) {
  :root { --page: calc(100vw - 28px); }
  .hud { height: auto; padding: 18px 0; align-items: flex-start; }
  .hud-status { flex-direction: column; align-items: flex-end; }
  .status-item { padding: 7px 8px; font-size: 0.48rem; }
  .wordmark { font-size: 0.72rem; }
  .wordmark-icon { width: 34px; height: 34px; }
  .gateway { min-height: auto; padding: 50px 0; gap: 48px; }
  .kicker { margin-bottom: 38px; }
  h1 { font-size: clamp(3.5rem, 16vw, 5.5rem); }
  .lede, .breach-lede { font-size: 0.77rem; }
  .actions, .breach-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .access-button, .compact { min-width: 0; width: 100%; }
  .scanner, .trace-visual { margin: 10px; }
  .readouts, .trace-list { padding: 0 10px; }
  footer { flex-wrap: wrap; height: auto; padding: 22px 0 46px; }
  .footer-line { flex-basis: 100%; order: -1; }
  .breach-hud { padding-top: 38px; }
  .breach-main { padding-top: 24px; }
  .breach-content { padding: 26px 18px 30px; }
  .breach-alert { margin-bottom: 34px; font-size: 0.5rem; }
  .breach-title { font-size: clamp(3.5rem, 16vw, 5.5rem); }
  .terminal-feed { font-size: 0.57rem; }
  .trace-note { margin: 0 20px; }
  .utility-dock {
    position: static;
    width: var(--page);
    margin: -22px auto 30px;
    justify-content: flex-end;
  }
  .utility-button { min-width: 38px; height: 38px; padding: 0 9px; }
  .utility-label { display: none; }
  .sequence-log { max-width: 270px; flex-direction: column; align-items: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .entry-flash { display: none; }
}
