:root {
  color-scheme: light;
  --ink: #161819;
  --muted: #59646b;
  --line: #d8dedc;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --surface-2: #eef5f0;
  --accent: #0b6b65;
  --accent-dark: #064742;
  --signal: #c84b31;
  --gold: #eab308;
  --blue: #295f8f;
  --shadow: 0 18px 60px rgba(19, 38, 35, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(22, 24, 25, 0.08);
  background: rgba(251, 250, 245, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 107, 101, 0.28);
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(11, 107, 101, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 42px;
  display: grid;
  gap: 40px;
}

.hero-content {
  display: grid;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.subtitle {
  max-width: 690px;
  margin: 0;
  color: var(--accent-dark);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.3;
  font-weight: 680;
}

.authors {
  max-width: 720px;
  margin: 0;
  color: #2d3437;
  font-size: 1.04rem;
  line-height: 1.65;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
}

.affiliations span {
  padding: 7px 10px;
  color: #334146;
  border: 1px solid rgba(11, 107, 101, 0.16);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  font-size: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(22, 24, 25, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 24, 25, 0.1);
}

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

.hero-figure,
.wide-figure {
  margin: 0;
}

.hero-figure {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 24, 25, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: floatIn 680ms cubic-bezier(0.2, 0.78, 0.18, 1) both;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: contain;
  background: white;
  border-radius: 6px;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-figure figcaption {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
}

.paper-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.paper-strip div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(22, 24, 25, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(11, 107, 101, 0.10), rgba(11, 107, 101, 0.02));
  box-shadow: 0 10px 34px rgba(22, 24, 25, 0.045);
  backdrop-filter: blur(14px);
}

.paper-strip div:nth-child(1) {
  border-top: 4px solid var(--accent);
}

.paper-strip div:nth-child(2) {
  border-top: 4px solid var(--signal);
  background: linear-gradient(135deg, rgba(200, 75, 49, 0.09), rgba(200, 75, 49, 0.02));
}

.paper-strip div:nth-child(3) {
  border-top: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.10), rgba(234, 179, 8, 0.02));
}

.paper-strip strong,
.paper-strip span {
  display: block;
}

.paper-strip strong {
  font-size: 1rem;
  margin-bottom: 8px;
}

.paper-strip span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid rgba(22, 24, 25, 0.08);
}

.section.narrow {
  max-width: 880px;
}

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

.section-heading h2 {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading h3 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.section.narrow > p:not(.conclusion) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.centered {
  text-align: center;
}

.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-heading.centered > p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px auto 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 104px;
}

.loop-grid {
  display: grid;
  gap: 18px;
}

.flow-rail {
  position: relative;
}

.flow-rail::before {
  content: "";
  position: absolute;
  left: 42px;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: var(--accent);
  opacity: 0.25;
}

.loop-card {
  position: relative;
  padding: 22px 24px 22px 70px;
  background: linear-gradient(135deg, rgba(11, 107, 101, 0.12), rgba(11, 107, 101, 0.03));
  border: 1px solid rgba(22, 24, 25, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(22, 24, 25, 0.045);
  backdrop-filter: blur(14px);
}

.loop-card::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 27px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--accent);
  box-shadow: 0 0 0 7px rgba(11, 107, 101, 0.1);
}

.loop-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.loop-card p,
.target-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.wide-figure {
  margin-top: 36px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(22, 24, 25, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.wide-figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(19, 38, 35, 0.16);
}

.wide-figure img {
  width: 100%;
  object-fit: contain;
}

.wide-figure.framed {
  padding: 14px;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 6px;
  cursor: zoom-in;
}

.image-button:focus-visible,
.copy-button:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid rgba(200, 75, 49, 0.45);
  outline-offset: 3px;
}

.expandable {
  transition: border-color 260ms ease, background 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.expand-trigger,
.target-trigger,
.frontier-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.expand-trigger {
  display: block;
}

.expand-trigger strong,
.target-trigger span {
  font-size: 1.18rem;
  font-weight: 700;
}

.expand-panel {
  padding-top: 16px;
  max-height: none;
  overflow: visible;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.72, 0.14, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.expand-panel p,
.expand-panel li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

.expand-panel p:last-child,
.expand-panel ul,
.expand-panel ol {
  margin-bottom: 0;
}

.expand-panel ul,
.expand-panel ol {
  padding-left: 19px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.target-grid article {
  min-height: 210px;
  padding: 22px;
  background: #f5f9fd;
  border: 1px solid rgba(22, 24, 25, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(22, 24, 25, 0.045);
  backdrop-filter: blur(14px);
}

.target-trigger {
  min-height: 54px;
  display: block;
  align-items: center;
}

.target-grid article:nth-child(1) {
  border-top: 4px solid #a3c4e7;
  background: #f5f9fd;
}

.target-grid article:nth-child(2) {
  border-top: 4px solid #b0d4ba;
  background: #f4faf5;
}

.target-grid article:nth-child(3) {
  border-top: 4px solid #ecdc9f;
  background: #fefaf0;
}

.target-grid article:nth-child(4) {
  border-top: 4px solid #c6b8e0;
  background: #f8f5fc;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.system-card {
  padding: 20px;
  background: linear-gradient(160deg, rgba(11, 107, 101, 0.07), rgba(11, 107, 101, 0.02));
  border: 1px solid rgba(22, 24, 25, 0.08);
  border-radius: 8px;
  box-shadow: 0 10px 34px rgba(22, 24, 25, 0.045);
  backdrop-filter: blur(14px);
}

.system-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.system-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.conclusion {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.7;
  font-weight: 560;
  color: var(--accent-dark);
}

.frontiers-layout {
  margin-bottom: 30px;
}

.frontier-list {
  display: grid;
  gap: 10px;
}

.frontier-list article {
  display: block;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(11, 107, 101, 0.06), rgba(11, 107, 101, 0.01));
  border: 1px solid rgba(22, 24, 25, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.frontier-trigger {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
}

.frontier-list strong {
  color: var(--accent-dark);
}

.frontier-list span {
  color: var(--muted);
  line-height: 1.5;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(12, 18, 18, 0.82);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1180px, 100%);
  max-height: calc(100vh - 92px);
  margin: 0;
  display: grid;
  gap: 12px;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  background: white;
  border-radius: 8px;
}

.lightbox figcaption {
  color: white;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
}

.code-block {
  position: relative;
  background: #111816;
  color: #ecf7f2;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 58px 22px 22px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 56px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(22, 24, 25, 0.1);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--accent-dark);
  font-weight: 720;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .sticky-heading {
    position: static;
  }

  .paper-strip,
  .target-grid,
  .system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 72px 12px auto;
    display: none;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .hero,
  .section,
  .paper-strip,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 2.2rem;
  }

  .paper-strip,
  .target-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .frontier-trigger {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer {
    flex-direction: column;
  }
}
