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

@font-face {
  font-family: "Latin Modern Roman";
  src: url("assets/fonts/lmroman10-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --night: #0e0c0a;
  --night-soft: #17130f;
  --board: #18211c;
  --ink: #fff9ed;
  --muted: #c7bba8;
  --amber: #f69c23;
  --gold: #e7c264;
  --cream: #f3d8a1;
  --brown: #592817;
  --line: rgba(231, 194, 100, 0.22);
  --line-strong: rgba(231, 194, 100, 0.42);
  --page-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  color: var(--muted);
  background:
    radial-gradient(circle at 82% 18%, rgba(246, 156, 35, 0.10), transparent 28rem),
    radial-gradient(circle at 8% 70%, rgba(89, 40, 23, 0.28), transparent 34rem),
    var(--night);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans", sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--night);
  background: var(--gold);
  border-radius: 0.35rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  container: navigation / inline-size;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 12, 10, 0.96);
}

.nav-shell {
  width: 100%;
  min-height: 104px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto minmax(14rem, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.brand {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.125rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.brand-mark {
  width: 3.6rem;
  height: 3.6rem;
  display: block;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-wordmark {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
  color: #c7bba8;
  font-family: "Latin Modern Roman", "Computer Modern", serif;
  font-size: 1.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: normal;
  transition: color 160ms ease;
}

.brand:hover .brand-wordmark,
.brand:focus-visible .brand-wordmark {
  color: var(--amber);
}

.site-expansion {
  max-width: 47rem;
  margin: 0 auto;
  color: rgba(243, 216, 161, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.24rem, 1.56vw, 1.44rem);
  font-style: italic;
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  align-self: stretch;
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 1rem;
  color: #c7bba8;
  font-family: "Latin Modern Roman", "Computer Modern", serif;
  font-size: 1.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--amber);
  background: rgba(246, 156, 35, 0.055);
  outline: none;
}

.site-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

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

.banner {
  width: min(calc(var(--page-width) + 2rem), calc(100% - 2rem));
  margin: clamp(1rem, 2.5vw, 2rem) auto 0;
  padding: clamp(0.3rem, 0.7vw, 0.55rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(0.75rem, 2vw, 1.5rem);
  background: linear-gradient(135deg, rgba(246, 156, 35, 0.18), rgba(231, 194, 100, 0.04));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 70px rgba(246, 156, 35, 0.06);
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(0.5rem, 1.6vw, 1.05rem);
}

.section-shell {
  width: min(var(--page-width), calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: end;
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.eyebrow,
.card-label {
  margin: 0 0 1rem;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3.25rem, 8vw, 7rem);
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--gold);
  font-weight: 400;
}

.intro-copy {
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
}

.intro-copy p {
  margin-bottom: 1rem;
}

.intro-copy .lede {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.75rem;
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration-color: var(--brown);
  text-underline-offset: 0.35rem;
}

.text-link span {
  color: var(--amber);
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(0.25rem);
}

.collection {
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 3rem;
  align-items: end;
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
}

.section-heading > p {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.topic-card {
  position: relative;
  min-height: 22rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 48%),
    var(--night-soft);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.topic-card:hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(155deg, rgba(246, 156, 35, 0.09), transparent 50%),
    #1b1611;
  transform: translateY(-0.25rem);
}

.topic-card--featured {
  background:
    linear-gradient(155deg, rgba(246, 156, 35, 0.11), transparent 54%),
    var(--board);
}

.card-number {
  color: rgba(243, 216, 161, 0.48);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-style: italic;
}

.topic-card h3 {
  margin-bottom: 0.8rem;
  color: var(--cream);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.topic-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.topic-card .card-label {
  margin-bottom: 0.55rem;
}

.card-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.35rem;
  color: var(--amber);
  font-size: 1.3rem;
}

.program-intro {
  padding-top: clamp(2.25rem, 4.5vw, 4rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.program-heading {
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.program-title {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(3.5rem, 8vw, 6.75rem);
  letter-spacing: -0.045em;
}

.program-subtitle {
  margin: 0.75rem 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
}

.program-description {
  max-width: 74rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: rgba(255, 249, 237, 0.74);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.85;
}

.program-description p {
  margin-bottom: 0;
}

.program-description p + p {
  margin-top: 1.15rem;
}

.math-symbol,
.math-symbols {
  color: var(--cream);
  font-family: "DejaVu Math TeX Gyre", "Cambria Math", Georgia, serif;
  white-space: nowrap;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.action-button {
  min-height: 3rem;
  padding: 0.72rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  border-color: rgba(246, 156, 35, 0.72);
  color: #fff;
  background: rgba(246, 156, 35, 0.11);
  transform: translateY(-2px);
}

.action-button--primary {
  border-color: rgba(246, 156, 35, 0.68);
  color: #1a1008;
  background: linear-gradient(135deg, var(--gold), var(--amber));
}

.action-button--primary:hover,
.action-button--primary:focus-visible {
  color: #100a05;
  background: linear-gradient(135deg, #ffe095, #ffad3f);
}

.action-button--disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.home-section {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.home-section--last {
  padding-bottom: clamp(6rem, 11vw, 10rem);
}

.ruled-heading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ruled-heading h2 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--cream);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans", sans-serif;
  font-size: clamp(0.82rem, 1.3vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ruled-heading > span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.research-feed {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background:
    linear-gradient(145deg, rgba(246, 156, 35, 0.07), transparent 58%),
    var(--night-soft);
  overflow: hidden;
}

.research-feed__empty {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
}

.home-research-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(9rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.home-research-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgba(199, 187, 168, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-research-card__meta span {
  color: var(--amber);
}

.home-research-card h3 {
  max-width: 27ch;
  margin-bottom: 0.85rem;
  color: var(--cream);
  font-size: clamp(1.6rem, 3.4vw, 2.45rem);
}

.home-research-card p {
  max-width: 54rem;
  margin-bottom: 1.2rem;
}

.home-research-card a {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

.home-research-card a span {
  margin-left: 0.35rem;
  color: var(--amber);
}

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

.direction-grid--five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.direction-grid--five .direction-card {
  grid-column: span 2;
}

.direction-grid--five .direction-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.direction-card {
  min-height: 15rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background:
    linear-gradient(145deg, rgba(246, 156, 35, 0.055), transparent 54%),
    var(--night-soft);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.direction-card:hover,
.direction-card:focus-visible {
  border-color: rgba(246, 156, 35, 0.5);
  background:
    linear-gradient(145deg, rgba(246, 156, 35, 0.11), transparent 58%),
    #1b1611;
  transform: translateY(-3px);
}

.direction-number {
  margin-bottom: auto;
  color: rgba(246, 156, 35, 0.64);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
}

.direction-card h3 {
  margin-bottom: 0.65rem;
  color: var(--cream);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.direction-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.software-feature {
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background:
    radial-gradient(circle at 90% 20%, rgba(246, 156, 35, 0.10), transparent 22rem),
    var(--board);
}

.software-feature > div:first-child {
  flex: 1 1 22rem;
  min-width: 0;
}

.software-feature + .software-feature {
  margin-top: 1rem;
}

.software-label {
  margin-bottom: 0.65rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.software-feature h3 {
  margin-bottom: 0.7rem;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.software-feature > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.action-row--compact {
  flex: 0 1 auto;
  max-width: 100%;
  margin-top: 0;
}

.method-block {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid var(--line);
}

.method-list {
  margin-bottom: 1.3rem;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  line-height: 1.65;
}

.method-list span {
  margin: 0 0.4rem;
  color: var(--amber);
}

.method-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration-color: var(--brown);
  text-underline-offset: 0.35rem;
}

.method-link span {
  color: var(--amber);
  font-size: 1.15rem;
  transition: transform 160ms ease;
}

.method-link:hover span,
.method-link:focus-visible span {
  transform: translateX(0.25rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0907;
}

.inner-page {
  min-height: calc(100vh - 104px - 12rem);
}

.page-hero {
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.page-hero__grid {
  display: block;
}

.page-title {
  max-width: none;
  margin-bottom: 0;
}

.page-intro {
  margin-bottom: 0.35rem;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.25vw, 1.6rem);
  line-height: 1.5;
}

.page-placeholder {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(199, 187, 168, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.page-section {
  padding-bottom: clamp(5rem, 9vw, 8rem);
  scroll-margin-top: 2rem;
}

.page-section--last {
  padding-bottom: clamp(7rem, 12vw, 11rem);
}

.section-introduction {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line-strong);
}

.section-index,
.publication-kind,
.project-panel__label,
.member-role {
  margin-bottom: 0.65rem;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-introduction h2 {
  max-width: none;
  margin-bottom: 0;
  color: var(--cream);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
}

.section-introduction > p {
  margin: 0.3rem 0 0;
  color: rgba(255, 249, 237, 0.76);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.8;
}

.publication-list,
.priority-grid,
.focus-list,
.project-grid,
.principle-grid,
.methodology-list,
.openness-grid,
.member-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.publication-list {
  display: grid;
  gap: 1rem;
}

.publication-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background:
    linear-gradient(145deg, rgba(246, 156, 35, 0.06), transparent 62%),
    var(--night-soft);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.research-feed .publication-card {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.publication-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(199, 187, 168, 0.7);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-status {
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(231, 194, 100, 0.38);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(231, 194, 100, 0.08);
  font-size: 0.65rem;
  line-height: 1;
}

.publication-status--preprint {
  border-color: rgba(246, 156, 35, 0.52);
  color: #ffd28b;
  background: rgba(246, 156, 35, 0.1);
}

.publication-status--accepted {
  border-color: rgba(143, 190, 164, 0.55);
  color: #bfe9cf;
  background: rgba(85, 145, 112, 0.12);
}

.publication-status--published {
  border-color: rgba(231, 194, 100, 0.65);
  color: #fff1bd;
  background: rgba(231, 194, 100, 0.13);
}

.publication-status--forthcoming {
  color: var(--muted);
}

.publication-body h3 {
  max-width: none;
  margin-bottom: 0.65rem;
  color: var(--cream);
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  line-height: 1.25;
}

.publication-body h3 a {
  text-decoration: none;
}

.publication-body h3 a:hover,
.publication-body h3 a:focus-visible {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.publication-body > p:not(.publication-kind):not(.publication-authors):not(.publication-citation) {
  max-width: 55rem;
  margin-bottom: 0;
  color: rgba(255, 249, 237, 0.74);
}

.publication-body .publication-authors {
  margin-bottom: 0.25rem;
  color: var(--cream);
  font-weight: 700;
}

.publication-body .publication-citation {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.publication-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
}

.publication-actions a,
.openness-grid a,
.member-links a {
  position: relative;
  z-index: 2;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

.publication-actions a span,
.openness-grid a span,
.member-links a span {
  margin-left: 0.25rem;
  color: var(--amber);
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.priority-card {
  position: relative;
  min-height: 8rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: inherit;
  background:
    linear-gradient(145deg, rgba(246, 156, 35, 0.055), transparent 54%),
    var(--night-soft);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.priority-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.priority-card:hover,
.priority-card:focus-visible {
  border-color: rgba(246, 156, 35, 0.5);
  background:
    linear-gradient(145deg, rgba(246, 156, 35, 0.11), transparent 58%),
    #1b1611;
  transform: translateY(-3px);
}

.priority-number {
  margin-bottom: auto;
  color: rgba(246, 156, 35, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
}

.priority-card h3 {
  margin: 1rem 0 0;
  color: var(--cream);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.priority-card p {
  margin: 0;
}

.card-direction {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(231, 194, 100, 0.62);
  transition: color 180ms ease, transform 180ms ease;
}

.priority-card:hover .card-direction,
.priority-card:focus-visible .card-direction {
  color: var(--amber);
  transform: translateY(3px);
}

.focus-list {
  border-bottom: 1px solid var(--line);
}

.focus-entry {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.focus-heading {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.focus-heading > span {
  padding-top: 0.3rem;
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
}

.focus-heading h3 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.focus-copy p {
  margin-bottom: 0;
  color: rgba(255, 249, 237, 0.74);
  line-height: 1.8;
}

.focus-copy p + p {
  margin-top: 1rem;
}

.related-papers a {
  color: var(--gold);
  text-underline-offset: 0.2rem;
}

.canonical-notice {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  border: 1px solid rgba(231, 194, 100, 0.28);
  border-radius: 0.6rem;
  background: rgba(231, 194, 100, 0.045);
}

.canonical-notice__mark {
  color: var(--amber);
}

.canonical-notice p {
  margin: 0;
  color: rgba(255, 249, 237, 0.75);
}

.canonical-notice a {
  color: var(--gold);
  text-underline-offset: 0.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 33rem), 1fr));
  gap: 1rem;
}

.project-grid .project-panel:only-child {
  max-width: 58rem;
  grid-column: 1 / -1;
}

.project-panel {
  container: project / inline-size;
  position: relative;
  min-height: 31rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 88% 14%, rgba(246, 156, 35, 0.11), transparent 19rem),
    var(--board);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.25);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-panel:hover,
.project-panel:focus-within {
  border-color: rgba(246, 156, 35, 0.56);
  background:
    radial-gradient(circle at 88% 14%, rgba(246, 156, 35, 0.17), transparent 20rem),
    #1b241e;
  transform: translateY(-3px);
}

.project-panel:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.project-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.project-panel__icon {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
}

.project-panel__header h3 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(2rem, 4vw, 3rem);
}

.project-panel__primary {
  color: inherit;
  text-decoration: none;
}

.project-panel__primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0.85rem;
}

.project-panel__primary:focus-visible {
  outline: none;
}

.project-panel__description {
  margin: 1.75rem 0 0;
  color: rgba(255, 249, 237, 0.78);
  font-size: 1.02rem;
  line-height: 1.75;
}

.project-facts {
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-facts > div {
  padding: 0.9rem 0.625rem;
}

.project-facts > div + div {
  border-left: 1px solid var(--line);
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0.15rem 0 0;
  color: var(--cream);
  font-size: 0.86rem;
}

.project-research {
  margin-top: 1.4rem;
}

.project-research > span {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-research p {
  margin: 0.35rem 0 0;
  color: rgba(199, 187, 168, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.project-research .project-secondary-link {
  font-size: inherit;
}

.project-panel__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.project-destination {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.project-destination span {
  margin-left: 0.25rem;
  color: var(--amber);
  transition: transform 180ms ease;
}

.project-panel:hover .project-destination span {
  display: inline-block;
  transform: translateX(3px);
}

.project-secondary-link {
  position: relative;
  z-index: 2;
  color: rgba(231, 194, 100, 0.75);
  font-size: 0.75rem;
  text-underline-offset: 0.25rem;
}

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

.principle-grid article,
.openness-grid article {
  min-height: 15rem;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--night-soft);
}

.principle-grid article > span {
  margin-bottom: auto;
  color: rgba(246, 156, 35, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-style: italic;
}

.principle-grid h3,
.openness-grid h3 {
  margin: 2rem 0 0.6rem;
  color: var(--cream);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.principle-grid p,
.openness-grid p {
  margin-bottom: 0;
}

.openness-grid h3 {
  margin-top: 0;
}

.openness-grid a {
  width: fit-content;
  margin-top: auto;
  padding-top: 1.5rem;
}

.repository-policy {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 88% 12%, rgba(246, 156, 35, 0.12), transparent 22rem),
    var(--board);
}

.repository-policy h2 {
  max-width: none;
  margin: 0;
  color: var(--cream);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.repository-policy__copy p {
  color: rgba(255, 249, 237, 0.78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.repository-policy__copy .action-button {
  margin-top: 0.75rem;
}

.prose-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
}

.prose-lede {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-strong);
}

.prose-lede p {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.5;
}

.prose-body p {
  margin-bottom: 0;
  color: rgba(255, 249, 237, 0.75);
  line-height: 1.85;
}

.prose-body p + p {
  margin-top: 1rem;
}

.section-prose {
  max-width: 70ch;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: rgba(255, 249, 237, 0.82);
  line-height: 1.8;
}

.section-prose h3 {
  margin: 2rem 0 0.75rem;
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.section-prose h3:first-child {
  margin-top: 0;
}

.section-prose p {
  margin: 0 0 1rem;
}

.section-prose .action-row {
  margin-top: 1.5rem;
}

.name-panel {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--board);
}

.name-panel__mark {
  width: clamp(5rem, 10vw, 7rem);
}

.name-panel__mark img {
  display: block;
}

.name-panel h3 {
  margin-bottom: 0.7rem;
  color: var(--cream);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.name-panel > div:last-child > p:last-child {
  max-width: 55rem;
  margin-bottom: 0;
}

.methodology-list {
  border-bottom: 1px solid var(--line);
}

.methodology-list article {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.methodology-number {
  padding-top: 0.3rem;
  color: var(--amber);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-style: italic;
}

.methodology-list h3 {
  margin-bottom: 0.55rem;
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.methodology-list p {
  max-width: 62rem;
  margin: 0;
  color: rgba(255, 249, 237, 0.74);
  line-height: 1.8;
}

.member-grid--single {
  max-width: 58rem;
}

.member-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background:
    linear-gradient(145deg, rgba(246, 156, 35, 0.07), transparent 58%),
    var(--night-soft);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.member-card__portrait {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #201a27;
}

.member-card__body {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
}

.member-card h3 {
  margin-bottom: 1rem;
  color: var(--cream);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
}

.member-card h3 span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans", sans-serif;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-card__body > p:not(.member-role) {
  margin-bottom: 0;
  color: rgba(255, 249, 237, 0.76);
  line-height: 1.8;
}

.member-links {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.25rem;
}

.footer-links a {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration-color: var(--brown);
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
}

.not-found {
  min-height: calc(100vh - 104px - 12rem);
  padding-top: clamp(5rem, 12vw, 10rem);
  padding-bottom: clamp(5rem, 12vw, 10rem);
}

.not-found h1 {
  max-width: 12ch;
  color: var(--cream);
}

.not-found > p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1.25rem 0 2rem;
  color: rgba(255, 249, 237, 0.75);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.footer-shell {
  width: min(var(--page-width), calc(100% - 3rem));
  min-height: 12rem;
  margin: 0 auto;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-shell p {
  margin-bottom: 0.2rem;
}

.footer-shell .footer-title {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.footer-note {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-note span {
  margin-right: 0.45rem;
  color: var(--amber);
}

@container navigation (max-width: 84rem) {
  .nav-shell {
    width: 100%;
    min-height: 0;
    padding: 0.85rem 1rem;
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
  }

  .site-expansion {
    align-self: center;
    margin-right: 0;
    text-align: right;
  }

  .site-nav {
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-nav a {
    min-height: 2.75rem;
    padding: 0 0.85rem;
  }

  .site-nav a:first-child {
    padding-left: 0;
  }

  .site-nav a:first-child::after {
    left: 0;
  }
}

@container project (max-width: 31rem) {
  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-facts > div:nth-child(odd) {
    border-left: 0;
  }

  .project-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@container project (max-width: 16rem) {
  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 70rem) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .intro,
  .section-heading,
  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro {
    align-items: start;
  }

  .intro-copy {
    max-width: 38rem;
  }

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

  .topic-card {
    min-height: 17rem;
  }

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

  .direction-grid--five .direction-card,
  .direction-grid--five .direction-card:nth-child(4) {
    grid-column: auto;
  }

  .direction-card {
    min-height: 12rem;
  }

  .software-feature {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }

  .software-feature > div:first-child {
    flex-basis: auto;
  }

  .home-research-card,
  .publication-card,
  .section-introduction,
  .focus-entry,
  .repository-policy,
  .prose-grid,
  .member-card {
    grid-template-columns: 1fr;
  }

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

  .priority-card,
  .priority-card:nth-child(4) {
    grid-column: auto;
  }

  .priority-card:last-child {
    grid-column: 1 / -1;
  }

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

  .principle-grid article,
  .openness-grid article {
    min-height: 0;
  }

  .member-grid--single {
    max-width: 36rem;
  }

  .member-card__portrait {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }
}

@container navigation (max-width: 35rem) {
  .nav-shell {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .brand {
    justify-self: center;
    justify-content: center;
  }

  .site-expansion {
    grid-column: 1;
    max-width: 28rem;
    margin: 0 auto;
    text-align: center;
  }

  .site-nav {
    grid-column: 1;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }

  .site-nav a,
  .site-nav a:first-child {
    min-height: 2.5rem;
    padding: 0.25rem 0.55rem;
    font-size: 1rem;
  }

  .site-nav a::after,
  .site-nav a:first-child::after {
    right: 0.55rem;
    left: 0.55rem;
  }
}

@media (max-width: 560px) {
  .banner {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
    padding: 0.22rem;
  }

  .banner img {
    width: 100%;
    height: min(72vw, 27rem);
    object-fit: cover;
    object-position: 70% center;
  }

  .section-shell,
  .footer-shell {
    width: calc(100% - 2rem);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .program-intro {
    padding-top: 2rem;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-button {
    width: 100%;
  }

  .home-research-card,
  .publication-card {
    gap: 1.25rem;
  }

  .home-research-card__meta,
  .publication-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

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

  .priority-card:last-child {
    grid-column: auto;
  }

  .priority-card {
    min-height: 8rem;
  }

  .focus-entry {
    gap: 1.25rem;
  }

  .project-panel {
    min-height: 0;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .repository-policy {
    padding: 1.5rem;
  }

  .name-panel {
    grid-template-columns: 1fr;
  }

  .methodology-list article {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  .member-card__body {
    padding: 1.5rem;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .ruled-heading {
    gap: 0.8rem;
  }

  .method-list span {
    margin: 0 0.15rem;
  }

  .intro-copy {
    padding-left: 1rem;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@container navigation (max-width: 22rem) {
  .brand {
    gap: 0.75rem;
  }

  .brand-mark {
    width: 2.75rem;
    height: 2.75rem;
  }
}

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

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

.faq-page .page-hero {
  padding-bottom: 2rem;
}

.faq-page .page-title {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  line-height: 1.15;
}

.faq-article {
  max-width: 78ch;
  margin-top: 0;
}

.faq-article h2 {
  margin: 3rem 0 1rem;
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

.faq-article a {
  color: var(--gold);
  text-underline-offset: 0.2rem;
}

.faq-article ul {
  padding-left: 1.5rem;
}

.faq-article li + li {
  margin-top: 0.4rem;
}

.faq-article hr {
  width: 100%;
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.faq-article [id] {
  scroll-margin-top: 2rem;
}
