/* ============================================================
   VLK project page — v3 visual upgrade
   ============================================================ */

:root {
  --bg: #06060a;
  --bg-elev: #0c0c14;
  --bg-elev-2: #14141d;
  --bg-elev-3: #1a1a24;
  --fg: #f4f4f9;
  --fg-2: #b4b4c2;
  --fg-3: #7a7a8c;
  --fg-4: #4d4d5e;

  --accent: #b4a0ff;        /* refined lavender */
  --accent-2: #ffd28a;       /* warm amber */
  --accent-blue: #7bb3ff;
  --accent-red: #ff8aa3;
  --accent-grn: #7feccf;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-bold: rgba(255, 255, 255, 0.28);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --max-w: 1280px;
  --max-w-narrow: 920px;
  --pad-x: clamp(20px, 4vw, 64px);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01' on, 'cv11' on;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

::selection { background: color-mix(in srgb, var(--accent) 50%, transparent); color: #fff; }

/* page-wide noise texture for cinematic feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============================================================
   NAV — sticky, blurs background once scrolled past hero
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--pad-x);
  background: rgba(6, 6, 10, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), background 0.25s var(--ease);
}
/* While the hero is visible we want the nav to look "floating" (no border,
   thinner bg) — JS toggles .nav-scrolled when we're past the hero. */
.nav.nav-on-hero {
  background: linear-gradient(180deg, rgba(6,6,10,0.45), transparent);
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: 24px;
  padding-bottom: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad-x) clamp(80px, 10vh, 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(0.92) contrast(1.06);
  transform: scale(1.06);
}
/* multi-layer grade */
.hero-bg-grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 65% at 25% 45%,
      transparent 0%,
      rgba(6,6,10,0.45) 55%,
      rgba(6,6,10,0.92) 100%),
    linear-gradient(180deg,
      rgba(6,6,10,0.55) 0%,
      rgba(6,6,10,0.10) 38%,
      rgba(6,6,10,0.55) 78%,
      rgba(6,6,10,1)    100%);
}
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 140% 90% at 50% 30%,
    transparent 30%,
    rgba(0,0,0,0.55) 100%);
}
/* accent glow */
.hero::after {
  content: '';
  position: absolute;
  left: -10%;
  top: 20%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 65%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding-top: clamp(10px, 4vh, 40px);
}

.hero-title {
  margin: 0 0 38px 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.hero-mark {
  display: block;
  font-size: clamp(110px, 18vw, 280px);
  background: linear-gradient(160deg, #fff 0%, #fff 35%, var(--accent) 75%, var(--accent-blue) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  line-height: 0.92;
  text-shadow: 0 0 100px rgba(180, 160, 255, 0.18);
  letter-spacing: -0.04em;
}
.hero-sub {
  display: block;
  font-size: clamp(22px, 3.1vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  font-family: var(--font-sans);
  letter-spacing: -0.022em;
  max-width: 1080px;
}

/* authors */
.authors {
  margin: 36px 0 0 0;
  max-width: 1100px;
}
.author-line {
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.85;
  margin: 0 0 2px 0;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.003em;
  font-weight: 500;
}
.author-line .author {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.author-line .author:hover {
  color: var(--accent);
  border-bottom-color: color-mix(in srgb, var(--accent) 65%, transparent);
}
.author-line sup {
  font-family: var(--font-mono);
  font-size: 0.62em;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  margin-left: 1px;
}
.affiliations {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  margin: 14px 0 4px 0;
  line-height: 1.6;
}
.affiliations sup {
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--accent);
  font-weight: 500;
  margin-right: 2px;
}
.affiliations .sep { color: rgba(255,255,255,0.32); margin: 0 4px; }
.affiliations-foot {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin: 6px 0 0 0;
}
.affiliations-foot sup {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-right: 1px;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section {
  position: relative;
  padding: clamp(100px, 14vh, 180px) var(--pad-x);
}
section + section {
  border-top: 1px solid var(--line);
}
.container { max-width: var(--max-w); margin: 0 auto; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.026em;
  margin: 0 0 22px 0;
  max-width: 980px;
}
.section-lead {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--fg-2);
  max-width: 760px;
  margin: 0 0 60px 0;
  line-height: 1.6;
}

/* chips */
.chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: middle;
  white-space: nowrap;
}
.chip-blue { background: color-mix(in srgb, var(--accent-blue) 20%, transparent); color: var(--accent-blue); }
.chip-red  { background: color-mix(in srgb, var(--accent-red)  20%, transparent); color: var(--accent-red); }

.kbd {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent);
  padding: 1px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ============================================================
   ABSTRACT  +  HIGHLIGHT REEL — paired
   ============================================================ */
.abstract {
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-elev));
}
.abstract-pair {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1080px) {
  .abstract-pair { grid-template-columns: 1fr; gap: 40px; }
}
.abstract-text { min-width: 0; }
.abstract-body {
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--fg-2);
  line-height: 1.8;
  margin-top: 16px;
}
.abstract-body p { margin: 0 0 20px 0; }
.abstract-body p:last-child { margin-bottom: 0; }

.abstract-media { min-width: 0; }
/* nudge eyebrow down a bit so the video top aligns with the abstract paragraph */
.abstract-media .section-eyebrow {
  margin-top: clamp(18px, 2vh, 32px);
  margin-bottom: 16px;
}
@media (max-width: 1080px) {
  .abstract-media .section-eyebrow { margin-top: 0; }
}
.highlight-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow:
    0 40px 120px -36px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 0 80px -20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.highlight-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}
.highlight-caption {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  line-height: 1.65;
}
.highlight-caption strong {
  color: var(--accent);
  font-weight: 500;
}

/* three small feature stat boxes under the highlight video */
.feature-row {
  list-style: none;
  margin: clamp(70px, 8vh, 110px) 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 1080px) {
  .feature-row { margin-top: 30px; }
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  transition: all 0.3s var(--ease);
}
.feature:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong));
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6);
}
.feature-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature-lab {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.45;
}
.feature-lab em {
  font-style: normal;
  color: var(--fg-4);
}

/* ============================================================
   METHOD — staged chapters
   ============================================================ */
.method {
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, color-mix(in srgb, var(--accent-blue) 7%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--bg);
}

.stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
  padding-top: 40px;
}
.stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.stage:first-of-type::before { display: none; }
.stage:last-child { margin-bottom: 0; }
.stage-2 { grid-template-columns: 1.1fr 1fr; }
.stage-2 .stage-side { grid-row: 1; grid-column: 2; }
.stage-2 .stage-media { grid-row: 1; grid-column: 1; }

.step-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 20px;
}
.step-pill-alt {
  background: color-mix(in srgb, var(--accent-blue) 14%, transparent);
  color: var(--accent-blue);
  border-color: color-mix(in srgb, var(--accent-blue) 30%, transparent);
}

.stage h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
  line-height: 1.18;
  color: #fff;
}
.stage-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stage-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.65;
}
.stage-steps li:first-child { border-top: none; padding-top: 4px; }
.stage-steps li strong { color: #fff; font-weight: 600; }
a.inline-link {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
a.inline-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.step-no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: inline-block;
  width: 30px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 6px;
  padding: 3px 0;
  align-self: start;
  margin-top: 2px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.stage-2 .step-no {
  color: var(--accent-blue);
  border-color: color-mix(in srgb, var(--accent-blue) 30%, transparent);
  background: color-mix(in srgb, var(--accent-blue) 6%, transparent);
}
.stage-coda {
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent-blue);
  background: color-mix(in srgb, var(--accent-blue) 5%, transparent);
  border-radius: 6px;
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.6;
}

.stage-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow:
    0 30px 100px -30px rgba(0,0,0,0.8),
    0 0 0 1px rgba(255,255,255,0.025) inset;
}
.stage-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.stage-media:hover::before { opacity: 1; }
.stage-media video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

@media (max-width: 980px) {
  .stage, .stage-2 { grid-template-columns: 1fr; gap: 30px; }
  .stage-2 .stage-side,
  .stage-2 .stage-media { grid-row: auto; grid-column: auto; }
}

/* ============================================================
   MODES — 2-col big cards
   ============================================================ */
.modes { background: var(--bg); }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 720px) { .mode-grid { grid-template-columns: 1fr; } }

.mode-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 40%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.mode-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong));
  box-shadow: 0 32px 70px -22px rgba(0, 0, 0, 0.7);
}
.mode-card:hover::before { opacity: 1; }

.mode-card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
  display: block;
}
.mode-card figcaption {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 26px 26px;
  position: relative;
  z-index: 2;
}
.mode-card figcaption > div { display: flex; flex-direction: column; gap: 4px; }
.mode-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 4px;
  flex-shrink: 0;
  opacity: 0.85;
}
.mode-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--fg);
  line-height: 1.1;
}
.mode-desc {
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.55;
}

/* ============================================================
   SIM
   ============================================================ */
.deploy-sim {
  background:
    radial-gradient(ellipse 50% 40% at 90% 50%, color-mix(in srgb, var(--accent-blue) 8%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 50%, color-mix(in srgb, var(--accent-red) 8%, transparent), transparent 60%),
    var(--bg);
}
.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
@media (max-width: 880px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-card {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  transition: all 0.4s var(--ease-out);
}
.sim-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 32px 80px -22px rgba(0,0,0,0.75);
}
.sim-card video {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: contain;
  background: #000;
  display: block;
}
.sim-card figcaption {
  padding: 18px 24px 22px;
  font-size: 13.5px;
  color: var(--fg-3);
  line-height: 1.6;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

/* ============================================================
   REAL — five task rows
   ============================================================ */
.deploy-real { background: var(--bg); }
.task {
  margin-bottom: 100px;
  position: relative;
}
.task:last-child { margin-bottom: 0; }

.task-head {
  margin-bottom: 30px;
  max-width: 760px;
}
.task-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.task-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
}
.task-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.task h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.8vw, 36px);
  letter-spacing: -0.022em;
  margin: 0 0 14px 0;
  line-height: 1.15;
}
.task-head p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}

.task-grid { display: grid; gap: 22px; }
.task-grid-1 { grid-template-columns: 1fr; }
.task-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .task-grid-2 { grid-template-columns: 1fr; } }

.task-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.task-grid figure:hover {
  border-color: color-mix(in srgb, var(--accent-2) 30%, var(--line-strong));
  transform: translateY(-3px);
  box-shadow: 0 32px 70px -22px rgba(0, 0, 0, 0.7);
}
.task-grid video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.task-grid-portrait video {
  aspect-ratio: 8 / 9;
  object-fit: contain;
  background: #000;
}
.task-grid figcaption {
  padding: 16px 22px 20px;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

/* ============================================================
   PAPER
   ============================================================ */
.paper { background: linear-gradient(180deg, var(--bg), var(--bg-elev)); }
.paper .section-eyebrow { margin-bottom: 28px; }
.paper-container {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 880px) { .paper-container { grid-template-columns: 1fr; } }

.paper-card {
  height: 100%;
  padding: 34px 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  position: relative;
  overflow: hidden;
}
.paper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80%;
  height: 100%;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent-blue) 10%, transparent), transparent 65%);
  pointer-events: none;
}
.paper-card > * { position: relative; }
.paper-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.paper-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: -0.018em;
  line-height: 1.28;
  margin: 0 0 16px 0;
  color: #fff;
}
.paper-card-meta {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 28px 0;
}
.paper-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  color: #0c0a18;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fff, var(--accent));
  color: #0c0a18;
  box-shadow: 0 14px 50px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.paper-right {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bibtex-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}
.bibtex-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.bibtex-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.bibtex-copy:hover {
  background: var(--accent);
  color: #0c0a18;
  border-color: var(--accent);
}
.bibtex-copy.copied {
  background: var(--accent-grn);
  color: #0c1a14;
  border-color: var(--accent-grn);
}
.bibtex {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--fg-2);
  background: transparent;
  padding: 22px 24px;
  margin: 0;
  overflow-x: auto;
}
.bibtex code { color: inherit; }

/* ============================================================
   ACKNOWLEDGEMENTS
   ============================================================ */
.ack {
  padding-top: clamp(70px, 10vh, 110px);
  padding-bottom: clamp(80px, 10vh, 120px);
  background: linear-gradient(180deg, var(--bg-elev), color-mix(in srgb, var(--accent) 6%, var(--bg)));
}
.ack-container { max-width: 920px; }
.ack-body {
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.8;
  margin: 14px 0 0 0;
}
.ack-body strong {
  color: var(--fg);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  padding: 36px var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-meta {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
  flex: 1;
  flex-wrap: wrap;
}
.foot-meta > span:nth-child(2n) { color: var(--fg-4); }
.foot-top {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.foot-top:hover {
  background: var(--accent);
  color: #1a1320;
  border-color: var(--accent);
}
.foot-credit {
  max-width: var(--max-w);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-4);
  text-align: center;
  line-height: 1.6;
}
.foot-credit a {
  color: var(--fg-3);
  border-bottom: 1px solid color-mix(in srgb, var(--fg-3) 40%, transparent);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.foot-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  body::before { display: none; }
}

video { outline: none; background: #000; }
video::-webkit-media-controls-panel { background: rgba(0, 0, 0, 0.55); }
