:root {
  --ink: #07111f;
  --ink-2: #0b192a;
  --paper: #f5f8fa;
  --white: #ffffff;
  --cyan: #67e8f9;
  --cyan-deep: #00a8c5;
  --coral: #ff785a;
  --muted: #a7b6c8;
  --line: rgba(132, 164, 193, .22);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 16px; background: var(--cyan); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: white;
  background: rgba(7, 17, 31, .88);
  border-bottom: 1px solid rgba(103, 232, 249, .2);
  backdrop-filter: blur(18px);
}
.wordmark { display: flex; align-items: center; gap: 12px; font-family: "Manrope", sans-serif; font-weight: 700; font-size: .92rem; }
.wordmark-mark { position: relative; width: 30px; height: 24px; }
.wordmark-mark i { position: absolute; top: 1px; width: 10px; height: 22px; border: 2px solid var(--cyan); }
.wordmark-mark i:first-child { left: 1px; border-right: 0; }
.wordmark-mark i:last-child { right: 1px; border-left: 0; }
.wordmark-mark::after { content: ""; position: absolute; top: 10px; left: 9px; width: 12px; border-top: 2px solid var(--coral); }
.site-header nav { display: flex; gap: 30px; font-size: .86rem; color: #c6d2df; }
.site-header nav a, .header-cta { transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a.active { color: var(--cyan); }
.header-cta { justify-self: end; font-weight: 600; font-size: .88rem; }
.header-cta:hover { color: var(--cyan); }

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(70px, 8vw, 120px) max(24px, calc((100vw - var(--max)) / 2)) 42px;
  color: white;
  background:
    linear-gradient(rgba(103, 232, 249, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .055) 1px, transparent 1px),
    radial-gradient(circle at 85% 15%, rgba(0, 168, 197, .18), transparent 28%),
    var(--ink);
  background-size: 48px 48px, 48px 48px, auto, auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.hero::before { content: ""; position: absolute; left: 0; top: 22%; width: 5px; height: 150px; background: linear-gradient(var(--cyan), var(--coral)); }
.eyebrow, .section-index, .card-kicker, .frame-label, .chart-title, figcaption, .task-list { font-family: "Roboto Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { margin: 0 0 24px; font-size: .78rem; color: #a8b9c9; }
.eyebrow span { color: var(--cyan); }
h1, h2, h3 { font-family: "Manrope", sans-serif; margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 770px; margin-bottom: 24px; font-size: clamp(2.65rem, 5vw, 5rem); font-weight: 700; }
h1 em { color: var(--cyan); font-style: normal; }
.lede { max-width: 650px; margin: 0; color: #c4cfdb; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 19px; border: 1px solid rgba(255,255,255,.3); font-weight: 700; font-size: .9rem; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.button.secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.play-icon { font-size: .72rem; }
.author-block { margin-top: 24px; }
.authors, .affiliation { margin: 0; font-family: "Roboto Mono", monospace; }
.authors { color: #a7b8c8; font-size: .78rem; }
.affiliation { margin-top: 3px; color: #71869a; font-size: .72rem; }
.video-frame { position: relative; padding: 28px 10px 24px; border: 1px solid rgba(103,232,249,.36); background: rgba(4,12,23,.72); box-shadow: 28px 28px 0 rgba(103, 232, 249, .06); }
.video-frame::before, .video-frame::after { content: ""; position: absolute; width: 28px; height: 28px; border-color: var(--cyan); }
.video-frame::before { left: -1px; top: -1px; border-left: 2px solid var(--cyan); border-top: 2px solid var(--cyan); }
.video-frame::after { right: -1px; bottom: -1px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
.video-frame video { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #02070d; }
.frame-label { position: absolute; font-size: .58rem; color: #91a4b6; }
.frame-label.top { top: 6px; left: 10px; }
.frame-label.bottom { right: 10px; bottom: 5px; }
.hero-visual figcaption { margin-top: 12px; color: #8296aa; font-size: .66rem; }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; align-items: baseline; gap: 14px; padding: 22px 28px 0 0; }
.hero-stats strong { color: var(--coral); font-family: "Manrope", sans-serif; font-size: clamp(1.45rem, 2.3vw, 2.2rem); }
.hero-stats span { color: #91a3b5; font-size: .78rem; line-height: 1.4; }

.section-pad { padding: clamp(84px, 10vw, 140px) max(24px, calc((100vw - var(--max)) / 2)); }
.section-index { margin: 0 0 28px; color: #6f8192; font-size: .7rem; }
.section-index span { color: var(--cyan-deep); }
.abstract { display: grid; grid-template-columns: .42fr 1.2fr .72fr; gap: 52px; align-items: start; background: white; }
.abstract h2, .section-heading h2, .evaluation h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.abstract-copy p { color: #4b5a68; font-size: 1.04rem; }
.abstract-copy .lead-paragraph { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.45; }
.problem-card { padding: 30px; color: white; background: var(--ink-2); border-top: 4px solid var(--coral); box-shadow: 14px 14px 0 #dce6ec; }
.card-kicker { margin: 0 0 24px; color: var(--coral); font-size: .65rem; }
.problem-card blockquote { margin: 0 0 28px; font-family: "Manrope", sans-serif; font-size: 1.45rem; line-height: 1.35; }
.answer { padding-top: 20px; border-top: 1px solid var(--line); color: #b9c6d2; font-size: .86rem; }
.answer span { color: var(--cyan); margin-right: 8px; }

.teaser-section, .results { color: white; background: var(--ink); }
.section-heading { display: grid; grid-template-columns: 1.1fr .6fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0; color: #aab8c5; }
.wide-figure { margin: 0; }
.wide-figure img { width: 100%; height: auto; object-fit: contain; background: white; border: 1px solid rgba(255,255,255,.16); }
.wide-figure figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: #7f93a6; font-size: .65rem; }
.wide-figure figcaption span { color: var(--cyan); }

.method { background: #edf2f5; }
.method .section-heading > p { color: #596a79; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 64px; background: #bfd0dc; border: 1px solid #bfd0dc; }
.method-card { position: relative; padding: clamp(30px, 4vw, 54px); background: white; overflow: hidden; }
.method-number { position: absolute; right: 24px; top: 18px; color: #d9e4ea; font-family: "Manrope", sans-serif; font-size: 5rem; font-weight: 800; line-height: 1; }
.method-icon { position: relative; width: 100px; height: 80px; margin-bottom: 34px; }
.contact-icon i { position: absolute; top: 8px; width: 20px; height: 58px; border: 3px solid var(--ink); }
.contact-icon i:first-child { left: 12px; border-right: 0; }
.contact-icon i:nth-child(2) { right: 12px; border-left: 0; }
.contact-icon b { position: absolute; left: 42px; top: 26px; width: 18px; height: 18px; background: var(--coral); border-radius: 50%; box-shadow: -28px 12px 0 -5px var(--cyan-deep), 28px -9px 0 -5px var(--cyan-deep); }
.depth-icon i { position: absolute; left: 8px; width: 78px; height: 18px; transform: skewX(-28deg); background: #cbd9e2; }
.depth-icon i:first-child { top: 8px; }
.depth-icon i:nth-child(2) { top: 35px; background: var(--cyan); }
.depth-icon b { position: absolute; top: 19px; right: 8px; width: 28px; height: 45px; border: 3px solid var(--coral); }
.method-card h3 { position: relative; max-width: 420px; margin-bottom: 18px; font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
.method-card p { max-width: 520px; color: #52616f; }
.method-card ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; list-style: none; }
.method-card li { padding: 6px 10px; background: #eff4f7; color: #40515f; font-family: "Roboto Mono", monospace; font-size: .66rem; text-transform: uppercase; }
.method-figure { padding: 14px; background: var(--ink); }

.results .section-heading { margin-bottom: 60px; }
.chart-wrap { padding: clamp(26px, 4vw, 48px); border: 1px solid rgba(103,232,249,.22); background: #0a1727; }
.chart-title { display: flex; justify-content: space-between; margin-bottom: 42px; color: #8fa1b1; font-size: .65rem; }
.bar-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.group-label { margin-bottom: 20px; color: white; font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 700; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 54px; align-items: center; gap: 14px; margin: 14px 0; color: #91a2b3; font-size: .79rem; }
.bar-row b { color: #b9c6d2; font-family: "Roboto Mono", monospace; font-size: .75rem; text-align: right; }
.track { height: 14px; background: #14263a; }
.track i { display: block; width: var(--value); height: 100%; background: #63778b; transform-origin: left; }
.bar-row.featured { color: var(--cyan); font-weight: 700; }
.bar-row.featured .track i { background: linear-gradient(90deg, var(--cyan-deep), var(--cyan)); box-shadow: 0 0 18px rgba(103,232,249,.22); }
.bar-row.featured b { color: var(--cyan); }
.chart-axis { display: flex; justify-content: space-between; margin: 20px 65px 0 114px; padding-top: 10px; border-top: 1px solid var(--line); color: #51677b; font-family: "Roboto Mono", monospace; font-size: .64rem; }
.finding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 2px; background: var(--line); }
.finding { padding: 34px; background: #0a1727; }
.finding strong { display: block; margin-bottom: 9px; color: var(--coral); font-family: "Manrope", sans-serif; font-size: 2rem; }
.finding span { color: #93a3b3; font-size: .86rem; }

.evaluation { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; background: white; }
.evaluation-copy { align-self: center; }
.evaluation-copy > p:not(.section-index) { color: #536270; }
.task-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.task-list span { padding: 7px 10px; border: 1px solid #cedae2; color: #40515f; font-size: .62rem; }
.evaluation-gallery { display: grid; grid-template-columns: .64fr 1fr; gap: 16px; align-items: center; }
.evaluation-gallery figure { margin: 0; background: var(--ink); }
.evaluation-gallery img { width: 100%; height: auto; object-fit: contain; }
.evaluation-gallery figcaption { padding: 10px 12px; color: #91a4b6; font-size: .6rem; }

.takeaway { color: white; background: var(--cyan-deep); }
.takeaway .section-index, .takeaway .section-index span { color: #d0f8fd; }
.takeaway blockquote { max-width: 1000px; margin: 30px 0; font-family: "Manrope", sans-serif; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.takeaway > p:last-child { max-width: 700px; margin: 0 0 0 auto; padding-left: 30px; border-left: 2px solid var(--coral); font-size: 1.06rem; }

footer { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 30px; padding: 44px max(24px, calc((100vw - var(--max)) / 2)); color: #8194a6; background: #040b14; font-size: .76rem; }
.footer-title { color: white; font-weight: 700; }
footer a { color: var(--cyan); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 760px; }
  .hero-stats { margin-top: 0; }
  .abstract { grid-template-columns: .35fr 1fr; }
  .problem-card { grid-column: 2; }
  .section-heading, .evaluation { grid-template-columns: 1fr; gap: 28px; }
  .bar-groups { gap: 36px; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 18px; }
  .wordmark span:last-child { display: none; }
  .hero { min-height: auto; padding: 60px 20px 34px; }
  h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { border-bottom: 1px solid var(--line); padding: 15px 0; }
  .section-pad { padding: 76px 20px; }
  .abstract { grid-template-columns: 1fr; gap: 20px; }
  .problem-card { grid-column: auto; margin-top: 28px; }
  .method-grid, .bar-groups, .finding-grid { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 34px; }
  .bar-row { grid-template-columns: 84px 1fr 48px; gap: 8px; }
  .chart-axis { margin-left: 92px; margin-right: 55px; }
  .evaluation-gallery { grid-template-columns: 1fr; }
  .evaluation-gallery .sim-figure { max-width: 70%; }
  footer { grid-template-columns: 1fr; gap: 8px; }
}

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