:root {
  --navy-950: #08182d;
  --navy-900: #102746;
  --navy-800: #17385f;
  --blue-700: #1f5fae;
  --blue-600: #2b72c7;
  --blue-100: #dceafb;
  --blue-50: #f1f7fd;
  --ink: #122039;
  --text: #34455e;
  --muted: #68768a;
  --line: #d8e0e9;
  --paper: #ffffff;
  --off-white: #faf7f0;
  --cool-gray: #f4f7fa;
  --content: 1180px;
  --prose: 780px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shadow: 0 24px 60px rgba(19, 45, 76, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy-950);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

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

:focus-visible {
  outline: 3px solid #70b6ff;
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 76px;
}

.section-shell,
.nav-shell,
.footer-inner {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(175, 191, 209, 0.65);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  gap: 28px;
}

.wordmark {
  justify-self: start;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-links a {
  color: #42536b;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.site-links a:hover {
  color: var(--blue-700);
}

.nav-paper {
  justify-self: end;
  padding: 7px 17px;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-paper:hover {
  color: var(--navy-900);
  background: transparent;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 740px;
  padding: 106px 24px 96px;
  background-color: #f8fbff;
  background-image: linear-gradient(rgba(30, 91, 160, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 91, 160, 0.055) 1px, transparent 1px), radial-gradient(circle at 50% 10%, #fff 0, rgba(255, 255, 255, 0) 62%);
  background-size: 42px 42px, 42px 42px, auto;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(42, 105, 179, 0.13);
  border-radius: 50%;
  content: "";
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -330px;
  left: calc(50% - 260px);
}

.hero::after {
  width: 820px;
  height: 820px;
  top: -480px;
  left: calc(50% - 410px);
}

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

.hero-orb-one {
  width: 300px;
  height: 300px;
  right: -125px;
  top: 140px;
  background: rgba(123, 181, 237, 0.18);
}

.hero-orb-two {
  width: 190px;
  height: 190px;
  left: -80px;
  bottom: 70px;
  border: 34px solid rgba(91, 151, 218, 0.09);
}

.hero-inner {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.kicker,
.section-label {
  margin-bottom: 16px;
  color: var(--blue-700);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy-950);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6.1vw, 5rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--blue-700);
  font-style: italic;
}

.contribution {
  max-width: 790px;
  margin: 0 auto 32px;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.45;
}

.authors {
  display: flex;
  max-width: 980px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 18px;
  row-gap: 4px;
  color: #243a57;
  font-size: 0.98rem;
  font-weight: 650;
}

.authors sup {
  position: relative;
  top: -0.08em;
  color: var(--blue-700);
  font-size: 0.67em;
  letter-spacing: 0.02em;
}

.affiliations {
  display: flex;
  max-width: 1010px;
  margin: 0 auto;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  row-gap: 2px;
  color: var(--muted);
  font-size: 0.83rem;
  list-style: none;
}

.affiliations li span {
  color: var(--blue-700);
  font-weight: 750;
}

.role-legend {
  display: flex;
  margin: 13px 0 0;
  justify-content: center;
  gap: 22px;
  color: #5f6e81;
  font-size: 0.77rem;
}

.resource-row {
  display: flex;
  margin-top: 38px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.resource {
  display: grid;
  min-width: 138px;
  min-height: 60px;
  padding: 10px 18px;
  align-content: center;
  border: 1px solid #cbd6e2;
  border-radius: 4px;
  text-align: left;
}

.resource strong {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.2;
}

.resource small {
  color: #758397;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-active {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.resource-active small {
  color: #cbdcf0;
}

.resource-active:hover {
  box-shadow: 0 10px 22px rgba(16, 39, 70, 0.18);
  transform: translateY(-2px);
}

.resource-pending {
  color: #5f6c7e;
  background: rgba(255, 255, 255, 0.7);
}

.teaser {
  display: grid;
  padding-top: 96px;
  padding-bottom: 102px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
}

.teaser h2,
.section-heading h2,
.citation h2 {
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 4.5vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.reflection-steps {
  margin: 36px 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.reflection-steps li {
  display: grid;
  padding: 19px 0;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.reflection-steps li > span {
  color: var(--blue-600);
  font-family: var(--serif);
  font-size: 0.85rem;
}

.reflection-steps strong {
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.reflection-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.teaser-note {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.94rem;
}

.teaser-figure {
  width: min(100%, 460px);
  margin: 0 auto;
}

.teaser-image-frame {
  overflow: hidden;
  padding: 14px;
  background: #e8f1fb;
  border: 1px solid #cddbeb;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

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

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.abstract {
  padding-top: 100px;
  padding-bottom: 104px;
  border-top: 1px solid var(--line);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
  align-items: start;
}

.abstract-copy {
  max-width: var(--prose);
  margin: 5px 0 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.8;
}

.abstract-copy strong {
  color: var(--navy-900);
}

.capability-row {
  display: flex;
  margin-top: 42px;
  padding-top: 22px;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.capability-row span {
  padding: 5px 13px;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid #cedff1;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  margin-top: 56px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric-card {
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-primary {
  color: #fff;
  background: var(--navy-900);
}

.metric-value {
  margin-bottom: clamp(32px, 5vw, 72px);
  color: var(--blue-700);
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.8vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-primary .metric-value,
.metric-primary h3,
.metric-primary p {
  color: #fff;
}

.metric-card h3 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

.metric-card > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.metric-primary > p:last-child {
  color: #cbd8e7;
}

.cases {
  padding: 100px 0 105px;
  color: #d9e4f1;
  background: var(--navy-950);
}

.light-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.light-heading h2 {
  color: #fff;
}

.light-heading > p:last-child {
  max-width: 660px;
  color: #aebed0;
}

.cases .section-label {
  color: #77b7f4;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  min-width: 0;
  padding: 18px;
  background: #10253f;
  border: 1px solid #27425f;
}

.case-index {
  display: flex;
  min-height: 46px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.case-index span {
  color: #73b5f5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-index strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 0.94rem;
  font-weight: 500;
}

.case-viewer {
  height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #36516d;
  scrollbar-color: #7295b9 #dce6f0;
  scrollbar-width: thin;
}

.case-viewer img {
  width: 100%;
}

.case-card > p {
  margin: 17px 2px 3px;
  color: #adbed0;
  font-size: 0.82rem;
  line-height: 1.62;
}

.method {
  padding-top: 102px;
  padding-bottom: 105px;
}

.centered-heading {
  max-width: var(--content);
  margin: 0 auto 62px;
  text-align: center;
}

.centered-heading h2,
.centered-heading > p:last-child {
  white-space: nowrap;
}

.centered-heading > p:last-child {
  margin-inline: auto;
  color: var(--muted);
}

.method-stage {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.method-stage + .method-stage {
  margin-top: 94px;
}

.stage-heading {
  display: grid;
  margin-bottom: 30px;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 30px;
}

.stage-heading > span {
  padding-top: 5px;
  color: var(--blue-700);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stage-heading > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 42px;
}

.stage-heading h3 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.stage-heading p {
  max-width: 690px;
  margin: 0;
  color: var(--text);
}

.method-figure {
  margin: 0;
}

.wide-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 20px;
  background: var(--cool-gray);
  border: 1px solid var(--line);
  scrollbar-color: var(--blue-600) #dce4ed;
  scrollbar-width: thin;
}

.wide-scroll img {
  width: 100%;
  min-width: 900px;
}

.stage-two {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.7fr);
  gap: 70px;
  align-items: center;
}

.stage-two .stage-heading {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: 1fr;
  gap: 16px;
}

.stage-two .stage-heading > div {
  grid-template-columns: 1fr;
  gap: 18px;
}

.compact-method-figure {
  max-width: 540px;
  padding: 20px;
  background: var(--cool-gray);
  border: 1px solid var(--line);
}

.results {
  padding: 100px 0 105px;
  background: var(--blue-50);
  border-top: 1px solid #dbe6f1;
  border-bottom: 1px solid #dbe6f1;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.result-panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px solid #d5e0eb;
}

.result-copy > span {
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.result-copy h3 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.result-copy p {
  min-height: 84px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 0.91rem;
}

.result-panel figure {
  margin: 0;
}

.result-panel img {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e0e6ed;
}

.citation {
  padding: 96px 0 102px;
  background: var(--off-white);
}

.citation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
  align-items: center;
}

.citation-layout > div:first-child > p:not(.section-label) {
  max-width: 500px;
  color: var(--text);
}

.text-link {
  display: inline-block;
  padding-bottom: 2px;
  color: var(--blue-700);
  border-bottom: 1px solid currentColor;
  font-weight: 750;
  text-decoration: none;
}

.text-link span {
  margin-left: 5px;
}

.citation-record {
  padding: clamp(26px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid #dcd6ca;
  border-left: 4px solid var(--blue-700);
}

.citation-record p {
  color: #4b5563;
}

.citation-record-title {
  color: var(--navy-900) !important;
  font-family: var(--serif);
  font-size: 1.26rem;
  font-weight: 600;
  line-height: 1.4;
}

.citation-status {
  color: var(--muted) !important;
  font-size: 0.8rem;
}

.bibtex {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  background: var(--navy-950);
  color: #dce8f5;
  border-radius: 2px;
  font: 0.72rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
  white-space: pre;
}

footer {
  padding: 28px 0;
  color: #aebdd0;
  background: var(--navy-950);
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-inner strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.footer-inner a {
  margin-left: auto;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 980px) {
  .centered-heading h2,
  .centered-heading > p:last-child {
    white-space: normal;
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .site-links {
    justify-self: center;
    gap: 16px;
  }

  .teaser {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 48px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .metric-card {
    aspect-ratio: auto;
    min-height: 270px;
  }

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

  .case-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    gap: 0 24px;
  }

  .case-index {
    grid-column: 1 / -1;
  }

  .case-card > p {
    align-self: center;
    font-size: 0.92rem;
  }

  .stage-heading > div {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .stage-two {
    gap: 42px;
  }

  .citation-layout {
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .site-links {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: auto;
  }

  .teaser,
  .stage-two,
  .results-grid,
  .citation-layout {
    grid-template-columns: 1fr;
  }

  .teaser-figure {
    width: min(100%, 520px);
  }

  .stage-two {
    gap: 30px;
  }

  .compact-method-figure {
    max-width: 620px;
    margin-inline: auto;
  }

  .result-copy p {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .nav-shell,
  .footer-inner {
    width: min(100% - 32px, var(--content));
  }

  .nav-shell {
    min-height: 58px;
  }

  .hero {
    padding: 76px 16px 72px;
    background-size: 32px 32px, 32px 32px, auto;
  }

  .title-break {
    display: none;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .contribution {
    font-size: 1.08rem;
  }

  .authors {
    column-gap: 12px;
    font-size: 0.89rem;
  }

  .affiliations {
    display: grid;
    gap: 3px;
    text-align: left;
  }

  .role-legend {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .resource-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource {
    min-width: 0;
  }

  .teaser,
  .abstract,
  .method {
    padding-top: 76px;
    padding-bottom: 78px;
  }

  .teaser {
    gap: 46px;
  }

  .teaser h2,
  .section-heading h2,
  .citation h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

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

  .metric-card {
    min-height: 245px;
  }

  .metric-value {
    margin-bottom: 44px;
  }

  .cases,
  .results,
  .citation {
    padding-top: 76px;
    padding-bottom: 80px;
  }

  .case-card {
    display: block;
  }

  .case-viewer {
    height: min(480px, 68vh);
  }

  .case-card > p {
    font-size: 0.84rem;
  }

  .centered-heading {
    margin-bottom: 46px;
    text-align: left;
  }

  .stage-heading,
  .stage-heading > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .wide-scroll {
    padding: 12px;
  }

  .wide-scroll img {
    min-width: 820px;
  }

  .method-stage + .method-stage {
    margin-top: 70px;
  }

  .result-panel {
    padding: 22px;
  }

  .citation-layout {
    gap: 38px;
  }

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-inner span {
    width: 100%;
    order: 3;
  }
}

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

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