:root {
  --ink: #122228;
  --ink-soft: #4d6168;
  --teal: #0a7c75;
  --teal-deep: #085a57;
  --teal-pale: #e7f5f2;
  --blue: #386e9e;
  --coral: #d06b5e;
  --sand: #f6f1e9;
  --line: #dce5e5;
  --paper: #ffffff;
  --wash: #f7faf9;
  --radius: 22px;
  --shadow: 0 18px 60px rgba(28, 65, 69, 0.12);
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin: 0 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: 999;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: rgba(220, 229, 229, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(18, 34, 40, 0.06);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 34px;
  height: 26px;
}

.brand-mark i {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
}

.brand-mark i:nth-child(1) {
  left: 0;
  top: 7px;
}

.brand-mark i:nth-child(2) {
  left: 11px;
  top: 0;
  border-color: var(--teal);
}

.brand-mark i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-color: var(--coral);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  color: #53666c;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--teal);
  transition: right 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 23px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 150px 0 64px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 90% 20%, #d8efeb 0, transparent 34%),
    radial-gradient(circle at 8% 65%, #f8e8e2 0, transparent 26%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(18, 34, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 34, 40, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 77%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
}

.hero-glow-a {
  width: 440px;
  height: 440px;
  right: -180px;
  top: 110px;
  background: #d9efec;
}

.hero-glow-b {
  width: 360px;
  height: 360px;
  left: -180px;
  bottom: 20px;
  background: #f7e8df;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(480px, 0.97fr);
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-tag,
.mini-label {
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #badbd6;
  border-radius: 999px;
  background: rgba(231, 245, 242, 0.68);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(208, 107, 94, 0.13);
}

.kicker {
  margin: 32px 0 8px;
  color: #64767b;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.22em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero-summary {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.66;
}

.hero-summary i {
  color: var(--teal-deep);
}

.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 51px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(18, 34, 40, 0.14);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.button.secondary {
  border-color: var(--line);
  background: white;
}

.quick-links {
  margin-top: 22px;
  gap: 20px;
  color: #5f7277;
  font-size: 14px;
  font-weight: 700;
}

.quick-links a {
  border-bottom: 1px solid #b5c5c7;
}

.quick-links a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.hero-visual {
  position: relative;
}

.visual-window {
  position: relative;
  overflow: hidden;
  border: 7px solid white;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}

.visual-window img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  border-radius: 20px;
}

.visual-window::after {
  content: "";
  position: absolute;
  inset: 52px 0 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 27, 31, 0.25), transparent 48%);
}

.window-bar {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccd8d9;
}

.window-bar span:first-child {
  background: var(--coral);
}

.window-bar span:nth-child(2) {
  background: #d9ad53;
}

.window-bar span:nth-child(3) {
  background: var(--teal);
}

.window-bar b {
  margin-left: auto;
  color: #5a6c71;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(10, 35, 39, 0.76);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(9px);
}

.floating-label .point {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4c9fe0;
  box-shadow: 0 0 0 5px rgba(76, 159, 224, 0.2);
}

.label-a {
  left: 9%;
  top: 31%;
}

.label-b {
  right: 6%;
  bottom: 18%;
}

.oral-card {
  position: absolute;
  right: -26px;
  bottom: -36px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 145px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--teal-deep);
  color: white;
  box-shadow: 0 18px 40px rgba(8, 90, 87, 0.28);
}

.oral-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.oral-card strong {
  margin: 5px 0 2px;
  font-size: 28px;
  line-height: 1;
}

.oral-card small {
  opacity: 0.76;
  font-size: 11px;
}

.paper-meta {
  position: relative;
  margin-top: 90px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.authors {
  max-width: 1060px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.affiliations,
.author-note {
  color: #697b80;
  font-size: 13px;
  line-height: 1.55;
}

.author-note {
  margin-bottom: 0;
}

.section {
  padding: 124px 0;
}

.section-heading {
  margin-bottom: 64px;
}

.section-heading.centered {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 80px;
  align-items: end;
}

.section-tag {
  margin-bottom: 16px;
}

.section h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p:not(.section-tag),
.section-heading.split > p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.problem-section {
  background: white;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.challenge-card {
  position: relative;
  min-height: 310px;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.challenge-card:hover {
  transform: translateY(-6px);
  border-color: #a7ceca;
  box-shadow: 0 16px 36px rgba(18, 34, 40, 0.09);
}

.challenge-number {
  color: #89999d;
  font-size: 12px;
  font-weight: 800;
}

.challenge-card h3 {
  margin: 18px 0 9px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.challenge-card p {
  margin: 0;
  color: #607278;
  font-size: 14px;
  line-height: 1.55;
}

.challenge-glyph {
  position: relative;
  width: 100%;
  height: 92px;
  margin-top: 16px;
  border-radius: 14px;
  background: var(--wash);
}

.challenge-glyph::before,
.challenge-glyph::after {
  content: "";
  position: absolute;
}

.deformation::before {
  inset: 36px 20px auto;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow:
    0 -12px 0 -1px #82beba,
    0 12px 0 -1px #82beba;
  transform: skewX(-24deg) rotate(-6deg);
}

.occlusion::before {
  width: 18px;
  height: 18px;
  left: 35%;
  top: 36px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 8px rgba(208, 107, 94, 0.16);
}

.occlusion::after {
  width: 72px;
  height: 19px;
  left: 43%;
  top: 35px;
  border-radius: 4px;
  background: #5c6c72;
  transform: rotate(-20deg);
}

.jitter::before {
  width: 52px;
  height: 32px;
  left: calc(50% - 26px);
  top: 30px;
  border: 3px solid var(--blue);
  border-radius: 5px;
  box-shadow:
    -10px 0 rgba(56, 110, 158, 0.2),
    10px 0 rgba(56, 110, 158, 0.2);
}

.reflection::before {
  width: 34px;
  height: 34px;
  left: calc(50% - 17px);
  top: 29px;
  border-radius: 50%;
  background: #f3cb72;
  box-shadow:
    0 0 0 8px rgba(243, 203, 114, 0.17),
    0 0 30px #f3cb72;
}

.smoke::before {
  width: 64px;
  height: 25px;
  left: calc(50% - 32px);
  top: 38px;
  border-radius: 50%;
  background: #a9b6b8;
  filter: blur(7px);
  box-shadow:
    -20px -10px 0 #cad2d3,
    20px -14px 0 #bbc6c8;
}

.insight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-top: 24px;
  padding: 44px;
  border-radius: 24px;
  background: var(--ink);
  color: white;
}

.insight-card .mini-label {
  color: #83d2ca;
}

.insight-card h3 {
  margin: 11px 0 0;
  font-size: 33px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.insight-card h3 em {
  color: #92d9d3;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.coordinate-demo {
  display: flex;
  align-items: center;
  gap: 22px;
}

.coordinate-frame {
  position: relative;
  width: 160px;
  height: 116px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(rgba(18, 34, 40, 0.3), rgba(18, 34, 40, 0.3)),
    url("public/assets/images/hero-frame.jpg") center / cover;
}

.tracked-point {
  position: absolute;
  left: 56%;
  top: 48%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5da9ed;
  box-shadow: 0 0 0 6px rgba(93, 169, 237, 0.32);
}

.coordinate-frame code {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(6, 20, 23, 0.74);
  color: white;
  font-size: 12px;
}

.plus {
  color: #8c9b9f;
  font-size: 26px;
}

.status-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.status-stack span,
.status-stack strong {
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.status-stack strong {
  border: 1px solid rgba(131, 210, 202, 0.4);
  color: #b9e8e3;
}

.dataset-section,
.results-section {
  background: var(--wash);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.stat-grid div {
  display: flex;
  min-height: 135px;
  padding: 22px 16px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.stat-grid div + div {
  border-left: 1px solid var(--line);
}

.stat-grid strong {
  color: var(--teal-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

.stat-grid span {
  margin-top: 7px;
  color: #63767b;
  font-size: 12px;
  font-weight: 750;
}

.figure-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: 0 15px 50px rgba(18, 34, 40, 0.07);
}

.figure-card button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: white;
  cursor: zoom-in;
}

.figure-card button > span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(18, 34, 40, 0.78);
  color: white;
  font-size: 12px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.figure-card button:hover > span,
.figure-card button:focus-visible > span {
  opacity: 1;
  transform: translateY(0);
}

.figure-card img {
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: white;
  transition: transform 260ms ease;
}

.figure-card button:hover img {
  transform: scale(1.008);
}

.figure-card figcaption {
  padding: 18px 23px 20px;
  border-top: 1px solid var(--line);
  color: #607278;
  font-size: 14px;
  line-height: 1.55;
}

.figure-card figcaption b {
  color: var(--ink);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}

.media-copy {
  padding: 26px 28px 18px;
}

.media-copy .mini-label {
  margin-bottom: 7px;
}

.media-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.media-copy p:last-child {
  margin-bottom: 0;
  color: #5e7176;
  font-size: 15px;
  line-height: 1.6;
}

.media-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #07171b;
}

.method-section {
  background:
    radial-gradient(circle at 8% 55%, rgba(231, 245, 242, 0.84), transparent 24%),
    white;
}

.method-steps {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.method-steps article {
  display: flex;
  gap: 15px;
  min-height: 168px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.method-steps article > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 14px;
  font-weight: 850;
}

.method-steps > i {
  color: #8ba09f;
  font-size: 26px;
  font-style: normal;
  text-align: center;
}

.method-steps .mini-label {
  margin: 2px 0 4px;
  font-size: 11px;
}

.method-steps h3 {
  margin-bottom: 6px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.method-steps p:last-child {
  margin: 0;
  color: #617378;
  font-size: 14px;
  line-height: 1.5;
}

.method-figure img {
  padding: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.result-card {
  min-height: 205px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.result-card.featured {
  border-color: #a4cec9;
  background: linear-gradient(145deg, #e5f5f2, #ffffff 72%);
}

.result-card.speed {
  background: var(--ink);
  color: white;
}

.result-card > span {
  display: block;
  min-height: 48px;
  color: #607278;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-card.speed > span {
  color: #b8c6c8;
}

.result-card > strong {
  display: block;
  margin: 10px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.result-card strong small {
  font-family: inherit;
  font-size: 21px;
}

.comparison {
  color: #617378;
  font-size: 13px;
}

.comparison b {
  color: var(--teal-deep);
}

.speed .comparison {
  color: #b8c6c8;
}

.demo-block {
  margin-top: 26px;
  padding: 30px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 15px 50px rgba(18, 34, 40, 0.07);
}

.demo-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.demo-heading .mini-label {
  margin-bottom: 5px;
}

.demo-heading h3 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
}

.segmented-control button {
  min-width: 106px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 14px rgba(18, 34, 40, 0.16);
}

.demo-stage {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: #061418;
}

.demo-stage video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.legend {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(5, 17, 20, 0.77);
  color: white;
  font-size: 11px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend .ours i {
  background: #3094eb;
}

.legend .trackon i {
  background: #e24840;
}

.legend .mft i {
  background: #54ae62;
}

.demo-block > p {
  margin: 15px 2px 0;
  color: #607278;
  font-size: 14px;
}

.resources-section {
  background: white;
}

.resources-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 76px;
  align-items: start;
}

.resource-copy h2 {
  font-size: clamp(38px, 4.2vw, 54px);
}

.resource-copy > p:not(.section-tag) {
  color: var(--ink-soft);
}

.resource-links {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.resource-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.resource-links a span {
  color: #66787d;
}

.resource-links a b {
  font-size: 13px;
}

.resource-links a:hover b {
  color: var(--teal);
}

.citation-card {
  overflow: hidden;
  border: 1px solid #2a3c41;
  border-radius: 22px;
  background: var(--ink);
  color: #e8f0f1;
  box-shadow: var(--shadow);
}

.citation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.citation-top span {
  color: #a9bbbe;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.citation-top button {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.citation-top button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.citation-card pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.62;
  white-space: pre-wrap;
}

footer {
  padding: 44px 0 54px;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 36px;
  align-items: end;
}

.footer-grid p {
  margin: 8px 0 0;
  color: #65777c;
  font-size: 13px;
  line-height: 1.55;
}

.footer-grid > p {
  margin: 0;
}

.footer-grid a:hover {
  color: var(--teal);
}

.credit {
  text-align: right;
}

.lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 92vh;
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: white;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.lightbox::backdrop {
  background: rgba(4, 17, 20, 0.78);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox p {
  margin: 12px 42px 0 3px;
  color: #607278;
  font-size: 13px;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0 0 2px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 34, 40, 0.86);
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    max-width: 780px;
  }

  .challenge-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .challenge-card {
    min-height: 290px;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-grid div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat-grid div:nth-child(5),
  .stat-grid div:nth-child(6) {
    border-top: 1px solid var(--line);
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps > i {
    transform: rotate(90deg);
  }

  .method-steps article {
    min-height: auto;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 1180px);
  }

  body {
    font-size: 17px;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 115px 0 52px;
  }

  .hero-grid {
    gap: 42px;
  }

  h1 {
    font-size: clamp(43px, 13.2vw, 64px);
  }

  .hero-summary {
    font-size: 18px;
  }

  .visual-window {
    border-width: 5px;
    border-radius: 20px;
    transform: none;
  }

  .floating-label {
    display: none;
  }

  .oral-card {
    right: 12px;
    bottom: -25px;
    min-width: 124px;
    padding: 14px 16px;
  }

  .paper-meta {
    margin-top: 68px;
  }

  .section {
    padding: 88px 0;
  }

  .section-heading {
    margin-bottom: 44px;
  }

  .section-heading.split {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .challenge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .challenge-card {
    min-height: 270px;
  }

  .insight-card {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 30px 24px;
  }

  .coordinate-demo {
    flex-wrap: wrap;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid div:nth-child(3),
  .stat-grid div:nth-child(5) {
    border-left: 0;
  }

  .stat-grid div:nth-child(3),
  .stat-grid div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .stat-grid div:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-card,
  .result-card.speed {
    grid-column: span 1;
  }

  .result-card {
    min-height: 190px;
  }

  .demo-block {
    padding: 20px;
  }

  .demo-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    align-self: stretch;
  }

  .segmented-control button {
    flex: 1;
  }

  .legend {
    position: static;
    justify-content: center;
    border-radius: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .credit {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-actions .button {
    width: 100%;
  }

  .challenge-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .challenge-card {
    min-height: 250px;
  }

  .coordinate-frame {
    width: 100%;
  }

  .plus {
    display: none;
  }

  .status-stack {
    width: 100%;
  }

  .figure-card figcaption {
    font-size: 13px;
  }

  .result-card {
    min-height: 175px;
  }

  .citation-card pre {
    padding: 20px;
    font-size: 11px;
  }
}
