:root {
  --ink: #18221f;
  --ink-soft: #4d5c56;
  --paper: #f7f5ef;
  --paper-deep: #efede6;
  --white: #ffffff;
  --sage: #dce5dd;
  --blue: #8bb2c4;
  --blue-deep: #29576b;
  --coral: #f06f52;
  --coral-soft: #f9d3c8;
  --line: rgba(24, 34, 31, 0.14);
  --shadow: 0 24px 70px rgba(35, 48, 43, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --section: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

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

.page-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.page-glow-one {
  top: 120px;
  right: 0;
  width: 350px;
  height: 520px;
  background: radial-gradient(circle at 100% 50%, rgba(139, 178, 196, 0.28), transparent 70%);
}

.page-glow-two {
  top: 540px;
  left: 0;
  width: 250px;
  height: 480px;
  background: radial-gradient(circle at 0 50%, rgba(240, 111, 82, 0.15), transparent 70%);
}

.section-shell {
  width: var(--section);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 0;
  width: 100%;
  transition: transform 0.35s ease;
}

.nav-shell {
  width: min(1240px, calc(100vw - 32px));
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(250, 249, 245, 0.82);
  box-shadow: 0 12px 35px rgba(33, 44, 40, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-mark circle {
  fill: var(--coral);
  stroke: none;
}

.nav-links {
  margin: 0 auto;
  display: flex;
  gap: 27px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-paper {
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-github {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.nav-github:hover {
  border-color: rgba(24, 34, 31, 0.28);
  transform: translateY(-1px);
}

.nav-github svg {
  width: 18px;
  fill: currentColor;
}

.nav-paper svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.menu-toggle {
  display: none;
}

.hero {
  padding-top: 148px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: center;
}

.eyebrow,
.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.statement h2,
.corrector h2,
.poster-copy h2,
.citation-section h2 {
  margin: 0;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.055em;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(53px, 5.25vw, 78px);
  line-height: 0.99;
}

.hero h1 span {
  color: var(--blue-deep);
}

.hero-lead {
  max-width: 590px;
  margin: 27px 0 20px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.68;
}

.hero-lead strong {
  color: var(--ink);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.authors span {
  white-space: nowrap;
}

sup {
  color: var(--coral);
}

.affiliations {
  margin: 9px 0 0;
  display: flex;
  flex-direction: column;
  color: #78837f;
  font-size: 11px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.button-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 12px 24px rgba(240, 111, 82, 0.22);
}

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

.button-ghost {
  color: var(--ink-soft);
}

.hero-visual {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(24, 34, 31, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10px 13px 12px -10px;
  z-index: -1;
  border: 1px solid rgba(41, 87, 107, 0.2);
  border-radius: var(--radius-lg);
  transform: rotate(-2.2deg);
}

.visual-label {
  padding: 0 2px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #87918d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.visual-label strong {
  color: var(--blue-deep);
}

.visual-label svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

.image-frame {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.image-frame img {
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-frame:hover {
  border-color: rgba(41, 87, 107, 0.28);
  box-shadow: 0 16px 38px rgba(35, 48, 43, 0.1);
  transform: translateY(-2px);
}

.hero-figure {
  border-radius: 17px;
}

.visual-note {
  padding: 15px 5px 2px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3da167;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #3da167;
  border-radius: inherit;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(0.65); }
  45% { opacity: 0.7; transform: scale(1); }
}

.hero-stats {
  grid-column: 1 / -1;
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.hero-stats div {
  padding: 26px 34px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats strong {
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.hero-stats span {
  color: var(--ink-soft);
  font-size: 12px;
}

.statement {
  padding: 110px 0 120px;
}

.section-index.light {
  color: #9fc0cd;
}

.statement-grid {
  margin-top: 27px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 100px;
  align-items: start;
}

.statement h2,
.section-heading h2,
.corrector h2,
.poster-copy h2,
.citation-section h2 {
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.08;
}

.statement h2 em {
  color: var(--coral);
  font-style: normal;
}

.statement-copy {
  padding-top: 2px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.statement-copy p:first-child {
  margin-top: 0;
}

.challenge-row {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.challenge-row article {
  padding: 28px 36px 10px 0;
  border-right: 1px solid var(--line);
}

.challenge-row article:not(:first-child) {
  padding-left: 36px;
}

.challenge-row article:last-child {
  border-right: 0;
}

.challenge-row span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
}

.challenge-row h3 {
  margin: 18px 0 8px;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 20px;
}

.challenge-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.method-section {
  padding: 112px 0;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 48px;
  align-items: start;
}

.section-heading p {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.method-section .section-heading p {
  color: #acb7b3;
}

.method-layout {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
}

.method-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.method-tab {
  width: 100%;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #8b9994;
  cursor: pointer;
  transition: color 0.25s ease, padding 0.25s ease;
}

.method-tab span {
  grid-row: 1 / 3;
  color: #70807a;
  font-size: 11px;
  font-weight: 800;
}

.method-tab strong {
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 18px;
}

.method-tab small {
  margin-top: 4px;
  font-size: 12px;
}

.method-tab.active {
  padding-left: 14px;
  color: white;
}

.method-tab.active span {
  color: var(--coral);
}

.method-stage {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.method-orbit {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: inherit;
}

.orbit-center {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 18px rgba(240, 111, 82, 0.08);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 0.85;
  text-align: center;
}

.orbit-node {
  position: absolute;
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #26322e;
  color: #bac6c1;
  font-size: 11px;
  font-weight: 700;
}

.node-one { top: 1%; left: 42%; }
.node-two { top: 40%; right: 0; }
.node-three { bottom: 1%; left: 40%; }
.node-four { top: 40%; left: 0; }

.detail-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.method-detail h3 {
  margin: 0;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.method-detail > p:not(.detail-kicker) {
  min-height: 110px;
  margin: 18px 0 22px;
  color: #acb7b3;
  font-size: 15px;
  line-height: 1.75;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d5dcda;
  font-size: 11px;
}

.wide-figure {
  margin-top: 70px;
  border-color: rgba(255, 255, 255, 0.14);
  background: white;
}

.method-main-figure {
  display: block;
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.method-figure-heading {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-figure-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.method-figure-heading i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
}

.method-figure-heading b {
  color: var(--blue-deep);
}

.method-figure-canvas {
  padding: clamp(14px, 2.2vw, 30px);
  display: block;
  background: #fbfaf7;
}

.method-figure-canvas img {
  width: 100%;
}

.method-figure-caption {
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.method-figure-caption b {
  color: var(--ink);
}

.method-figure-caption strong {
  flex: 0 0 auto;
  color: var(--coral);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.corrector {
  padding: 120px 0;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 80px;
  align-items: center;
}

.corrector-copy > p,
.poster-copy > p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.corrector h2,
.poster-copy h2 {
  margin-top: 24px;
}

.corrector-points {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.corrector-points div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.corrector-points span {
  color: var(--coral);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.corrector-points p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.corrector-points strong {
  color: var(--ink);
}

.corrector-figure {
  position: relative;
  padding-top: 42px;
  background: #fbfaf7;
  box-shadow: 0 22px 55px rgba(35, 48, 43, 0.1);
}

.corrector-figure .figure-badge {
  position: absolute;
  top: 13px;
  left: 15px;
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.corrector-figure .figure-caption {
  text-align: left;
  background: white;
}

.results-section {
  padding: 112px 0 120px;
  background: var(--paper-deep);
}

.metric-grid {
  margin-top: 65px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 14px;
}

.metric-grid article {
  min-height: 220px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(24, 34, 31, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.metric-grid article > span {
  margin-bottom: auto;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-grid strong {
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 48px;
  letter-spacing: -0.07em;
}

.metric-grid strong small {
  margin-left: 3px;
  color: var(--coral);
  font-size: 20px;
}

.metric-grid p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.metric-grid .metric-featured {
  background: var(--blue-deep);
  color: white;
}

.metric-featured > span,
.metric-featured p {
  color: #bad0d9 !important;
}

.metric-bar {
  height: 3px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.17);
}

.metric-bar i {
  width: var(--value);
  height: 100%;
  display: block;
  background: var(--coral);
}

.benchmark-layout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  align-items: stretch;
}

.benchmark-figure {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.benchmark-figure img {
  width: 100%;
}

.result-takeaways {
  padding: 25px 27px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(24, 34, 31, 0.1);
  border-radius: 22px;
  background: var(--ink);
  color: white;
}

.takeaway-label {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-takeaways > div {
  min-height: 0;
  padding: 15px 0;
  flex: 1;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.result-takeaways > div:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.result-takeaways b {
  color: var(--coral);
  font-size: 11px;
}

.result-takeaways p {
  margin: 0;
  color: #b7c1bd;
  font-size: 13px;
  line-height: 1.65;
}

.figure-caption {
  padding: 15px 17px;
  display: block;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

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

.real-world-showcase {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(24, 34, 31, 0.1);
  border-radius: 26px;
  background: white;
  box-shadow: 0 22px 55px rgba(35, 48, 43, 0.08);
}

.real-world-heading {
  padding: 2px 3px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.real-world-heading h3 {
  margin: 8px 0 0;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.environment-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.environment-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.real-world-figure {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f4f3ee;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s ease;
}

.real-world-figure:hover {
  border-color: rgba(41, 87, 107, 0.38);
}

.real-world-canvas {
  padding: 14px;
  display: block;
  background: #f7f6f2;
}

.real-world-canvas img {
  width: 100%;
  height: auto;
}

.real-world-footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  background: white;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.real-world-footer b {
  color: var(--ink);
}

.real-world-footer strong {
  flex: 0 0 auto;
  color: var(--coral);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo {
  padding: 120px 0;
}

.video-shell {
  margin-top: 62px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #080b0a;
}

.video-meta {
  padding: 15px 8px 4px;
  display: flex;
  justify-content: space-between;
  color: #9ca8a3;
  font-size: 12px;
}

.poster-section {
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 70px;
  align-items: center;
}

.poster-copy .button {
  margin-top: 28px;
}

.poster-preview {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: rotate(-1deg);
}

.poster-preview img {
  transition: transform 0.5s ease;
}

.poster-preview:hover img {
  transform: scale(1.02);
}

.citation-section {
  padding: 105px 0;
  background: var(--blue-deep);
  color: white;
}

.citation-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  align-items: center;
}

.citation-section h2 {
  margin-top: 24px;
}

.citation-section p {
  max-width: 390px;
  color: #bfd0d8;
  line-height: 1.7;
}

.code-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: #1e4758;
  box-shadow: 0 25px 60px rgba(10, 32, 42, 0.22);
}

.code-toolbar {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #a9c3ce;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-toolbar button {
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 11px;
}

.code-toolbar svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #e2edf0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
}

footer {
  padding: 28px 0;
  background: #14201c;
  color: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p,
.footer-inner > a:last-child {
  color: #8f9d98;
  font-size: 12px;
}

.figure-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101714;
  color: white;
}

.figure-viewer[open] {
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
}

.figure-viewer::backdrop {
  background: #101714;
}

.viewer-toolbar {
  padding: 0 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: #18211e;
}

.viewer-toolbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-toolbar strong {
  font-size: 13px;
}

.viewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(240, 111, 82, 0.12);
}

.viewer-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: transparent;
  color: #9ba8a3;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.viewer-actions button.active {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.viewer-actions .viewer-close {
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.viewer-close svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.viewer-stage {
  min-width: 0;
  min-height: 0;
  padding: 30px;
  overflow: auto;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(139, 178, 196, 0.08), transparent 38%),
    #101714;
}

.viewer-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 124px);
  object-fit: contain;
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.viewer-stage.original {
  display: block;
}

.viewer-stage.original img {
  max-width: none;
  max-height: none;
  margin: 0 auto;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 980px) {
  :root { --section: min(100% - 36px, 760px); }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    padding: 18px;
    display: none;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(250, 249, 245, 0.96);
    box-shadow: var(--shadow);
  }

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

  .menu-toggle {
    position: relative;
    z-index: 3;
    width: 38px;
    height: 38px;
    margin-left: auto;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 19px;
    height: 1.5px;
    display: block;
    background: var(--ink);
  }

  .nav-paper { display: none; }

  .nav-actions { display: none; }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .statement-grid,
  .section-heading,
  .corrector,
  .poster-section,
  .citation-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .method-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .method-stage { min-height: 350px; }

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

  .benchmark-layout { grid-template-columns: 1fr; }

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

  .environment-tags { justify-content: flex-start; }

  .poster-preview { transform: none; }
}

@media (max-width: 640px) {
  :root {
    --section: calc(100% - 28px);
    --radius-lg: 22px;
    --radius-md: 15px;
  }

  .site-header { top: 8px; }
  .nav-shell { width: calc(100vw - 16px); min-height: 58px; }

  .hero { padding-top: 115px; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(43px, 13vw, 59px); }
  .hero-lead { font-size: 16px; }

  .hero-visual { padding: 12px; transform: none; }
  .hero-visual::before { display: none; }
  .visual-label { padding: 2px 3px 11px; font-size: 9px; }
  .visual-note { font-size: 10px; }

  .hero-stats div { padding: 21px 12px; flex-direction: column; gap: 2px; }
  .hero-stats strong { font-size: 24px; }

  .statement,
  .corrector,
  .demo { padding-block: 80px; }

  .method-section,
  .results-section,
  .citation-section { padding-block: 80px; }

  .statement-grid { gap: 25px; }
  .statement h2,
  .section-heading h2,
  .corrector h2,
  .poster-copy h2,
  .citation-section h2 { font-size: 38px; }

  .challenge-row { grid-template-columns: 1fr; margin-top: 45px; }
  .challenge-row article,
  .challenge-row article:not(:first-child) {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .method-orbit { max-width: 330px; margin-inline: auto; }
  .method-detail > p:not(.detail-kicker) { min-height: auto; }
  .wide-figure { margin-top: 50px; }

  .method-figure-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 180px; }

  .corrector { gap: 45px; }
  .poster-section { padding-bottom: 80px; }

  .real-world-showcase { padding: 13px; }

  .real-world-heading h3 { font-size: 23px; }

  .real-world-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .viewer-toolbar { padding-inline: 13px; }

  .viewer-toolbar strong { display: none; }

  .viewer-actions { margin-left: auto; }

  .viewer-actions button { padding-inline: 9px; }

  .viewer-stage { padding: 12px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@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; }
}
