:root {
  --navy-deep: #0A1B3D;
  --navy: #12244A;
  --navy-soft: #1C3160;
  --white-warm: #FAFAF8;
  --white-pure: #FFFFFF;
  --ink: #14213A;
  --ink-soft: #4A5570;
  --gold: #C9A227;
  --gold-soft: #E3D9B8;
  --line: #E2E2DC;
  --grey: #EEF0EE;
  --shadow: 0 22px 70px rgba(10, 27, 61, 0.12);
  --max: 1160px;
  --prose: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white-warm);
  font-family: "Spectral", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-color: rgba(201, 162, 39, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--navy);
  text-decoration-color: var(--gold);
}

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 226, 220, 0.72);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white-pure);
  color: var(--navy-deep);
  font: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  padding: 112px 0 86px;
  overflow: hidden;
  color: var(--white-warm);
  background:
    radial-gradient(circle at 20% 20%, rgba(227, 217, 184, 0.12), transparent 26%),
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(135deg, var(--navy-deep), #07132D 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(250, 250, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 248, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 52% 42%, black, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 14% 8% auto auto;
  width: min(560px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(227, 217, 184, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 80px rgba(255, 255, 255, 0.015),
    inset 0 0 0 160px rgba(201, 162, 39, 0.02),
    0 0 90px rgba(201, 162, 39, 0.08);
  opacity: 0.76;
}

.hero-inner,
.section-inner,
.footer-inner {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-content {
  max-width: 830px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.display {
  margin: 0;
  color: inherit;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(4rem, 11vw, 8.2rem);
}

.page-title {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.hero .lede {
  margin: 22px 0 0;
  max-width: 760px;
  color: rgba(250, 250, 248, 0.86);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.38;
}

.hero-kicker {
  margin-top: 12px;
  color: rgba(250, 250, 248, 0.72);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.55;
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: -46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(250, 250, 248, 0.62);
  font-size: 0.88rem;
}

.scroll-cue::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.section {
  padding: 90px 0;
}

.section.compact {
  padding: 68px 0;
}

.section.dark {
  color: var(--white-warm);
  background: var(--navy-deep);
}

.section.white {
  background: var(--white-pure);
}

.prose {
  max-width: var(--prose);
}

.prose > * + * {
  margin-top: 1.08em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.dark .prose p,
.dark .prose li {
  color: rgba(250, 250, 248, 0.78);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(120px, 1fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.dark .section-heading p {
  color: rgba(250, 250, 248, 0.72);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--navy-deep);
  font-weight: 600;
}

.dark .text-link {
  color: var(--white-warm);
}

.framework-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  color: var(--white-warm);
  background:
    radial-gradient(circle at 12% 16%, rgba(227, 217, 184, 0.08), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(255, 255, 255, 0.055), transparent 28%),
    var(--navy-deep);
}

.framework-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(250, 250, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 250, 248, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 52% 44%, black, transparent 76%);
}

.framework-signature,
.framework-architecture,
.framework-definition {
  position: relative;
}

.framework-signature {
  max-width: 900px;
}

.framework-section .eyebrow {
  color: var(--gold-soft);
}

.framework-notation {
  margin-top: 8px;
  color: var(--white-warm);
  font-style: italic;
  font-size: clamp(4rem, 11vw, 7.2rem);
  line-height: 0.95;
}

.framework-notation em {
  color: var(--gold);
  font-size: 0.74em;
  font-style: italic;
}

.framework-tagline {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--gold-soft);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.framework-rule {
  width: 64px;
  height: 1px;
  margin: 34px 0;
  background: var(--gold);
}

.framework-body {
  max-width: 760px;
  margin: 0;
  color: rgba(250, 250, 248, 0.78);
}

.framework-emphasis {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--white-warm);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.32;
}

.framework-architecture {
  margin-top: 54px;
}

.framework-grid-label {
  margin: 0 0 18px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.framework-grid {
  max-width: 900px;
  border: 1px solid rgba(227, 217, 184, 0.24);
  background: rgba(28, 49, 96, 0.28);
}

.framework-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 56px minmax(160px, 0.7fr);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  color: var(--white-warm);
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 217, 184, 0.16);
  transition: background-color 180ms ease, transform 180ms ease;
}

.framework-row:last-child {
  border-bottom: 0;
}

.framework-row:hover,
.framework-row:focus-visible {
  color: var(--white-warm);
  background: rgba(250, 250, 248, 0.045);
  transform: translateY(-1px);
}

.field-description {
  color: rgba(250, 250, 248, 0.82);
  font-style: italic;
}

.field-arrow {
  color: var(--gold);
  font-size: 1.25rem;
  text-align: center;
}

.instrument-name {
  color: var(--white-warm);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.framework-definition {
  max-width: 900px;
  margin-top: 34px;
  padding: 24px 26px;
  border-left: 1px solid var(--gold);
  background: rgba(28, 49, 96, 0.36);
}

.framework-definition p {
  margin: 0;
  color: rgba(250, 250, 248, 0.82);
}

.math-mark {
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 650;
}

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

.card {
  position: relative;
  min-height: 248px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white-pure);
  box-shadow: 0 1px 0 rgba(10, 27, 61, 0.03);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
}

.card:hover,
.card:focus-within {
  border-color: rgba(201, 162, 39, 0.58);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--navy-deep);
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.card .card-link {
  position: static;
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--navy-deep);
  font-size: 0.94rem;
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 26px;
  margin-bottom: 18px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white-warm);
  font-size: 0.82rem;
  line-height: 1;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.live {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--gold);
}

.status.build {
  color: var(--navy-soft);
}

.status.forming {
  color: #767D89;
  background: var(--grey);
}

.publications {
  display: grid;
  gap: 24px;
  max-width: 980px;
}

.publication {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.publication-number {
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.publication h2,
.publication h3 {
  color: var(--navy-deep);
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
}

.publication p {
  margin: 10px 0 12px;
  color: var(--ink-soft);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.page-hero {
  padding: 92px 0 78px;
  color: var(--white-warm);
  background:
    radial-gradient(circle at 82% 28%, rgba(201, 162, 39, 0.12), transparent 28%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.page-hero.light {
  color: var(--ink);
  background: var(--white-warm);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(250, 250, 248, 0.78);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.page-hero.light p {
  color: var(--ink-soft);
}

.mission-movement {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.mission-movement:first-child {
  padding-top: 0;
}

.mission-movement:last-child {
  border-bottom: 0;
}

.mission-movement h2 {
  margin-bottom: 24px;
  color: var(--navy-deep);
}

.pullquote {
  max-width: 920px;
  margin: 72px auto;
  padding-top: 28px;
  border-top: 1px solid var(--gold);
  color: var(--navy-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.18;
}

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

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white-pure);
}

.panel h2,
.panel h3 {
  margin-bottom: 14px;
  color: var(--navy-deep);
}

.panel ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
}

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

.governance-list {
  display: grid;
  gap: 20px;
  max-width: 960px;
}

.governance-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.governance-item h2 {
  color: var(--navy-deep);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

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

.site-footer {
  padding: 62px 0 34px;
  color: rgba(250, 250, 248, 0.78);
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(250, 250, 248, 0.13);
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 12px;
  color: var(--white-warm);
  font-size: 1.05rem;
}

.site-footer p,
.site-footer a {
  color: rgba(250, 250, 248, 0.74);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 20px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--white-warm);
    box-shadow: 0 20px 46px rgba(10, 27, 61, 0.12);
  }

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

  .nav-links a {
    width: 100%;
    padding: 13px 0;
  }

  .section-heading,
  .constellation,
  .instrument-grid,
  .two-column,
  .contact-routes,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading::after {
    width: 100%;
  }

  .card {
    min-height: 214px;
  }

  .framework-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-arrow {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 86px 0 72px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .section {
    padding: 66px 0;
  }

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

  .pullquote {
    margin: 48px 0;
  }

  .footer-bottom {
    display: block;
  }
}
