:root {
  --navy: #0c2945;
  --navy-2: #123b5d;
  --teal: #1482a5;
  --teal-2: #0f9fbd;
  --aqua: #e9f7fa;
  --aqua-2: #f5fbfc;
  --ink: #16304a;
  --muted: #5d7083;
  --line: #d7e8ed;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px rgba(9, 40, 65, 0.14);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 130, 165, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fcfd 0%, #ffffff 38%, #f4fbfd 100%);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 20;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: white;
  background: var(--navy);
}
.skip-link:focus { left: 1rem; }
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #45c4dc);
  z-index: 50;
}

.site-header {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.25rem 3.5rem;
  color: white;
  background:
    linear-gradient(135deg, rgba(12, 41, 69, .98), rgba(18, 59, 93, .95) 52%, rgba(20, 130, 165, .93)),
    var(--navy);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .26;
}
.site-header::before {
  width: 32rem;
  height: 32rem;
  background: #45c4dc;
  right: -11rem;
  top: -8rem;
  filter: blur(16px);
}
.site-header::after {
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(255,255,255,.22);
  left: -8rem;
  bottom: -14rem;
}

.nav,
.hero,
.logo-strip,
.section,
.site-footer {
  width: min(var(--max), calc(100vw - 2.5rem));
  margin-inline: auto;
}
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .9rem;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.nav-links a {
  padding: .55rem .9rem;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  font-size: .94rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: rgba(255,255,255,.15); color: white; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 4.25rem 0 3rem;
}
.eyebrow,
.section-kicker,
.claim-label,
.finding-index {
  margin: 0 0 .75rem;
  color: #bdf2ff;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 2rem;
  font-weight: 800;
}
.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(2.7rem, 6.5vw, 5.9rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.subtitle {
  margin: 1.2rem 0 0;
  max-width: none;
  color: #d8f7ff;
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  font-weight: 650;
}
.authors {
  margin: 1.4rem 0 .45rem;
  max-width: none;
  color: rgba(255,255,255,.87);
  font-weight: 600;
}
.note {
  margin: 0;
  color: rgba(255,255,255,.72);
}
.hero-actions,
.center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .75rem 1.05rem;
  border: 1px solid rgba(12, 41, 69, .14);
  border-radius: 999px;
  color: var(--navy);
  background: white;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(8, 35, 57, .08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(8, 35, 57, .12); }
.button.primary { color: white; background: linear-gradient(135deg, var(--teal), var(--teal-2)); border-color: transparent; }
.button.muted { color: rgba(255,255,255,.66); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); box-shadow: none; cursor: default; }
.button.muted:hover { transform: none; box-shadow: none; }

.claim-card {
  align-self: stretch;
  padding: 1.0rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0,0,0,.14);
  margin-top: 1.4rem;
}
.claim-card p {
  margin: 0;
  color: white;
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 780;
}
.claim-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-top: 1.4rem;
}
.claim-stats div {
  padding: .85rem .7rem;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  text-align: center;
}
.claim-stats strong { display: block; font-size: 1.35rem; line-height: 1; }
.claim-stats span { display: block; margin-top: .3rem; color: rgba(255,255,255,.72); font-size: .78rem; }

.logo-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.93);
  box-shadow: var(--shadow);
}
.logo-strip img { max-height: 4.1rem; width: auto; object-fit: contain; }
.logo-strip .wide-logo { max-height: 3.1rem; min-width: min(44vw, 420px); }

main { padding: 2.5rem 0 4rem; }
.section { padding: 4.2rem 0; }
.section.narrow { max-width: 980px; }
.section-heading { margin: 0 0 1.6rem; }
.section-kicker { color: var(--teal); }
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section-heading p:not(.section-kicker) {
  max-width: 780px;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.align-start { align-items: start; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 42px rgba(8, 45, 70, .08);
}
.card h3 { margin: 0 0 .85rem; color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
.card p { margin: .8rem 0 0; color: var(--muted); }
.flow-card { padding: 1.4rem; overflow: hidden; }
.accent-card { background: linear-gradient(180deg, rgba(233, 247, 250, .95), rgba(255,255,255,.95)); }
.mini-flow {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr;
  align-items: center;
  gap: .45rem;
  margin: 1rem 0;
}
.mini-flow span,
.branch-flow span,
.branches b {
  display: grid;
  place-items: center;
  min-height: 3.2rem;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--navy);
  background: white;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
}
.mini-flow i {
  position: relative;
  height: 2px;
  background: var(--teal);
}
.mini-flow i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: .5rem;
  height: .5rem;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  transform: translateY(-50%) rotate(45deg);
}
.branch-flow {
  display: grid;
  grid-template-columns: .8fr 2rem 1fr 2rem .8fr;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0;
}
.branch-flow > i {
  position: relative;
  height: 2px;
  background: var(--teal);
}
.branch-flow > i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: .5rem;
  height: .5rem;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  transform: translateY(-50%) rotate(45deg);
}
.branches { display: grid; gap: .45rem; }
.branches b { min-height: 2.45rem; border-color: rgba(20,130,165,.28); background: var(--aqua-2); }
.definition-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.definition-panel p {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--teal);
  border-radius: 18px;
  color: var(--navy);
  background: white;
  box-shadow: 0 10px 30px rgba(8,45,70,.06);
}

.figure-card { padding: 1.2rem; }
.figure-card.full-width { padding: 1rem; }
.figure-card img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
}
.figure-card img.diagram-image {
  border: none;
  border-radius: 0;
  background: transparent;
}
.diagram-image {
  min-height: 210px;
  object-fit: contain;
  padding: 1rem;
}
.caption { font-size: .95rem; }
.theory-pipeline { padding: 1.35rem; }
.pipeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin: 1rem 0;
}
.pipeline-node,
.pipeline-step {
  border-radius: 16px;
  padding: .9rem 1rem;
  text-align: center;
  font-weight: 850;
}
.pipeline-node {
  border: 1px solid var(--line);
  background: white;
  color: var(--navy);
}
.pipeline-node.filled {
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}
.pipeline-step {
  position: relative;
  color: var(--teal);
  background: var(--aqua-2);
}
.pipeline-step::before,
.pipeline-step::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: .7rem;
  background: var(--line);
}
.pipeline-step::before { top: -.7rem; }
.pipeline-step::after { bottom: -.7rem; }
.pipeline-step small { color: var(--muted); font-weight: 700; }
.rl-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rl-boxes div { padding: .9rem; border-radius: 18px; background: var(--aqua-2); border: 1px solid var(--line); }
.rl-boxes strong { color: var(--navy); }
.rl-boxes p { margin: .25rem 0 0; font-size: .95rem; }

.experiment-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .9rem;
}
.experiment-points div {
  padding: 1rem;
  border-radius: 18px;
  background: var(--aqua-2);
  border: 1px solid var(--line);
}
.experiment-points strong { display: block; color: var(--navy); }
.experiment-points span { display: block; margin-top: .25rem; color: var(--muted); font-size: .94rem; }

.finding-stack { display: grid; gap: 1rem; }
.finding {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.18fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.15rem;
}
.finding.reverse { grid-template-columns: minmax(0, 1.18fr) minmax(280px, .86fr); }
.finding.reverse .finding-copy { order: 2; }
.finding-copy { padding: .25rem; }
.finding-index { color: var(--teal); display: inline-block; margin-bottom: .5rem; }
.finding h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); margin-bottom: .6rem; }
.finding-figures {
  display: grid;
  gap: .75rem;
}
.finding-figures.two-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finding-figures.vertical { grid-template-columns: 1fr; }
.finding-figures img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(8,45,70,.08);
  cursor: zoom-in;
}
.result-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  font-size: .94rem;
}
.result-table th,
.result-table td {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.result-table th { color: white; background: var(--teal); }
.result-table tr:nth-child(even) td { background: var(--aqua-2); }
.result-table tr:last-child td { border-bottom: 0; font-weight: 800; color: var(--navy); }
.takeaway {
  padding: .95rem 1rem;
  border-radius: 18px;
  color: var(--navy) !important;
  background: linear-gradient(90deg, rgba(20,130,165,.12), rgba(20,130,165,.04));
  border: 1px solid rgba(20,130,165,.18);
}
.takeaway-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.takeaway-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(8,45,70,.07);
}
.takeaway-card span { color: var(--teal); font-weight: 900; letter-spacing: .1em; }
.takeaway-card h3 { margin: .65rem 0 .4rem; color: var(--navy); }
.takeaway-card p { margin: 0; color: var(--muted); }

.poster-frame {
  padding: .65rem;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.poster-frame img { width: 100%; border-radius: 20px; }
.center-actions { justify-content: center; }

.citation-box {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}
.citation-box pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  white-space: pre;
  color: #e7f8fb;
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
}
.copy-button { margin-top: .75rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--navy); font-weight: 800; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4rem 1rem 1rem;
  background: rgba(3, 13, 22, .82);
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  background: white;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.section-kicker {
    font-size: 3rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem .9rem;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    color: white;
    background: rgba(255,255,255,.12);
    font-weight: 800;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    border-radius: 18px;
    background: rgba(12, 41, 69, .96);
  }
  .nav-links.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .claim-card { max-width: 620px; }
  .two-column,
  .definition-panel,
  .experiment-points,
  .takeaway-grid,
  .finding,
  .finding.reverse { grid-template-columns: 1fr; }
  .finding.reverse .finding-copy { order: initial; }
  .finding-figures.two-figures { grid-template-columns: 1fr; }
  .logo-strip { flex-wrap: wrap; }
  .logo-strip img { max-height: 3.2rem; }
  .logo-strip .wide-logo { min-width: 0; max-width: 100%; }
}

@media (max-width: 620px) {
  .nav,
  .hero,
  .logo-strip,
  .section,
  .site-footer { width: min(100% - 1.25rem, var(--max)); }
  .site-header { padding-inline: .6rem; }
  .brand-text { display: none; }
  .claim-stats { grid-template-columns: 1fr; }
  .mini-flow { grid-template-columns: 1fr; }
  .mini-flow i { height: 1.4rem; width: 2px; justify-self: center; }
  .mini-flow i::after { right: auto; top: auto; bottom: 0; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .branch-flow { grid-template-columns: 1fr; }
  .branch-flow > i {
    width: 2px;
    height: 1.4rem;
    justify-self: center;
    }

    .branch-flow > i::after {
    right: auto;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
    }
  .section { padding: 3rem 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
