:root {
  --bg: #07121f;
  --bg-soft: #10233b;
  --surface: rgba(12, 24, 41, 0.76);
  --surface-strong: rgba(14, 30, 50, 0.92);
  --surface-alt: rgba(255, 255, 255, 0.08);
  --card-light: #f7fafc;
  --text: #eef4fb;
  --muted: #a6b8cc;
  --line: rgba(158, 183, 212, 0.18);
  --accent: #69d2c7;
  --accent-2: #f7b267;
  --accent-3: #fb7185;
  --accent-4: #97cc70;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 210, 199, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(247, 178, 103, 0.16), transparent 24%),
    linear-gradient(180deg, #07121f 0%, #0a1627 38%, #07111e 100%);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow-x: clip;
}

.ambient {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}

.ambient.one {
  top: 8rem;
  left: -10rem;
  background: rgba(105, 210, 199, 0.95);
}

.ambient.two {
  top: 32rem;
  right: -12rem;
  background: rgba(247, 178, 103, 0.88);
}

.ambient.three {
  bottom: 18rem;
  left: 18%;
  background: rgba(151, 204, 112, 0.72);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 14, 25, 0.58);
  border-bottom: 1px solid rgba(166, 184, 204, 0.08);
  transition: background 180ms ease, border-color 180ms ease;
}

.topbar.scrolled {
  background: rgba(6, 14, 25, 0.84);
  border-color: rgba(166, 184, 204, 0.14);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(105, 210, 199, 0.28), rgba(247, 178, 103, 0.26)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-mark img {
  width: 1.9rem;
  height: 1.9rem;
}

.brand-title {
  display: grid;
  gap: 0.1rem;
}

.brand-title strong {
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

.brand-title span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, rgba(105, 210, 199, 0.24), rgba(247, 178, 103, 0.24));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero {
  padding: 4.8rem 0 3.4rem;
}

.hero-grid,
.split-grid,
.report-grid,
.summary-grid,
.artifact-grid,
.publication-grid {
  display: grid;
  gap: 1.4rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-copy h1,
.page-intro h1,
.poster-hero h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-subtitle {
  margin: 1rem 0 1.1rem;
  font-size: 1.22rem;
  color: #dce6f4;
  max-width: 56rem;
}

.lead,
.panel p,
.text-block p,
.footer p,
.list-clean li {
  color: var(--muted);
  line-height: 1.75;
}

.button-row,
.link-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.92rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(105, 210, 199, 0.2), rgba(255, 255, 255, 0.08));
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
}

.button.ghost {
  background: transparent;
}

.button.disabled,
.button[aria-disabled="true"] {
  opacity: 0.48;
  pointer-events: none;
}

.hero-list,
.list-clean {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-list li,
.list-clean li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.78rem;
}

.hero-list li::before,
.list-clean li::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: absolute;
  left: 0;
  top: 0.7rem;
}

.panel,
.paper-card,
.metric-card,
.info-card,
.figure-card,
.plot-card,
.profile-card,
.security-card,
.timeline-card,
.poster-card,
.link-card,
.citation-card,
.table-card,
.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.paper-card,
.table-card,
.citation-card,
.profile-card,
.security-card,
.note-card {
  padding: 1.45rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.paper-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface-strong);
}

.paper-card h2,
.section-head h2,
.panel h3,
.figure-card h3,
.plot-card h3,
.poster-card h3,
.link-card h3,
.citation-card h3,
.table-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.paper-preview,
.figure-frame,
.plot-frame {
  background: var(--card-light);
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  border: 1px solid rgba(12, 35, 64, 0.08);
}

.paper-preview img,
.figure-frame img,
.plot-frame img {
  width: 100%;
  height: auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #dbe7f6;
}

.metric-grid,
.info-grid,
.figure-grid,
.plot-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.metric-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
}

.metric-card strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 4.2rem 0;
  scroll-margin-top: 6rem;
}

.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
}

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

.info-card,
.link-card,
.figure-card,
.plot-card,
.poster-card {
  padding: 1.25rem;
}

.info-card h3,
.link-card h3,
.poster-card h3 {
  margin-bottom: 0.55rem;
}

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

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

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

.plot-card,
.figure-card {
  display: grid;
  gap: 0.95rem;
}

.plot-card .plot-frame,
.figure-card .figure-frame {
  padding: 0.8rem;
}

.figure-caption,
.plot-caption {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.table-card {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(166, 184, 204, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

td {
  color: #d9e5f4;
}

tr:last-child td {
  border-bottom: 0;
}

.highlight-row td {
  color: #ffffff;
  font-weight: 700;
}

.profile-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(105, 210, 199, 0.055));
}

.profile-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-hero h2 {
  margin: 0 0 0.8rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.profile-hero p {
  max-width: 58rem;
  color: var(--muted);
  line-height: 1.75;
}

.profile-badge {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  border-radius: 2rem;
  color: #07121f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.profile-links-grid,
.security-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card,
.security-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.profile-card h3,
.security-card h3 {
  margin: 0;
}

.profile-card p,
.security-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-card a:not(.button) {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.lead-profile {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(105, 210, 199, 0.18), rgba(247, 178, 103, 0.12)),
    var(--surface-strong);
}

.profile-label,
.policy-step {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(105, 210, 199, 0.1);
  border: 1px solid rgba(105, 210, 199, 0.18);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.security-section {
  background: linear-gradient(180deg, rgba(247, 178, 103, 0.055), rgba(255, 255, 255, 0.02));
}

.security-card.emphasized {
  background:
    linear-gradient(135deg, rgba(247, 178, 103, 0.18), rgba(105, 210, 199, 0.12)),
    var(--surface-strong);
}

.publication-grid,
.artifact-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.citation-card pre,
.code-block {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: #d9e5f4;
  font-size: 0.88rem;
  line-height: 1.65;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid rgba(166, 184, 204, 0.12);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
}

.copyright {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 8, 14, 0.74);
  backdrop-filter: blur(14px);
}

.modal-backdrop[hidden] {
  display: none;
}

.security-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: rgba(12, 24, 41, 0.98);
  border: 1px solid rgba(166, 184, 204, 0.22);
  box-shadow: var(--shadow);
}

.security-modal h2 {
  margin: 0 0 0.75rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.security-modal p {
  color: var(--muted);
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}

.check-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0;
  color: #dbe7f6;
  border-top: 1px solid rgba(166, 184, 204, 0.12);
}

.check-line input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.page-intro {
  padding: 4.2rem 0 2.4rem;
}

.page-intro p {
  max-width: 56rem;
  color: var(--muted);
}

.summary-grid,
.report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-card strong {
  display: block;
  margin-bottom: 0.4rem;
}

.poster-body {
  background:
    radial-gradient(circle at top left, rgba(105, 210, 199, 0.18), transparent 30%),
    linear-gradient(180deg, #08131f 0%, #091525 100%);
}

.poster-shell {
  padding: 3rem 0 4rem;
}

.poster-board {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  background: rgba(10, 22, 37, 0.84);
  border: 1px solid rgba(166, 184, 204, 0.14);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.poster-hero {
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(105, 210, 199, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(247, 178, 103, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.04);
}

.poster-hero p {
  color: #dce6f4;
  max-width: 62rem;
}

.poster-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.poster-metric {
  padding: 1rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-metric strong {
  display: block;
  font-size: 2rem;
}

.poster-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

.poster-stack {
  display: grid;
  gap: 1rem;
}

.poster-card .figure-frame,
.poster-card .plot-frame {
  padding: 0.6rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-grid,
  .publication-grid,
  .artifact-grid,
  .profile-hero,
  .poster-columns {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .summary-grid,
  .report-grid,
  .info-grid,
  .figure-grid,
  .plot-grid,
  .profile-links-grid,
  .security-grid,
  .poster-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-profile {
    grid-column: span 1;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
    background: rgba(9, 19, 33, 0.96);
    border: 1px solid rgba(166, 184, 204, 0.12);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero,
  .section,
  .page-intro {
    padding-top: 3.5rem;
  }

  .metric-grid,
  .summary-grid,
  .report-grid,
  .info-grid,
  .figure-grid,
  .plot-grid,
  .profile-links-grid,
  .security-grid,
  .poster-metrics,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .profile-badge {
    width: 5.75rem;
    height: 5.75rem;
    border-radius: 1.45rem;
    font-size: 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
