/* ==========================================================================
   TACINF — tactile systems research
   Graphite canvas, editorial hierarchy, quiet technical accents.
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: "NVIDIA Sans";
  src: url("../fonts/nvidia-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NVIDIA Sans";
  src: url("../fonts/nvidia-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NVIDIA Sans";
  src: url("../fonts/nvidia-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NVIDIA Sans";
  src: url("../fonts/nvidia-sans-bolditalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #000;
  --bg-soft: #060806;
  --surface: #121412;
  --surface-2: #191d18;
  --white: #f4f6f1;
  --gray: #b0b4ab;
  --gray-2: #7c8178;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);

  --green: #76b900;
  --green-hover: #8ed600;
  --yellow: #e7b416;
  --blue: #38bdf8;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 20px;

  --font: "NVIDIA Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
  --display: "NVIDIA Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "SF Mono", ui-monospace, "JetBrains Mono", Menlo,
    Consolas, monospace;

  --wrap: min(1120px, calc(100% - 48px));
  --header-h: 48px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
sup { font-size: 0.62em; line-height: 0; }
em { font-style: italic; }
mark { background: transparent; color: inherit; padding: 0; }
::selection { background: var(--green); color: #000; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 26px); }

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: #2c2c2e; border: 2px solid var(--bg); border-radius: 10px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  transform: translateY(-180%);
  background: var(--white);
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

main, .masthead, .footer { position: relative; z-index: 1; }

/* ---------- shared ---------- */
.kicker {
  display: flex;
  font-family: var(--mono);
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.kicker-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--display);
  margin-top: 12px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: none;
}
.section-head h2 em { font-style: normal; color: var(--green); }
.section-note {
  max-width: 60ch;
  margin: 16px auto 0;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.5;
  border: 0;
  padding: 0;
}
.compute-note {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin-top: 20px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.4;
}
.compute-note strong { color: var(--white); font-weight: 500; }
.compute-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* ---------- masthead ---------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.masthead.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-bottom-color: var(--line-soft);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark { width: 22px; height: 22px; color: var(--green); flex: none; }
.brand-word { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.brand-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray-2);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.4;
  white-space: nowrap;
}
.utility { display: flex; align-items: center; gap: 22px; }
.util {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gray);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.util:hover, .util:focus-visible { color: var(--white); }
.util-arrow { color: var(--gray-2); font-size: 11px; }
.util:hover .util-arrow { color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
    transform 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-solid {
  border-color: rgba(118, 185, 0, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(81, 127, 0, 0.64), rgba(118, 185, 0, 0.34) 58%, rgba(118, 185, 0, 0.12)),
    rgba(12, 18, 10, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.32), 0 0 28px rgba(118, 185, 0, 0.2);
  color: #fff;
}
.btn-solid:hover {
  border-color: var(--green);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(81, 127, 0, 0.74), rgba(118, 185, 0, 0.48) 58%, rgba(118, 185, 0, 0.18)),
    rgba(12, 18, 10, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 38px rgba(0, 0, 0, 0.36), 0 0 30px rgba(118, 185, 0, 0.24);
}
.btn-ghost {
  border-color: rgba(118, 185, 0, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028)),
    rgba(8, 8, 8, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.26);
  color: #fff;
}
.btn-ghost:hover {
  border-color: rgba(118, 185, 0, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(81, 127, 0, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.3);
}
.btn span { font-size: 14px; }

/* ---------- coming-soon placeholders ---------- */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-2);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.soon::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}
.btn .soon { font-size: 9.5px; letter-spacing: 0.07em; }
.util--soon, .util--soon:hover { color: var(--gray-2); cursor: default; }
.btn--soon, .btn--soon:hover, .btn--soon:active {
  transform: none;
  border-style: dashed;
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  color: var(--gray);
  cursor: default;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + 48px) 0 48px;
  background:
    radial-gradient(58% 42% at 50% 0%, rgba(118, 185, 0, 0.11), transparent 72%),
    radial-gradient(42% 30% at 78% 8%, rgba(56, 189, 248, 0.05), transparent 72%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.8px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 28%, #000 0%, transparent 78%);
  mask-image: radial-gradient(72% 64% at 50% 28%, #000 0%, transparent 78%);
  opacity: 0.16;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-copy { max-width: 900px; text-align: center; }
.hero-copy > .kicker { animation: rise 0.8s var(--ease) 0.05s both; }
.hero-title {
  position: relative;
  font-family: var(--display);
  margin-top: 18px;
  font-size: clamp(4.5rem, 11vw, 10rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.title-line {
  position: relative;
  display: inline-block;
  color: var(--white);
  animation: rise 0.9s var(--ease) both;
}
.title-accent { color: var(--green); animation-delay: 0.06s; }
.hero-sub {
  font-family: var(--display);
  max-width: 30ch;
  margin: 18px auto 0;
  color: var(--gray);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  animation: rise 0.8s var(--ease) 0.18s both;
}
.hero-sub mark { color: inherit; }
.hero-desc {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.55;
  animation: rise 0.8s var(--ease) 0.26s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  animation: rise 0.8s var(--ease) 0.34s both;
}
.hero-authors {
  max-width: 880px;
  margin: 0 auto;
  animation: rise 0.8s var(--ease) 0.42s both;
}
.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.6em;
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray);
}
.authors span { white-space: nowrap; }
.authors sup { color: var(--gray-2); }
.affiliations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-2);
}
.affiliations sup { color: var(--gray-2); }
.author-notes { color: #5c5c61; }

/* hero product composition */
.hero-figure {
  width: min(1080px, 100%);
  margin: 0 auto;
  animation: rise 1s var(--ease) 0.2s both;
}
.hero-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(118, 185, 0, 0.22);
  border-radius: var(--radius-l);
  background: #070907;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(118, 185, 0, 0.04);
}
.hero-video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-video-label {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 5px;
  background: rgba(4,6,4,0.72);
  color: #f1f4ed;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.hero-video-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-hover); box-shadow: 0 0 10px rgba(142,214,0,0.65); }

/* ---------- sections ---------- */
.modules { padding: 100px 0; }
.cite { padding: 100px 0; border-top: 1px solid var(--line-soft); }

/* ---------- segmented module control ---------- */
.switcher {
  --tab-accent: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}
.tabs {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  padding: 6px;
  gap: 4px;
  background: linear-gradient(180deg, rgba(26, 30, 25, 0.96), rgba(10, 13, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 11px;
  background: var(--tab-accent, var(--green));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--tab-accent, var(--green)) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.55s cubic-bezier(0.22, 1.3, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1), height 0.45s var(--ease),
    background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--gray);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.28s var(--ease), background-color 0.28s var(--ease),
    transform 0.28s var(--ease);
}
.tab--tacumi { --tab-accent: var(--green); }
.tab--tabero { --tab-accent: var(--yellow); }
.tab--vtla { --tab-accent: var(--blue); }
.tab--taco { --tab-accent: var(--white); }
.tab:not(.is-active):hover { color: var(--white); background: rgba(255, 255, 255, 0.055); transform: translateY(-1px); }
.tab.is-active { color: #080808; }
.tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tab-no {
  color: var(--tab-accent, var(--gray-2));
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  transition: color 0.28s var(--ease), opacity 0.28s var(--ease);
}
.tab.is-active .tab-no { color: rgba(0, 0, 0, 0.5); opacity: 1; }
.tab-name { display: block; }
.tab.is-active .tab-name { animation: tab-name-in 0.45s var(--ease) both; }
@keyframes tab-name-in {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.tab-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
  color: var(--gray-2);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}
.readout-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tab-accent, var(--green));
  flex: none;
  transition: background-color 0.45s var(--ease);
}

/* ---------- deck and panel ---------- */
.deck {
  --deck-accent: var(--green);
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  transition: height 0.5s var(--ease);
}
.deck::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 300px;
  background-color: var(--deck-accent);
  filter: blur(150px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  transition: background-color 0.7s var(--ease);
}
.deck.is-switching { overflow: hidden; }

.panel {
  position: relative;
  z-index: 1;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.panel.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.995);
  pointer-events: none;
}
.panel.is-entering { animation: panel-enter 0.55s var(--ease) both; }
.panel:focus { outline: none; }
.panel[data-panel="tacumi"] { --panel-accent: var(--green); }
.panel[data-panel="tabero"] { --panel-accent: var(--yellow); }
.panel[data-panel="vtla"] { --panel-accent: var(--blue); }
.panel[data-panel="taco"] { --panel-accent: var(--white); }

.panel-head { margin-bottom: 36px; }
.panel-kicker {
  display: flex;
  font-family: var(--mono);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--gray-2);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--panel-accent, var(--green));
  flex: none;
}
.panel-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: none;
}
.panel-title span { color: var(--panel-accent, var(--green)); }
.panel-lede {
  font-family: var(--display);
  max-width: 700px;
  margin-top: 14px;
  color: var(--gray);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.panel-copy { min-width: 0; }
.panel-copy > p {
  max-width: 600px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.6;
}
.panel-copy > p + p { margin-top: 14px; }
.panel-copy strong { color: var(--white); font-weight: 500; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(148px, auto);
  gap: 10px;
  margin-top: 28px;
}
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 148px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 55%, transparent),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--gray);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
  cursor: pointer;
}
.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, rgba(118, 185, 0, 0.15), rgba(118, 185, 0, 0.9), rgba(118, 185, 0, 0.12));
  opacity: 0.28;
  transition: opacity 0.25s var(--ease);
}
.resource-card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(118, 185, 0, 0.055), transparent 55%),
    var(--surface-2);
  border-color: rgba(118, 185, 0, 0.38);
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.08),
    0 18px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.resource-card:hover::before { opacity: 0.9; }
.resource-card:active { transform: translateY(0); }
.resource-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.resource-tag {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.resource-tag--data { color: var(--green); }
.resource-tag--tasks { color: var(--yellow); }
.resource-tag--code { color: var(--blue); }
.resource-tag--weights { color: var(--white); }
.resource-card strong {
  display: block;
  margin: 8px 0 5px;
  padding-right: 18px;
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.resource-card p { color: var(--gray); font-size: 12.5px; line-height: 1.5; }
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}
.resource-links a { color: var(--green); text-decoration: none; }
.resource-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.resource-arrow {
  position: absolute;
  top: 13px;
  right: 14px;
  color: var(--gray-2);
  font-size: 14px;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.resource-card:hover .resource-arrow {
  color: var(--white);
  transform: translate(2px, -2px);
}
.resource-card--soon { cursor: default; }
.resource-card--soon:hover {
  transform: none;
  border-color: var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 55%, transparent),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.22);
}
.resource-card--soon:hover::before { opacity: 0.28; }
.resource-soon { position: absolute; top: 13px; right: 14px; }

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: none;
}
.panel-stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 0; border: 0; }
.stat strong {
  display: block;
  font-family: var(--display);
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.panel-stats--four .stat strong { font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
.stat strong.stat-pair { font-size: clamp(1.25rem, 1.7vw, 1.65rem); white-space: nowrap; }
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--gray-2);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.stat em { color: var(--white); font-style: normal; }

.panel-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.panel-links a {
  color: var(--green);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  padding: 0;
}
.panel-links a:hover { text-decoration: underline; }
.link-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gray-2);
  font-size: 15px;
}

/* ---------- media ---------- */
.panel-media { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.media:not(.media--paper):hover {
  border-color: rgba(118, 185, 0, 0.24);
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.media .zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.media img { display: block; width: 100%; height: auto; }
.media figcaption {
  padding: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}
.media figcaption strong { color: var(--white); font-weight: 500; }
.media--paper { background: #f5f5f7; border-color: rgba(255, 255, 255, 0.08); }
.media--paper .zoom { padding: 14px; background: #f5f5f7; }
.media--paper figcaption {
  padding: 0 14px 14px;
  border-top: 0;
  color: #6e6e73;
}
.media--paper figcaption strong { color: #1d1d1f; font-weight: 500; }
.media--photo { background: var(--surface); }
.media--photo .zoom img { filter: none; }

.media-stack { display: flex; flex-direction: column; gap: 12px; }

.video-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 34%),
    var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.video-card:hover {
  border-color: rgba(118, 185, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}
.video-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--gray-2);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.video-card figcaption span:last-child { color: var(--white); }

.video-feature {
  max-width: 960px;
  margin: 0 auto 48px;
  border-radius: var(--radius-l);
}
.video-feature video { aspect-ratio: 16 / 9; }
.video-feature figcaption { padding: 12px 16px; font-size: 12px; }

.demo-note {
  margin-bottom: 12px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.55;
}
.demo-note strong { color: var(--white); font-weight: 500; }
.demo-note a { color: var(--green); }
.demo-note a:hover { text-decoration: underline; }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.demo-grid .video-card video { aspect-ratio: 16 / 9; }
.demo-grid .video-card figcaption { padding: 8px 10px; font-size: 10px; letter-spacing: 0.01em; }
.demo-grid--milk {
  grid-template-columns: 1fr;
  grid-template-rows: none;
}
.demo-grid--milk .video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.demo-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.comparison-grid .video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.comparison-grid .video-card figcaption { padding: 8px 10px; font-size: 10px; }
.comparison-block {
  margin-top: 48px;
  margin-bottom: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.comparison-block .demo-note { max-width: 70ch; }
.vtla-demo-grid .video-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wide-figure {
  margin: 48px 0 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
}
.wide-figure .zoom {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  background: #f5f5f7;
  cursor: zoom-in;
}
.wide-figure img { display: block; width: 100%; height: auto; }
.wide-figure figcaption {
  padding: 14px 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}
.wide-figure figcaption strong { color: var(--white); font-weight: 500; }
.wide-figure.media--photo .zoom { padding: 0; background: var(--surface); }
.wide-figure.media--photo .zoom img { border-radius: 0; }
.wide-figure.media--photo figcaption { border-top: 1px solid var(--line-soft); }
.wide-figure.media--paper { background: #f5f5f7; border-color: rgba(255, 255, 255, 0.08); }
.wide-figure.media--paper .zoom { background: #f5f5f7; }
.wide-figure.media--paper figcaption { color: #6e6e73; border-top-color: rgba(0, 0, 0, 0.08); }
.wide-figure.media--paper figcaption strong { color: #1d1d1f; }

/* ---------- 3D model viewers ---------- */
.model-figure {
  max-width: 960px;
  margin: 0 auto 48px;
}
.model-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  background: radial-gradient(58% 58% at 50% 42%, #1d1d1f, #000 76%);
  cursor: grab;
  touch-action: none;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.model-stage--umi {
  background:
    radial-gradient(48% 38% at 50% 32%, rgba(205, 215, 230, 0.1), transparent 70%),
    radial-gradient(60% 60% at 50% 48%, #17171b 0%, #0a0a0c 62%, #030304 100%);
}
.model-stage--umi::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.32) 100%),
    radial-gradient(58% 34% at 50% 102%, rgba(255, 255, 255, 0.045), transparent 68%);
}
.model-stage:active { cursor: grabbing; }
.model-stage:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.model-stage canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.model-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: #0a0a0c;
  transition: opacity 0.5s var(--ease);
}
.model-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.model-stage--umi .model-poster img { object-fit: contain; padding: 10%; opacity: 0.9; }
.model-stage.is-loaded .model-poster,
.model-stage.is-loaded .model-loading { opacity: 0; pointer-events: none; }
.model-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
  color: var(--gray);
  font-size: 14px;
  transition: opacity 0.3s var(--ease);
}
.model-ui {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.model-hint {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gray);
  font-size: 12px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.model-reset {
  pointer-events: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.model-reset:hover { background: #fff; }
.model-actions { display: flex; align-items: center; gap: 8px; pointer-events: none; }
.model-actions button { pointer-events: auto; }
.model-toggle {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #000;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.model-toggle:hover { background: var(--green-hover); }
.model-toggle[aria-pressed="true"] { background: var(--white); color: #1d1d1f; }
.model-figure figcaption {
  padding: 14px 2px 0;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}
.model-figure figcaption strong { color: var(--white); font-weight: 500; }

/* ---------- pipeline / sub-blocks ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.pipeline-step span { color: var(--gray-2); font-family: var(--mono); font-size: 12px; }
.pipeline-step strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.pipeline-step p { color: var(--gray); font-size: 14px; line-height: 1.5; }

.sub-block { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.sub-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 20px;
}
.sub-head h4 {
  font-family: var(--display);
  margin-top: 6px;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.sub-head > p { color: var(--gray); font-size: 15px; line-height: 1.5; }

#panel-taco .panel-grid { align-items: start; }
#panel-taco .panel-media { justify-content: flex-start; }
#panel-taco .panel-media { align-self: start; }
.agreement-evidence { width: 100%; max-width: none; margin-left: 0; }
.agreement-chart {
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(118,185,0,0.26);
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(118,185,0,0.08), transparent 45%),
    linear-gradient(150deg, rgba(20,24,19,0.98), rgba(8,10,8,0.98));
  box-shadow: inset 0 1px rgba(255,255,255,0.04);
}
.agreement-chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.agreement-chart__kicker { color: var(--gray-2); font-family: var(--mono); font-size: 8px; letter-spacing: 0.09em; }
.agreement-chart__head h4 { margin-top: 7px; color: var(--white); font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.035em; }
.agreement-chart__mark { padding: 5px 7px; border: 1px solid rgba(118,185,0,0.35); border-radius: 4px; color: var(--green-hover); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.agreement-chart__metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.agreement-metric { min-width: 0; }
.agreement-metric__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }
.agreement-metric__head strong { color: #e6eae2; font-size: 12px; font-weight: 600; white-space: nowrap; }
.agreement-metric__head strong em { color: var(--green-hover); font-family: Georgia, serif; }
.agreement-metric__head > span { color: var(--gray-2); font-family: var(--mono); font-size: 6px; letter-spacing: 0.04em; white-space: nowrap; }
.agreement-rows { display: grid; gap: 10px; padding-top: 12px; }
.agreement-row { display: grid; grid-template-columns: minmax(62px, 0.95fr) minmax(26px,1fr) 35px; gap: 6px; align-items: center; color: var(--gray); font-size: 9px; }
.agreement-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agreement-row__track { display: block; height: 4px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,0.1); }
.agreement-row__track i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: rgba(180,187,177,0.63); transform: scaleX(0); transform-origin: left; animation: agreement-grow 0.75s cubic-bezier(0.2,0.7,0.2,1) both; }
.agreement-row:nth-child(2) .agreement-row__track i { animation-delay: 0.08s; }
.agreement-row:nth-child(3) .agreement-row__track i { animation-delay: 0.16s; }
.agreement-row:nth-child(4) .agreement-row__track i { animation-delay: 0.24s; }
.agreement-row:nth-child(5) .agreement-row__track i { animation-delay: 0.32s; }
.agreement-row--tacinf { color: #eef5e7; }
.agreement-row--tacinf .agreement-row__track i { background: linear-gradient(90deg, #76b900, #a3e635); box-shadow: 0 0 8px rgba(118,185,0,0.35); }
.agreement-row b { color: #e8ece4; font-family: var(--mono); font-size: 9px; font-weight: 400; text-align: right; }
.agreement-chart figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--gray-2); font-size: 11px; line-height: 1.5; }
.agreement-chart figcaption strong { color: #dce8cf; font-weight: 500; }
@keyframes agreement-grow { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .agreement-row__track i { animation: none; transform: none; } }
.evidence-copy h4 {
  font-family: var(--display);
  margin: 8px 0 12px;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.evidence-copy { margin-top: 26px; }
.evidence-copy p { color: var(--gray); font-size: 14px; line-height: 1.55; }
.evidence-copy p + p { margin-top: 10px; }
.evidence-copy strong { color: var(--white); font-weight: 500; }

/* ---------- citation ---------- */
.cite-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
  align-items: start;
}
.cite-copy > p { max-width: 46ch; color: var(--gray); font-size: 16px; line-height: 1.6; }
.cite-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.cite-links { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.cite-links a { width: fit-content; color: var(--green); font-size: 14px; }
.cite-links a:hover { text-decoration: underline; }
.cite-links .link-soon { width: fit-content; font-size: 14px; }
.bib-card {
  overflow: hidden;
  background: #f5f5f7;
  color: #1d1d1f;
  border-radius: 20px;
}
.bib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #e8e8ed;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 500;
}
.bib-head button {
  padding: 6px 12px;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.bib-head button:hover { background: #000; }
.bib-card pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  max-height: 360px;
  background: #f5f5f7;
  color: #1d1d1f;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  tab-size: 2;
}
.bib-card code { font-family: inherit; }

/* ---------- footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line-soft); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--gray-2);
  font-size: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 500; }
.footer-brand svg { width: 20px; height: 20px; color: var(--green); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--gray); }
.footer-links a:hover { color: var(--white); }
.footer-links .link-soon { font-size: 12px; }

/* ---------- lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--white);
  max-width: 94vw;
  max-height: 94vh;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  background: var(--surface);
}
.lightbox figcaption {
  max-width: min(76ch, 88vw);
  color: var(--gray);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 28, 30, 0.85);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--white); color: #000; }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 400;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 28, 30, 0.92);
  color: var(--white);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.998); }
  to { opacity: 1; transform: none; }
}

/* ---------- no-JS ---------- */
.js .panel:not(.is-active) { display: none !important; }
html:not(.js) .switcher { display: none; }
html:not(.js) .deck { margin-top: 0; }
html:not(.js) .panel { padding-bottom: 72px; border-bottom: 1px solid var(--line-soft); }
html:not(.js) .masthead { background: var(--bg); border-bottom-color: var(--line-soft); }

/* ---------- 404 ---------- */
.error-page {
  width: var(--wrap);
  min-height: 100svh;
  margin-inline: auto;
  padding-top: calc(var(--header-h) + 10vh);
  padding-bottom: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.error-page .kicker { justify-content: flex-start; }
.error-title {
  font-family: var(--display);
  margin-top: 18px;
  color: var(--green);
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
}
.error-title span { color: var(--yellow); }
.error-lede {
  margin-top: 24px;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.error-copy { max-width: 52ch; margin-top: 12px; color: var(--gray); font-size: 17px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root { --wrap: calc(100% - 40px); }
  .panel-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .panel-media { margin-top: 8px; }
  .agreement-evidence { max-width: 680px; margin-inline: auto; }
  .sub-head { grid-template-columns: 1fr; gap: 12px; }
  .cite-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --wrap: calc(100% - 32px); --header-h: 44px; }
  .masthead { padding-inline: 16px; gap: 10px; }
  .brand-tag { display: none; }
  .utility { gap: 14px; }
  .util { font-size: 12px; }
  .hero { padding: calc(var(--header-h) + 56px) 0 56px; }
  .hero-grid { gap: 32px; }
  .hero-title { font-size: clamp(3.6rem, 18vw, 6.5rem); }
  .hero-sub { font-size: clamp(1.2rem, 4.6vw, 1.6rem); }
  .hero-desc { font-size: 17px; }
  .hero-authors { margin-top: 32px; }
  .authors { font-size: 12px; line-height: 1.7; }
  .affiliations { font-size: 11px; }
  .modules, .cite { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-note { font-size: 17px; }
  .panel-kicker { font-size: 10px; letter-spacing: 0.02em; }
  .panel-title { font-size: clamp(2.3rem, 10vw, 3.4rem); }
  .panel-lede { font-size: 1.15rem; }
  .panel-copy > p { font-size: 17px; }
  .panel-stats, .panel-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .panel-stats--four .stat strong { font-size: 1.6rem; }
      .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .model-figure { max-width: 100%; margin-bottom: 36px; }
  .model-ui { left: 12px; right: 12px; bottom: 10px; }
  .model-hint, .model-reset { font-size: 11px; }
  .model-toggle { font-size: 11px; padding: 6px 10px; }
  .model-hint { display: none; }
  .model-ui { justify-content: flex-end; }
  .wide-figure .zoom { padding: 10px; }
  .bib-card pre { font-size: 12px; padding: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(3.2rem, 19vw, 5rem); }
  .hero-video-label { top: 10px; left: 10px; padding: 6px 8px; font-size: 7px; }
  .section-head h2 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding: 5px;
  }
  .tab { min-height: 56px; padding: 0 10px; font-size: 15px; }
  .tab-no { font-size: 9px; }
  .resource-grid { grid-template-columns: 1fr; }
  .panel-stats, .panel-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid, .demo-grid--three { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .cite-actions .btn { width: 100%; }
  .error-title { font-size: clamp(6rem, 26vw, 10rem); }
}

@media (max-width: 380px) {
  .util:nth-child(3) { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .deck { transition: none !important; }
  .panel { transition: none !important; }
  .panel.is-entering { animation: none !important; }
  .panel.is-leaving { opacity: 1; transform: none; }
}

/* ---------- multi-source data synergy ---------- */
.data-synergy {
  position: relative;
  overflow: hidden;
  padding: 104px 0 108px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 82% 48%, rgba(118, 185, 0, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(8, 11, 8, 0.82), rgba(3, 5, 3, 0.96));
}
.data-synergy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.data-synergy-head .kicker { justify-content: flex-start; }
.data-synergy-head h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 5.6vw, 5.3rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.data-synergy-head h2 em { color: var(--green); font-style: normal; }
.data-synergy-head > p {
  max-width: 44ch;
  margin: 0 0 4px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.55;
}
.synergy-layout {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}
.data-flow-diagram {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(118, 185, 0, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(118, 185, 0, 0.1), transparent 45%),
    linear-gradient(145deg, rgba(17, 21, 16, 0.98), rgba(5, 8, 5, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255,255,255,0.04);
}
.data-flow-diagram figcaption {
  padding: 15px 22px 17px;
  border-top: 1px solid var(--line-soft);
  color: var(--gray-2);
  font-size: 12px;
  line-height: 1.5;
}
.flow-diagram-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.flow-diagram-head__label,
.flow-diagram-head__status,
.flow-source__top,
.flow-source__cost-label,
.flow-source__cost-value,
.flow-training__copy > span,
.flow-training__note,
.flow-replay-caption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}
.flow-diagram-head__label { color: var(--gray-2); }
.flow-diagram-head__status { display: flex; align-items: center; gap: 9px; color: #dce6d1; }
.flow-diagram-head__status i,
.flow-source__signal {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-hover);
  box-shadow: 0 0 13px rgba(142, 214, 0, 0.58);
  animation: flow-pulse 1.8s ease-in-out infinite;
}
@keyframes flow-pulse { 50% { opacity: 0.42; box-shadow: 0 0 2px rgba(142,214,0,0.2); } }
.flow-stage { position: relative; padding: 25px 20px 30px; }
.flow-sources { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7%; }
.flow-source {
  position: relative;
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 18px 15px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(24,29,23,0.97), rgba(11,14,11,0.97));
}
.flow-source--teleop { border-top-color: rgba(56,189,248,0.62); }
.flow-source--sim { border-top-color: rgba(118,185,0,0.8); }
.flow-source--tacumi { border-top-color: rgba(167,139,250,0.75); }
.flow-source__top { display: flex; width: 100%; justify-content: space-between; align-items: center; color: var(--gray-2); font-size: 8px; }
.flow-source--teleop .flow-source__signal { background: #38bdf8; box-shadow: 0 0 13px rgba(56,189,248,0.55); }
.flow-source--tacumi .flow-source__signal { background: #a78bfa; box-shadow: 0 0 13px rgba(167,139,250,0.55); }
.flow-source h3 { margin-top: 20px; color: var(--white); font-family: var(--display); font-size: clamp(18px, 2vw, 23px); font-weight: 600; letter-spacing: -0.035em; }
.flow-source p { max-width: 34ch; margin-top: 7px; color: var(--gray); font-size: 12px; line-height: 1.45; }
.flow-source__cost { display: flex; width: 100%; align-items: center; gap: 9px; margin-top: auto; padding-top: 14px; color: #bdc5b3; }
.flow-source__cost-label { color: var(--gray-2); font-size: 7px; }
.flow-source__cost-value { margin-left: auto; color: #e2e8dc; font-size: 8px; }
.flow-cost-meter { display: flex; gap: 3px; }
.flow-cost-meter i { width: 12px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.14); }
.flow-cost-meter i.is-filled { background: var(--green-hover); box-shadow: 0 0 8px rgba(142,214,0,0.38); }
.flow-connectors { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-link,
.flow-stream { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.flow-link { stroke: rgba(118,185,0,0.72); }
.flow-link--umi { stroke: rgba(167,139,250,0.68); stroke-dasharray: 5 5; }
.flow-stream { stroke-dasharray: 6 10; animation: flow-travel 1.5s linear infinite; }
.flow-stream--teleop,
.flow-stream--sim { stroke: rgba(118,185,0,0.82); }
.flow-stream--tacumi { stroke: rgba(167,139,250,0.82); animation-delay: -0.7s; }
@keyframes flow-travel { to { stroke-dashoffset: -32; } }
.flow-replay-caption { position: relative; z-index: 1; display: flex; justify-content: space-between; margin: 12px 4% 0; color: var(--gray-2); font-size: 8px; }
.flow-training {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(660px, 76%);
  min-height: 88px;
  align-items: center;
  gap: 22px;
  margin: 84px auto 0;
  padding: 16px 24px;
  border: 1px solid rgba(118,185,0,0.38);
  border-radius: 13px;
  background: linear-gradient(105deg, rgba(118,185,0,0.11), rgba(18,23,17,0.98) 48%, rgba(118,185,0,0.08));
  box-shadow: 0 12px 40px rgba(0,0,0,0.28), inset 0 1px rgba(255,255,255,0.04);
}
.flow-training__copy { min-width: 0; }
.flow-training__copy > span { color: var(--green-hover); font-size: 8px; }
.flow-training__copy h3 { margin-top: 4px; color: var(--white); font-family: var(--display); font-size: clamp(19px, 2.3vw, 27px); font-weight: 600; letter-spacing: -0.04em; }
.flow-training__copy p { margin-top: 3px; color: var(--gray); font-size: 11px; }
.flow-data-stack { display: flex; align-items: flex-end; gap: 5px; margin-left: auto; }
.flow-data-stack i { display: block; width: 13px; height: 32px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #38bdf8, rgba(56,189,248,0.34)); box-shadow: inset 0 2px rgba(255,255,255,0.18); }
.flow-data-stack i:nth-child(2) { height: 38px; background: linear-gradient(180deg, var(--green-hover), rgba(118,185,0,0.34)); }
.flow-data-stack i:nth-child(3) { height: 29px; background: linear-gradient(180deg, #a78bfa, rgba(167,139,250,0.34)); }
.flow-training__note { color: #d4ddcb; font-size: 8px; line-height: 1.5; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .flow-stream,
  .flow-diagram-head__status i,
  .flow-source__signal { animation: none; }
}
.data-synergy + .modules { padding-top: 104px; }

@media (max-width: 900px) {
  .data-synergy-head { grid-template-columns: 1fr; gap: 22px; }
  .data-synergy-head > p { max-width: 58ch; }
  .synergy-layout { gap: 30px; }
  .flow-source { padding-inline: 13px; }
  .flow-source p { font-size: 11px; }
  .data-synergy + .modules { padding-top: 82px; }
}
@media (max-width: 560px) {
  .agreement-chart { padding: 15px; }
  .agreement-chart__metrics { grid-template-columns: 1fr; gap: 22px; }
  .agreement-row { grid-template-columns: minmax(90px, 0.9fr) minmax(40px,1fr) 38px; font-size: 9px; }
  .agreement-row b { font-size: 9px; }
  .agreement-chart figcaption { font-size: 10px; }
  .evidence-copy { margin-top: 22px; }
  .data-synergy { padding: 72px 0 76px; }
  .data-synergy-head { gap: 17px; margin-bottom: 34px; }
  .data-synergy-head h2 { font-size: clamp(2.55rem, 10vw, 3.6rem); }
  .data-synergy-head > p { font-size: 15px; }
  .flow-diagram-head { padding: 14px 15px; }
  .flow-diagram-head__status { font-size: 8px; }
  .flow-stage { padding: 17px 14px 22px; }
  .flow-sources { grid-template-columns: 1fr; gap: 9px; }
  .flow-source { min-height: 0; padding: 13px 14px; }
  .flow-source h3 { margin-top: 11px; font-size: 17px; }
  .flow-source p { max-width: none; margin-top: 4px; font-size: 11px; }
  .flow-source__cost { padding-top: 8px; }
  .flow-source__cost-label { font-size: 6px; }
  .flow-connectors { display: none; }
  .flow-replay-caption { margin: 12px 4% 0; font-size: 7px; }
  .flow-training { width: 100%; min-height: 76px; gap: 11px; margin-top: 24px; padding: 12px 13px; }
  .flow-training__copy h3 { font-size: 18px; }
  .flow-training__copy p { font-size: 9px; }
  .flow-data-stack { gap: 3px; }
  .flow-data-stack i { width: 9px; height: 26px; }
  .flow-data-stack i:nth-child(2) { height: 31px; }
  .flow-data-stack i:nth-child(3) { height: 23px; }
  .flow-training__note { font-size: 6px; }
  .data-flow-diagram figcaption { padding: 10px 13px 12px; font-size: 10px; }
  .data-synergy + .modules { padding-top: 70px; }
}

/* ---------- 2026 editorial refinement ----------
   A quieter, more architectural layer over the original interaction system.
   The content stays intact; the visual hierarchy gets more deliberate. */
:root {
  --bg: #050705;
  --bg-soft: #090d08;
  --surface: #11160e;
  --surface-2: #171e12;
  --white: #f2f3ec;
  --gray: #b0b8a8;
  --gray-2: #818b7b;
  --line: rgba(118, 185, 0, 0.2);
  --line-soft: rgba(118, 185, 0, 0.12);
  --green: #76b900;
  --green-hover: #8ed600;
  --yellow: #e7b416;
  --blue: #38bdf8;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --wrap: min(1180px, calc(100% - 56px));
}

body {
  background:
    radial-gradient(58% 38% at 42% -8%, rgba(118, 185, 0, 0.075), transparent 72%),
    var(--bg);
  color: var(--white);
}

.masthead {
  height: 58px;
  padding-inline: max(28px, calc((100vw - 1180px) / 2));
}
.masthead.is-scrolled {
  background: rgba(5, 7, 5, 0.88);
  border-bottom-color: rgba(118, 185, 0, 0.16);
}
.brand-mark { width: 24px; height: 24px; }
.brand-word { font-size: 19px; }
.brand-tag { color: #7f897d; }
.utility { gap: 24px; }
.util { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }

.hero {
  min-height: 820px;
  padding: calc(var(--header-h) + 88px) 0 72px;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(230, 239, 223, 0.045) 50%, transparent calc(50% + 1px)),
    radial-gradient(54% 44% at 30% 5%, rgba(118, 185, 0, 0.095), transparent 74%),
    radial-gradient(34% 26% at 84% 16%, rgba(56, 189, 248, 0.035), transparent 74%);
}
.hero::before {
  background-size: 32px 32px;
  opacity: 0.09;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.24fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 540px; text-align: left; }
.hero-copy > .kicker { justify-content: flex-start; }
.hero-title { justify-content: flex-start; font-size: clamp(5.5rem, 10vw, 9.8rem); }
.hero-sub { margin-left: 0; font-size: clamp(1.4rem, 2.45vw, 2.15rem); }
.hero-desc { margin-left: 0; font-size: 16px; max-width: 48ch; }
.hero-actions { justify-content: flex-start; }
.hero-figure { width: 100%; }
.hero-video-frame { border-radius: 14px; box-shadow: 0 26px 70px rgba(0,0,0,0.48), 0 0 0 1px rgba(118,185,0,0.05); }
.hero-authors {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}
.authors { justify-content: flex-start; }
.affiliations { justify-content: flex-start; }

.modules { padding: 132px 0 118px; }
.section-head {
  max-width: none;
  margin: 0 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 40px;
  align-items: end;
  text-align: left;
}
.section-head > div .kicker { justify-content: flex-start; }
.section-head h2 { margin-top: 14px; font-size: clamp(3rem, 5vw, 5rem); }
.section-note { margin: 0 0 4px; max-width: 42ch; font-size: 16px; }
.compute-note { grid-column: 1 / -1; justify-self: start; margin-top: -6px; }

.switcher { align-items: stretch; margin-bottom: 52px; }
.tabs {
  width: 100%;
  padding: 4px;
  gap: 2px;
  border-radius: 10px;
  background: rgba(22, 27, 23, 0.72);
  border-color: var(--line-soft);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.tab-indicator { border-radius: 7px; }
.tab { min-height: 52px; border-radius: 7px; font-size: 15px; }
.tab-readout { justify-content: flex-start; padding-left: 8px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.deck { padding-top: 2px; }
.deck::before { opacity: 0.045; filter: blur(170px); }
.panel-head { margin-bottom: 42px; max-width: 760px; }
.panel-title { font-size: clamp(3.2rem, 5vw, 5.2rem); }
.panel-lede { max-width: 650px; font-size: clamp(1.25rem, 1.9vw, 1.65rem); }
.panel-grid { gap: 72px; }
.panel-copy > p { max-width: 52ch; font-size: 16px; }
.resource-grid { gap: 8px; margin-top: 32px; }
.resource-card {
  min-height: 148px;
  padding: 17px;
  border-radius: 9px;
  background: rgba(21, 25, 22, 0.78);
  box-shadow: none;
}
.resource-card::before { left: 17px; right: 17px; height: 1px; opacity: 0.5; }
.resource-card:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24); }
.resource-card strong { font-size: 15px; }
.resource-card p { font-size: 12px; }
.panel-stats { margin-top: 38px; padding-top: 20px; }
.stat strong { font-size: clamp(2.2rem, 3.2vw, 3.2rem); }

.media, .video-card, .wide-figure, .model-stage { border-radius: 12px; box-shadow: none; }
.media, .video-card { background: rgba(21, 25, 22, 0.7); }
.media figcaption, .video-card figcaption { font-size: 12px; }
.comparison-block, .sub-block { margin-top: 66px; padding-top: 28px; }
.video-feature { max-width: none; margin-bottom: 56px; }
.model-stage { background: radial-gradient(60% 60% at 50% 40%, #1a1e1b 0%, #0c0f0d 68%, #080a09 100%); }
.cite { padding: 120px 0; }
.cite .section-head { margin-bottom: 54px; }
.bib-card { border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22); }
.footer { padding: 34px 0; }

/* NVIDIA Sans typography with restrained green signal details. */
.hero-title, .section-head h2, .panel-title, .sub-head h4, .evidence-copy h4, .error-title { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; }
.hero-title { font-size: clamp(5.5rem, 10vw, 9.8rem); line-height: 0.86; }
.hero-title .title-accent { color: var(--green); font-style: normal; }
.hero-sub { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; }
.section-head h2 em { color: var(--green); font-style: normal; }
.brand-mark, .footer-brand svg { color: var(--green); }
.brand-mark .brand-core, .footer-brand .brand-core { fill: var(--green-hover); }
.brand-word { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; }
.btn-solid {
  border-color: rgba(118, 185, 0, 0.78);
  background: linear-gradient(180deg, rgba(142, 214, 0, 0.95), rgba(118, 185, 0, 0.86));
  color: #071000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 28px rgba(118, 185, 0, 0.16);
}
.btn-solid:hover { border-color: var(--green-hover); background: var(--green-hover); color: #071000; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), 0 0 32px rgba(118, 185, 0, 0.22); }
.btn-ghost { border-color: rgba(118, 185, 0, 0.42); background: rgba(118, 185, 0, 0.035); box-shadow: none; }
.btn-ghost:hover { border-color: rgba(118, 185, 0, 0.72); background: rgba(118, 185, 0, 0.1); }
.deck::before { opacity: 0.012; }
.hero-figure .zoom:hover { border-color: rgba(118, 185, 0, 0.38); }
.resource-card:hover { border-color: rgba(118, 185, 0, 0.38); }
.media:not(.media--paper):hover, .video-card:hover { border-color: rgba(118, 185, 0, 0.26); box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.04); }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { max-width: 720px; }
  .hero-figure { grid-row: 2; }
  .hero-authors { grid-row: 3; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-note { max-width: 60ch; }
}

@media (max-width: 760px) {
  :root { --wrap: calc(100% - 32px); --header-h: 44px; }
  .masthead { height: 44px; padding-inline: 16px; }
  .utility { gap: 12px; }
  .hero { padding: calc(var(--header-h) + 58px) 0 56px; background: radial-gradient(90% 42% at 50% 0%, rgba(118, 185, 0, 0.08), transparent 74%); }
  .hero-grid { gap: 30px; }
  .hero-copy, .hero-figure, .hero-authors { min-width: 0; max-width: 100%; }
  .hero-copy { text-align: center; }
  .hero-copy > .kicker { justify-content: center; flex-wrap: wrap; text-align: center; row-gap: 4px; }
  .hero-title { justify-content: center; font-size: clamp(4rem, 19vw, 6.5rem); }
  .hero-sub, .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-authors { text-align: center; }
  .authors, .affiliations { justify-content: center; }
  .modules { padding: 86px 0 78px; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .compute-note { justify-self: stretch; justify-content: center; text-align: center; }
  .tab-readout { padding-left: 2px; }
}

@media (max-width: 560px) {
  .brand-word { font-size: 17px; }
  .utility { gap: 10px; }
  .util { font-size: 9px; }
  .util--soon { display: none; }
  .hero-title { font-size: clamp(3.5rem, 20vw, 5.2rem); }
  .hero-sub { max-width: 22ch; font-size: 1.35rem; }
  .hero-desc { max-width: 34ch; font-size: 16px; }
  .hero-figure .zoom { padding: 7px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { min-height: 52px; padding-inline: 8px; font-size: 14px; }
  .tab-no { font-size: 8px; }
  .tab-readout { font-size: 9px; }
  .panel-grid { gap: 32px; }
  .panel-head { margin-bottom: 30px; }
  .panel-title { font-size: clamp(2.7rem, 14vw, 4rem); }
  .panel-lede { font-size: 1.2rem; }
  .resource-grid { margin-top: 24px; }
  .resource-card { min-height: 136px; }
  .cite { padding: 84px 0; }
}

/* Research-paper opening: title, authors, video, then the abstract. */
.paper-hero {
  padding: calc(var(--header-h) + 58px) 0 76px;
  background: var(--bg);
}
.paper-heading { max-width: 1080px; margin: 0 auto; text-align: center; }
.paper-kicker { margin: 0 0 20px; color: var(--gray-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; }
.paper-title {
  max-width: 1060px;
  margin: 0 auto;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.paper-title > span { color: var(--green); }
.paper-byline { max-width: 1040px; margin: 30px auto 0; }
.paper-authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 16px; color: #cdd4c7; font-size: 17px; line-height: 1.7; }
.paper-authors > span { white-space: nowrap; }
.paper-authors sup { color: var(--green); margin-left: 2px; }
.paper-affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 17px; color: var(--gray); font-size: 15px; line-height: 1.6; }
.paper-affiliations > span { white-space: nowrap; }
.paper-affiliations sup { margin-right: 3px; color: var(--green); }
.paper-author-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px; color: var(--gray-2); font-size: 12px; line-height: 1.7; }
.paper-author-notes span { white-space: nowrap; }
.paper-author-notes sup { margin-right: 3px; color: var(--green); }
.paper-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 25px; }
.paper-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--white); font-size: 14px; font-weight: 500; transition: background 160ms, border-color 160ms; }
a.paper-link:hover { border-color: #5c7e35; background: #11190c; }
.paper-link--primary { color: #071000; background: var(--green); border-color: var(--green); }
a.paper-link--primary:hover { background: var(--green-hover); border-color: var(--green-hover); color: #071000; }
.paper-link--disabled { background: #11160e; color: var(--gray); }
.paper-link--disabled span { color: var(--gray-2); font-size: 11px; font-weight: 400; }
.paper-video { max-width: 960px; margin: 42px auto 0; }
.paper-video-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0a0e0b; box-shadow: 0 20px 55px rgba(0,0,0,.28); }
.paper-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.paper-video figcaption { margin-top: 14px; color: var(--gray); font-size: 15px; line-height: 1.6; text-align: center; }
.paper-abstract { max-width: 860px; margin: 64px auto 0; padding-top: 27px; border-top: 1px solid var(--line-soft); }
.paper-abstract h2 { margin: 0 0 17px; color: var(--white); text-align: center; font-size: 27px; font-weight: 700; letter-spacing: -0.025em; }
.paper-abstract > p { color: var(--gray); font-size: 16px; line-height: 1.85; text-align: justify; text-wrap: pretty; }

@media (max-width: 1100px) {
  .paper-title-break { display: none; }
  .paper-title { max-width: 920px; }
  .paper-byline { max-width: 900px; }
}
@media (max-width: 760px) {
  .paper-hero { padding: calc(var(--header-h) + 42px) 0 52px; }
  .paper-kicker { font-size: 9px; margin-bottom: 16px; }
  .paper-title { font-size: clamp(29px, 6vw, 42px); line-height: 1.16; letter-spacing: -0.025em; }
  .paper-byline { margin-top: 24px; }
  .paper-authors { font-size: 15px; gap: 5px 12px; line-height: 1.65; }
  .paper-affiliations { font-size: 14px; gap: 5px 18px; margin-top: 15px; }
  .paper-author-notes { font-size: 11px; gap: 3px 12px; margin-top: 8px; }
  .paper-links { gap: 8px; margin-top: 21px; }
  .paper-link { min-height: 40px; padding: 9px 15px; font-size: 12px; gap: 7px; }
  .paper-link--disabled span { font-size: 10px; }
  .paper-video { margin-top: 30px; }
  .paper-video-frame { border-radius: 8px; }
  .paper-video figcaption { font-size: 13px; }
  .paper-abstract { margin-top: 44px; }
  .paper-abstract h2 { font-size: 25px; margin-bottom: 14px; }
  .paper-abstract > p { font-size: 16px; line-height: 1.8; text-align: left; }
}
@media (max-width: 380px) {
  .paper-authors { font-size: 14px; column-gap: 10px; }
  .paper-links { column-gap: 6px; }
  .paper-link { padding-inline: 12px; }
}

@media (max-width: 380px) {
  .utility { gap: 8px; }
  .util:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .deck, .panel { transition: none !important; }
  .panel.is-entering { animation: none !important; }
  .panel.is-leaving { opacity: 1; transform: none; }
}
