:root {
  color-scheme: dark;
  --bg: #020714;
  --bg-2: #06122a;
  --panel: rgba(6, 16, 38, 0.78);
  --panel-strong: rgba(7, 22, 48, 0.94);
  --line: rgba(91, 238, 255, 0.22);
  --line-bright: rgba(91, 238, 255, 0.62);
  --text: #ecfbff;
  --muted: #9eb5c6;
  --cyan: #43e2ff;
  --cyan-2: #00f0ff;
  --magenta: #ff4ff2;
  --violet: #9b5cff;
  --gold: #ffd24c;
  --orange: #ff8f34;
  --green: #6aff7a;
  --red: #ff5675;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(67, 226, 255, 0.28), transparent 34rem),
    radial-gradient(circle at 18% 12%, rgba(255, 79, 242, 0.18), transparent 25rem),
    radial-gradient(circle at 82% 25%, rgba(255, 210, 76, 0.10), transparent 28rem),
    linear-gradient(180deg, #020714 0%, #050814 44%, #030711 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  z-index: -2;
  background-image:
    linear-gradient(rgba(67,226,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,226,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 12%, black, transparent 76%);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100vw;
  height: 100vh;
  background: #020714;
}
.aurora-layer {
  position: fixed;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  background:
    conic-gradient(from 190deg at 42% 38%, transparent, rgba(0, 240, 255, 0.16), transparent, rgba(255, 79, 242, 0.16), transparent),
    radial-gradient(circle at 68% 54%, rgba(155, 92, 255, 0.16), transparent 28%),
    radial-gradient(circle at 32% 42%, rgba(255, 143, 52, 0.10), transparent 23%);
  filter: blur(40px) saturate(1.25);
  animation: auroraShift 26s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  from { transform: translate3d(-2%, 1%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(2%, -1%, 0) rotate(8deg) scale(1.08); }
}

img, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(67, 226, 255, .28); color: white; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--cyan);
  color: #00111b;
  padding: .75rem 1rem;
  border-radius: 999px;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px clamp(14px, 3vw, 30px);
  backdrop-filter: blur(18px) saturate(1.25);
  background: linear-gradient(180deg, rgba(2, 7, 20, .88), rgba(2, 7, 20, .58));
  border-bottom: 1px solid rgba(67, 226, 255, .12);
}
.nav-shell {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 76, .34), transparent 34%),
    linear-gradient(135deg, rgba(67, 226, 255, .28), rgba(255, 79, 242, .18));
  border: 1px solid rgba(67, 226, 255, .46);
  font-family: var(--mono);
  font-weight: 900;
  color: #fffbe8;
  letter-spacing: -.04em;
  box-shadow: 0 0 28px rgba(67, 226, 255, .22);
}
.brand-copy { display: grid; gap: .1rem; }
.brand-copy strong { font-size: .98rem; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .13em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid rgba(67, 226, 255, .14);
  background: rgba(4, 13, 30, .62);
  border-radius: 999px;
  padding: .35rem;
}
.nav-links a {
  padding: .65rem .88rem;
  color: #d7edf6;
  border-radius: 999px;
  font-size: .88rem;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible {
  background: rgba(67, 226, 255, .12);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(67, 226, 255, .22);
  outline: none;
}
.nav-toggle {
  display: none;
  border: 1px solid rgba(67, 226, 255, .32);
  background: rgba(67, 226, 255, .08);
  color: var(--text);
  border-radius: 999px;
  padding: .65rem .95rem;
}

.section-shell {
  width: min(var(--content), calc(100% - clamp(28px, 6vw, 72px)));
  margin: 0 auto;
}
.hero {
  min-height: calc(100svh - 82px);
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vw, 112px) 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.eyebrow, .card-kicker, .tiny-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--cyan);
  font-size: .78rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
}
.pulse-dot {
  display: inline-block;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(106, 255, 122, .7);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(106, 255, 122, .5); }
  70% { box-shadow: 0 0 0 12px rgba(106, 255, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(106, 255, 122, 0); }
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  line-height: .86;
  letter-spacing: -.075em;
  margin-bottom: 1.2rem;
  max-width: 10ch;
  text-wrap: balance;
  background: linear-gradient(120deg, #ffffff 0%, #cffaff 26%, #ffeffd 56%, #ffd24c 84%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 54px rgba(67, 226, 255, .16);
}
h2 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 900px;
  text-wrap: balance;
}
h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  letter-spacing: -.025em;
}
p {
  color: var(--muted);
  line-height: 1.66;
}
.hero-lede {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 710px;
}
.hero-actions, .console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.8rem 0 1.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .84rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 226, 255, .34);
  background: rgba(67, 226, 255, .08);
  color: var(--text);
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn.primary {
  border: 0;
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), #fff091 55%, #ff8f34);
  box-shadow: 0 0 42px rgba(67, 226, 255, .26), 0 14px 40px rgba(255, 143, 52, .18);
}
.btn.ghost { background: rgba(255, 255, 255, .035); }
.btn.small { min-height: 40px; padding: .62rem .9rem; font-size: .9rem; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0, 240, 255, .18); outline: none; }
.hero-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  max-width: 720px;
  padding: .95rem 1rem;
  border: 1px solid rgba(67, 226, 255, .25);
  border-radius: 18px;
  background: rgba(2, 9, 24, .66);
  box-shadow: inset 0 0 34px rgba(67, 226, 255, .07);
  font-family: var(--mono);
  color: #eaffff;
}
.hero-formula b { color: var(--gold); }
.hero-note { font-size: .92rem; color: #bfd4e1; }
.hero-visual { perspective: 1200px; }
.holo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(67, 226, 255, .28);
  background: linear-gradient(135deg, rgba(67, 226, 255, .08), rgba(255, 79, 242, .08));
  box-shadow: var(--shadow), 0 0 80px rgba(67, 226, 255, .18);
  transform-style: preserve-3d;
}
.holo-card img { display: block; width: 100%; height: auto; }
.hero-card {
  transform: rotateX(3deg) rotateY(-7deg);
  animation: floatCard 8s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: rotateX(3deg) rotateY(-7deg) translateY(0); }
  50% { transform: rotateX(5deg) rotateY(-3deg) translateY(-10px); }
}
.scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(67, 226, 255, .24), transparent);
  height: 42%;
  transform: translateY(-110%);
  animation: scanline 5.2s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scanline {
  to { transform: translateY(260%); }
}
.hero-card-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border-radius: 18px;
  padding: .85rem 1rem;
  background: rgba(2, 7, 20, .74);
  border: 1px solid rgba(67, 226, 255, .28);
  backdrop-filter: blur(16px);
  font-family: var(--mono);
  color: var(--cyan);
}
.hero-card-overlay strong { color: white; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(36px, 5vw, 70px);
}
.stat-strip article, .pathway-card, .law-card, .benchmark-card, .control-panel, .sim-panel, .data-panel, .chart-card, .download-card, .zenodo-console, .claim-list article, .media-card {
  border: 1px solid rgba(67, 226, 255, .18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(4, 13, 30, .72);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(18px) saturate(1.15);
}
.stat-strip article {
  border-radius: 20px;
  padding: 1.05rem;
}
.stat-strip span {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 0 26px rgba(67, 226, 255, .48);
}
.stat-strip p { margin: .2rem 0 0; font-size: .86rem; }

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 32px 0 66px;
}
.pathway-card {
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 2vw, 1.65rem);
  min-height: 230px;
}
.pathway-card.luminous {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 79, 242, .18), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(67, 226, 255, .20), transparent 42%),
    rgba(4, 13, 30, .78);
}
.card-kicker { display: inline-block; margin-bottom: .8rem; color: var(--gold); }
.pathway-card h2 { font-size: clamp(1.35rem, 2.1vw, 2rem); letter-spacing: -.04em; margin-bottom: .7rem; }

.section-heading {
  margin-bottom: clamp(24px, 4vw, 44px);
}
.section-heading p:not(.eyebrow) { max-width: 850px; }
.projection-section, .architecture-section, .benchmark-section, .downloads-section, .disclaimer-section, .science-story {
  padding: clamp(58px, 8vw, 112px) 0;
}
.projection-grid {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  grid-template-areas:
    "controls sim"
    "data data";
  gap: 1rem;
}
.control-panel { grid-area: controls; }
.sim-panel { grid-area: sim; min-width: 0; }
.data-panel { grid-area: data; }
.control-panel, .sim-panel, .data-panel, .chart-card {
  border-radius: var(--radius-lg);
}
.control-panel {
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.control-panel::before, .sim-panel::before, .zenodo-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(67,226,255,.09) 42%, transparent 47%);
  transform: translateX(-130%);
  animation: panelSweep 9s ease-in-out infinite;
}
@keyframes panelSweep { 55%, 100% { transform: translateX(130%); } }
.panel-header, .sim-toolbar, .chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.panel-header {
  justify-content: flex-start;
  margin-bottom: 1.2rem;
}
.panel-header h3, .sim-toolbar h3, .chart-head h3 { margin: 0; }
.panel-header p, .tiny-label { margin: .2rem 0 0; }
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  border: 1px solid rgba(67, 226, 255, .28);
  border-radius: 999px;
  padding: .35rem .6rem;
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cyan);
  background: rgba(67, 226, 255, .08);
}
.status-chip.online { color: var(--green); border-color: rgba(106, 255, 122, .28); background: rgba(106, 255, 122, .08); }
label, legend {
  display: block;
  color: #d8eff6;
  font-size: .86rem;
  font-weight: 700;
  margin: .95rem 0 .45rem;
}
select, input[type="range"] { width: 100%; }
select {
  min-height: 46px;
  color: var(--text);
  background: rgba(0, 10, 26, .9);
  border: 1px solid rgba(67, 226, 255, .24);
  border-radius: 14px;
  padding: 0 .85rem;
  outline: none;
}
select:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(67, 226, 255, .72);
  outline-offset: 2px;
}
.view-toggle {
  border: 0;
  padding: 0;
  margin: 1rem 0 0;
}
.view-toggle legend { margin-bottom: .55rem; }
.view-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}
.view-toggle legend { grid-column: 1 / -1; }
.mode {
  border: 1px solid rgba(67, 226, 255, .18);
  border-radius: 999px;
  padding: .56rem .65rem;
  background: rgba(255,255,255,.035);
  color: #d7edf6;
  font-size: .8rem;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.mode.active {
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), #fff091);
  border-color: transparent;
  font-weight: 800;
}
.slider-set output {
  float: right;
  color: var(--gold);
  font-family: var(--mono);
}
input[type="range"] {
  accent-color: var(--cyan);
  height: 26px;
}
.fine-print {
  font-size: .78rem;
  color: #91aab9;
  margin: .8rem 0 0;
}
.sim-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}
.sim-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}
.sim-badges .status-chip { font-size: .68rem; }
.canvas-wrap {
  position: relative;
  height: clamp(420px, 62vw, 650px);
  margin-top: 1rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(67, 226, 255, .16);
  background:
    radial-gradient(circle at 50% 50%, rgba(67,226,255,.12), transparent 38%),
    radial-gradient(circle at 50% 52%, rgba(255,79,242,.10), transparent 52%),
    #020713;
}
#fieldCanvas {
  display: block;
  width: 100%;
  height: 100%;
}
.canvas-hud {
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: rgba(236, 251, 255, .82);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.canvas-hud span {
  border: 1px solid rgba(67, 226, 255, .18);
  border-radius: 999px;
  padding: .35rem .55rem;
  background: rgba(2,7,20,.55);
}
.data-panel {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 1rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .85rem;
}
.metric-card {
  border: 1px solid rgba(67, 226, 255, .16);
  background: rgba(4, 13, 30, .72);
  border-radius: 18px;
  padding: .92rem;
}
.metric-card small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .66rem;
  margin-bottom: .35rem;
}
.metric-card strong {
  display: block;
  color: white;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}
.metric-card em {
  display: block;
  margin-top: .25rem;
  font-style: normal;
  color: var(--cyan);
  font-size: .78rem;
}
.chart-card {
  padding: 1rem;
  min-width: 0;
}
#curveCanvas {
  display: block;
  width: 100%;
  height: 315px;
  border-radius: 18px;
  margin-top: .9rem;
  background: rgba(0, 7, 19, .58);
  border: 1px solid rgba(67, 226, 255, .12);
}
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .8rem;
  color: #cfe5ef;
  font-size: .82rem;
}
.legend { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }
.legend.obs { background: var(--cyan); box-shadow: 0 0 12px rgba(67,226,255,.8); }
.legend.bar { background: var(--gold); box-shadow: 0 0 12px rgba(255,210,76,.65); }
.legend.phase { background: var(--magenta); box-shadow: 0 0 12px rgba(255,79,242,.65); }

.architecture-grid, .benchmark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.law-card, .benchmark-card {
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  position: relative;
  overflow: hidden;
}
.glow-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(67,226,255,.55), transparent 28%, rgba(255,79,242,.45) 62%, transparent);
  opacity: .28;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}
.formula-block {
  padding: .85rem;
  border-radius: 14px;
  background: rgba(0, 9, 24, .82);
  border: 1px solid rgba(255, 210, 76, .2);
  color: #fff8df;
  font-family: var(--mono);
  line-height: 1.5;
}
.image-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.image-cards.diagnostics {
  grid-template-columns: repeat(4, 1fr);
}
.media-card {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.media-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: rgba(255,255,255,.92);
}
.media-card figcaption {
  padding: .9rem 1rem 1rem;
  color: #b7cfdb;
  font-size: .87rem;
  line-height: 1.5;
}
.benchmark-card.big-number span {
  display: block;
  font-family: var(--mono);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
  font-weight: 950;
  color: var(--cyan);
  text-shadow: 0 0 38px rgba(67, 226, 255, .45);
}
.benchmark-card.big-number.amber span {
  color: var(--gold);
  text-shadow: 0 0 38px rgba(255,210,76,.32);
}
.science-story {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}
.timeline {
  list-style: none;
  display: grid;
  gap: .85rem;
  padding: 0;
  margin: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: .75rem 1rem;
  padding: 1rem;
  border: 1px solid rgba(67, 226, 255, .16);
  background: rgba(4, 13, 30, .64);
  border-radius: 18px;
}
.timeline li span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(67,226,255,.22), rgba(255,79,242,.18));
  border: 1px solid rgba(67, 226, 255, .25);
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 900;
}
.timeline strong { align-self: end; font-size: 1.05rem; }
.timeline p { grid-column: 2; margin: -.3rem 0 0; }
.handoff-section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.handoff-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  margin-bottom: 1rem;
}
.handoff-hero h2 {
  margin-bottom: .85rem;
}
.handoff-hero p {
  max-width: 830px;
  color: #b9cedc;
  font-size: 1.03rem;
}
.handoff-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}
.handoff-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(280px, .92fr);
  gap: 1rem;
  align-items: stretch;
}
.handoff-figure,
.handoff-card {
  border: 1px solid rgba(67, 226, 255, .18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018)),
    rgba(4, 13, 30, .72);
  box-shadow: var(--shadow);
}
.handoff-figure {
  margin: 0;
  padding: .85rem;
  border-radius: 26px;
}
.handoff-figure img {
  display: block;
  width: 100%;
  border-radius: 18px;
}
.handoff-figure figcaption {
  margin-top: .7rem;
  color: #91aab9;
  font-size: .9rem;
  line-height: 1.55;
}
.handoff-stack {
  display: grid;
  gap: .85rem;
}
.handoff-card {
  border-radius: 22px;
  padding: clamp(1rem, 2vw, 1.35rem);
}
.handoff-card span {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.handoff-card h3 {
  margin-bottom: .55rem;
  color: white;
}
.handoff-card p {
  margin-bottom: 0;
  color: #aecadc;
  line-height: 1.65;
}
.handoff-card.caution {
  border-color: rgba(255, 210, 76, .28);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,210,76,.13), transparent 48%),
    rgba(4, 13, 30, .72);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.download-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  min-height: 168px;
  display: grid;
  align-content: space-between;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, rgba(67,226,255,.16), transparent 34%);
}
.download-card span {
  justify-self: start;
  border: 1px solid rgba(67, 226, 255, .3);
  border-radius: 999px;
  padding: .28rem .5rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .72rem;
}
.download-card strong { position: relative; font-size: 1.05rem; line-height: 1.35; }
.download-card small { position: relative; color: var(--muted); line-height: 1.5; }
.download-card:hover, .download-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(67, 226, 255, .5);
  box-shadow: 0 24px 80px rgba(0, 240, 255, .12);
}
.zenodo-console {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, .08), rgba(255, 79, 242, .035)),
    rgba(0, 8, 22, .84);
}
.terminal-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--mono);
  color: #d7faff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin-bottom: .85rem;
}
.terminal-title span {
  width: .68rem;
  height: .68rem;
  border-radius: 50%;
  background: var(--red);
}
.terminal-title span:nth-child(2) { background: var(--gold); }
.terminal-title span:nth-child(3) { background: var(--green); margin-right: .35rem; }
.zenodo-links {
  display: grid;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .9rem;
}
.zenodo-links a {
  color: var(--cyan);
  border: 1px solid rgba(67, 226, 255, .14);
  border-radius: 12px;
  padding: .8rem;
  background: rgba(255,255,255,.025);
  overflow-wrap: anywhere;
}
.zenodo-links a:hover, .zenodo-links a:focus-visible { background: rgba(67, 226, 255, .08); }
.disclaimer-grid {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}
.claim-list {
  display: grid;
  gap: 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.claim-list article {
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}
.claim-list strong { color: white; }
.claim-list p { margin: .3rem 0 0; }
.site-footer {
  width: min(var(--content), calc(100% - clamp(28px, 6vw, 72px)));
  margin: 0 auto;
  padding: 40px 0 54px;
  border-top: 1px solid rgba(67, 226, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
}
.site-footer p { max-width: 820px; font-size: .86rem; }
.footer-contact {
  margin-top: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.footer-contact strong { color: var(--text); }
.footer-contact a { overflow-wrap: anywhere; }
.site-footer a { color: var(--cyan); font-family: var(--mono); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: .6rem;
    background: rgba(2, 7, 20, .96);
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  h1 { max-width: 12ch; }
  .hero-card { max-width: 720px; margin: 0 auto; }
  .projection-grid { grid-template-columns: 1fr; grid-template-areas: "controls" "sim" "data"; }
  .control-panel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 1rem; }
  .panel-header, .view-toggle, .console-actions, .fine-print { grid-column: 1 / -1; }
  .data-panel { grid-template-columns: 1fr; }
  .image-cards.diagnostics { grid-template-columns: repeat(2, 1fr); }
  .science-story { grid-template-columns: 1fr; }
}

@media (max-width: 840px) {
  .site-header { padding: 10px 14px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: .6rem;
    background: rgba(2, 7, 20, .96);
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
  .brand-copy small { display: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .intro-band, .architecture-grid, .benchmark-grid, .download-grid, .disclaimer-grid { grid-template-columns: 1fr; }
  .handoff-hero, .handoff-grid { grid-template-columns: 1fr; }
  .handoff-actions { justify-content: flex-start; }
  .image-cards { grid-template-columns: 1fr; }
  .control-panel { grid-template-columns: 1fr; }
  .canvas-wrap { height: 540px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .section-shell, .site-footer { width: min(100% - 24px, var(--content)); }
  .hero { padding-top: 38px; }
  h1 { font-size: clamp(2.75rem, 16vw, 4.2rem); }
  h2 { font-size: clamp(1.85rem, 10vw, 3rem); }
  .hero-formula { font-size: .82rem; }
  .hero-card-overlay { position: static; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .stat-strip { grid-template-columns: 1fr; }
  .view-toggle { grid-template-columns: 1fr; }
  .canvas-wrap { height: 470px; border-radius: 18px; }
  .canvas-hud { display: none; }
  .metrics-grid { grid-template-columns: 1fr; }
  #curveCanvas { height: 270px; }
  .image-cards.diagnostics { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 52px 1fr; padding: .88rem; }
  .timeline li span { width: 42px; height: 42px; border-radius: 13px; }
  .handoff-actions .btn { width: 100%; justify-content: center; }
  .download-card { min-height: 150px; }
}

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

/* RBFL/RBFT 6.0 compact formula and engineering update */
.hero-formula-large {
  font-size: clamp(1.35rem, 3.1vw, 2.55rem);
  padding: 1.15rem 1.25rem;
  max-width: 850px;
  border-color: rgba(255, 210, 76, .45);
  background:
    radial-gradient(circle at 20% 0%, rgba(255,210,76,.16), transparent 34%),
    rgba(2, 9, 24, .78);
  box-shadow: inset 0 0 44px rgba(255,210,76,.08), 0 0 70px rgba(67, 226, 255, .16);
}
.hero-note strong { color: #fff8df; }
.compact-formula-section {
  position: relative;
}
.compact-panel {
  margin: 1.4rem 0 1rem;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(67,226,255,.18), transparent 36%),
    radial-gradient(circle at 82% 10%, rgba(255,79,242,.14), transparent 34%),
    rgba(0, 8, 22, .88);
  border: 1px solid rgba(67, 226, 255, .24);
  box-shadow: var(--shadow), 0 0 90px rgba(67, 226, 255, .13);
}
.compact-equation {
  margin: 0;
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  text-shadow: 0 0 42px rgba(67, 226, 255, .22);
}
.compact-translation {
  margin: 1rem auto 0;
  max-width: 900px;
  color: #fff7d5;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.compact-grid, .engineering-grid {
  display: grid;
  gap: 1rem;
}
.compact-grid { grid-template-columns: repeat(3, 1fr); }
.engineering-grid { grid-template-columns: repeat(2, 1fr); }
.engineering-card {
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 2vw, 1.6rem);
  position: relative;
  overflow: hidden;
  background: rgba(4, 13, 30, .64);
  border: 1px solid rgba(67, 226, 255, .16);
}
.engineering-card ul {
  margin: .75rem 0 1rem 1.1rem;
  padding: 0;
  color: #cfe5ef;
  line-height: 1.65;
}
.engineering-card li { margin-bottom: .35rem; }
.fusion-card {
  border-color: rgba(255, 210, 76, .24);
  background:
    radial-gradient(circle at 80% 0%, rgba(255,210,76,.12), transparent 38%),
    rgba(4, 13, 30, .64);
}
.featured-download {
  border-color: rgba(255, 210, 76, .32) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,210,76,.14), transparent 36%),
    rgba(4, 13, 30, .64);
}

@media (max-width: 980px) {
  .compact-grid, .engineering-grid { grid-template-columns: 1fr; }
  .compact-panel {
    padding: clamp(1rem, 4vw, 1.45rem);
  }
  .compact-equation {
    font-size: clamp(1.28rem, 6vw, 2.15rem);
    line-height: 1.22;
  }
}

@media (max-width: 520px) {
  .compact-equation {
    font-size: clamp(1.05rem, 5.25vw, 1.55rem);
    line-height: 1.28;
  }
  .compact-translation {
    font-size: .98rem;
  }
}


/* === RBFL 3D Sine-Intersection front-page update === */
.logic-shell {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}
.logic-closed-home {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 170px) 0 clamp(72px, 9vw, 128px);
  border-bottom: 1px solid rgba(67, 226, 255, .16);
  background:
    radial-gradient(circle at 12% 12%, rgba(100, 243, 223, .22), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(255, 79, 242, .18), transparent 34rem),
    radial-gradient(circle at 50% 100%, rgba(255, 210, 76, .10), transparent 32rem);
}
.logic-closed-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(67, 226, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 226, 255, .09) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 28%, black, transparent 74%);
}
.logic-hero { position: relative; z-index: 1; text-align: center; }
.logic-eyebrow, .logic-section-kicker {
  margin: 0 0 .8rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
}
.logic-hero h1 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: clamp(3.1rem, 8vw, 7.3rem);
  line-height: .98;
  letter-spacing: -.07em;
  text-shadow: 0 0 45px rgba(67, 226, 255, .22);
}
.logic-lede {
  max-width: 890px;
  margin: 1.4rem auto 0;
  color: #c4d5e2;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}
.logic-law-card {
  max-width: 980px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: clamp(1rem, 2vw, 1.45rem);
  overflow: hidden;
  border: 1px solid rgba(111, 182, 255, .42);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(67, 226, 255, .09), rgba(255, 79, 242, .07)),
    rgba(5, 17, 40, .84);
  box-shadow: var(--shadow), 0 0 60px rgba(67, 226, 255, .11);
}
.logic-law-label {
  display: inline-block;
  color: var(--gold);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 900;
}
.logic-equation {
  margin: .6rem 0 .25rem;
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 850;
  line-height: 1.6;
  font-size: clamp(.78rem, 1.65vw, 1.22rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.logic-law-card p:last-child { margin: .55rem 0 0; color: #b9ccdd; }
.logic-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.55rem;
}
.logic-statement-strip {
  border-block: 1px solid rgba(67, 226, 255, .15);
  background: rgba(3, 11, 28, .82);
}
.logic-statement-strip p {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 1.05rem 0;
  color: #c9d9e4;
  line-height: 1.72;
}
.logic-statement-strip strong { color: white; }
.logic-split, .logic-cards, .logic-mechanism, .logic-proof-status {
  padding: clamp(64px, 8vw, 112px) 0;
}
.logic-split, .logic-proof-status {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  gap: clamp(1.3rem, 4vw, 3.4rem);
  align-items: center;
}
.logic-split-reverse { grid-template-columns: minmax(320px, 1.08fr) minmax(0, .92fr); }
.logic-split-reverse > div { order: 2; }
.logic-split-reverse > figure { order: 1; }
.logic-split h2, .logic-section-head h2, .logic-status-card h2 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.logic-split p, .logic-section-head p, .logic-status-card p {
  color: #afc4d5;
  line-height: 1.75;
  font-size: 1.02rem;
}
.logic-plain-picture {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 210, 76, .28);
  background: rgba(255, 210, 76, .08);
}
.logic-split figure, .logic-mechanism figure, .logic-proof-status figure {
  margin: 0;
  padding: .9rem;
  border-radius: 28px;
  border: 1px solid rgba(67, 226, 255, .18);
  background: rgba(4, 13, 30, .66);
  box-shadow: var(--shadow);
}
.logic-split img, .logic-mechanism img, .logic-proof-status img {
  display: block;
  width: 100%;
  border-radius: 20px;
  background: rgba(255,255,255,.02);
}
.logic-split figcaption, .logic-mechanism figcaption, .logic-proof-status figcaption {
  margin-top: .7rem;
  color: #91aab9;
  font-size: .9rem;
  line-height: 1.55;
}
.logic-section-head { max-width: 910px; margin-bottom: 1.4rem; }
.logic-center { text-align: center; margin-inline: auto; }
.logic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.logic-card, .logic-rule, .logic-status-card {
  border: 1px solid rgba(67, 226, 255, .18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(4, 13, 30, .72);
  box-shadow: 0 22px 70px rgba(0,0,0,.24);
  padding: clamp(1.15rem, 2vw, 1.45rem);
}
.logic-card h3, .logic-rule strong { color: white; margin: 0 0 .55rem; }
.logic-card p, .logic-rule p { color: #aecadc; line-height: 1.65; }
.logic-mini-equation { font-family: var(--mono); color: var(--cyan) !important; }
.logic-mechanism-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, .85fr);
  gap: 1rem;
  align-items: stretch;
}
.logic-rule-boxes { display: grid; gap: .85rem; }
.logic-rule span {
  display: block;
  margin-bottom: .45rem;
  color: var(--gold);
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.logic-rule strong { display: block; font-family: var(--mono); font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
.logic-rule-amp { border-color: rgba(255, 210, 76, .36); background: radial-gradient(circle at 18% 0%, rgba(255,210,76,.16), transparent 50%), rgba(4,13,30,.72); }
.logic-rule-cancel { border-color: rgba(106, 255, 122, .26); background: radial-gradient(circle at 18% 0%, rgba(106,255,122,.12), transparent 50%), rgba(4,13,30,.72); }
.logic-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
  margin-top: 1.25rem;
}
.logic-chain span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: .65rem;
  border-radius: 16px;
  color: #00111d;
  background: linear-gradient(135deg, var(--cyan), #fff091);
  font-weight: 900;
  text-align: center;
  font-size: .82rem;
}
.logic-proof-status {
  border-block: 1px solid rgba(67, 226, 255, .12);
  background: rgba(0, 10, 26, .28);
}
.logic-callout {
  margin: -1.2rem 0 1.4rem;
  border: 1px solid rgba(255, 210, 76, .24);
  border-radius: 20px;
  background: rgba(255, 210, 76, .07);
  padding: 1rem 1.15rem;
  color: #d9ecf4;
  line-height: 1.65;
}
.primary-paper { border-color: rgba(255, 210, 76, .42) !important; }
.zenodo-paper { border-color: rgba(67, 226, 255, .42) !important; }
.download-card[href*="zenodo"] span, .zenodo-paper span { background: rgba(67, 226, 255, .18); color: var(--cyan); }
@media (max-width: 980px) {
  .logic-split, .logic-split-reverse, .logic-proof-status, .logic-mechanism-grid { grid-template-columns: 1fr; }
  .logic-split-reverse > div, .logic-split-reverse > figure { order: initial; }
  .logic-card-grid { grid-template-columns: 1fr; }
  .logic-chain { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .logic-chain { grid-template-columns: 1fr; }
  .logic-hero h1 { letter-spacing: -.05em; }
  .logic-law-card {
    padding: .9rem;
    border-radius: 22px;
  }
  .logic-equation {
    font-size: clamp(.62rem, 2.6vw, .82rem);
    line-height: 1.45;
  }
}
