:root {
  --ink:        #f4f7fb;
  --muted:      rgba(226, 233, 244, 0.62);
  --accent-cyan:#8bdcff;
  --accent-gold:#d9b560;
  --accent-rose:#ff8fa3;
  --accent-lime:#b9ff66;
  --font:       'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; width: 100%; height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  /* LOCK: Prevent ALL scrolling/drifting */
  position: fixed;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

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

/* ── shared phase shell ─────────────────────────────────────── */
.phase {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  /* LOCK: Prevent drift, no transforms */
  transform: translate3d(0, 0, 0);
  will-change: auto;
  backface-visibility: hidden;
}

/* ── video background (both phases) ────────────────────────── */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   PHASE 1
══════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   PHASE 1 — HIDDEN (DELETED LANDING PAGE)
══════════════════════════════════════════════════════════════ */
.phase--entry {
  display: none;
  background: #000;
}

#smoke-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* VYRDON button — absolutely centered, positioned lower, embedded into background */
.enter-mark {
  position: absolute;
  left: 50%;
  top: 55%;  /* Lower: ~1.5in down from center */
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  outline: none;
  isolation: isolate;
  opacity: 0;
  margin: 0;
}

.wordmark-core {
  display: block;
  position: relative;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(180, 210, 255, 0.7);
  /* EMBEDDED into background: darker, blended, integrated */
  text-shadow:
    2px 2px 0px rgba(60, 90, 140, 0.6),
    4px 4px 0px rgba(40, 70, 120, 0.5),
    6px 6px 0px rgba(30, 50, 100, 0.4),
    8px 8px 0px rgba(20, 35, 80, 0.3),
    10px 10px 0px rgba(10, 20, 60, 0.2),
    12px 12px 0px rgba(0, 0, 0, 0.4),
    0px 0px 20px rgba(80, 150, 220, 0.25),
    0px 0px 35px rgba(80, 150, 220, 0.1);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
  transition: all 0.3s ease;
  mix-blend-mode: overlay;
}

.v-mark {
  /* V: GOLD, embedded styling */
  color: #FFD700;
  font-weight: 600;
  text-shadow:
    2px 2px 0px rgba(160, 120, 0, 0.6),
    4px 4px 0px rgba(140, 100, 0, 0.5),
    6px 6px 0px rgba(120, 80, 0, 0.4),
    8px 8px 0px rgba(100, 60, 0, 0.3),
    10px 10px 0px rgba(80, 40, 0, 0.2),
    12px 12px 0px rgba(0, 0, 0, 0.4),
    0px 0px 15px rgba(255, 215, 0, 0.4),
    0px 0px 30px rgba(255, 215, 0, 0.15);
}

.enter-mark:hover .wordmark-core,
.enter-mark:focus-visible .wordmark-core {
  text-shadow:
    0 0 60px rgba(255, 255, 255, 0.50),
    0 0 130px rgba(139, 220, 255, 0.28);
}

/* ══════════════════════════════════════════════════════════════
   PHASE 2 — NOW DEFAULT (SHOWN IMMEDIATELY)
══════════════════════════════════════════════════════════════ */
.phase--plates {
  opacity: 1;
  background: #020810;
}

/* dark overlay so text stays readable over the video */
.beach-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(1, 5, 11, 0.55) 0%,
      rgba(1, 10, 24, 0.20) 42%,
      rgba(1, 5, 14, 0.50) 100%);
  pointer-events: none;
}

/* ── Welcome screen ─────────────────────────────────────────── */
.welcome-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.welcome-line {
  min-height: 1.2em;
  margin: 0;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d8e8f8;
  opacity: 0;
}

/* exact sizes per line */
#wl-1 { font-size: 48px; }
#wl-2 { font-size: 38px; }
#wl-3 { font-size: 20px; }

.welcome-line--cta {
  margin-top: 0.6rem;
  color: rgba(220, 180, 0, 0.45);
  text-shadow: none;
  cursor: default;
  transition: color 0.3s, text-shadow 0.3s;
}
.welcome-line--cta.clickable {
  cursor: pointer;
  color: #FFD700;
  text-shadow:
    0  1px 0   rgba(255, 240, 80, 0.85),
    0  0   12px rgba(255, 200, 0, 0.60),
    0  0   40px rgba(255, 160, 0, 0.25);
}
.welcome-line--cta.clickable:hover {
  color: #fff0a0;
  text-shadow:
    0  1px 0   rgba(255, 255, 200, 1),
    0  0   20px rgba(255, 210, 0, 0.80),
    0  0   60px rgba(255, 170, 0, 0.40);
}

/* ── Plate layer ────────────────────────────────────────────── */
.plate-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

/* ── HUD overlays — 18px metallic white ────────────────────── */
.hud {
  position: absolute;
  z-index: 10;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8e4f0;
  text-shadow: 0 0 18px rgba(200,220,255,0.22), 0 1px 3px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0;
}
.hud-tl { top: 1.2rem; left: 1.8rem; pointer-events: none; }
.hud-tr {
  top: 1.2rem; right: 1.8rem;
  display: flex; align-items: center;
  gap: 0.55rem;
  max-width: 48vw;
}
.news-label {
  color: #FFD700;
  letter-spacing: 0.3em;
  font-size: 16px;
  flex-shrink: 0;
}
.news-sep { color: rgba(200,215,240,0.30); flex-shrink: 0; }
#news-ticker {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.07em;
  color: rgba(205,222,248,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38vw;
  text-transform: none;
  text-shadow: none;
}
.hud-bl { bottom: 1.5rem; left: 1.8rem; }

/* ── Digital clock (inside #hud-tl) ─────────────────────────── */
#digital-clock {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
#dclock-time {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #e8eeff;
  text-shadow: 0 0 14px rgba(200,220,255,0.30);
}
#dclock-date {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255,215,0,0.82);
}

/* ── Three status balls (bottom-right) — metallic ───────────── */
.hud-balls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.8rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: auto;
  opacity: 0;
}
.ball {
  display: block;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, filter 0.15s;
}
.ball:hover { transform: scale(1.3); filter: brightness(1.25); }
.ball-red {
  background: radial-gradient(circle at 38% 32%, #ff8178, #b52018);
  box-shadow: 0 2px 8px rgba(200,50,40,0.55), inset 0 1px 2px rgba(255,200,190,0.3);
}
.ball-yellow {
  background: radial-gradient(circle at 38% 32%, #ffe066, #c08000);
  box-shadow: 0 2px 8px rgba(200,150,0,0.55), inset 0 1px 2px rgba(255,240,160,0.3);
}
.ball-green {
  background: radial-gradient(circle at 38% 32%, #5ef07a, #1a8c30);
  box-shadow: 0 2px 8px rgba(30,160,60,0.55), inset 0 1px 2px rgba(160,255,180,0.3);
}

/* ── Plate ──────────────────────────────────────────────────── */
.plate {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

/* transparent frame — TL + BR corners only, no full border */
.plate-frame {
  box-sizing: border-box;
  pointer-events: auto;
  position: relative;
  width: min(672px, 92vw);
  aspect-ratio: 7 / 3;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px) clamp(28px, 3.5vw, 44px);
  background: transparent;
  backdrop-filter: none;
  cursor: pointer;
}

/* ── Yellow double-edge corners (TL + BR only) ───────────────── */
.corner {
  position: absolute;
  width: 46px; height: 46px;
  pointer-events: none;
}
.corner::before,
.corner::after {
  content: '';
  position: absolute;
  border-color: #FFD700;
  border-style: solid;
}
.corner::before { inset: 0;   border-width: 2px; }
.corner::after  { inset: 9px; border-width: 1px; border-color: rgba(255,215,0,0.36); }

.corner-tl { top: 0; left: 0; }
.corner-tl::before, .corner-tl::after { border-right: none; border-bottom: none; }

.corner-br { bottom: 0; right: 0; }
.corner-br::before, .corner-br::after { border-left:  none; border-top:    none; }

/* ── Plate header (mark + title, top-left) ──────────────────── */
.plate-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.plate-mark {
  font-size: 13px;
  font-weight: 300;
  color: #FFD700;
  font-family: var(--font);
  opacity: 0.85;
  letter-spacing: 0;
  flex-shrink: 0;
}
.plate-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(255,255,255,0.18), 0 0 18px rgba(200,220,255,0.22), 0 0 32px rgba(0,0,0,0.9);
  font-family: var(--font);
}

/* ── Wave-step content system ───────────────────────────────── */
.plate-signal {
  position: absolute;
  right: clamp(28px, 4vw, 52px);
  top: clamp(28px, 3vw, 42px);
  font-size: clamp(11px, 0.8vw, 14px);
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.72);
  text-align: right;
  text-shadow: 0 0 18px rgba(0,0,0,0.9);
  font-family: var(--font);
  font-weight: 300;
  pointer-events: none;
}
.plate-core {
  margin-top: clamp(18px, 2vw, 28px);
  margin-left: clamp(0px, 2vw, 28px);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  font-family: var(--font);
  color: #e8eeff;
  max-width: 78%;
  text-shadow: 0 0 18px rgba(200,220,255,0.2), 0 0 24px rgba(0,0,0,0.9);
  letter-spacing: 0.04em;
}
.plate-steps {
  margin-top: clamp(14px, 1.4vw, 22px);
  display: grid;
  gap: 6px;
}
.plate-step {
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--font);
  font-weight: 600;
  color: #e8eeff;
  text-shadow: 0 0 18px rgba(200,220,255,0.18), 0 0 20px rgba(0,0,0,0.9);
  letter-spacing: 0.04em;
}
.plate-step:nth-child(1) { margin-left: clamp(24px, 4vw, 70px); }
.plate-step:nth-child(2) { margin-left: clamp(48px, 7vw, 120px); }
.plate-step:nth-child(3) { margin-left: clamp(72px, 10vw, 170px); }
.plate-step:nth-child(4) { margin-left: clamp(96px, 13vw, 220px); }
.plate-step:nth-child(5) { margin-left: clamp(120px, 16vw, 260px); }
.plate-outcome {
  position: absolute;
  left: clamp(34px, 5vw, 70px);
  bottom: clamp(24px, 2.8vw, 38px);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  color: #ffe600;
  letter-spacing: 0.06em;
  text-shadow: 0 0 22px rgba(0,0,0,0.9);
  pointer-events: none;
}
/* ── Square diagram system (MECHANISM, TECHNOLOGY, ROOT) ─────── */
.plate-frame--diag {
  aspect-ratio: auto;
  min-height: 370px;
  max-height: 84vh;
}

.plate-diag {
  margin-top: auto;
  padding-top: clamp(8px, 1vw, 13px);
  border-top: none;
}
.plate-diag-label {
  font-size: 10px;
  font-weight: 300;
  font-family: var(--font);
  letter-spacing: 0.20em;
  color: rgba(255,255,255,0.34);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.plate-diag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.diag-node {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.09em;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07);
  color: #e8eeff;
  white-space: nowrap;
  text-transform: uppercase;
}
.diag-node--gold  { border-color: #FFD700;  background: rgba(255,215,0,0.20);  color: #ffe44d; }
.diag-node--blue  { border-color: #4a9eff;  background: rgba(74,158,255,0.22); color: #a8d4ff; }
.diag-node--red   { border-color: #ff5555;  background: rgba(255,85,85,0.22);  color: #ffaaaa; }
.diag-node--green { border-color: #4dff91;  background: rgba(77,255,145,0.20); color: #4dff91; }
.diag-node--dim   { border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.50); }
.diag-arrow {
  font-size: 13px;
  font-weight: 300;
  font-family: var(--font);
  color: rgba(255,255,255,0.36);
  flex-shrink: 0;
}
.plate-diag-caption {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 300;
  font-style: italic;
  font-family: var(--font);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.30);
}

/* ── Law block (ROOT / TECHNOLOGY leet rules) ───────────────── */
.plate-law {
  margin-top: auto;
  padding-top: clamp(8px, 1vw, 13px);
  border-top: none;
}
.plate-law-label {
  font-size: 10px;
  font-weight: 300;
  font-family: var(--font);
  letter-spacing: 0.20em;
  color: rgba(255,255,255,0.34);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.plate-law-block {
  border: 1px solid rgba(255,215,0,0.20);
  background: rgba(0,0,0,0.28);
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.law-line {
  display: flex;
  align-items: baseline;
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.law-var {
  min-width: 130px;
  color: rgba(255,255,255,0.42);
}
.law-op {
  min-width: 26px;
  color: rgba(255,215,0,0.55);
  text-align: center;
}
.law-val            { color: #e8eeff; }
.law-val--dim       { color: rgba(255,255,255,0.38); }
.law-val--blue      { color: #a8d4ff; }
.law-val--gold      { color: #ffe44d; }
.law-val--green     { color: #4dff91; }
.law-val--nopass    { color: #ff5555; font-weight: 700; }
.law-val--false     { color: #ffaaaa; }
.law-footer {
  margin-top: 5px;
  font-size: 10px;
  font-style: italic;
  font-family: var(--font);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.28);
}

.plate-diag-row--c { justify-content: center; }
.diag-drops {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 1px 0;
}
.diag-drop {
  font-size: 10px;
  font-family: var(--font);
  color: rgba(255,255,255,0.22);
}
.diag-node--xs { font-size: 9px; padding: 2px 7px; letter-spacing: 0.05em; }

/* ══════════════════════════════════════════════════════════════
   ENGINEERING DIAGRAM SYSTEM  (DIGRAM1 / DIGRAM2 / ROOT GATE)
══════════════════════════════════════════════════════════════ */
.eng-diag {
  margin-top: clamp(10px, 1.4vw, 16px);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  font-family: var(--font);
}

/* outer VYRDX bounding box (MECHANISM) */
.eng-diag--vyrdx {
  border: 1px solid rgba(255,215,0,0.25);
  padding: 18px 14px 14px;
  position: relative;
  background: rgba(255,215,0,0.02);
}
.eng-vyrdx-tag {
  position: absolute;
  top: -8px; right: 14px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #FFD700;
  background: rgba(0,8,20,0.95);
  padding: 1px 6px;
  font-family: var(--font);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,215,0,0.8);
}

/* group box */
.eng-group {
  position: relative;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 14px 12px 10px;
  background: rgba(0,0,0,0.20);
}
.eng-group--cyan { border-color: rgba(139,220,255,0.42); background: rgba(139,220,255,0.04); }
.eng-group--gold { border-color: rgba(255,215,0,0.42);   background: rgba(255,215,0,0.04);   }
.eng-group--rose { border-color: rgba(255,143,163,0.42); background: rgba(255,143,163,0.04); }
.eng-group--lime { border-color: rgba(185,255,102,0.42); background: rgba(185,255,102,0.04); }
.eng-group--blue { border-color: rgba(74,158,255,0.42);  background: rgba(74,158,255,0.04);  }
.eng-group--red  { border-color: rgba(255,85,85,0.42);   background: rgba(255,85,85,0.04);   }

/* floating label clipped into border */
.eng-group-label {
  position: absolute;
  top: -8px; left: 10px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1px 6px;
  background: rgba(0,6,18,0.94);
  white-space: nowrap;
  font-family: var(--font);
}
.eng-group--cyan .eng-group-label { color: #8bdcff; text-shadow: 0 0 8px rgba(139,220,255,0.6); }
.eng-group--gold .eng-group-label { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.6);   }
.eng-group--rose .eng-group-label { color: #ff8fa3; text-shadow: 0 0 8px rgba(255,143,163,0.6); }
.eng-group--lime .eng-group-label { color: #b9ff66; text-shadow: 0 0 8px rgba(185,255,102,0.6); }
.eng-group--blue .eng-group-label { color: #4a9eff; text-shadow: 0 0 8px rgba(74,158,255,0.6);  }
.eng-group--red  .eng-group-label { color: #ff5555; text-shadow: 0 0 8px rgba(255,85,85,0.6);   }

/* nodes row */
.eng-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 2px 0;
}
.eng-nodes--col {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
}

/* individual node */
.eng-node {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: #c8d4ea;
  white-space: nowrap;
}
.eng-node--main { font-size: 11px; padding: 5px 16px; letter-spacing: 0.15em; }
.eng-node--cyan { border-color: #8bdcff; color: #8bdcff; background: rgba(139,220,255,0.10); text-shadow: 0 0 7px rgba(139,220,255,0.55); }
.eng-node--gold { border-color: #FFD700; color: #FFD700; background: rgba(255,215,0,0.10);   text-shadow: 0 0 7px rgba(255,215,0,0.55);  }
.eng-node--rose { border-color: #ff8fa3; color: #ff8fa3; background: rgba(255,143,163,0.10); text-shadow: 0 0 7px rgba(255,143,163,0.55); }
.eng-node--lime { border-color: #b9ff66; color: #b9ff66; background: rgba(185,255,102,0.10); text-shadow: 0 0 7px rgba(185,255,102,0.55); }
.eng-node--blue { border-color: #4a9eff; color: #4a9eff; background: rgba(74,158,255,0.10);  text-shadow: 0 0 7px rgba(74,158,255,0.55); }
.eng-node--red  { border-color: #ff5555; color: #ff5555; background: rgba(255,85,85,0.10);   text-shadow: 0 0 7px rgba(255,85,85,0.55); }
.eng-node--dim  { border-color: rgba(255,255,255,0.16); color: rgba(200,215,240,0.52); }

/* vertical connector arrow between rows */
.eng-conn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 14px;
  flex-shrink: 0;
}
.eng-conn::before {
  content: '↓';
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  font-family: monospace;
}

/* inline arrow (inside column node lists) */
.eng-conn-inline {
  font-size: 10px;
  color: rgba(255,255,255,0.26);
  font-family: monospace;
  padding-left: 10px;
  line-height: 1;
}

/* horizontal arrow/separator */
.eng-arrow {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  flex-shrink: 0;
  font-family: monospace;
  line-height: 1;
}

/* side-by-side groups (exec core + intel) */
.eng-mid {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.eng-mid .eng-group { flex: 1; }
.eng-mid-arrow {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(255,215,0,0.55);
  flex-shrink: 0;
  padding: 0 3px;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* gate block (ROOT diagram) */
.eng-gate-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 3px 0;
}
.eng-gate {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* verdict label */
.eng-verdict {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font);
}
.eng-verdict--nopass { color: #ff5555; text-shadow: 0 0 9px rgba(255,85,85,0.65); }
.eng-verdict--pass   { color: #b9ff66; text-shadow: 0 0 9px rgba(185,255,102,0.65); }

/* inline row (mechanism bottom rows) */
.eng-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .plate-frame {
    width: 92vw;
    aspect-ratio: auto;
    min-height: 460px;
    max-height: none;
    padding: 28px;
  }
  .plate-core   { max-width: 100%; margin-left: 0; }
  .plate-step   { margin-left: 0 !important; }
  .plate-outcome{ position: static; margin-top: 20px; }
  .plate-signal { position: static; text-align: left; margin-top: 18px; }
  .plate-diag   { margin-top: 18px; }
  .diag-node    { font-size: 12px; padding: 4px 8px; }
}

/* ── Info modal overlay ──────────────────────────────────────── */
.info-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 5, 14, 0.82);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.info-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.info-modal-inner {
  position: relative;
  width: min(680px, 88vw);
  padding: 2.8rem 3rem 2.4rem;
  border: 1px solid rgba(255,215,0,0.18);
  background: rgba(6, 12, 28, 0.72);
}
.info-modal-inner::before,
.info-modal-inner::after {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border-color: #FFD700;
  border-style: solid;
  border-width: 1.5px;
}
.info-modal-inner::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.info-modal-inner::after  { bottom: 0; right: 0; border-left: none; border-top: none; }
.info-modal-body {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  color: rgba(215, 228, 248, 0.80);
  letter-spacing: 0.06em;
  white-space: pre-line;
}
.info-modal-title {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.6rem;
  text-shadow: 0 0 22px rgba(255,255,255,0.2);
}
.info-modal-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(200,215,240,0.55);
  cursor: pointer;
  transition: color 0.2s;
}
.info-modal-close:hover { color: #FFD700; }

/* ── Cursor ripple ──────────────────────────────────────────── */
.click-ripple {
  position: fixed;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 1px solid rgba(139, 220, 255, 0.7);
  pointer-events: none;
  z-index: 20;
  animation: rippleExpand 1.2s ease-out forwards;
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes rippleExpand { 0%{transform:scale(1);opacity:.82} 70%{transform:scale(22);opacity:.2} 100%{transform:scale(34);opacity:0} }

.corp-footer { display: none; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .plate-frame  { width: min(90vw, 1100px); padding: 2rem 1.2rem; }
  .plate        { padding: 4.5rem 0.6rem 5rem; }
  .corp-right   { display: none; }
}

/* ── Pipeline / Code Diagram System ──────────────────────────── */
.pipe-diag {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pipe-label {
  font-size: 9px;
  font-weight: 400;
  font-family: var(--font);
  letter-spacing: 0.26em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  margin-bottom: 8px;
}
/* horizontal pipeline row */
.pipe-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.p-node {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  text-transform: uppercase;
}
.p-node--gold  { border-color: rgba(255,215,0,0.70);   color: #FFD700;  background: rgba(255,215,0,0.06); }
.p-node--cyan  { border-color: rgba(139,220,255,0.70); color: #8bdcff; background: rgba(139,220,255,0.06); }
.p-node--rose  { border-color: rgba(255,143,163,0.70); color: #ff8fa3; background: rgba(255,143,163,0.06); }
.p-node--lime  { border-color: rgba(185,255,102,0.70); color: #b9ff66; background: rgba(185,255,102,0.06); }
.p-node--blue  { border-color: rgba(74,158,255,0.70);  color: #a8d4ff; background: rgba(74,158,255,0.06); }
.p-node--red   { border-color: rgba(255,85,85,0.70);   color: #ff5555; background: rgba(255,85,85,0.06); }
.p-node--dim   { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.42); background: rgba(0,0,0,0.08); }
.p-arr {
  font-size: 16px;
  color: rgba(255,255,255,0.30);
  flex-shrink: 0;
  font-family: var(--font);
  font-weight: 300;
}
.pipe-caption {
  margin-top: 6px;
  font-size: 10px;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.22);
  font-style: italic;
}
/* code-block for TECHNOLOGY / ROOT */
.pipe-code-block {
  border: 1px solid rgba(255,215,0,0.22);
  background: rgba(0,0,0,0.28);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.code-line {
  display: flex;
  align-items: baseline;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.7;
}
.code-var {
  min-width: 130px;
  color: rgba(255,255,255,0.36);
}
.code-op {
  min-width: 28px;
  color: rgba(255,215,0,0.55);
  text-align: center;
}
.code-val             { color: #e8eeff; }
.code-val--gold       { color: #FFD700; }
.code-val--rose       { color: #ff8fa3; }
.code-val--lime       { color: #b9ff66; }
.code-val--blue       { color: #a8d4ff; }
.code-val--red        { color: #ff5555; font-weight: 900; }
.code-val--dim        { color: rgba(255,255,255,0.32); }
.code-rule {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,85,85,0.18);
  font-size: 12px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #ff5555;
  text-shadow: 0 0 12px rgba(255,85,85,0.45);
}
