:root {
  --bg: #ffffff;
  --panel: rgba(255, 251, 246, 0.9);
  --panel-strong: #fffaf4;
  --ink: #1d1a17;
  --muted: #6d665f;
  --line: rgba(49, 40, 33, 0.13);
  --line-soft: rgba(49, 40, 33, 0.08);
  --teal: #0f7c73;
  --terracotta: #c55f38;
  --shadow: 0 22px 60px rgba(45, 34, 24, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --max-width-results: 1200px;
  --carousel-gap: 22px;
  --carousel-card-width: min(1120px, calc(100vw - 96px));
  --font-sans: "Source Sans 3", "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-title: "Libre Baskerville", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-sans);
  background: var(--bg);
}

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

a {
  color: inherit;
}

.page-shell {
  padding: 18px 24px 32px;
}

.hero,
.content-section,
.site-footer {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
}

.results-section {
  width: min(var(--max-width-results), calc(100vw - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  margin-bottom: 18px;
  padding: 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  box-shadow: none;
}

.brand {
  font-family: var(--font-mono);
  font-size: 1.22rem;
  margin-left: 12px;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a,
.results-nav a {
  font-size: 1.22rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.results-nav a:hover {
  color: var(--ink);
}

.section-frame,
.content-section {
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.hero {
  padding: 42px 20px 46px;
}

.hero-copy {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero .eyebrow {
  width: 100%;
  align-self: stretch;
  justify-content: flex-start;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 1.06rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--terracotta));
  box-shadow: none;
}

.eyebrow-small {
  margin-bottom: 12px;
}

.hero h1,
.content-section h2,
.text-card h3,
.result-header h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: none;
  font-family: "Cormorant Garamond", "Libre Baskerville", serif;
  font-size: clamp(2.28rem, 3.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
  text-align: center;
}

.content-section h2 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.2;
}

.text-card h3,
.result-header h3 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.014em;
  line-height: 1.05;
}

.hero-title-line {
  display: block;
}

.hero-subtitle-line {
  white-space: nowrap;
}

.hero-wordmark {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.022em;
}

.hero-title-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.author-line {
  width: min(100%, 100ch);
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.18rem;
  font-weight: 500;
  text-align: center;
}

.affiliation-block {
  width: min(100%, 100ch);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  width: min(100%, 100ch);
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: #fbf6ef;
  box-shadow: none;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(49, 40, 33, 0.18);
}

.button-static {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.38);
  border-color: var(--line);
  cursor: default;
}

.content-section {
  margin-top: 74px;
  padding: 40px 20px;
}

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

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

.section-heading .eyebrow {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  margin-bottom: 22px;
}

.content-section h2 {
  font-size: clamp(2.04rem, 2.6vw, 2.9rem);
  line-height: 0.98;
}

.section-intro {
  max-width: none;
  margin: 16px 0 0;
  font-size: 1.30rem;
  color: var(--muted);
  line-height: 1.82;
}

#abstract {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 74px;
  padding: 52px 0;
  background: #f7f3ec;
}

#abstract > .section-heading,
#abstract > .abstract-card {
  width: min(var(--max-width), calc(100vw - 48px));
  margin-left: auto;
  margin-right: auto;
}

#method {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 52px 0;
  background: #f7f3ec;
}

#method > .section-heading,
#method > .method-layout,
#method > .method-detail-grid {
  width: min(var(--max-width), calc(100vw - 48px));
  margin-left: auto;
  margin-right: auto;
}

#method > .section-heading {
  text-align: left;
}

#method > .section-heading .eyebrow {
  align-self: flex-start;
}

#citation {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 52px 0;
  background: #f7f3ec;
}

#citation > .section-heading,
#citation > .citation-box {
  width: min(var(--max-width), calc(100vw - 48px));
  margin-left: auto;
  margin-right: auto;
}

.abstract-card,
.text-card,
.wide-figure,
.media-card,
.citation-box,
.result-category {
  border: none;
  border-radius: 24px;
  background: transparent;
}

.abstract-card,
.text-card {
  padding: 24px;
}

.abstract-card p,
.text-card p,
.question-card p,
.result-header p,
.gallery-card figcaption,
.site-footer p,
.carousel-note,
.legacy-card p,
.legacy-list li {
  margin: 0;
  font-size: 1.30rem;
  color: var(--muted);
  line-height: 1.9;
}

.abstract-card strong,
.result-header strong,
.gallery-card strong {
  color: var(--ink);
  font-weight: 700;
}

.method-layout,
.method-detail-grid {
  display: grid;
  gap: 22px;
}

.wide-figure,
.media-card {
  overflow: hidden;
  padding: 0;
}

.wide-figure img,
.media-card img,
.gallery-card img {
  width: 100%;
}

.question-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.question-card {
  padding: 26px 24px;
  border: 1px solid rgba(49, 40, 33, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.question-index,
.result-kicker,
.carousel-counter {
  font-family: var(--font-mono);
  font-size: 1.04rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.question-tag {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: rgba(197, 95, 56, 0.08);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.question-card h3 {
  margin: 12px 0 10px;
  font-family: var(--font-title);
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.05;
}

.legacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.legacy-card {
  padding: 24px;
  border: 1px solid rgba(49, 40, 33, 0.12);
  border-radius: 24px;
  background: rgba(248, 246, 242, 0.72);
}

.legacy-kicker {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.90rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.legacy-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 12px;
}

.legacy-meta-row .legacy-kicker {
  margin-bottom: 0;
}

.legacy-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 124, 115, 0.08);
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.legacy-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-size: 1.78rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.legacy-card:first-child h3 {
  font-size: 1.44rem;
  margin-bottom: 28px;
  line-height: 1.2;
}

.legacy-card:first-child p {
  margin-bottom: 30px;
}

.legacy-links {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 0;
  text-align: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid rgba(49, 40, 33, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 700;
}

.pill-link-primary {
  background: var(--ink);
  color: #fbf6ef;
}

.pill-link-primary:hover {
  background: #000;
}

.pill-link:hover {
  background: #fff;
}

.legacy-list {
  margin: 0;
  padding-left: 20px;
}

.method-detail-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  margin-top: 22px;
}

.text-card h3 {
  margin-bottom: 14px;
  font-size: 1.58rem;
  line-height: 1;
}

.value-space-title {
  line-height: 1.2;
}

.value-space-figure-title {
  margin: 0;
  padding: 22px 24px 18px;
  font-family: var(--font-title);
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.media-card-tight {
  padding: 0;
}

.results-nav {
  position: sticky;
  top: 92px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
}

.results-nav a {
  display: inline;
  min-height: auto;
  padding: 0;
  background: transparent;
  font-size: 1.28rem;
  font-weight: 700;
}

.result-category {
  margin-top: 18px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(49, 40, 33, 0.12);
  border-radius: 28px;
  background: rgba(248, 246, 242, 0.72);
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.result-header h3 {
  margin: 20px 0 24px;
  font-size: 1.82rem;
  line-height: 1.2;
}

.result-header p {
  margin-top: 0;
}

.result-kicker {
  margin-bottom: 16px;
  font-size: 0.90rem;
}

.results-carousel {
  position: relative;
  margin-top: 18px;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.results-carousel.is-dragging .carousel-viewport {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  align-items: stretch;
  width: max-content;
  padding: 22px 0 16px;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 var(--carousel-card-width);
  min-width: var(--carousel-card-width);
  opacity: 0.34;
  filter: saturate(0.84) blur(0.2px);
  transform: scale(0.88);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

.carousel-slide.is-neighbor {
  opacity: 0.72;
  filter: saturate(0.96);
  transform: scale(0.94);
}

.results-carousel.is-static .carousel-slide {
  flex-basis: 100%;
  min-width: 100%;
  opacity: 1;
  transform: none;
}

.results-carousel.is-static .carousel-track {
  display: block;
  width: 100%;
  padding: 16px 0 10px;
  transform: none !important;
}

.results-carousel.is-static .gallery-card {
  width: 100%;
  max-width: 100%;
}

.gallery-card {
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 16px;
  border: none;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  height: 100%;
}

.paper-ref {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

.gallery-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(76vh, 1040px);
}

.gallery-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(76vh, 1040px);
  margin: 0 auto;
  background: transparent;
  pointer-events: none;
}

.gallery-card figcaption {
  margin-top: 14px;
  padding: 16px 8px 6px;
  border-top: none;
  font-size: 1.20rem;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 12px;
  padding: 0 8px;
}

.carousel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-note {
  font-size: 1rem;
}

.carousel-controls {
  position: absolute;
  top: calc(50% - 18px);
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.carousel-button {
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 600;
  pointer-events: auto;
}

.carousel-button:hover {
  background: #fff;
}

.carousel-button:disabled {
  cursor: default;
  color: rgba(29, 26, 23, 0.38);
  background: rgba(255, 255, 255, 0.48);
}

.results-carousel.is-static .carousel-controls,
.results-carousel.is-static .carousel-footer {
  display: none;
}

.results-carousel.is-static .gallery-media {
  min-height: auto;
}

#results-celebrity .gallery-card {
  padding: 14px;
}

#results-celebrity .gallery-media {
  min-height: auto;
}

#results-celebrity .gallery-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

#results-celebrity .gallery-card figcaption {
  padding: 14px 8px 6px;
  font-size: 1.20rem;
}

#results-video .results-carousel.is-static .carousel-slide {
  flex-basis: 100%;
  min-width: 100%;
}

#results-celebrity .results-carousel.is-static .carousel-viewport,
#results-video .results-carousel.is-static .carousel-viewport {
  overflow: hidden;
}

#results-video .gallery-card {
  padding: 10px;
}

#results-video .gallery-media {
  min-height: auto;
}

#results-video .gallery-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

#results-video .gallery-card figcaption {
  font-size: 1.20rem;
  padding: 14px 8px 6px;
}

.citation-box {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.citation-box pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  font-family: var(--font-mono);
  font-size: 0.90rem;
  line-height: 1.9;
  color: #2a2521;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 16px;
  border: 1px solid rgba(49, 40, 33, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-radius: 999px;
  min-height: 52px;
  padding: 0 20px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
}

.copy-button:hover {
  background: #fff;
}

.site-footer {
  margin-top: 56px;
  padding: 34px 26px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 980px) {
  .legacy-grid,
  .question-stack,
  .method-detail-grid {
    grid-template-columns: 1fr;
  }

  .carousel-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-meta {
    flex-wrap: wrap;
  }

  .carousel-slide {
    flex-basis: 88vw;
    min-width: 88vw;
  }
}

@media (max-width: 780px) {
  .page-shell {
    padding: 8px 8px 24px;
  }

  .site-header {
    position: static;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    margin-bottom: 12px;
    padding: 18px 16px;
    border-radius: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .content-section {
    padding: 28px 14px;
  }

  .content-section {
    margin-top: 52px;
  }

  #abstract {
    margin-top: 52px;
    padding: 38px 0;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.24rem, 9.4vw, 3.5rem);
  }

  .hero-subtitle-line {
    white-space: normal;
  }

  .hero-title-lockup {
    gap: 8px;
  }

  .hero-actions,
  .carousel-controls {
    width: 100%;
  }

  .button,
  .button-static {
    width: 100%;
  }

  .question-stack {
    grid-template-columns: 1fr;
  }

  .results-nav {
    position: static;
  }

  .carousel-viewport {
    border-radius: 22px;
  }

  .carousel-track {
    gap: 14px;
    padding: 16px 0 12px;
  }

  .carousel-slide,
  .results-carousel.is-static .carousel-slide {
    flex-basis: 92vw;
    min-width: 92vw;
  }

  .gallery-card img {
    max-height: min(58vh, 760px);
  }

  .carousel-controls {
    position: static;
    margin-top: 12px;
    justify-content: flex-start;
    gap: 10px;
    pointer-events: auto;
  }

  .carousel-button {
    flex: 1 1 0;
  }

  .copy-button {
    position: static;
    margin-bottom: 14px;
  }
}
