:root {
  --bg: #0A0D13;
  --ink: #ECE6D8;
  --muted: #7E8AA0;
  --dim: #555F71;
  --accent: #FFB000;
  --accent-soft: rgba(255, 176, 0, 0.16);
  --amber: #F0A53A;
  --red: #C4622D;
  --blue: #7E8AA0;
  --panel: rgba(17, 22, 31, 0.76);
  --panel-strong: rgba(17, 22, 31, 0.92);
  --line: #232C3A;
  --scroll: 0;
  --scroll-px: 0px;
  --machine-x: 50%;
  --machine-y: 50%;
  --depth-far-x: 0px;
  --depth-far-y: 0px;
  --depth-mid-x: 0px;
  --depth-mid-y: 0px;
  --depth-near-x: 0px;
  --depth-near-y: 0px;
  --mono: "Space Mono", monospace;
  --display: "Archivo", sans-serif;
  --condensed: "Archivo", sans-serif;
  --body: "Archivo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--body);
  background:
    radial-gradient(circle at 22% 18%, rgba(196, 98, 45, 0.12), transparent 24rem),
    radial-gradient(circle at 80% 6%, rgba(255, 176, 0, 0.08), transparent 26rem),
    linear-gradient(180deg, #0A0D13 0%, #11161F 36%, #0A0D13 72%, #070910 100%);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(110deg, transparent 0 14%, rgba(255, 176, 0, 0.04) 15%, transparent 16% 48%, rgba(255, 179, 77, 0.035) 49%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18rem);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

body.intro-active {
  overflow: hidden;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #0A0D13;
  color: var(--ink);
  isolation: isolate;
}

.intro-gate[hidden] {
  display: none;
}

.intro-gate::before,
.intro-gate::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.intro-gate::before {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 176, 0, 0.14), transparent 18rem),
    radial-gradient(circle at 80% 12%, rgba(196, 98, 45, 0.18), transparent 20rem),
    linear-gradient(180deg, rgba(10, 13, 19, 0.14), rgba(10, 13, 19, 0.78));
}

.intro-gate::after {
  z-index: 7;
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 176, 0, 0.1) 8px),
    linear-gradient(90deg, rgba(10, 13, 19, 0.88), transparent 22%, transparent 78%, rgba(10, 13, 19, 0.88));
  opacity: 0.48;
  mix-blend-mode: screen;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-video-back {
  position: absolute;
  inset: -4%;
  z-index: 1;
  width: 108%;
  height: 108%;
  opacity: 0.46;
  filter: saturate(1.18) contrast(1.18) brightness(0.72);
  transform: translate3d(calc(var(--depth-far-x) * -0.5), calc(var(--depth-far-y) * -0.5), 0) scale(1.04);
}

.intro-system-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 176, 0, 0.16) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255, 176, 0, 0.1) 50%, transparent 50.2%);
  background-size: clamp(4rem, 8vw, 8rem) clamp(4rem, 8vw, 8rem);
  opacity: 0.32;
  transform:
    perspective(900px)
    rotateX(64deg)
    translate3d(calc(var(--depth-mid-x) * -0.32), 20svh, 0);
  transform-origin: center bottom;
  animation: introGrid 9s linear infinite;
}

.intro-grid-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(circle at calc(var(--cursor-x, 50) * 1%) calc(var(--cursor-y, 50) * 1%), rgba(255, 179, 77, 0.22), transparent 15rem),
    linear-gradient(110deg, transparent 0 18%, rgba(255, 176, 0, 0.07) 19%, transparent 20% 62%, rgba(196, 98, 45, 0.07) 63%, transparent 64%),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(236, 230, 216, 0.035) 59px);
  opacity: 0.82;
}

.intro-content {
  position: relative;
  z-index: 8;
  display: grid;
  width: min(1180px, calc(100% - 2rem));
  justify-items: center;
  gap: clamp(1rem, 3vw, 1.6rem);
  text-align: center;
  transform: translate3d(calc(var(--depth-near-x) * 0.22), calc(var(--depth-near-y) * 0.16), 0);
}

.intro-word-wrap {
  position: relative;
  width: 100%;
  filter:
    drop-shadow(0 0 28px rgba(255, 176, 0, 0.24))
    drop-shadow(0 0 82px rgba(196, 98, 45, 0.14));
}

.intro-word-wrap::before,
.intro-word-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 50%;
  width: min(92vw, 920px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.92), rgba(255, 179, 77, 0.72), transparent);
  transform: translateX(-50%);
}

.intro-word-wrap::before {
  top: 18%;
}

.intro-word-wrap::after {
  bottom: 15%;
}

.intro-word {
  display: block;
  width: 100%;
  min-height: clamp(11rem, 31vw, 22rem);
}

.intro-word text {
  font-family: var(--display);
  font-size: 190px;
  font-weight: 900;
  letter-spacing: 0;
}

.intro-word-stroke {
  fill: transparent;
  stroke: rgba(236, 230, 216, 0.8);
  stroke-width: 3;
  paint-order: stroke;
}

.intro-video-letters {
  filter: saturate(1.35) contrast(1.24) brightness(1.12);
}

.intro-kicker {
  margin: 0;
  color: var(--amber);
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.3vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
}

.intro-enter {
  position: relative;
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.68);
  background:
    linear-gradient(90deg, rgba(255, 176, 0, 0.95), rgba(255, 179, 77, 0.92));
  padding: 0.95rem 1.18rem;
  cursor: pointer;
  color: #0A0D13;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0 42px rgba(255, 176, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.intro-enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-120%);
  animation: introButtonSweep 2.8s ease-in-out infinite;
}

.intro-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 62px rgba(255, 179, 77, 0.32);
}

.intro-enter:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.intro-enter {
  clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 0.8rem, 100% 100%, 0.8rem 100%, 0 calc(100% - 0.8rem));
}

body.intro-exiting .intro-gate {
  pointer-events: none;
  animation: introExit 760ms ease forwards;
}

#threat-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  translate: var(--depth-far-x) var(--depth-far-y);
  scale: 1.04;
}

.texture,
.machine-code,
.cursor-orbit {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.machine-code {
  z-index: 0;
  display: grid;
  align-content: start;
  gap: 0.32rem;
  overflow: hidden;
  padding: 4rem 2rem;
  opacity: 0;
  color: rgba(255, 176, 0, 0.92);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.84vw, 0.82rem);
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 220ms ease;
  mask-image: radial-gradient(
    circle at var(--machine-x) var(--machine-y),
    #000 0 5.5rem,
    rgba(0, 0, 0, 0.72) 7rem,
    transparent 12.5rem
  );
  -webkit-mask-image: radial-gradient(
    circle at var(--machine-x) var(--machine-y),
    #000 0 5.5rem,
    rgba(0, 0, 0, 0.72) 7rem,
    transparent 12.5rem
  );
}

.machine-code span {
  display: block;
  width: max-content;
  min-width: 220vw;
  opacity: 0.42;
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.32);
  animation: codeDrift 9s linear infinite;
  transform: translateX(var(--line-shift, -10vw));
}

.machine-code span:nth-child(3n) {
  color: rgba(255, 179, 77, 0.86);
  animation-duration: 12s;
}

.machine-code span:nth-child(4n) {
  color: rgba(110, 200, 255, 0.76);
  animation-direction: reverse;
  animation-duration: 15s;
}

body.pointer-active .machine-code {
  opacity: 1;
}

.texture-noise {
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
}

.texture-scan {
  z-index: 40;
  opacity: 0.12;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 176, 0, 0.2) 7px),
    radial-gradient(circle at calc(var(--cursor-x, 50) * 1%) calc(var(--cursor-y, 50) * 1%), rgba(255, 179, 77, 0.18), transparent 14rem);
}

main {
  position: relative;
  z-index: 2;
}

.cursor-orbit {
  z-index: 35;
  width: 12rem;
  height: 12rem;
  inset: calc(var(--pointer-y, 50vh) - 6rem) auto auto calc(var(--pointer-x, 50vw) - 6rem);
  border: 1px solid rgba(255, 179, 77, 0.36);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.86);
  box-shadow:
    0 0 0 1px rgba(255, 176, 0, 0.1) inset,
    0 0 48px rgba(255, 179, 77, 0.16);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cursor-orbit::before,
.cursor-orbit::after {
  content: "";
  position: absolute;
  inset: 1.65rem;
  border: 1px dashed rgba(255, 176, 0, 0.34);
  border-radius: 50%;
  animation: cursorSpin 5s linear infinite;
}

.cursor-orbit::after {
  inset: 50%;
  width: 16rem;
  height: 1px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.8), transparent),
    linear-gradient(0deg, transparent, rgba(255, 176, 0, 0.8), transparent);
  background-size: 100% 1px, 1px 16rem;
  background-position: center, center;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  animation: cursorScan 2.8s ease-in-out infinite;
}

body.pointer-active .cursor-orbit {
  opacity: 1;
  transform: scale(1);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(236, 230, 216, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255, 176, 0, 0.46);
  color: var(--accent);
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.22), transparent 44%),
    rgba(10, 13, 19, 0.9);
  clip-path: polygon(0 0, 100% 12%, 86% 100%, 12% 88%);
  animation: markPulse 3.4s ease-in-out infinite;
}

.brand-name {
  color: var(--ink);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2.2vw, 1.8rem);
}

nav a,
.nav-cta {
  color: var(--muted);
  transition: color 180ms ease;
}

nav a:hover,
.nav-cta:hover {
  color: var(--accent);
}

.nav-cta {
  justify-self: end;
  border: 1px solid rgba(255, 176, 0, 0.28);
  padding: 0.62rem 0.78rem;
  background: rgba(255, 176, 0, 0.06);
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 108svh;
  display: grid;
  align-items: center;
  padding: 7rem clamp(1rem, 4vw, 4rem) 7rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 9svh 5vw 12svh;
  z-index: -1;
  border: 1px solid rgba(255, 176, 0, 0.14);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 176, 0, 0.14) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255, 176, 0, 0.09) 50%, transparent 50.2%);
  background-size: clamp(4rem, 8vw, 8rem) clamp(4rem, 8vw, 8rem);
  transform: perspective(920px) rotateX(64deg) translateY(15svh);
  transform-origin: center bottom;
  box-shadow: inset 0 0 120px rgba(255, 176, 0, 0.09);
  animation: gridSurge 8s linear infinite;
}

.hero-panel {
  position: absolute;
  top: 18svh;
  z-index: 2;
  display: grid;
  gap: 0.34rem;
  border-left: 1px solid rgba(255, 176, 0, 0.24);
  padding-left: 0.85rem;
  font-family: var(--mono);
  font-size: clamp(0.64rem, 0.9vw, 0.76rem);
  color: var(--dim);
  text-transform: uppercase;
}

.hero-panel strong {
  color: var(--accent);
  font-size: 0.95rem;
}

.hero-panel-left {
  left: clamp(1rem, 5vw, 4rem);
  translate: var(--depth-near-x) var(--depth-near-y);
}

.hero-panel-right {
  right: clamp(1rem, 5vw, 4rem);
  border-right: 1px solid rgba(255, 179, 77, 0.28);
  border-left: 0;
  padding-right: 0.85rem;
  padding-left: 0;
  text-align: right;
  translate: calc(var(--depth-near-x) * -1) var(--depth-near-y);
}

.hero-panel-right strong {
  color: var(--amber);
}

.hero-stage {
  position: relative;
  display: grid;
  width: min(1420px, 100%);
  min-height: 68svh;
  margin-inline: auto;
  place-items: center;
  perspective: 1000px;
}

.hero-radar {
  position: absolute;
  width: min(78vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 176, 0, 0.25);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 23%, rgba(255, 176, 0, 0.08) 23.4% 23.7%, transparent 24% 46%, rgba(255, 176, 0, 0.08) 46.4% 46.7%, transparent 47% 69%, rgba(255, 179, 77, 0.12) 69.4% 69.7%, transparent 70%),
    conic-gradient(from calc(var(--scroll) * 240deg), rgba(255, 176, 0, 0.24), transparent 18%, transparent 100%);
  filter: drop-shadow(0 0 48px rgba(255, 176, 0, 0.16));
  animation: radarBreath 5s ease-in-out infinite, radarSpin 14s linear infinite;
  translate:
    calc(var(--depth-mid-x) + var(--scroll-px) * 0.018)
    calc(var(--depth-mid-y) + var(--scroll-px) * -0.035);
}

.hero-radar::before,
.hero-radar::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 179, 77, 0.16);
  border-radius: 50%;
  translate:
    calc(var(--depth-near-x) * -0.45)
    calc(var(--depth-near-y) * -0.45);
}

.hero-radar::after {
  inset: 30%;
  border-color: rgba(110, 200, 255, 0.18);
  translate:
    calc(var(--depth-near-x) * 0.65)
    calc(var(--depth-near-y) * 0.65);
}

.radar-node {
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
  animation: nodePing 2.4s ease-in-out infinite;
}

.node-a,
.node-c {
  translate: var(--depth-near-x) var(--depth-near-y);
}

.node-b,
.node-d {
  translate: calc(var(--depth-near-x) * -0.7) calc(var(--depth-near-y) * -0.7);
}

.node-a {
  top: 17%;
  left: 34%;
}

.node-b {
  top: 56%;
  right: 12%;
  background: var(--amber);
  box-shadow: 0 0 22px var(--amber);
}

.node-c {
  right: 39%;
  bottom: 11%;
}

.node-d {
  top: 38%;
  left: 11%;
  background: var(--red);
  box-shadow: 0 0 22px var(--red);
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1180px, 100%);
  gap: 1.2rem;
  text-align: center;
  translate:
    calc(var(--depth-near-x) * 0.22)
    calc(var(--depth-near-y) * 0.22);
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 8.2vw, 8.2rem);
  line-height: 0.86;
  text-wrap: balance;
  text-shadow:
    0 0 28px rgba(255, 176, 0, 0.19),
    0 0 100px rgba(255, 176, 0, 0.12);
  animation: titleVoltage 7s steps(1, end) infinite;
}

h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.18vw, 3px) rgba(236, 230, 216, 0.9);
}

h2 {
  font-size: clamp(2.2rem, 6.8vw, 6.4rem);
  line-height: 0.9;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-copy > p:not(.eyebrow),
.surface-copy > p,
.protocol-step p,
.console-copy p,
.contact-shell p,
.vector-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  width: min(780px, 100%);
  justify-self: center;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 176, 0, 0.64);
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--accent);
  color: #0A0D13;
  box-shadow: 0 0 34px rgba(255, 176, 0, 0.24);
  animation: buttonCharge 2.8s ease-in-out infinite;
}

.button.ghost {
  background: rgba(17, 22, 31, 0.6);
}

.command-deck {
  position: absolute;
  right: clamp(1rem, 4vw, 4rem);
  bottom: 5svh;
  left: clamp(1rem, 4vw, 4rem);
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1px;
  border: 1px solid rgba(255, 176, 0, 0.24);
  background: rgba(255, 176, 0, 0.12);
  font-family: var(--mono);
  translate:
    calc(var(--depth-near-x) * 0.32)
    calc(var(--depth-near-y) * 0.18);
}

.command-deck::before,
.evidence-console::before,
.contact-shell::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.2), transparent);
  opacity: 0.55;
  transform: translateX(-120%);
  animation: panelSweep 5.5s ease-in-out infinite;
}

.command-deck {
  overflow: hidden;
}

.terminal-line,
.deck-grid > div {
  position: relative;
  z-index: 1;
  background: rgba(10, 13, 19, 0.88);
  padding: 1rem;
}

.terminal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--dim);
}

.terminal-line strong {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 176, 0, 0.4);
}

.terminal-line strong::after {
  content: "_";
  display: inline-block;
  margin-left: 0.2rem;
  animation: caretBlink 0.9s steps(1, end) infinite;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.deck-grid div {
  display: grid;
  gap: 0.36rem;
  min-width: 0;
}

.deck-grid span {
  color: var(--dim);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.deck-grid strong {
  overflow-wrap: anywhere;
  color: var(--amber);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.surface,
.protocol,
.evidence,
.plans,
.contact {
  position: relative;
  width: min(1260px, calc(100% - 2rem));
  margin-inline: auto;
  scroll-margin-top: 5rem;
  padding-block: clamp(5rem, 9vw, 9rem);
}

.section-kicker {
  position: sticky;
  top: 5rem;
  z-index: 4;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 179, 77, 0.24);
  background: rgba(10, 13, 19, 0.72);
  padding: 0.55rem 0.7rem;
  animation: tagBlink 4s steps(1, end) infinite;
}

.surface-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2.2rem;
}

.surface-copy {
  position: sticky;
  top: 8rem;
  display: grid;
  gap: 1.15rem;
  translate: calc(var(--depth-far-x) * -0.55) 0;
}

.surface-copy h2,
.protocol-copy h2,
.console-copy h2,
.contact-shell h2 {
  font-size: clamp(2.35rem, 5.2vw, 5.2rem);
}

.vector-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  translate: calc(var(--depth-mid-x) * 0.32) 0;
}

.vector-card {
  position: relative;
  display: grid;
  min-height: 25rem;
  align-content: space-between;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.82), rgba(10, 13, 19, 0.94));
  padding: 1.05rem;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 1rem 100%, 0 calc(100% - 1rem));
  transition: border-color 180ms ease, transform 220ms ease;
  translate:
    calc(var(--depth-near-x) * var(--card-depth, 0.12))
    calc(var(--depth-near-y) * var(--card-depth, 0.12));
}

.vector-card:nth-child(1) {
  --card-depth: 0.18;
}

.vector-card:nth-child(2) {
  --card-depth: -0.12;
}

.vector-card:nth-child(3) {
  --card-depth: 0.28;
}

.vector-card:nth-child(4) {
  --card-depth: -0.2;
}

.vector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 176, 0, 0.14) 49% 51%, transparent 52%),
    repeating-linear-gradient(180deg, transparent 0 24px, rgba(236, 230, 216, 0.035) 25px);
  opacity: 0.55;
}

.vector-card::after {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 58%;
  background:
    linear-gradient(180deg, transparent, rgba(255, 176, 0, 0.16), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 179, 77, 0.12) 19px 20px);
  opacity: 0.72;
  transform: translateY(-100%);
  animation: cardSweep 6s linear infinite;
}

.vector-card:hover,
.vector-card.is-hot {
  border-color: rgba(255, 179, 77, 0.78);
  transform: translateY(-4px);
}

.vector-top,
.risk-ring,
.vector-card h3,
.vector-card p {
  position: relative;
  z-index: 1;
}

.vector-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  text-transform: uppercase;
}

.vector-top strong {
  color: var(--amber);
}

.risk-ring {
  display: grid;
  width: 8rem;
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0A0D13 0 48%, transparent 49%),
    conic-gradient(var(--red) calc(var(--risk) * 1%), rgba(255, 176, 0, 0.16) 0);
  color: var(--ink);
  font-family: var(--display);
  font-size: 2.1rem;
  animation: ringJitter 3.6s steps(1, end) infinite;
}

.risk-ring span::after {
  content: "%";
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--amber);
}

.protocol {
  width: 100%;
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.protocol-sticky {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 84svh;
  align-items: center;
  border-block: 1px solid rgba(255, 176, 0, 0.18);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.protocol-sticky::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 176, 0, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 176, 0, 0.06) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  transform: translate3d(calc(var(--depth-far-x) * -0.8), calc(var(--scroll-px) * -0.018), 0);
}

.protocol-copy {
  display: grid;
  gap: 1.1rem;
  translate: calc(var(--depth-mid-x) * -0.35) 0;
}

.protocol-timeline {
  display: grid;
  gap: 0;
  border: 1px solid rgba(255, 176, 0, 0.22);
  background: rgba(255, 176, 0, 0.1);
  translate: calc(var(--depth-near-x) * 0.3) calc(var(--depth-near-y) * 0.14);
}

.protocol-step {
  position: relative;
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 1rem;
  background: rgba(10, 13, 19, 0.9);
  padding: 1.25rem;
  overflow: hidden;
}

.protocol-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 77, 0.14), transparent);
  transform: translateX(-120%);
  animation: protocolSweep 6.8s linear infinite;
  animation-delay: calc(var(--step-delay, 0) * 1ms);
}

.protocol-step + .protocol-step {
  border-top: 1px solid rgba(255, 176, 0, 0.16);
}

.protocol-step > span {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 179, 77, 0.76);
}

.protocol-step div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
}

.evidence-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(110, 200, 255, 0.11), transparent 32%),
    rgba(10, 13, 19, 0.86);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.42);
  translate: calc(var(--depth-mid-x) * 0.18) 0;
}

.console-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 176, 0, 0.2);
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--dim);
  text-transform: uppercase;
}

.console-header strong {
  color: var(--accent);
}

.console-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.2rem, 4vw, 3rem);
}

.console-copy {
  display: grid;
  gap: 1rem;
}

.evidence-feed {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: evidence;
}

.evidence-feed li {
  position: relative;
  border-left: 1px solid rgba(255, 179, 77, 0.48);
  background: rgba(17, 22, 31, 0.76);
  padding: 0.85rem 0.9rem 0.85rem 3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow: hidden;
  animation: evidencePulse 5.2s ease-in-out infinite;
}

.evidence-feed li::before {
  counter-increment: evidence;
  content: counter(evidence, decimal-leading-zero);
  position: absolute;
  left: 0.85rem;
  color: var(--amber);
}

.evidence-feed li::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  bottom: 0.55rem;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 176, 0, 0.9), transparent);
  transform: scaleX(0.2);
  transform-origin: left;
  animation: dataBar 3.8s ease-in-out infinite;
}

.evidence-feed li.is-live {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 176, 0, 0.12), transparent 70%),
    rgba(17, 22, 31, 0.9);
  box-shadow: inset 0 0 24px rgba(255, 176, 0, 0.07);
}

.plans {
  display: grid;
  gap: clamp(1.3rem, 3vw, 2.2rem);
}

.plans::before {
  content: "";
  position: absolute;
  inset: 12% -8% auto;
  z-index: -1;
  height: 64%;
  background:
    linear-gradient(90deg, rgba(255, 179, 77, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 176, 0, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 28% 22%, rgba(196, 98, 45, 0.12), transparent 23rem);
  background-size: 4rem 4rem, 4rem 4rem, auto;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  transform: translate3d(calc(var(--depth-far-x) * -0.7), calc(var(--scroll-px) * -0.012), 0);
}

.plans-head {
  display: grid;
  width: min(980px, 100%);
  gap: 1rem;
}

.plans-head h2 {
  font-size: clamp(2.35rem, 5.2vw, 5.2rem);
}

.plans-head p,
.plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.plans-promo {
  display: grid;
  gap: 0.4rem;
  width: min(760px, 100%);
  border-left: 1px solid rgba(255, 179, 77, 0.66);
  background:
    linear-gradient(90deg, rgba(255, 179, 77, 0.12), transparent 74%),
    rgba(10, 13, 19, 0.68);
  padding: 0.9rem 1rem;
}

.plans-promo strong {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.plans-promo span {
  color: rgba(236, 230, 216, 0.84);
  font-size: 1rem;
  line-height: 1.55;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 176, 0, 0.22);
  background: rgba(255, 176, 0, 0.1);
  translate: calc(var(--depth-mid-x) * 0.14) 0;
}

.plan-card {
  position: relative;
  display: grid;
  min-height: 34rem;
  align-content: start;
  gap: 1rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 176, 0, 0.11), transparent 30%),
    rgba(10, 13, 19, 0.91);
  padding: 1rem;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.13), transparent),
    repeating-linear-gradient(180deg, transparent 0 24px, rgba(236, 230, 216, 0.032) 25px);
  opacity: 0.5;
  transform: translateX(-120%);
  animation: panelSweep 7.4s ease-in-out infinite;
}

.plan-card > * {
  position: relative;
  z-index: 1;
}

.plan-card.is-featured {
  background:
    linear-gradient(145deg, rgba(255, 179, 77, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.95), rgba(10, 13, 19, 0.92));
  box-shadow: inset 0 0 0 1px rgba(255, 179, 77, 0.48);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
  text-transform: uppercase;
}

.plan-top span {
  color: var(--amber);
}

.plan-top strong {
  color: var(--accent);
  text-align: right;
}

.plan-card h3 {
  color: var(--ink);
}

.plan-mode {
  display: grid;
  gap: 0.12rem;
  border-block: 1px solid rgba(255, 176, 0, 0.15);
  padding-block: 0.85rem;
  font-family: var(--mono);
  text-transform: uppercase;
}

.plan-mode span,
.plan-mode small {
  color: var(--dim);
  font-size: 0.68rem;
}

.plan-mode strong {
  color: var(--amber);
  font-family: var(--condensed);
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1;
}

.plan-card ul {
  display: grid;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 1.1rem;
  color: rgba(236, 230, 216, 0.82);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
}

.plan-card li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 0.44rem;
  height: 0.44rem;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.52);
}

.contact {
  min-height: 92svh;
  display: grid;
  place-items: center;
}

.contact::before {
  content: "NABU66";
  position: absolute;
  z-index: -1;
  font-family: var(--condensed);
  font-size: clamp(10rem, 34vw, 34rem);
  font-weight: 900;
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 176, 0, 0.09);
  translate: calc(var(--depth-far-x) * -1.2) calc(var(--depth-far-y) * -0.7);
}

.contact-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  width: min(920px, 100%);
  gap: 1.1rem;
  border: 1px solid rgba(255, 176, 0, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.14), transparent 36%),
    rgba(10, 13, 19, 0.82);
  padding: clamp(1.2rem, 4vw, 3rem);
  box-shadow: 0 0 90px rgba(255, 176, 0, 0.1);
  translate: calc(var(--depth-near-x) * 0.22) calc(var(--depth-near-y) * 0.1);
}

.contact-shell > * {
  position: relative;
  z-index: 1;
}

.contact-shell::after {
  content: "0x4E 0x41 0x42 0x55 / HUMAN_VECTOR / AUTH_SCOPE / TRAINABLE_SURFACE";
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  color: rgba(255, 176, 0, 0.28);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
  animation: footerTicker 13s linear infinite;
}

.contact-actions {
  justify-content: flex-start;
  margin-top: 0.4rem;
}

.phone-link {
  font-family: var(--mono);
  color: var(--accent);
}

body.terminal-active {
  overflow: hidden;
}

.simulation-terminal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: clamp(0.8rem, 2vw, 1.5rem);
}

.simulation-terminal[hidden] {
  display: none;
}

.simulation-terminal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 176, 0, 0.12), transparent 28rem),
    rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.simulation-terminal__window {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, calc(100vw - 1.6rem));
  height: min(720px, calc(100svh - 1.6rem));
  overflow: hidden;
  border: 1px solid rgba(255, 176, 0, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 176, 0, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.98), rgba(10, 13, 19, 0.97));
  box-shadow:
    0 28px 120px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(236, 230, 216, 0.04);
  animation: terminalIn 220ms ease-out both;
}

.simulation-terminal__window::before,
.simulation-terminal__window::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.simulation-terminal__window::before {
  z-index: 3;
  background:
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(236, 230, 216, 0.035) 8px),
    radial-gradient(circle at 50% 0%, rgba(255, 176, 0, 0.1), transparent 28rem);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.simulation-terminal__window::after {
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.1), transparent);
  transform: translateX(-120%);
  animation: panelSweep 5.8s ease-in-out infinite;
}

.simulation-terminal__bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 176, 0, 0.24);
  background: rgba(10, 13, 19, 0.92);
  padding: 0.85rem 1rem;
  font-family: var(--mono);
}

.terminal-lights {
  display: flex;
  gap: 0.42rem;
}

.terminal-lights span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 14px rgba(255, 176, 0, 0.14);
}

.terminal-lights span:nth-child(1) {
  background: var(--red);
}

.terminal-lights span:nth-child(2) {
  background: var(--amber);
}

.terminal-lights span:nth-child(3) {
  background: var(--accent);
}

.simulation-terminal__eyebrow,
.simulation-terminal__bar h2 {
  margin: 0;
}

.simulation-terminal__eyebrow {
  color: var(--dim);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.simulation-terminal__bar h2 {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.simulation-terminal__close {
  border: 1px solid rgba(255, 176, 0, 0.3);
  background: rgba(255, 176, 0, 0.06);
  padding: 0.58rem 0.7rem;
  cursor: pointer;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.simulation-terminal__body {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.terminal-output {
  display: grid;
  align-content: start;
  gap: 0.68rem;
  overflow-y: auto;
  padding: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.35vw, 0.9rem);
  line-height: 1.55;
  scrollbar-color: rgba(255, 176, 0, 0.52) rgba(17, 22, 31, 0.8);
}

.terminal-line-output {
  margin: 0;
  white-space: pre-wrap;
}

.terminal-line-output strong,
.terminal-command {
  color: var(--accent);
}

.terminal-line-output.is-muted {
  color: var(--dim);
}

.terminal-line-output.is-warn {
  color: var(--amber);
}

.terminal-line-output.is-danger {
  color: var(--red);
}

.terminal-alert {
  display: grid;
  gap: 0.48rem;
  border-left: 2px solid rgba(255, 176, 0, 0.72);
  background:
    linear-gradient(90deg, rgba(255, 176, 0, 0.08), transparent 74%),
    rgba(17, 22, 31, 0.74);
  padding: 0.8rem 0.85rem;
  animation: terminalRowIn 180ms ease-out both;
}

.terminal-alert.severity-critico {
  border-left-color: var(--red);
  background:
    linear-gradient(90deg, rgba(196, 98, 45, 0.16), transparent 78%),
    rgba(17, 22, 31, 0.82);
}

.terminal-alert__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--dim);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.terminal-alert__meta strong {
  color: var(--amber);
}

.terminal-alert.severity-critico .terminal-alert__meta strong {
  color: var(--red);
}

.terminal-alert h3,
.terminal-alert p,
.terminal-alert small {
  margin: 0;
  font-family: var(--mono);
}

.terminal-alert h3 {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.terminal-alert p,
.terminal-alert small {
  color: var(--muted);
  font-size: 0.78rem;
}

.terminal-alert small {
  color: rgba(236, 230, 216, 0.82);
}

.terminal-prompt {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  border-top: 1px solid rgba(255, 176, 0, 0.24);
  background: rgba(10, 13, 19, 0.96);
  padding: 0.82rem 1rem;
  font-family: var(--mono);
}

.terminal-prompt label {
  color: var(--accent);
  font-size: 0.82rem;
  white-space: nowrap;
}

.terminal-input-wrap {
  position: relative;
  min-width: 0;
}

.terminal-prompt input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  caret-color: var(--accent);
}

.terminal-prompt input:disabled {
  color: rgba(236, 230, 216, 0.5);
}

.terminal-ghost {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  color: rgba(126, 138, 160, 0.44);
  opacity: 0;
  white-space: pre;
}

.terminal-ghost.is-visible {
  opacity: 1;
  animation: ghostFlicker 480ms steps(1, end) both;
}

.reveal {
  opacity: 0.48;
  transform: translateY(22px);
  transition: opacity 760ms ease var(--delay, 0ms), transform 760ms ease var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.simulation-alerts {
  position: fixed;
  top: 5.4rem;
  right: clamp(0.8rem, 2vw, 1.35rem);
  z-index: 45;
  display: grid;
  width: min(27rem, calc(100vw - 1.6rem));
  max-height: calc(100svh - 7rem);
  gap: 0.72rem;
  overflow: hidden;
  pointer-events: none;
}

.simulation-alert {
  position: relative;
  display: grid;
  gap: 0.58rem;
  overflow: hidden;
  border: 1px solid rgba(255, 179, 77, 0.5);
  background:
    linear-gradient(135deg, rgba(196, 98, 45, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(7, 13, 11, 0.96), rgba(10, 13, 19, 0.94));
  padding: 0.86rem 0.92rem 0.92rem;
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.48),
    inset 0 0 28px rgba(196, 98, 45, 0.06);
  clip-path: polygon(0 0, calc(100% - 0.86rem) 0, 100% 0.86rem, 100% 100%, 0.86rem 100%, 0 calc(100% - 0.86rem));
  animation: alertIn 280ms ease-out both, alertFlicker 3.4s steps(1, end) infinite;
}

.simulation-alert::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 176, 0, 0.16), transparent),
    repeating-linear-gradient(180deg, transparent 0 13px, rgba(236, 230, 216, 0.035) 14px);
  opacity: 0.62;
  transform: translateX(-120%);
  animation: alertSweep 2.4s ease-in-out infinite;
}

.simulation-alert > * {
  position: relative;
  z-index: 1;
}

.simulation-alert__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
  text-transform: uppercase;
}

.simulation-alert__meta strong {
  color: var(--red);
}

.simulation-alert h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--condensed);
  font-size: clamp(1.28rem, 3vw, 1.58rem);
  line-height: 1;
  text-transform: uppercase;
}

.simulation-alert p,
.simulation-alert small {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
}

.simulation-alert small {
  border-left: 1px solid rgba(255, 179, 77, 0.5);
  padding-left: 0.7rem;
  color: rgba(236, 230, 216, 0.82);
}

.simulation-alert.severity-critico {
  border-color: rgba(196, 98, 45, 0.7);
  box-shadow:
    0 18px 64px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(196, 98, 45, 0.18);
}

.simulation-alert.severity-alto .simulation-alert__meta strong {
  color: var(--amber);
}

.simulation-alert.is-exiting {
  animation: alertOut 220ms ease-in forwards;
}

body.breach-mode .hero-radar {
  border-color: rgba(196, 98, 45, 0.45);
  animation-duration: 2.8s;
}

body.breach-mode .button.primary {
  background: var(--amber);
  box-shadow: 0 0 42px rgba(255, 179, 77, 0.28);
}

body.breach-mode .texture-scan {
  opacity: 0.18;
}

body.breach-mode .machine-code {
  color: rgba(196, 98, 45, 0.92);
  mask-image: radial-gradient(
    circle at var(--machine-x) var(--machine-y),
    #000 0 7rem,
    rgba(0, 0, 0, 0.82) 9rem,
    transparent 15rem
  );
  -webkit-mask-image: radial-gradient(
    circle at var(--machine-x) var(--machine-y),
    #000 0 7rem,
    rgba(0, 0, 0, 0.82) 9rem,
    transparent 15rem
  );
}

body.breach-mode .vector-card::after,
body.breach-mode .command-deck::before,
body.breach-mode .evidence-console::before {
  animation-duration: 2.8s;
}

@keyframes codeDrift {
  from {
    transform: translateX(calc(var(--line-shift, -10vw) - 7rem));
  }
  to {
    transform: translateX(calc(var(--line-shift, -10vw) + 7rem));
  }
}

@keyframes terminalIn {
  from {
    opacity: 0;
    transform: translateY(0.8rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes terminalRowIn {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ghostFlicker {
  0%,
  100% {
    opacity: 0.34;
  }
  42% {
    opacity: 0.72;
  }
  56% {
    opacity: 0.18;
  }
}

@keyframes introGrid {
  to {
    background-position: 8rem 8rem;
  }
}

@keyframes introButtonSweep {
  0%,
  44% {
    transform: translateX(-120%);
  }
  66%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes introExit {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(10px);
  }
}

@keyframes cursorSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cursorScan {
  0%,
  100% {
    opacity: 0.38;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

@keyframes markPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(255, 176, 0, 0));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 176, 0, 0.48));
  }
}

@keyframes gridSurge {
  to {
    background-position: 8rem 8rem;
  }
}

@keyframes radarSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes nodePing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.72);
  }
}

@keyframes titleVoltage {
  0%,
  88%,
  100% {
    transform: translateX(0);
    filter: none;
  }
  89% {
    transform: translateX(-2px);
    filter: drop-shadow(8px 0 0 rgba(196, 98, 45, 0.28));
  }
  90% {
    transform: translateX(2px);
    filter: drop-shadow(-8px 0 0 rgba(110, 200, 255, 0.22));
  }
  91% {
    transform: translateX(0);
    filter: none;
  }
}

@keyframes buttonCharge {
  0%,
  100% {
    box-shadow: 0 0 34px rgba(255, 176, 0, 0.24);
  }
  50% {
    box-shadow: 0 0 58px rgba(255, 176, 0, 0.42);
  }
}

@keyframes panelSweep {
  0%,
  54% {
    transform: translateX(-120%);
  }
  74%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes caretBlink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes tagBlink {
  0%,
  84%,
  100% {
    border-color: rgba(255, 179, 77, 0.24);
  }
  85%,
  88% {
    border-color: rgba(255, 176, 0, 0.7);
  }
}

@keyframes cardSweep {
  0% {
    transform: translateY(-110%);
  }
  42%,
  100% {
    transform: translateY(260%);
  }
}

@keyframes ringJitter {
  0%,
  91%,
  100% {
    filter: none;
  }
  92% {
    filter: hue-rotate(32deg) brightness(1.3);
  }
  94% {
    filter: hue-rotate(-24deg) brightness(0.8);
  }
}

@keyframes protocolSweep {
  0%,
  38% {
    transform: translateX(-120%);
  }
  56%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes evidencePulse {
  0%,
  100% {
    border-left-color: rgba(255, 179, 77, 0.48);
  }
  50% {
    border-left-color: rgba(255, 176, 0, 0.75);
  }
}

@keyframes dataBar {
  0%,
  100% {
    transform: scaleX(0.16);
    opacity: 0.3;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.9;
  }
}

@keyframes footerTicker {
  from {
    transform: translateX(15%);
  }
  to {
    transform: translateX(-8%);
  }
}

@keyframes radarBreath {
  0%,
  100% {
    transform: scale(0.985) rotate(0deg);
  }
  50% {
    transform: scale(1.015) rotate(4deg);
  }
}

@keyframes alertIn {
  from {
    opacity: 0;
    transform: translateX(1.1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes alertOut {
  to {
    opacity: 0;
    transform: translateX(1rem) scale(0.96);
  }
}

@keyframes alertSweep {
  0%,
  35% {
    transform: translateX(-120%);
  }
  62%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes alertFlicker {
  0%,
  92%,
  100% {
    filter: none;
  }
  93% {
    filter: brightness(1.35) saturate(1.2);
  }
  94% {
    filter: brightness(0.88);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  nav {
    justify-content: flex-end;
  }

  .nav-cta,
  .hero-panel {
    display: none;
  }

  .hero {
    min-height: 110svh;
    padding-bottom: 11rem;
  }

  .command-deck,
  .surface-layout,
  .protocol-sticky,
  .console-body,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }

  .command-deck {
    bottom: 2rem;
  }

  .simulation-terminal__window {
    height: min(720px, calc(100svh - 1.2rem));
  }

  .surface-copy {
    position: relative;
    top: auto;
  }
}

@media (max-width: 720px) {
  .intro-gate::after {
    opacity: 0.34;
  }

  .intro-content {
    width: min(100% - 1rem, 760px);
    gap: 0.8rem;
  }

  .intro-word {
    min-height: clamp(8rem, 42vw, 12rem);
  }

  .intro-word text {
    font-size: 168px;
  }

  .intro-kicker {
    font-size: 0.7rem;
  }

  .intro-enter {
    min-height: 3rem;
    padding: 0.8rem 0.96rem;
    font-size: 0.74rem;
  }

  .topbar nav {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12.2vw, 3.9rem);
    line-height: 0.94;
  }

  h2 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .hero-radar {
    width: 108vw;
  }

  .hero-stage {
    min-height: auto;
    padding-block: 2.5rem 1.5rem;
  }

  .hero-copy {
    gap: 0.9rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .command-deck {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 0.75rem;
  }

  .deck-grid,
  .vector-board {
    grid-template-columns: 1fr;
  }

  .vector-card {
    min-height: 21rem;
  }

  .risk-ring {
    width: 6.4rem;
  }

  .protocol-step {
    grid-template-columns: 1fr;
  }

  .cursor-orbit {
    display: none;
  }

  .simulation-alerts {
    top: auto;
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    width: auto;
    max-height: 48svh;
  }

  .simulation-alert {
    padding: 0.78rem 0.82rem 0.84rem;
  }

  .simulation-alert p,
  .simulation-alert small {
    font-size: 0.72rem;
    line-height: 1.42;
  }

  .simulation-terminal {
    padding: 0.45rem;
  }

  .simulation-terminal__window {
    width: calc(100vw - 0.9rem);
    height: calc(100svh - 0.9rem);
  }

  .simulation-terminal__bar {
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    padding: 0.72rem;
  }

  .terminal-lights {
    display: none;
  }

  .simulation-terminal__close {
    padding: 0.5rem 0.58rem;
  }

  .terminal-output {
    padding: 0.82rem;
    font-size: 0.72rem;
  }

  .terminal-prompt {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.72rem;
  }

  .terminal-alert h3 {
    font-size: 0.84rem;
  }

  .terminal-alert p,
  .terminal-alert small {
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
