/* Prefrontal Node — immersive interaction layer
   Progressive enhancement only. Core content remains usable without JavaScript. */

:root {
  --wow-teal: #35eee1;
  --wow-cyan: #45cfff;
  --wow-blue: #4d7dff;
  --wow-violet: #8f68ff;
  --wow-green: #64f0a7;
  --wow-amber: #ffd277;
  --wow-danger: #ff7895;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  --scroll-ratio: 0;
}

html { color-scheme: dark; }
body.wow-experience { isolation: isolate; }
body.wow-experience::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(42rem 42rem at var(--pointer-x) var(--pointer-y), rgba(42, 225, 214, .055), transparent 66%),
    linear-gradient(90deg, transparent 49.8%, rgba(90, 175, 220, .022) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(90, 175, 220, .018) 50%, transparent 50.2%);
  background-size: auto, 92px 92px, 92px 92px;
}

/* Fine-pointer aura */
.cursor-aura,
.cursor-core {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity .25s ease;
}
.cursor-aura {
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 236, 222, .08), rgba(62, 171, 255, .035) 34%, transparent 70%);
  filter: blur(8px);
  mix-blend-mode: screen;
}
.cursor-core {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid rgba(117, 255, 243, .72);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(53, 238, 225, .8);
}
body.pointer-active .cursor-aura,
body.pointer-active .cursor-core { opacity: 1; }
body.pointer-over-control .cursor-aura { transform-origin: center; filter: blur(5px); }
body.pointer-over-control .cursor-core { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: rgba(50, 233, 220, .1); }

/* Global dimensional polish */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 227, 217, .65), rgba(62, 137, 255, .45), transparent);
  transform: scaleX(calc(.12 + var(--scroll-ratio) * .88));
  transform-origin: left center;
  opacity: .55;
}

.hero-copy h1 span {
  position: relative;
  display: inline-block;
  background-size: 180% 100%;
  animation: wow-gradient-shift 5.5s ease-in-out infinite alternate;
}
.hero-copy h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.1em;
  height: .08em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(49, 232, 222, .9), rgba(66, 180, 255, .75), transparent);
  filter: blur(.5px);
  transform-origin: left;
  animation: wow-underline 2.4s cubic-bezier(.22,1,.36,1) both .55s;
}

.logo-core {
  --logo-rx: 0deg;
  --logo-ry: 0deg;
  transform: perspective(700px) rotateX(var(--logo-rx)) rotateY(var(--logo-ry)) translateZ(0);
  transition: transform .12s linear;
  overflow: visible;
}
.logo-core::before,
.logo-core::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  border: 1px solid rgba(57, 237, 224, .23);
  animation: wow-core-ring 3.4s ease-out infinite;
}
.logo-core::after { animation-delay: 1.7s; }
.logo-core img { animation: wow-core-breathe 4.8s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(42, 224, 214, .25)); }

.control-window {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  transform: perspective(1500px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translate3d(0,0,0);
  transition: transform .18s ease-out, border-color .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.control-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--glow-x) var(--glow-y), rgba(66, 233, 221, .1), transparent 44%);
  opacity: .75;
}
.control-window.console-cycle { animation: wow-console-pulse .55s ease; }
.control-window .window-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53,238,225,.65), transparent);
  animation: wow-scan-x 4.2s linear infinite;
}
.runtime-pill i { animation: wow-status-ping 1.7s ease-out infinite; }
.signal-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 32%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #55efe2, transparent);
  filter: drop-shadow(0 0 6px #46e8da);
  animation: wow-signal-run 2.8s linear infinite;
}
.event-stream > div { transition: opacity .28s ease, transform .28s ease, background .28s ease; }
.event-stream > div.live-event-enter { animation: wow-event-enter .5s cubic-bezier(.2,.8,.2,1) both; background: linear-gradient(90deg, rgba(42,214,205,.07), transparent); }
.trace-bars span { animation: wow-trace-bars 1.4s ease-in-out infinite alternate; transform-origin: bottom; }
.trace-bars span:nth-child(2) { animation-delay: -.9s; }
.trace-bars span:nth-child(3) { animation-delay: -.35s; }
.trace-bars span:nth-child(4) { animation-delay: -.7s; }
.trace-bars span:nth-child(5) { animation-delay: -.15s; }
.score-ring { animation: wow-score-orbit 7s linear infinite; }
.score-ring span { animation: wow-score-counter-orbit 7s linear infinite; }

/* Architecture packets */
.architecture-board { position: relative; overflow: hidden; }
.architecture-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 20%, rgba(70, 239, 225, .035) 48%, transparent 76%);
  transform: translateX(-70%);
  animation: wow-board-sweep 7s ease-in-out infinite;
}
.arch-packet {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wow-teal);
  box-shadow: 0 0 8px var(--wow-teal), 0 0 18px rgba(53,238,225,.48);
  pointer-events: none;
  opacity: 0;
}
.arch-packet.packet-a { left: 23%; top: 47%; animation: wow-packet-horizontal 4.4s linear infinite; }
.arch-packet.packet-b { right: 23%; top: 47%; animation: wow-packet-horizontal-reverse 5.2s linear infinite 1.2s; }
.arch-packet.packet-c { left: 49.6%; top: 16%; animation: wow-packet-vertical 4.8s linear infinite 2.1s; }
.arch-core { isolation: isolate; }
.arch-core::after {
  content: "";
  position: absolute;
  inset: 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50, 234, 220, .18), transparent 64%);
  filter: blur(16px);
  animation: wow-core-halo 3s ease-in-out infinite;
}
.core-control.active { box-shadow: 0 0 28px rgba(42,221,211,.15), inset 0 0 18px rgba(42,221,211,.05); }

/* Tilt and responsive light */
.wow-tilt {
  --rx: 0deg;
  --ry: 0deg;
  --shine-x: 50%;
  --shine-y: 50%;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0,0,0);
  transform-style: preserve-3d;
  transition: transform .22s ease-out, border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.wow-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--shine-x) var(--shine-y), rgba(120,255,241,.11), transparent 54%);
  opacity: 0;
  transition: opacity .22s ease;
}
.wow-tilt:hover::after { opacity: 1; }
.wow-tilt > * { position: relative; z-index: 1; }
.capability-card:hover { box-shadow: 0 24px 70px rgba(0,0,0,.32), 0 0 34px rgba(38,210,202,.08); }

.button, .nav-cta, .scenario-tab, .rerun-button {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
}
.button::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 22%, rgba(255,255,255,.3) 46%, transparent 68%);
  transform: translateX(-130%);
}
.button:hover::after { animation: wow-button-sheen .85s ease; }

/* LIVE DECISION SIMULATOR */
.signal-lab-section {
  position: relative;
  padding-top: 104px;
  background:
    radial-gradient(44rem 30rem at 72% 45%, rgba(30, 179, 189, .095), transparent 70%),
    linear-gradient(180deg, rgba(1,8,20,.2), rgba(4,20,43,.52), rgba(1,8,20,.15));
  overflow: hidden;
}
.signal-lab-section::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(70, 230, 218, .3), transparent);
}
.signal-lab-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 42px;
}
.signal-lab-heading h2 { margin: 12px 0 0; font-size: clamp(44px,5vw,72px); line-height: .98; letter-spacing: -.05em; }
.signal-lab-heading h2 span { color: var(--teal-soft); }
.signal-lab-heading > p { max-width: 580px; margin: 0 0 5px; color: #849ab6; font-size: 14px; line-height: 1.75; }
.signal-lab {
  position: relative;
  display: grid;
  grid-template-columns: 245px minmax(0,1fr);
  min-height: 640px;
  border: 1px solid rgba(80, 202, 210, .25);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(4,25,52,.93), rgba(2,11,28,.98));
  box-shadow: 0 40px 100px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.025), 0 0 80px rgba(25,186,185,.04);
  overflow: hidden;
}
.signal-lab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(84,154,196,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84,154,196,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.scenario-rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 18px;
  border-right: 1px solid rgba(100,170,207,.13);
  background: rgba(1,10,25,.45);
}
.scenario-rail::before { content: "SCENARIOS"; margin: 0 10px 12px; color: #55708d; font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.scenario-tab {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 3px 10px;
  min-height: 88px;
  padding: 17px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #7d96b2;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.scenario-tab > span { grid-row: 1/3; align-self: start; color: #3d5c78; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.scenario-tab strong { color: #aec3d9; font-size: 12px; }
.scenario-tab small { color: #55718e; font-size: 8px; letter-spacing: .04em; }
.scenario-tab::after { content: ""; position: absolute; left: -19px; top: 18px; bottom: 18px; width: 2px; border-radius: 4px; background: linear-gradient(var(--wow-teal), var(--wow-cyan)); transform: scaleY(0); transition: transform .25s ease; }
.scenario-tab:hover { color: white; background: rgba(32,172,181,.055); }
.scenario-tab.active { border-color: rgba(61,220,210,.2); color: white; background: linear-gradient(110deg, rgba(32,199,192,.12), rgba(54,117,199,.055)); box-shadow: inset 0 0 24px rgba(28,202,193,.035); }
.scenario-tab.active::after { transform: scaleY(1); }
.scenario-tab.active strong { color: #e9fbff; }
.scenario-tab.active small { color: #76b8c7; }

.decision-surface { position: relative; z-index: 2; min-width: 0; padding: 0 34px 34px; }
.decision-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin: 0 -34px 26px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(91,162,201,.12);
  color: #5d7896;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.decision-topbar > div { display: flex; align-items: center; gap: 9px; }
.decision-topbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--wow-green); box-shadow: 0 0 0 5px rgba(100,240,167,.07), 0 0 12px rgba(100,240,167,.7); animation: wow-status-ping 1.8s ease-out infinite; }
.rerun-button { border: 1px solid rgba(95,171,205,.18); border-radius: 999px; padding: 8px 12px; color: #85a8c3; background: rgba(6,26,53,.65); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.rerun-button:hover { color: #dcfbff; border-color: rgba(53,238,225,.38); background: rgba(20,129,143,.15); }

.decision-request {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 18px;
  margin-bottom: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(104,176,216,.15);
  border-radius: 15px;
  background: linear-gradient(100deg, rgba(7,34,67,.74), rgba(5,20,43,.68));
  overflow: hidden;
}
.decision-request::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--wow-teal), var(--wow-blue)); }
.decision-request small { grid-column: 1/-1; color: #51738f; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.decision-request p { margin: 0; color: #c9dced; font-size: 13px; line-height: 1.55; }
.decision-request > span { align-self: center; padding: 6px 9px; border: 1px solid rgba(80,221,205,.16); border-radius: 999px; color: #71c8ca; background: rgba(29,178,174,.07); font-size: 8px; white-space: nowrap; }

.decision-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(82px,1fr) 22px) minmax(82px,1fr);
  align-items: center;
  gap: 5px;
  margin: 0 0 30px;
}
.decision-pipeline > b { color: #365a76; font-size: 13px; text-align: center; transition: color .28s ease, filter .28s ease; }
.decision-pipeline > b.lit { color: var(--wow-teal); filter: drop-shadow(0 0 6px rgba(53,238,225,.8)); }
.decision-node {
  position: relative;
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 2px 8px;
  min-height: 74px;
  padding: 15px 12px;
  border: 1px solid rgba(102,165,204,.13);
  border-radius: 13px;
  background: rgba(3,16,35,.78);
  overflow: hidden;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.decision-node > span { grid-row: 1/3; color: #36556f; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.decision-node > i { position: absolute; right: 11px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: #29465e; }
.decision-node strong { color: #93aac2; font-size: 10px; }
.decision-node small { color: #46617d; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.decision-node.running { transform: translateY(-3px); border-color: rgba(62,230,219,.46); background: linear-gradient(145deg, rgba(22,123,133,.22), rgba(4,20,43,.8)); box-shadow: 0 10px 30px rgba(0,0,0,.2), 0 0 22px rgba(42,222,211,.08); }
.decision-node.running > i { background: var(--wow-teal); box-shadow: 0 0 0 5px rgba(53,238,225,.08), 0 0 11px rgba(53,238,225,.8); animation: wow-status-ping 1.1s ease-out infinite; }
.decision-node.complete { border-color: rgba(96,240,167,.25); }
.decision-node.complete > i { background: var(--wow-green); box-shadow: 0 0 9px rgba(100,240,167,.65); }
.decision-node.complete strong { color: #c7f8dc; }

.simulation-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 16px; }
.simulation-terminal,
.simulation-outcome { min-width: 0; border: 1px solid rgba(99,164,201,.13); border-radius: 15px; background: rgba(2,12,28,.72); overflow: hidden; }
.terminal-title { display: flex; justify-content: space-between; align-items: center; min-height: 41px; padding: 0 16px; border-bottom: 1px solid rgba(98,163,199,.11); color: #56728e; font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.terminal-title em { color: #4e887f; font-style: normal; }
.terminal-lines { min-height: 170px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; line-height: 1.75; }
.terminal-line { display: grid; grid-template-columns: 56px 9px 1fr auto; gap: 8px; align-items: center; color: #7890aa; opacity: 0; transform: translateY(7px); animation: wow-terminal-line .35s ease forwards; }
.terminal-line time { color: #3f5c77; }
.terminal-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--wow-teal); box-shadow: 0 0 7px rgba(53,238,225,.55); }
.terminal-line strong { color: #9ebbd0; font-weight: 650; }
.terminal-line em { color: #4c6f87; font-style: normal; white-space: nowrap; }
.simulation-outcome { padding: 21px; background: radial-gradient(circle at 100% 0%, rgba(47,205,196,.1), transparent 15rem), rgba(3,15,34,.76); }
.outcome-label { display: block; margin-bottom: 12px; color: #56738d; font-size: 7px; font-weight: 850; letter-spacing: .16em; }
.simulation-outcome > strong { display: block; color: var(--wow-green); font-size: 18px; line-height: 1.1; text-shadow: 0 0 18px rgba(100,240,167,.16); }
.simulation-outcome > p { min-height: 60px; margin: 12px 0 17px; color: #718ba6; font-size: 9px; line-height: 1.65; }
.simulation-outcome dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; border-top: 1px solid rgba(94,160,198,.11); }
.simulation-outcome dl div { min-width: 0; padding: 14px 8px 0 0; border-right: 1px solid rgba(94,160,198,.09); }
.simulation-outcome dl div:last-child { border-right: 0; padding-left: 8px; }
.simulation-outcome dt { overflow: hidden; color: #d4e8f4; font-size: 9px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.simulation-outcome dd { margin: 4px 0 0; color: #405e7a; font-size: 6px; text-transform: uppercase; letter-spacing: .09em; }
.signal-lab.sim-running .decision-request { animation: wow-request-pulse .6s ease; }

/* Scroll energy across section backgrounds */
.section { --section-glow: 0; }
.section.section-in-focus { --section-glow: 1; }
.capabilities-section::after,
.architecture-section::after,
.use-cases-section::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41,211,202, calc(.045 * var(--section-glow))), transparent 70%);
  pointer-events: none;
  transition: opacity .8s ease;
}
.capabilities-section::after { right: -180px; top: 20%; }
.architecture-section::after { left: -240px; top: 24%; }
.use-cases-section::after { right: -230px; top: 20%; }

/* Mobile: keep the wow, lose the cost */
@media (max-width: 1080px) {
  .signal-lab-heading { grid-template-columns: 1fr; gap: 20px; }
  .signal-lab-heading > p { max-width: 720px; }
  .signal-lab { grid-template-columns: 210px minmax(0,1fr); }
  .decision-pipeline { grid-template-columns: repeat(4, minmax(68px,1fr) 16px) minmax(68px,1fr); }
  .decision-node { padding-inline: 9px; }
}

@media (max-width: 820px) {
  .cursor-aura, .cursor-core { display: none; }
  .control-window { transform: none !important; }
  .wow-tilt { transform: none !important; }
  .signal-lab-section { padding-top: 82px; }
  .signal-lab { display: block; min-height: 0; border-radius: 22px; }
  .scenario-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px,1fr));
    gap: 9px;
    padding: 13px;
    border-right: 0;
    border-bottom: 1px solid rgba(100,170,207,.13);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .scenario-rail::-webkit-scrollbar { display: none; }
  .scenario-rail::before { display: none; }
  .scenario-tab { scroll-snap-align: center; min-height: 74px; padding: 13px 12px; }
  .scenario-tab::after { left: 12px; right: 12px; top: auto; bottom: -14px; width: auto; height: 2px; transform: scaleX(0); }
  .scenario-tab.active::after { transform: scaleX(1); }
  .decision-surface { padding: 0 20px 22px; }
  .decision-topbar { margin-inline: -20px; padding-inline: 20px; }
  .decision-pipeline { grid-template-columns: repeat(5, minmax(96px,1fr)); overflow-x: auto; gap: 10px; padding: 6px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .decision-pipeline::-webkit-scrollbar { display: none; }
  .decision-pipeline > b { display: none; }
  .decision-node { scroll-snap-align: center; min-height: 82px; }
  .simulation-grid { grid-template-columns: 1fr; }
  .simulation-terminal { order: 2; }
  .simulation-outcome { order: 1; }
  .simulation-outcome > p { min-height: 0; }
  .terminal-lines { min-height: 145px; }
  .arch-packet { display: none; }
}

@media (max-width: 590px) {
  body.wow-experience::before { background-size: auto, 64px 64px, 64px 64px; }
  .hero-copy h1 span::after { height: .06em; }
  .logo-core::before, .logo-core::after { inset: -12%; }
  .signal-lab-heading h2 { font-size: clamp(38px,11vw,52px); }
  .signal-lab-heading > p { font-size: 13px; }
  .signal-lab { margin-inline: -2px; }
  .scenario-rail { grid-template-columns: repeat(3, minmax(155px, 82vw)); }
  .scenario-tab { min-height: 70px; }
  .decision-surface { padding-inline: 13px; }
  .decision-topbar { min-height: 51px; margin-inline: -13px; padding-inline: 13px; }
  .decision-topbar span { max-width: 190px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .decision-request { grid-template-columns: 1fr; padding: 17px; }
  .decision-request p { font-size: 12px; }
  .decision-request > span { justify-self: start; }
  .decision-pipeline { grid-template-columns: repeat(5, minmax(128px, 54vw)); }
  .simulation-outcome { padding: 18px 16px; }
  .simulation-outcome > strong { font-size: 16px; }
  .simulation-outcome dl { grid-template-columns: 1fr; }
  .simulation-outcome dl div,
  .simulation-outcome dl div:last-child { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-right: 0; border-bottom: 1px solid rgba(94,160,198,.08); }
  .simulation-outcome dl div:last-child { border-bottom: 0; }
  .simulation-outcome dd { text-align: right; }
  .terminal-line { grid-template-columns: 48px 7px 1fr; }
  .terminal-line em { display: none; }
  .terminal-lines { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1 span,
  .hero-copy h1 span::after,
  .logo-core::before,
  .logo-core::after,
  .logo-core img,
  .runtime-pill i,
  .signal-line::after,
  .trace-bars span,
  .score-ring,
  .score-ring span,
  .architecture-board::before,
  .decision-topbar i,
  .decision-node.running > i { animation: none !important; }
  .cursor-aura, .cursor-core, .arch-packet { display: none !important; }
  .control-window, .wow-tilt, .button, .nav-cta, .scenario-tab, .rerun-button { transform: none !important; }
}

@keyframes wow-gradient-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes wow-underline { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes wow-core-ring { 0% { transform: scale(.72); opacity: 0; } 22% { opacity: .65; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes wow-core-breathe { 0%,100% { transform: scale(.98); } 50% { transform: scale(1.035); } }
@keyframes wow-console-pulse { 0% { filter: brightness(1); } 45% { filter: brightness(1.17) saturate(1.12); } 100% { filter: brightness(1); } }
@keyframes wow-scan-x { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes wow-status-ping { 0% { box-shadow: 0 0 0 0 rgba(100,240,167,.32); } 100% { box-shadow: 0 0 0 9px rgba(100,240,167,0); } }
@keyframes wow-signal-run { from { transform: translate(-110%, -50%); } to { transform: translate(420%, -50%); } }
@keyframes wow-event-enter { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes wow-trace-bars { from { transform: scaleY(.45); opacity: .5; } to { transform: scaleY(1); opacity: 1; } }
@keyframes wow-score-orbit { to { transform: rotate(376deg); } }
@keyframes wow-score-counter-orbit { to { transform: rotate(-376deg); } }
@keyframes wow-board-sweep { 0%,18% { transform: translateX(-75%); opacity: 0; } 45% { opacity: 1; } 72%,100% { transform: translateX(75%); opacity: 0; } }
@keyframes wow-packet-horizontal { 0%,10% { transform: translateX(0); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 90%,100% { transform: translateX(300px); opacity: 0; } }
@keyframes wow-packet-horizontal-reverse { 0%,10% { transform: translateX(0); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 90%,100% { transform: translateX(-300px); opacity: 0; } }
@keyframes wow-packet-vertical { 0%,10% { transform: translateY(0); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 90%,100% { transform: translateY(250px); opacity: 0; } }
@keyframes wow-core-halo { 0%,100% { transform: scale(.88); opacity: .48; } 50% { transform: scale(1.12); opacity: .95; } }
@keyframes wow-button-sheen { to { transform: translateX(130%); } }
@keyframes wow-terminal-line { to { opacity: 1; transform: translateY(0); } }
@keyframes wow-request-pulse { 0% { box-shadow: 0 0 0 0 rgba(53,238,225,.25); } 100% { box-shadow: 0 0 0 18px rgba(53,238,225,0); } }

/* Keep internal horizontal rails from ever shifting the page itself. */
html, body { overflow-x: clip; }
.signal-lab,
.signal-lab-heading,
.decision-surface,
.decision-pipeline,
.simulation-grid,
.scenario-rail { min-width: 0; max-width: 100%; }
.scenario-rail,
.decision-pipeline,
.arch-scroll,
.use-case-tabs { contain: inline-size; }
.terminal-line { grid-template-columns: 56px 9px minmax(0,1fr) auto; }
.terminal-line strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-line em { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.badge-high { color: #ffd9a0 !important; border-color: rgba(255,200,105,.24) !important; background: rgba(255,178,75,.08) !important; }
.badge-medium { color: #a8ddff !important; border-color: rgba(88,180,255,.24) !important; background: rgba(61,139,255,.08) !important; }
@media (max-width: 1160px) {
  .site-nav[aria-hidden="true"]:not(.open) { display: none; }
}
@media (max-width: 820px) {
  .terminal-line { grid-template-columns: 48px 7px minmax(0,1fr); }
}

@media (max-width: 590px) {
  .decision-pipeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding-inline: 0;
    overflow: hidden;
    contain: layout inline-size;
  }
  .decision-node {
    display: flex;
    min-width: 0;
    min-height: 70px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 14px 3px 8px;
    text-align: center;
  }
  .decision-node > span {
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 6px;
  }
  .decision-node > i { right: 6px; top: 7px; width: 5px; height: 5px; }
  .decision-node strong { max-width: 100%; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .decision-node small { display: none; }
}
