:root {
  --ink: #10222a;
  --ink-soft: #51636b;
  --navy: #071920;
  --navy-2: #0b2730;
  --teal: #38d6b5;
  --teal-dark: #148b7b;
  --magenta: #b42ca6;
  --orange: #f36d31;
  --paper: #ffffff;
  --mist: #f3f7f6;
  --line: #dce7e4;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(13, 38, 45, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
figure, h1, h2, h3, p { margin-top: 0; }
.centered { text-align: center; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  color: var(--navy);
  background: var(--teal);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.page-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow-shell { width: min(940px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section[id] { min-height: 100svh; }
.section-kicker {
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-heading { margin-bottom: 36px; }
.section-heading h2 {
  max-width: 830px;
  margin: 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-heading h2 em { color: var(--magenta); font-style: normal; }
.section-lede {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 64px;
  align-items: end;
}
.split-heading h2 { margin: 0; }
.split-heading > p { margin: 0 0 5px; color: var(--ink-soft); font-size: 1.05rem; }

/* Hero */
.paper-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #eefbf8;
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 214, 181, .20), transparent 34%),
    radial-gradient(circle at 84% 62%, rgba(180, 44, 166, .18), transparent 35%),
    linear-gradient(135deg, #06171d 0%, #092630 55%, #07171d 100%);
}
.paper-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 88%);
}
.paper-nav { position: relative; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-shell { width: min(1180px, calc(100% - 48px)); height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.14rem; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #06211e; background: var(--teal); font-size: 1rem; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { position: relative; color: rgba(238,251,248,.76); font-size: .92rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; padding: 8px; border: 0; color: #fff; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; border-radius: 2px; background: currentColor; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .86fr) minmax(540px, 1.14fr); gap: 60px; align-items: center; min-height: calc(100svh - 76px); padding: 48px 0 64px; }
.eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; color: var(--teal); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 30px; height: 2px; background: currentColor; }
.hero-copy h1 { margin-bottom: 14px; font-family: "Space Grotesk", sans-serif; font-size: clamp(4.6rem, 8vw, 7.4rem); line-height: .88; letter-spacing: -.075em; }
.hero-copy h1 span { color: var(--teal); }
.hero-subtitle { max-width: 610px; margin-bottom: 22px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.hero-summary { max-width: 570px; margin-bottom: 32px; color: rgba(238,251,248,.68); font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.resource-button { display: inline-flex; gap: 9px; align-items: center; min-height: 46px; padding: 0 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; color: #fff; background: rgba(255,255,255,.07); font-size: .9rem; font-weight: 700; text-decoration: none; backdrop-filter: blur(8px); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.resource-button[href]:hover, .resource-button[href]:focus-visible { border-color: rgba(56,214,181,.72); background: rgba(56,214,181,.14); transform: translateY(-2px); }
.resource-button small { padding-left: 8px; border-left: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.hero-visual { position: relative; perspective: 1200px; }
.hero-figure-card { overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.38); transform: rotateY(-4deg) rotateX(1deg); }
.figure-window-bar { display: flex; gap: 7px; align-items: center; height: 34px; padding: 0 14px; background: #edf1f0; }
.figure-window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5d2; }
.figure-window-bar span:first-child { background: #ef786e; }
.figure-window-bar span:nth-child(2) { background: #efbe5c; }
.figure-window-bar span:last-child { background: #6bcca0; }
.hero-figure-card img { display: block; width: 100%; }
.hero-callout { position: absolute; display: flex; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; background: rgba(6,23,29,.86); box-shadow: 0 14px 30px rgba(0,0,0,.2); font-size: .78rem; font-weight: 700; backdrop-filter: blur(10px); }
.hero-callout i { color: var(--teal); }
.callout-trigger { top: -24px; left: 36px; }
.callout-target { right: -24px; bottom: -20px; }
.callout-target i { color: #ef72dd; }
.hero-fade { position: absolute; right: 0; bottom: -1px; left: 0; height: 80px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.06)); }

/* Paper information and overview */
.paper-meta { padding: 56px 0 52px; border-bottom: 1px solid var(--line); }
.paper-title { margin: 0 auto 30px; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.13; letter-spacing: -.04em; }
.author-list, .affiliations { display: flex; flex-wrap: wrap; justify-content: center; }
.author-list { gap: 5px 18px; margin-bottom: 19px; color: #273c44; font-size: 1.04rem; font-weight: 600; }
.author-list a { color: var(--teal-dark); text-underline-offset: 3px; }
.author-list sup, .affiliations sup { color: var(--magenta); font-size: .64em; }
.affiliations { gap: 5px 22px; color: var(--ink-soft); font-size: .91rem; }
.corresponding { margin: 12px 0 0; color: #809097; font-size: .83rem; }
.overview-section { background: var(--mist); }
.abstract-card { position: relative; padding: 38px 42px 30px 124px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 15px 40px rgba(13,38,45,.06); }
.abstract-card p { color: #31474f; font-size: 1.03rem; text-align: justify; }
.abstract-card p:last-child { margin-bottom: 0; }
.abstract-label { position: absolute; top: 41px; left: 38px; color: var(--magenta); font-family: "Space Grotesk", sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.contribution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.contribution-card { position: relative; min-height: 225px; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.card-number { display: inline-block; margin-bottom: 32px; color: var(--teal-dark); font-family: "Space Grotesk", sans-serif; font-size: .78rem; font-weight: 700; }
.contribution-card h3 { margin-bottom: 10px; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; letter-spacing: -.025em; }
.contribution-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.contribution-card::after { content: ""; position: absolute; top: 29px; right: 28px; width: 38px; height: 38px; border: 1px solid rgba(20,139,123,.3); border-radius: 50%; box-shadow: inset 0 0 0 9px #fff, inset 0 0 0 10px rgba(20,139,123,.3); }

/* Figures */
.data-section, .real-section { background: #fff; }
.results-section, .citation-section { background: var(--mist); }
.paper-figure-card { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.paper-figure-card img { display: block; width: 100%; height: auto; background: #fff; }
.paper-figure-card figcaption { padding: 18px 24px 21px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.paper-figure-card figcaption strong { color: var(--ink); }
.wide-figure { margin-top: 8px; }
.video-section { color: #eefbf8; background: var(--navy); }
.light-heading h2 { color: #fff; }
.light-heading .section-kicker { color: var(--teal); }
.light-heading .section-lede { color: rgba(238,251,248,.65); }

/* Results and real world */
.results-subsection { margin-top: 32px; }
.results-subheading { margin-bottom: 28px; }
.results-subheading h3 { margin-bottom: 9px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.035em; }
.results-subheading > p:last-child { max-width: 650px; margin: 0 auto; color: var(--ink-soft); }
.table-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.result-table-card { box-shadow: 0 12px 36px rgba(13,38,45,.08); }
.result-table-card img { width: 100%; height: auto; }
.table-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; align-items: stretch; }
.table-chart-grid .result-table-card { display: flex; height: 100%; flex-direction: column; }
.table-chart-grid .result-table-card img { flex: 1; min-height: 0; object-fit: contain; }
.table-chart-grid .result-table-card figcaption { margin-top: auto; }
.results-tables-panel { padding: 34px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.72); }
.result-summary { padding: 26px; border-radius: var(--radius); color: #fff; background: linear-gradient(160deg, #15333c, #071b21); }
.result-summary h3 { margin-bottom: 25px; font-family: "Space Grotesk", sans-serif; font-size: 1.65rem; line-height: 1.2; letter-spacing: -.03em; }
.result-summary .section-kicker { color: var(--teal); }
.result-summary ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.result-summary li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.055); }
.result-summary li > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: #06211e; background: var(--teal); font-size: .76rem; font-weight: 800; }
.result-summary li strong, .result-summary li small { display: block; }
.result-summary li strong { font-size: .9rem; }
.result-summary li small { color: rgba(255,255,255,.54); font-size: .74rem; }
.failure-modes-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 20px; }
.failure-modes-panel h3 { margin: 0; }
.failure-modes-panel ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.failure-modes-panel li { height: 100%; }
.real-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: stretch; }
.real-grid figure { display: flex; flex-direction: column; }
.real-grid figure img { flex: 1; object-fit: contain; }
.real-trajectory { margin-top: 20px; }

/* Videos */
.video-section { background: linear-gradient(180deg, #071920 0%, #0b252e 100%); }
.video-featured { position: relative; overflow: hidden; }
.video-featured::before { content: ""; position: absolute; top: -260px; left: 50%; width: 760px; height: 620px; border-radius: 50%; background: rgba(56,214,181,.09); filter: blur(50px); transform: translateX(-50%); pointer-events: none; }
.video-featured .page-shell { position: relative; }
.video-group + .video-group { margin-top: 42px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.1); }
.featured-group { padding: 22px; border: 1px solid rgba(56,214,181,.24); border-radius: 26px; background: linear-gradient(145deg, rgba(56,214,181,.08), rgba(255,255,255,.035)); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.video-group-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.group-index { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(56,214,181,.35); border-radius: 50%; color: var(--teal); background: rgba(56,214,181,.08); font-family: "Space Grotesk", sans-serif; font-size: .72rem; font-weight: 700; }
.video-group-heading h3 { margin: 0 0 2px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.55rem; letter-spacing: -.025em; }
.video-group-heading p { margin: 0; color: rgba(238,251,248,.5); font-size: .85rem; }
.video-grid { display: grid; gap: 18px; }
.video-grid-four { grid-template-columns: repeat(4, 1fr); }
.video-grid-two { grid-template-columns: repeat(2, 1fr); }
.video-card { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; background: rgba(255,255,255,.055); transition: transform .25s ease, border-color .25s ease; }
.video-card:hover { border-color: rgba(56,214,181,.45); transform: translateY(-4px); }
.video-card video { display: block; width: 100%; aspect-ratio: 1 / 1; background: #02090b; object-fit: contain; }
.video-grid-two .video-card video { aspect-ratio: 4 / 3; }
.real-video-grid .video-card { border-color: rgba(56,214,181,.2); background: rgba(255,255,255,.07); }
.real-video-grid .video-card video { aspect-ratio: 16 / 9; object-fit: cover; }
.video-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; }
.video-meta span { color: #fff; font-weight: 700; }
.video-meta small { color: rgba(238,251,248,.48); }

/* Citation and footer */
.citation-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f5f8f7; }
.citation-section .section-lede a { color: var(--teal-dark); font-weight: 700; text-underline-offset: 3px; }
.citation-card pre { margin: 0; padding: 34px; overflow-x: auto; color: #274049; font-family: "SFMono-Regular", Consolas, monospace; font-size: .82rem; line-height: 1.7; }
.copy-button { position: absolute; top: 16px; right: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.copy-button:hover { color: var(--teal-dark); border-color: var(--teal-dark); }
.paper-footer { padding: 48px 0; color: rgba(238,251,248,.6); background: #051217; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer-brand { margin-bottom: 12px; }
.footer-inner p { margin: 0; font-size: .84rem; }
.template-credit a { color: var(--teal); text-underline-offset: 3px; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; min-height: auto; padding: 64px 0 72px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(720px, 92%); margin: 0 auto; }
  .paper-hero { min-height: auto; }
  .video-grid-four { grid-template-columns: repeat(2, 1fr); }
  .result-summary ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .page-shell, .narrow-shell, .nav-shell { width: min(100% - 32px, 1180px); }
  .section { padding: 48px 0; }
  .section-heading { margin-bottom: 28px; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .nav-shell { height: 66px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 66px; right: 16px; left: 16px; display: none; flex-direction: column; gap: 0; align-items: stretch; padding: 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(7,25,32,.97); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-links a::after { display: none; }
  .hero-grid { min-height: auto; gap: 44px; padding: 52px 0 64px; }
  .hero-copy h1 { font-size: clamp(4.2rem, 22vw, 6.2rem); }
  .hero-subtitle { font-size: 1.5rem; }
  .hero-visual { width: 100%; }
  .hero-figure-card { transform: none; }
  .hero-callout { display: none; }
  .paper-meta { padding: 44px 0 40px; }
  .abstract-card { padding: 30px 26px; }
  .abstract-label { position: static; margin-bottom: 17px; writing-mode: initial; transform: none; }
  .abstract-card p { text-align: left; }
  .contribution-grid, .real-grid, .table-grid { grid-template-columns: 1fr; }
  .table-chart-grid, .failure-modes-panel { grid-template-columns: 1fr; }
  .contribution-card { min-height: auto; }
  .card-number { margin-bottom: 24px; }
  .video-grid-two { grid-template-columns: 1fr; }
  .featured-group { padding: 16px; }
  .video-group + .video-group { margin-top: 32px; padding-top: 28px; }
  .results-tables-panel { padding: 22px 16px; border-radius: 22px; }
  .footer-inner { display: grid; align-items: start; }
}

@media (max-width: 520px) {
  .hero-actions { display: grid; }
  .resource-button { justify-content: center; }
  .section-heading h2 { font-size: 2.15rem; }
  .video-grid-four, .result-summary ul { grid-template-columns: 1fr; }
  .video-card video, .video-grid-two .video-card video { aspect-ratio: 4 / 3; }
  .citation-card pre { padding: 76px 20px 24px; font-size: .72rem; }
}

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