:root {
  --bg: #05090b;
  --bg-2: #090f12;
  --panel: #0d1518;
  --panel-2: #111b1e;
  --line: rgba(166, 203, 207, 0.16);
  --line-strong: rgba(166, 203, 207, 0.32);
  --text: #f0f6f5;
  --muted: #8da0a3;
  --accent: #98efd2;
  --cyan: #64d8f1;
  --amber: #f0b86e;
  --rose: #e98c9a;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
a { color: inherit; }

::selection { color: #06100e; background: var(--accent); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #304347; border: 2px solid var(--bg); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 8px 12px;
  color: #04100e;
  background: var(--accent);
  border-radius: 4px;
}
.skip-link:focus { transform: none; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, height .25s;
}
.topbar.scrolled {
  height: 62px;
  background: rgba(5, 9, 11, .88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.brand img, .footer img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(1);
}
.topnav { display: flex; gap: 26px; }
.topnav a {
  position: relative;
  color: #c5d1d1;
  font-size: 13px;
  text-decoration: none;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 1px;
  background: var(--accent);
  transition: right .2s;
}
.topnav a:hover::after { right: 0; }
.live-mark {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d5dfde;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.live-mark span, .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(152, 239, 210, .8);
}

.hero {
  position: relative;
  min-height: 780px;
  height: 100svh;
  max-height: 1080px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("../demo-assets/gallery/overhead_bridge-view-b.png");
  background-position: center 44%;
  background-size: cover;
  transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: scale(1.075) translateY(-4px); } }
.hero-canvas { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; opacity: .7; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 9, 11, .97) 0%, rgba(5, 9, 11, .75) 43%, rgba(5, 9, 11, .18) 78%),
    linear-gradient(0deg, #05090b 0%, transparent 28%, rgba(5, 9, 11, .2) 75%, rgba(5, 9, 11, .7) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}
.hero-content {
  width: min(var(--max), calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  padding: 168px 0 188px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow {
  margin: 0 0 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  text-transform: uppercase;
}
.eyebrow span:first-child {
  padding: 6px 9px;
  border: 1px solid rgba(152,239,210,.48);
  background: rgba(8, 18, 17, .5);
  border-radius: 3px;
}
.hero h1 {
  max-width: 1030px;
  margin: 0;
  font-size: 78px;
  line-height: 1.01;
  font-weight: 560;
}
.hero h1 i { color: var(--accent); font-style: normal; }
.hero-english {
  margin: 18px 0 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-subtitle {
  max-width: 690px;
  margin: 30px 0 0;
  color: #b9c7c7;
  font-size: 20px;
  line-height: 1.7;
}
.hero-note { max-width: 650px; margin: 12px 0 0; color: #809396; font-size: 13px; line-height: 1.8; }
.hero-actions { margin-top: 42px; display: flex; align-items: center; gap: 26px; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.button-primary { color: #04110e; background: var(--accent); }
.button-primary:hover { transform: translateY(-2px); background: #b7f6df; }
.button-primary span { font-size: 18px; }
.hero-source {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.hero-source span { color: #e3eeed; font-weight: 700; }
.hero-source b { width: 1px; height: 16px; margin: 0 5px; background: var(--line-strong); }
.hero-foot {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero-foot div {
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
}
.hero-foot div:last-child { border-right: 0; }
.hero-foot strong { font-size: 20px; font-weight: 580; }
.hero-foot span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; text-transform: uppercase; }

.section {
  width: min(var(--max), calc(100% - 80px));
  margin: 0 auto;
  padding: 132px 0;
}
.section-heading {
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
  gap: 70px;
  align-items: end;
}
.section-index {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.section-heading h2 {
  max-width: 850px;
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 560;
}
.section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.comparison-section { padding-bottom: 158px; }
.compare-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #071013;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
.compare-toolbar {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #b8c8c8;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.scene-id, .source-tags { display: flex; align-items: center; gap: 10px; }
.source-tags span { padding-left: 13px; border-left: 1px solid var(--line); }
.compare-viewer {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background: #071014;
}
.compare-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare-handle {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-1px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 28px rgba(0,0,0,.85);
  outline: none;
}
.compare-handle::before {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(5, 12, 14, .88);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}
.compare-handle span { position: relative; z-index: 1; margin: 0 7px; color: white; font-size: 19px; }
.compare-handle:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-label {
  position: absolute;
  z-index: 5;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #eaf3f2;
  background: rgba(4,10,12,.72);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  pointer-events: none;
}
.compare-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.compare-label-left { left: 20px; }
.compare-label-right { right: 20px; }
.compare-label-right span { background: var(--cyan); }
.asset-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 0 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: #071013;
  transition: opacity .35s, visibility .35s;
}
.asset-loader.done { opacity: 0; visibility: hidden; }
.asset-loader > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.asset-loader b { color: var(--accent); font-family: ui-monospace, monospace; }
.asset-loader i { height: 2px; overflow: hidden; background: #213035; }
.asset-loader i span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .25s; }
.compare-meta {
  min-height: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.compare-meta div { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.compare-meta div:last-child { border: 0; }
.compare-meta small { color: #63787c; font-family: ui-monospace, monospace; font-size: 9px; }
.compare-meta strong { color: #c8d6d5; font-size: 13px; font-weight: 540; }

.data-case-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.data-case { min-height: 244px; overflow: hidden; display: grid; grid-template-columns: 43% 57%; border: 1px solid var(--line); border-radius: 6px; background: #0a1215; }
.data-case.featured { grid-column: span 2; grid-template-columns: 58% 42%; }
.case-visual { position: relative; min-height: 180px; overflow: hidden; background: #061013; }
.case-visual > img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82) contrast(1.05); transition: transform .45s, filter .35s; }
.data-case:hover .case-visual > img { transform: scale(1.035); filter: saturate(1) contrast(1.07); }
.split-visual { display: grid; grid-template-columns: 1fr 1fr; }
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
.split-visual img:last-child { border-left: 1px solid rgba(255,255,255,.3); }
.depth-tag { position: absolute; left: 10px; bottom: 10px; padding: 5px 7px; border: 1px solid rgba(100,216,241,.46); color: var(--cyan); background: rgba(4,12,15,.78); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .04em; }
.case-copy { padding: 27px 26px; display: flex; flex-direction: column; justify-content: center; }
.case-copy > span, .open-plan-grid span, .participants-grid span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .06em; }
.case-copy h3 { margin: 11px 0 9px; font-size: 19px; font-weight: 560; }
.case-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.case-copy a { width: max-content; margin-top: 17px; color: var(--accent); font-family: ui-monospace, monospace; font-size: 10px; text-decoration: none; }
.case-copy a:hover { text-decoration: underline; }

.intelligence-section { width: 100%; max-width: none; padding: 132px max(40px, calc((100% - var(--max)) / 2)); background: #080e11; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-tabs {
  height: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.capability-tab {
  padding: 0 24px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #091114;
  color: #809396;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: color .2s, background .2s;
}
.capability-tab:last-child { border-right: 0; }
.capability-tab span { margin-right: 20px; color: #475b5f; font-family: ui-monospace, monospace; font-size: 10px; }
.capability-tab:hover { color: #d6e1e0; }
.capability-tab.active { color: var(--text); background: #0e181b; box-shadow: inset 0 2px var(--accent); }
.capability-tab.active span { color: var(--accent); }
.capability-panel { min-height: 640px; border: 1px solid var(--line); background: #0a1215; }
.capability-panel[hidden] { display: none; }
.capability-panel.active { animation: panelIn .28s ease-out; }
@keyframes panelIn { from { opacity: .25; transform: translateY(7px); } }

.vln-layout { min-height: 640px; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.vln-sidebar { padding: 38px; border-right: 1px solid var(--line); }
.data-kicker { display: flex; align-items: center; gap: 10px; color: #93a9ab; font-family: ui-monospace, monospace; font-size: 10px; }
.vln-sidebar h3, .question-pane h3, .instance-head h3 { margin: 16px 0 28px; font-size: 24px; font-weight: 560; }
.trajectory-list { display: flex; flex-direction: column; }
.trajectory-item {
  position: relative;
  width: 100%;
  padding: 18px 14px 18px 38px;
  border: 0;
  border-top: 1px solid var(--line);
  color: #91a2a4;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.trajectory-item:last-child { border-bottom: 1px solid var(--line); }
.trajectory-item span {
  position: absolute;
  left: 4px;
  top: 19px;
  color: #4c6266;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.trajectory-item p { margin: 0; font-size: 12px; line-height: 1.65; }
.trajectory-item small { display: block; margin-top: 8px; color: #52686c; font-family: ui-monospace, monospace; font-size: 9px; }
.trajectory-item:hover { color: #d6dfdf; }
.trajectory-item.active { color: #eff8f6; background: rgba(152,239,210,.05); }
.trajectory-item.active::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 2px; background: var(--accent); }
.truth-note { margin-top: 30px; display: flex; flex-direction: column; gap: 5px; color: #52676a; font-family: ui-monospace, monospace; font-size: 9px; }
.truth-note strong { margin-bottom: 4px; color: var(--accent); }
.skeleton-line, .instance-skeleton { background: linear-gradient(90deg, #122025 25%, #1c2b2f 50%, #122025 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-line { height: 58px; margin-bottom: 12px; }
.skeleton-line.short { width: 76%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.vln-stage { position: relative; min-width: 0; display: grid; grid-template-rows: 70px minmax(0, 1fr) 72px; }
.stage-topline { padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.stage-topline > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.stage-topline span { color: #647a7e; font-family: ui-monospace, monospace; font-size: 9px; }
.stage-topline b { color: #c7d3d3; font-size: 12px; font-weight: 500; }
.step-counter { color: var(--accent); font-family: ui-monospace, monospace; font-size: 12px; }
.route-map { width: 100%; height: 100%; min-height: 430px; }
.route-shadow, .route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-shadow { stroke: rgba(5,9,11,.8); stroke-width: 9; }
.route-line { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 5 7; }
.route-agent circle { fill: #091415; stroke: var(--accent); stroke-width: 2; }
.route-agent path { fill: var(--accent); }
.route-marker text { fill: #89a1a3; font-family: ui-monospace, monospace; font-size: 10px; }
.vln-controls { padding: 0 25px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #0d181b;
  cursor: pointer;
}
.icon-button:hover { color: var(--accent); border-color: var(--accent); }
.timeline { height: 2px; flex: 1; overflow: hidden; background: #26383c; }
.timeline span { display: block; width: 0; height: 100%; background: var(--accent); }
.play-state { min-width: 54px; color: #667c80; font-family: ui-monospace, monospace; font-size: 9px; text-align: right; }
.panel-error { position: absolute; inset: 70px 0 72px; padding: 30px; display: grid; place-items: center; color: var(--rose); background: #0a1215; }
.panel-error[hidden] { display: none; }

.open-layout { min-height: 640px; display: grid; grid-template-columns: 390px minmax(0, 1fr); }
.question-pane { padding: 38px; border-right: 1px solid var(--line); }
.demo-disclaimer {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(240,184,110,.4);
  border-radius: 3px;
  color: var(--amber);
  background: rgba(240,184,110,.06);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  text-transform: uppercase;
}
.question-button {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 12px 34px 12px 14px;
  display: block;
  border: 0;
  border-top: 1px solid var(--line);
  color: #84979a;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}
.question-button:last-child { border-bottom: 1px solid var(--line); }
.question-button::after { content: "→"; position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: #43575b; }
.question-button.active { color: #edf5f4; background: rgba(100,216,241,.05); }
.question-button.active::after { color: var(--cyan); }
.answer-box { margin-top: 26px; padding: 16px 0; border-top: 1px solid var(--line); }
.answer-box small { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 9px; }
.answer-box p { margin: 8px 0 0; color: #a8b8b8; font-size: 12px; }
.annotation-stage { position: relative; min-width: 0; min-height: 640px; overflow: hidden; background: #030708; }
.annotation-stage img { width: 100%; height: 100%; display: block; object-fit: contain; transition: opacity .25s; }
.annotation-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mask-polygon { fill: rgba(100,216,241,.2); stroke: #82e5f8; stroke-width: 3; vector-effect: non-scaling-stroke; animation: maskPulse 2s ease-in-out infinite; }
@keyframes maskPulse { 50% { fill: rgba(152,239,210,.32); stroke: var(--accent); } }
.annotation-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  padding: 11px 13px;
  display: flex;
  justify-content: space-between;
  color: #c9d5d4;
  background: rgba(4,10,12,.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-family: ui-monospace, monospace;
  font-size: 9px;
}
.annotation-caption b { color: var(--accent); font-weight: 500; }
.image-loader { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: #071013; font-size: 11px; transition: opacity .25s; }
.image-loader.done { opacity: 0; pointer-events: none; }

.instance-head { min-height: 124px; padding: 28px 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.instance-head > div { display: flex; align-items: center; gap: 18px; }
.instance-head h3 { margin: 0; }
.instance-head p { max-width: 480px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.instance-grid { padding: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.instance-skeleton { aspect-ratio: 4 / 3; }
.instance-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #0d171a; }
.instance-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #05090b; }
.instance-visual img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.65) brightness(.6); transition: filter .3s, transform .3s; }
.instance-visual::after { content: ""; position: absolute; inset: 16% 17%; border: 2px solid var(--amber); box-shadow: 0 0 0 999px rgba(3,8,10,.25), inset 0 0 26px rgba(240,184,110,.16); }
.instance-card:nth-child(2) .instance-visual::after { inset: 20% 22% 15%; }
.instance-card:nth-child(3) .instance-visual::after { inset: 12% 10% 23% 9%; }
.instance-card:hover .instance-visual img { transform: scale(1.025); filter: saturate(.9) brightness(.75); }
.instance-card footer { padding: 15px; display: flex; align-items: flex-end; justify-content: space-between; }
.instance-card h4 { margin: 0 0 3px; font-size: 14px; font-weight: 560; }
.instance-card footer span, .instance-card footer small { color: #667a7d; font-family: ui-monospace, monospace; font-size: 9px; }
.instance-card footer small { color: var(--amber); }

.gallery-section { padding-top: 142px; }
.gallery-summary {
  min-height: 66px;
  margin-bottom: 18px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #74878a;
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.gallery-summary b { margin-right: 5px; color: #d6e1e0; font-size: 13px; }
.gallery-summary i { width: 1px; height: 18px; background: var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery-card {
  grid-column: span 4;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #0b1316;
  cursor: zoom-in;
  text-align: left;
  transition: transform .25s, border-color .25s;
}
.gallery-card:nth-child(1), .gallery-card:nth-child(6) { grid-column: span 8; }
.gallery-card:hover { transform: translateY(-4px); border-color: rgba(152,239,210,.42); }
.gallery-card figure { position: relative; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: #071013; }
.gallery-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s, opacity .25s; }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-card .image-fallback { object-fit: contain; padding: 20%; opacity: .55; }
.gallery-card figcaption { padding: 14px 15px 15px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gallery-card h3 { margin: 0 0 3px; font-size: 14px; font-weight: 560; }
.gallery-card p { margin: 0; color: #607477; font-family: ui-monospace, monospace; font-size: 9px; }
.gallery-tags { flex: 0 0 auto; display: flex; gap: 5px; }
.gallery-tags span { padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: #839699; font-family: ui-monospace, monospace; font-size: 8px; }

.open-section { padding-bottom: 120px; }
.open-plan-grid, .participants-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.open-plan-grid article, .participants-grid article { min-height: 270px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #091114; }
.open-plan-grid article:nth-child(2) { background: #0b1518; }
.open-plan-grid h3, .participants-grid h3 { margin: 42px 0 14px; font-size: 21px; font-weight: 560; }
.open-plan-grid p, .participants-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }

.benchmark-section { padding: 0 max(40px, calc((100% - var(--max)) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(100deg, #0e1d1d, #081013 58%, #090e10); }
.benchmark-inner { min-height: 370px; display: grid; grid-template-columns: .8fr 1.25fr auto; align-items: center; gap: 70px; }
.benchmark-inner h2 { margin: 0; font-size: 43px; line-height: 1.15; font-weight: 560; }
.benchmark-inner > p { margin: 0; color: #a6b8b7; font-size: 14px; line-height: 1.9; }
.button-outline, .button-secondary { color: var(--text); border: 1px solid var(--line-strong); background: rgba(10,20,22,.5); }
.button-outline:hover, .button-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.participants-section { padding-top: 130px; }
.participants-grid article { min-height: 290px; display: flex; flex-direction: column; }
.participants-grid article:nth-child(2) { background: #0d171a; }
.participants-grid h3 { margin-top: 30px; }
.participants-grid b { width: max-content; margin-top: auto; padding: 5px 8px; color: var(--amber); border: 1px solid rgba(240,184,110,.38); border-radius: 3px; font-family: ui-monospace, monospace; font-size: 9px; font-weight: 500; }

.join-section { padding-top: 0; }
.join-panel { min-height: 350px; padding: 54px 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; border: 1px solid var(--line-strong); border-radius: 7px; background: radial-gradient(circle at 86% 15%, rgba(100,216,241,.13), transparent 31%), #0a1316; }
.join-panel h2 { margin: 0; font-size: 38px; font-weight: 560; }
.join-panel > div > p:last-child { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.join-actions { display: flex; flex-direction: column; gap: 10px; }
.join-actions .button { min-width: 190px; justify-content: space-between; }

.footer {
  min-height: 120px;
  padding: 0 max(40px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #5f7376;
  background: #040708;
  font-size: 11px;
}
.footer > div { display: flex; align-items: center; gap: 10px; color: #c4d0cf; }
.footer p { margin: 0; }
.footer b { margin: 0 6px; color: #304347; }

.gallery-modal {
  width: min(1100px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  padding: 0;
  overflow: hidden auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
  background: #081013;
  box-shadow: 0 40px 140px rgba(0,0,0,.7);
}
.gallery-modal::backdrop { background: rgba(2,5,6,.84); backdrop-filter: blur(10px); }
.gallery-modal img { width: 100%; max-height: 72svh; display: block; object-fit: contain; background: #030708; }
.gallery-modal > div { padding: 20px 22px 24px; }
.gallery-modal h3 { margin: 6px 0 4px; font-size: 20px; font-weight: 560; }
.gallery-modal p, .gallery-modal span { margin: 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; color: white; background: rgba(5,9,11,.8); cursor: pointer; font-size: 24px; line-height: 1; }
.modal-close:hover { color: var(--accent); }
.noscript { position: fixed; z-index: 999; left: 20px; right: 20px; bottom: 20px; padding: 12px; color: #101615; background: var(--amber); text-align: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 1100px) {
  .topbar { padding: 0 24px; }
  .hero-content, .section { width: calc(100% - 48px); }
  .hero h1 { font-size: 62px; }
  .hero-foot { left: 24px; right: 24px; }
  .section { padding: 105px 0; }
  .intelligence-section { padding: 105px 24px; }
  .section-heading { gap: 40px; }
  .vln-layout, .open-layout { grid-template-columns: 330px minmax(0, 1fr); }
  .vln-sidebar, .question-pane { padding: 28px; }
  .gallery-card { grid-column: span 6; }
  .gallery-card:nth-child(1), .gallery-card:nth-child(6) { grid-column: span 6; }
  .topnav { gap: 16px; }
  .data-case { grid-template-columns: 1fr 1fr; }
  .benchmark-inner { grid-template-columns: 1fr 1.4fr; gap: 36px; padding: 64px 0; }
  .benchmark-inner .button { width: max-content; grid-column: 1 / -1; }
  .join-panel { padding: 44px; gap: 30px; }
}

@media (max-width: 760px) {
  .topbar { height: 58px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .topnav { display: none; }
  .brand img { width: 25px; height: 25px; }
  .live-mark { font-size: 9px; }
  .hero { min-height: 720px; height: 100svh; max-height: none; }
  .hero-media { background-position: 57% center; }
  .hero-shade { background: linear-gradient(0deg, #05090b 0%, rgba(5,9,11,.4) 45%, rgba(5,9,11,.72) 100%), linear-gradient(90deg, rgba(5,9,11,.86), rgba(5,9,11,.12)); }
  .hero-content { width: calc(100% - 36px); padding: 100px 0 220px; justify-content: flex-end; }
  .eyebrow { gap: 10px; font-size: 9px; }
  .hero h1 { font-size: 44px; }
  .hero-english { margin-top: 13px; font-size: 10px; line-height: 1.6; }
  .hero-subtitle { margin-top: 20px; font-size: 16px; }
  .hero-note { font-size: 11px; }
  .hero-actions { margin-top: 28px; display: block; }
  .hero-source { margin-top: 18px; flex-wrap: wrap; }
  .hero-foot { left: 18px; right: 18px; grid-template-columns: 1fr 1fr; }
  .hero-foot div { min-height: 70px; padding: 12px; }
  .hero-foot div:nth-child(2) { border-right: 0; }
  .hero-foot div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-foot strong { font-size: 16px; }
  .section { width: calc(100% - 36px); padding: 82px 0; }
  .intelligence-section { width: 100%; padding: 82px 18px; }
  .section-heading { margin-bottom: 34px; display: block; }
  .section-heading h2 { font-size: 30px; }
  .section-heading > p { margin-top: 20px; }
  .source-tags span:last-child { display: none; }
  .compare-toolbar { height: 46px; }
  .compare-label { top: 10px; padding: 5px 7px; font-size: 8px; }
  .compare-label-left { left: 10px; }
  .compare-label-right { right: 10px; }
  .compare-handle::before { width: 38px; height: 38px; }
  .compare-meta { grid-template-columns: 1fr 1fr; }
  .compare-meta div:nth-child(2) { border-right: 0; }
  .compare-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .data-case-grid { grid-template-columns: 1fr; }
  .data-case, .data-case.featured { min-height: 0; grid-column: auto; grid-template-columns: 1fr; }
  .case-visual { aspect-ratio: 16 / 8; min-height: 0; }
  .case-copy { min-height: 166px; padding: 20px; }
  .capability-tabs { height: auto; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
  .capability-tab { min-height: 48px; border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-tab:last-child { border-bottom: 0; }
  .capability-tab.active { box-shadow: inset 2px 0 var(--accent); }
  .vln-layout, .open-layout { display: block; }
  .vln-sidebar, .question-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .truth-note { display: none; }
  .vln-stage { min-height: 520px; grid-template-rows: 64px minmax(0, 1fr) 64px; }
  .route-map { min-height: 360px; }
  .annotation-stage { min-height: 430px; }
  .annotation-caption { left: 10px; right: 10px; bottom: 10px; display: block; }
  .annotation-caption b { display: block; margin-top: 3px; }
  .instance-head { padding: 24px; display: block; }
  .instance-head > div { display: block; }
  .instance-head h3 { margin-top: 12px; }
  .instance-head p { margin-top: 14px; }
  .instance-grid { grid-template-columns: 1fr; }
  .gallery-summary { padding: 12px; flex-wrap: wrap; gap: 10px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card:nth-child(1), .gallery-card:nth-child(6) { grid-column: auto; }
  .open-section { padding-bottom: 82px; }
  .open-plan-grid, .participants-grid { grid-template-columns: 1fr; }
  .open-plan-grid article, .participants-grid article { min-height: 220px; padding: 24px; }
  .open-plan-grid h3, .participants-grid h3 { margin-top: 26px; }
  .benchmark-section { padding: 0 18px; }
  .benchmark-inner { min-height: 0; padding: 76px 0; display: block; }
  .benchmark-inner h2 { font-size: 31px; }
  .benchmark-inner > p { margin-top: 20px; }
  .benchmark-inner .button { margin-top: 28px; }
  .participants-section { padding-top: 82px; }
  .join-panel { min-height: 0; padding: 32px 24px; display: block; }
  .join-panel h2 { font-size: 31px; }
  .join-actions { margin-top: 28px; }
  .join-actions .button { width: 100%; }
  .footer { min-height: 150px; padding: 28px 18px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; }
}
