@font-face {
  font-family: "IBM Plex Sans Local";
  src: url("/assets/fonts/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4 Local";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #123550;
  --navy-deep: #0d2a42;
  --ink: #102a43;
  --ink-soft: #334f69;
  --blue: #477ba8;
  --blue-soft: #8fb4d4;
  --pale: #edf5fb;
  --paper: #fffefa;
  --copper: #cb7043;
  --copper-soft: #e6a17e;
  --rule: rgba(31, 71, 105, 0.18);
  --rule-copper: rgba(203, 112, 67, 0.36);
  --serif: "Source Serif 4 Local", "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "IBM Plex Sans Local", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 64rem;
  --reading: 37rem;
  --header: 4.1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 5px;
}

::selection {
  color: white;
  background: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(118deg, #101d2d 0%, #122233 58%, #0f1c2b 100%);
  color: white;
  backdrop-filter: blur(14px);
}

.site-header::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(rgba(143, 180, 212, 0.52) 0.55px, transparent 0.8px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, black, rgba(0, 0, 0, 0.65) 62%, transparent 92%);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - clamp(3rem, 16vw, 15rem), var(--max));
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.wordmark__short {
  color: var(--copper-soft);
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.36em;
  transform: translateX(0.18em);
}

.wordmark__long {
  padding-left: 0.85rem;
  border-left: 1px solid var(--copper-soft);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.1rem);
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--copper-soft);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: white;
}

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

.band {
  position: relative;
  overflow: hidden;
}

.wrap {
  width: min(100% - clamp(4rem, 20vw, 20rem), var(--max));
  margin-inline: auto;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 4.4vw, 4.25rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.038em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.18rem, 1.45vw, 1.48rem);
  line-height: 1.16;
}

.eyebrow,
.figure-kicker {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-band,
.page-hero,
.research-overview,
.research-page {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.82), transparent 34rem),
    var(--pale);
}

.hero-band {
  background:
    radial-gradient(circle at 82% 38%, rgba(255, 255, 255, 0.82), transparent 30rem),
    linear-gradient(122deg, #edf5fb 0%, #e4eff8 58%, #dceaf5 100%);
}

.hero-band::before,
.page-hero::before,
.research-overview::before,
.research-page::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(rgba(71, 123, 168, 0.34) 0.65px, transparent 0.8px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 44%);
}

.hero-band::before {
  opacity: 0.32;
  background-image:
    radial-gradient(rgba(71, 123, 168, 0.3) 0.55px, transparent 0.82px),
    repeating-linear-gradient(135deg, rgba(71, 123, 168, 0.04) 0 1px, transparent 1px 18px);
  background-size: 27px 27px, auto;
  mask-image: linear-gradient(90deg, black, rgba(0, 0, 0, 0.72) 66%, transparent 98%);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(27rem, 1.08fr) minmax(19rem, 0.92fr);
  align-items: center;
  gap: clamp(1.75rem, 2.8vw, 2.65rem);
  padding-block: clamp(3.5rem, 5.5vw, 4.75rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: none;
  font-size: clamp(2.9rem, 3.55vw, 3.7rem);
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero-rule {
  width: 3.7rem;
  height: 1px;
  margin-bottom: 1.3rem;
  background: var(--copper);
}

.hero-lede,
.lede {
  max-width: var(--reading);
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.06vw, 1.1rem);
  line-height: 1.58;
}

.hero-figure {
  position: relative;
  z-index: 1;
  width: clamp(31rem, 38vw, 38rem);
  max-width: none;
  min-width: 0;
  margin: 0 clamp(-9rem, -7vw, -5rem) 0 0;
  justify-self: end;
}

.figure-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.figure-kicker span:last-child {
  color: var(--blue);
}

canvas {
  display: block;
  width: 100%;
}

.hero-scene__art {
  position: relative;
  isolation: isolate;
}

.hero-scene__art::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(71, 123, 168, 0.08);
  mask-image: linear-gradient(135deg, transparent 5%, black 42%, transparent 95%);
}

.hero-scene img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}

.math-note {
  position: absolute;
  z-index: 3;
  padding: 0.18rem 0.35rem;
  color: rgba(18, 53, 80, 0.72);
  background: rgba(237, 245, 251, 0.76);
  font-family: var(--serif);
  font-size: clamp(0.66rem, 0.8vw, 0.78rem);
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.015em;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}

.math-note sub {
  font-size: 0.7em;
}

.math-note--observation {
  top: 26%;
  left: 44%;
}

.math-note--policy {
  top: 51%;
  bottom: auto;
  left: 63%;
  color: rgba(71, 123, 168, 0.86);
}

.math-note--transition {
  right: 2%;
  bottom: 24%;
}

.math-note--update {
  top: 8%;
  left: 14%;
  color: rgba(71, 123, 168, 0.86);
}

.math-note--goal {
  top: 27%;
  right: 5%;
  color: var(--copper);
  background: transparent;
  font-size: 0.9rem;
}

.hero-scroll {
  display: none;
  position: absolute;
  right: 0;
  bottom: 1.5rem;
  left: 0;
  z-index: 3;
  width: max-content;
  margin-inline: auto;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll::after {
  display: block;
  width: 1px;
  height: 1.7rem;
  margin: 0.55rem auto 0;
  content: "";
  background: var(--copper);
}

.section {
  position: relative;
  padding-block: clamp(3.6rem, 5vw, 5.1rem);
}

#why,
.why-section--science {
  overflow: clip;
}

.principle--split {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(13rem, 0.58fr);
  align-items: center;
  gap: clamp(2.5rem, 3.5vw, 3.5rem);
}

.principle {
  min-width: 0;
}

.why-section--science {
  border-block: 1px solid var(--rule);
  background: #e4eff8;
}

.principle h2 {
  font-size: clamp(2.2rem, 2.8vw, 2.7rem);
}

.principle h2::after,
.page-title::after {
  display: block;
  width: 2.9rem;
  height: 1px;
  margin-top: 1rem;
  content: "";
  background: var(--copper);
}

.principle-figure {
  width: clamp(20rem, 27vw, 25rem);
  max-width: none;
  height: clamp(9.5rem, 13vw, 12rem);
  margin: 0 clamp(-8rem, -6vw, -4rem) 0 0;
  justify-self: end;
}

.principle p {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.02vw, 1.08rem);
}

.principle p:last-child {
  margin-bottom: 0;
}

.section-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(16rem, 0.76fr) minmax(20rem, 1.24fr);
  gap: clamp(2rem, 3.3vw, 3.25rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 3.5vw, 3.25rem);
}

.section-intro h2,
.section-intro p {
  margin-bottom: 0;
}

.section-intro p {
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.02vw, 1.07rem);
}

.research-overview::before,
.research-page::before {
  opacity: 0.18;
  mask-image: linear-gradient(270deg, black, transparent 56%);
}

.research-overview {
  background: var(--paper);
}

.research-overview .wrap,
.research-page .wrap,
.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(18rem, 0.78fr);
  gap: clamp(2.5rem, 3.5vw, 3.5rem);
}

.overview-theories,
.research-index {
  border-top: 1px solid var(--rule-copper);
}

.overview-theories {
  border-top: 0;
}

.overview-theories__label {
  margin-bottom: 0.8rem;
}

.overview-theories__label + .overview-link {
  border-top: 1px solid var(--rule-copper);
}

.overview-link,
.theory summary {
  display: grid;
  min-height: 5.35rem;
  grid-template-columns: 3.9rem 1fr auto;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.65rem);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-copper);
}

.overview-link {
  text-decoration: none;
}

.overview-link h3,
.theory summary h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 1.55vw, 1.62rem);
}

.theory-icon {
  width: 3.6rem;
  height: 3.45rem;
}

.theory-arrow {
  color: var(--copper);
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.overview-link:hover .theory-arrow {
  transform: translateX(0.35rem);
}

.overview-aside {
  padding-top: 1.2rem;
}

.overview-aside h3 {
  font-size: clamp(1.45rem, 1.85vw, 1.85rem);
}

.theory-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0 2rem;
  padding: 0;
  list-style: none;
}

.theory-list li {
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid var(--copper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact {
  background: var(--navy);
  color: white;
}

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(18rem, 0.7fr) minmax(25rem, 1.3fr);
  gap: clamp(2.5rem, 3.5vw, 3.5rem);
  align-items: center;
}

.contact h2 {
  margin-bottom: 0;
  color: white;
}

.contact p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 1.08vw, 1.12rem);
}

.contact a,
.content a,
.theory-notes a {
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact a {
  color: var(--copper-soft);
}

.writing {
  padding-block: clamp(3.6rem, 5vw, 5rem);
}

.writing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.writing-head h2,
.writing-head p {
  margin-bottom: 0;
}

.writing-head > p,
.post-row p,
.post-row time {
  color: var(--ink-soft);
}

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule-copper);
  border-bottom: 1px solid var(--rule-copper);
}

.post-row h3,
.post-row p {
  margin-bottom: 0;
}

.page-hero {
  padding-block: clamp(3.3rem, 4.5vw, 4.5rem);
}

.page-hero h1 {
  max-width: 13ch;
}

.page-title {
  margin-bottom: 2.3rem;
}

.content {
  max-width: var(--reading);
}

.content > p {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.02vw, 1.08rem);
}

.research-page {
  padding-block: clamp(3.3rem, 4.5vw, 4.5rem);
}

.research-page .research-index {
  margin-top: 3rem;
}

.theory summary {
  cursor: pointer;
  list-style: none;
}

.theory summary::-webkit-details-marker {
  display: none;
}

.theory[open] .theory-arrow {
  transform: rotate(90deg);
}

.theory-notes {
  max-width: 66rem;
  margin: 0 0 2.5rem 6.8rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.theory-notes li {
  margin-bottom: 0.85rem;
  padding-left: 0.35rem;
}

.research-addendum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  margin-top: clamp(4rem, 7vw, 7rem);
}

.research-addendum h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.3rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(20rem, 1.28fr);
  gap: clamp(2.5rem, 3.5vw, 3.5rem);
}

.about-layout .content p:first-child {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
  line-height: 1.58;
}

.team-heading {
  margin: clamp(3.5rem, 5vw, 4.75rem) 0 1.6rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.7rem, 3vw, 2.75rem);
}

.person {
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-copper);
}

.person__photo {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--rule-copper);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, var(--blue-soft) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 116%, rgba(143, 180, 212, 0.7) 0 45%, transparent 46%),
    var(--pale);
  object-fit: cover;
}

.person h3 {
  margin-bottom: 0.15rem;
}

.person__role {
  margin-bottom: 1rem;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.person p:last-child {
  color: var(--ink-soft);
}

.blog-page {
  min-height: calc(100svh - var(--header) - 7rem);
}

footer {
  display: flex;
  width: min(100% - clamp(3rem, 16vw, 15rem), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: auto;
  padding-block: 2rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 68rem) {
  .wordmark__long {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 4rem 4.5rem;
  }

  .hero-copy {
    max-width: 42rem;
  }

  .hero-figure {
    width: min(100%, 34rem);
    max-width: 34rem;
    margin-right: 0;
    justify-self: center;
  }

  .principle-figure {
    width: 20rem;
    max-width: 20rem;
    height: 9.5rem;
    margin-right: -2rem;
  }

  .hero-scroll {
    display: none;
  }

  .section-intro,
  .overview-grid,
  .contact .wrap,
  .about-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 45rem) {
  :root {
    --header: 4.1rem;
  }

  .site-header__inner,
  footer {
    width: min(100% - 2rem, var(--max));
  }

  .wordmark__short {
    font-size: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a:first-child,
  .site-nav a:last-child {
    display: none;
  }

  .wrap {
    width: min(100% - 2rem, var(--max));
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 4rem;
  }

  .hero-title__line {
    white-space: normal;
  }

  .principle-figure {
    width: min(72%, 24rem);
    max-width: 24rem;
    height: 10rem;
    margin: 1.5rem 0 0;
    justify-self: start;
  }

  .principle--split {
    grid-template-columns: 1fr;
  }

  .overview-link,
  .theory summary {
    min-height: 7rem;
    grid-template-columns: 4.4rem 1fr auto;
    gap: 0.75rem;
  }

  .theory-icon {
    width: 4rem;
    height: 4rem;
  }

  .theory-notes {
    margin-left: 0;
  }

  .research-addendum,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .writing-head,
  .post-row,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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