:root {
  --bg: #090a0c;
  --panel: #121419;
  --panel-2: #181b22;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #8e96a3;
  --text: #f4f6f8;
  --red: #e10600;
  --cyan: #27f4d2;
  --amber: #ffb000;
  --blue: #3671c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.14), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 58px),
    linear-gradient(180deg, #090a0c 0%, #0d1014 58%, #090a0c 100%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-mark {
  width: 24px;
  height: 12px;
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 0 24%, var(--red) 24% 42%, transparent 42% 58%, var(--cyan) 58% 76%, transparent 76%),
    #22262e;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 10px;
  color: #c5cbd3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links a:hover {
  border-color: rgba(225, 6, 0, 0.45);
  color: #fff;
  background: rgba(225, 6, 0, 0.12);
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px 8px 38px;
  background: rgba(18, 20, 25, 0.82);
  color: #f4f6f8;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f4f6f8;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}

.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 18px; }
.menu-toggle span:nth-child(3) { top: 25px; }

.menu-toggle em {
  color: #c5cbd3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar.menu-open .menu-toggle span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}

.topbar.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.menu-open .menu-toggle span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 54px 0 42px;
}

.hero-copy,
.hero-visual,
.content-panel,
.interactive-panel,
.stage,
.feature-card,
.paper-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    rgba(18, 20, 25, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  padding: clamp(24px, 4vw, 38px);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #ffb2ae;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  border: 1px solid rgba(225, 6, 0, 0.45);
  border-radius: 4px;
  padding: 7px 10px;
  background: rgba(225, 6, 0, 0.14);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 740px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.88;
  text-shadow: 0 0 28px rgba(225, 6, 0, 0.32);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.55rem;
  line-height: 1;
}

p {
  color: #c5cbd3;
  line-height: 1.62;
}

p a {
  color: #9ff7e8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(39, 244, 210, 0.45);
  text-underline-offset: 3px;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  background: rgba(9, 10, 12, 0.45);
}

.metric-value {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.hero-visual {
  padding: 18px;
  overflow: hidden;
}

.track-card {
  position: relative;
  min-height: 460px;
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(225, 6, 0, 0.13), transparent 28%),
    radial-gradient(circle at 70% 20%, rgba(39, 244, 210, 0.18), transparent 28%),
    #0c0f13;
}

.track-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.track-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 410px;
}

.track-shadow,
.track-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.track-shadow {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 34;
}

.track-line {
  stroke: url("#trackGradient");
  stroke-width: 14;
  filter: url("#glow");
  stroke-dasharray: 900;
  animation: drawTrack 4s ease-in-out infinite alternate;
}

@keyframes drawTrack {
  from { stroke-dashoffset: 260; }
  to { stroke-dashoffset: 0; }
}

.car-dot {
  fill: #fff;
  filter: url("#glow");
}

.forecast-line path {
  fill: none;
  stroke: #ffb000;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: dash 0.8s linear infinite;
}

.forecast-line circle {
  fill: #ffb000;
}

@keyframes dash {
  to { stroke-dashoffset: -18; }
}

.track-readout {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: rgba(9, 10, 12, 0.74);
  color: #c5cbd3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.track-readout strong {
  color: #fff;
}

.section,
.section-grid,
.interactive-panel {
  margin: 28px 0;
  scroll-margin-top: 86px;
}

.section {
  padding-top: 20px;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: start;
}

.section-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.section-heading {
  padding: 8px 0;
}

.content-panel {
  padding: clamp(20px, 3vw, 30px);
}

.formula {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  font-family: "IBM Plex Mono", monospace;
}

.formula span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  background: rgba(9, 10, 12, 0.48);
}

.formula span:nth-child(1),
.formula span:nth-child(5) {
  border-color: rgba(39, 244, 210, 0.36);
}

.interactive-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 34px);
}

.scrubber-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(9, 10, 12, 0.38);
}

.scrub-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
}

#lapPct {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

#lapPhase {
  color: var(--muted);
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.forecast-strip div {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 12px;
  background: rgba(18, 20, 25, 0.7);
}

.forecast-strip span {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.forecast-strip strong {
  display: block;
  margin-top: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.65rem;
}

.reading-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.reading-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 20, 25, 0.76);
}

.reading-strip span {
  display: block;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reading-strip strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 0.92rem;
}

.section-note {
  max-width: 930px;
  margin: 16px 0 0;
  color: #aeb6c0;
}

.architecture-poster {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 18px;
}

.arch-stage {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 15px 14px;
  background: linear-gradient(180deg, rgba(22, 25, 31, 0.96), rgba(13, 15, 19, 0.96));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.42);
}

.arch-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--ac);
  box-shadow: 0 0 16px var(--ac);
}

.arch-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.arch-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--ac);
  color: #0b0d10;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.arch-stage h3 {
  font-size: 1.2rem;
}

.arch-caption {
  margin: 6px 0 12px 36px;
  color: #8e96a3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.arch-arrow {
  display: flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
}

.arch-arrow svg {
  width: 34px;
  height: 34px;
}

.arch-arrow path {
  fill: var(--red);
  filter: drop-shadow(0 0 8px rgba(225, 6, 0, 0.55));
  animation: nudge 1.6s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.raw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.raw-grid span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 8px 9px;
  background: rgba(18, 20, 25, 0.7);
  color: #eef1f4;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.raw-grid span::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 7px var(--dot);
}

.arch-divider {
  height: 1px;
  margin: 14px 0 11px;
  background: rgba(255, 255, 255, 0.1);
}

.mini-label {
  margin: 0 0 9px;
  color: var(--ac);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.context-stack {
  display: grid;
  gap: 7px;
}

.context-stack span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #ffd98a;
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(18, 20, 25, 0.6);
  color: #dfe3e8;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.context-stack span:first-child {
  border-left-color: #9cc0ff;
}

.distance-strip {
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 14px),
    linear-gradient(90deg, #ffffff, #f0a9a6 55%, #e10600);
  background-size: 200% 100%;
  animation: distanceFlow 4s linear infinite;
}

@keyframes distanceFlow {
  to { background-position: 200% 0; }
}

.distance-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #8e96a3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
}

.model-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 12px;
  background: rgba(18, 20, 25, 0.66);
}

.model-card svg {
  width: 44px;
  height: 38px;
  flex: 0 0 auto;
}

.model-card path,
.model-card line,
.model-card rect {
  fill: none;
  stroke: #b48ef7;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.model-card strong {
  display: block;
  color: #f1f3f5;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.02rem;
  line-height: 1;
  text-transform: uppercase;
}

.model-card span {
  display: block;
  margin-top: 4px;
  color: #8e96a3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
}

.gru-stack {
  position: relative;
  display: flex;
  flex-direction: column;
}

.gru-stack .spark {
  position: absolute;
  left: -9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 11px var(--cyan);
  animation: fall 2.7s ease-in-out infinite;
}

@keyframes fall {
  0% { top: 4%; opacity: 0.15; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 82%; opacity: 0.15; }
}

.gru-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(54, 113, 198, 0.5);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(14, 18, 28, 0.92);
}

.gru-cell span {
  width: 34px;
  color: #9cc0ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
}

.gru-cell strong {
  color: #9cc0ff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.04rem;
}

.gru-cell em {
  margin-left: auto;
  color: #7f8896;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  font-style: normal;
}

.gru-stack b {
  width: 2px;
  height: 11px;
  margin: 0 auto;
  background: var(--blue);
  opacity: 0.55;
}

.gru-stack small {
  color: var(--blue);
  font-size: 0.95rem;
  line-height: 0.9;
  text-align: center;
}

.context-branch {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  border: 1px dashed rgba(180, 142, 247, 0.6);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(20, 18, 30, 0.6);
}

.context-branch strong {
  color: #cdbcff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
}

.context-branch span {
  color: #8e96a3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.54rem;
}

.remaining-gate {
  margin-top: 12px;
  border-radius: 999px;
  padding: 10px;
  background: linear-gradient(90deg, #e10600, #a50400);
  box-shadow: 0 6px 20px rgba(225, 6, 0, 0.32);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.gauge {
  display: block;
  width: 100%;
  max-width: 188px;
  margin: 2px auto 0;
}

.gauge path,
.gauge line {
  fill: none;
  stroke-linecap: round;
}

.gauge-bg {
  stroke: #272b33;
  stroke-width: 9;
}

.gauge-red {
  stroke: var(--red);
  stroke-width: 9;
}

.ticks line {
  stroke: #5a626d;
  stroke-width: 2;
}

.needle {
  transform-origin: 100px 100px;
  animation: sweepNeedle 3.6s ease-in-out infinite;
}

.needle line {
  stroke: #f4f6f8;
  stroke-width: 3;
}

.gauge circle {
  fill: #f4f6f8;
}

@keyframes sweepNeedle {
  0%, 100% { transform: rotate(-32deg); }
  50% { transform: rotate(34deg); }
}

.gauge-label,
.gauge-sub {
  display: block;
  text-align: center;
}

.gauge-label {
  margin-top: 2px;
  color: #f1f3f5;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.04rem;
  text-transform: uppercase;
}

.gauge-sub {
  margin-top: 4px;
  color: #8e96a3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
}

.ig-heat {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.ig-heat span {
  flex: 1;
  height: 26px;
  animation: heatPulse 2s ease-in-out infinite alternate;
}

.ig-heat span:nth-child(1) { background: #fff; animation-delay: 0s; }
.ig-heat span:nth-child(2) { background: #fbdad9; animation-delay: 0.1s; }
.ig-heat span:nth-child(3) { background: #f7b5b3; animation-delay: 0.2s; }
.ig-heat span:nth-child(4) { background: #f3908d; animation-delay: 0.3s; }
.ig-heat span:nth-child(5) { background: #ef6b67; animation-delay: 0.4s; }
.ig-heat span:nth-child(6) { background: #eb4640; animation-delay: 0.5s; }
.ig-heat span:nth-child(7) { background: #e62120; animation-delay: 0.6s; }
.ig-heat span:nth-child(8) { background: #e10600; animation-delay: 0.7s; }

@keyframes heatPulse {
  from { filter: brightness(0.78); }
  to { filter: brightness(1.18); }
}

.ig-labels {
  display: flex;
  margin-top: 5px;
}

.ig-labels span {
  flex: 1;
  color: #8e96a3;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  text-align: center;
}

.mini-track {
  display: block;
  width: 150px;
  margin: 11px auto 0;
}

.mini-track path {
  fill: none;
  stroke: #e10600;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(225, 6, 0, 0.42));
}

.mini-track circle {
  fill: var(--red);
  stroke: #fff;
  stroke-width: 1.4;
}

.pipeline,
.feature-grid,
.paper-grid {
  display: grid;
  gap: 12px;
}

.pipeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.stage {
  position: relative;
  min-height: 210px;
  padding: 64px 18px 18px;
}

.stage-number {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.feature-card {
  border-left: 4px solid var(--feature);
  padding: 16px;
}

.feature-card span,
.paper-card span {
  color: var(--feature, #ffb2ae);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ig-flow {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.ig-flow span,
.ig-flow strong {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: rgba(9, 10, 12, 0.45);
}

.ig-flow i {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--cyan) 0 10px,
      transparent 10px 18px
    );
  background-size: 28px 8px;
  animation: dashRight 0.7s linear infinite;
}

@keyframes dashRight {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

@keyframes dashDown {
  from { background-position: 0 0; }
  to { background-position: 0 28px; }
}

.ig-flow strong {
  border-color: rgba(225, 6, 0, 0.52);
  color: #ffb2ae;
  font-style: normal;
}

.callout {
  border: 1px solid rgba(39, 244, 210, 0.34);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(39, 244, 210, 0.08);
  color: #d7dce2;
  line-height: 1.55;
}

.callout strong {
  color: #9ff7e8;
}

.paper-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.paper-card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  border-top: 3px solid var(--paper);
  padding: 16px 17px;
}

.paper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.paper-tag {
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.paper-venue {
  color: #9aa2ad;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  white-space: nowrap;
}

.paper-card h3 {
  margin-top: 10px;
  color: #f4f6f8;
  font-size: 1.28rem;
  line-height: 1.05;
}

.paper-authors {
  margin: 6px 0 10px;
  color: #9aa2ad;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  line-height: 1.45;
}

.paper-card p:not(.paper-authors) {
  margin: 0;
  color: #cdd4dc;
  font-size: 0.84rem;
  line-height: 1.5;
}

.paper-card strong {
  color: #fff;
}

.paper-card a {
  margin-top: auto;
  padding-top: 12px;
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.paper-card a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--paper);
  text-underline-offset: 4px;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
  color: #6f7782;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-align: center;
}

.footer p {
  margin: 5px 0;
  color: #7f8792;
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .section-grid.reverse,
  .interactive-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .pipeline,
  .feature-grid,
  .paper-grid,
  .reading-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-poster {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .arch-arrow {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0;
    padding: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      max-height 0.28s ease,
      opacity 0.2s ease,
      transform 0.24s ease,
      margin-top 0.24s ease;
  }

  .topbar.menu-open .nav-links {
    max-height: 280px;
    margin-top: 14px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(18, 20, 25, 0.72);
  }

  main,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-metrics,
  .forecast-strip,
  .pipeline,
  .feature-grid,
  .paper-grid,
  .reading-strip {
    grid-template-columns: 1fr;
  }

  .architecture-poster {
    margin-top: 14px;
    gap: 16px;
  }

  .arch-stage {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
  }

  .arch-stage::before {
    height: 3px;
  }

  .arch-head {
    align-items: flex-start;
  }

  .arch-number {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 1.15rem;
  }

  .arch-stage h3 {
    font-size: 1.55rem;
    line-height: 0.95;
  }

  .arch-caption {
    margin: 8px 0 14px;
    font-size: 0.62rem;
  }

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

  .raw-grid span,
  .context-stack span {
    min-height: 38px;
    font-size: 1rem;
  }

  .model-card {
    align-items: flex-start;
    padding: 12px;
  }

  .model-card svg {
    width: 38px;
    height: 34px;
  }

  .model-card strong {
    font-size: 1.08rem;
  }

  .gru-cell {
    min-height: 42px;
  }

  .gru-cell span {
    width: 42px;
  }

  .context-branch {
    align-items: flex-start;
  }

  .remaining-gate {
    border-radius: 7px;
    line-height: 1.1;
  }

  .gauge {
    max-width: 210px;
  }

  .ig-heat span {
    height: 30px;
  }

  .ig-labels span {
    font-size: 0.48rem;
  }

  .mini-track {
    width: min(190px, 100%);
  }

  .track-readout,
  .scrub-topline,
  .formula {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ig-flow {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 8px;
  }

  .ig-flow span,
  .ig-flow strong {
    text-align: center;
  }

  .ig-flow i {
    justify-self: center;
    width: 8px;
    height: 42px;
    overflow: visible;
    background:
      repeating-linear-gradient(
        180deg,
        var(--cyan) 0 10px,
        transparent 10px 18px
      );
    background-size: 8px 28px;
    box-shadow: none;
    animation: dashDown 0.7s linear infinite;
  }

  .ig-flow i::before {
    display: none;
  }

  .ig-flow i::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--cyan);
    border-bottom: 2px solid var(--cyan);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.85;
  }
}
