/* =====================================================================
   "Story" design: dark, cinematic, chapter-by-chapter homepage.
   Colors and fonts are the variables in :root.
   ===================================================================== */

:root {
  --bg: #0e0f13;
  --bg-2: #13151b;
  --bg-3: #1a1d24;
  --ink: #ece7df;
  --ink-2: #b4aea5;
  --ink-3: #7d7870;
  --rule: rgba(236, 231, 223, 0.12);
  --rule-strong: rgba(236, 231, 223, 0.24);
  --copper: #d9915f; /* iron, rust, the accent of the story */
  --copper-2: #f0b98f;
  --copper-glow: rgba(217, 145, 95, 0.28);

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --maxw: 76rem;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--copper-2);
  text-decoration-color: currentColor;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

em {
  font-style: italic;
}

.s-nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.noscript {
  padding: 2rem;
  text-align: center;
}

.s-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------------
   Type
   --------------------------------------------------------------------- */
.s-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.s-display em,
.s-statement em,
.s-question em {
  color: var(--copper-2);
}

.s-display-sm {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.s-statement {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.s-question {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin: 1.5rem 0 3rem;
}

.s-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
}

.s-h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.s-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.6rem;
}

.s-lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 36rem;
  margin-top: 1.8rem;
  text-wrap: pretty;
}

.s-body {
  color: var(--ink-2);
  font-size: 1.12rem;
  max-width: 36rem;
}

.s-body + .s-body {
  margin-top: 1.1rem;
}

.s-prose p {
  color: var(--ink-2);
  font-size: 1.12rem;
  max-width: 36rem;
}

.s-prose p + p {
  margin-top: 1.1rem;
}

.s-prose strong {
  color: var(--ink);
  font-weight: 500;
}

.s-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.s-kicker-n {
  color: var(--copper);
}

.s-kicker-line {
  width: 3rem;
  height: 1px;
  background: var(--rule-strong);
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.s-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.4rem;
}

.s-hero-copy .s-lede {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  text-wrap: wrap; /* fill each line; the last words are kept together in the text itself */
  max-width: 39rem;
}

.s-hero-copy .s-actions {
  gap: 0.4rem;
}

/* Hero buttons scale with the text column so all six fit on one line;
   on narrow screens they wrap rather than shrinking too small */
.s-hero-copy {
  container-type: inline-size;
}

.s-hero-copy .s-btn {
  padding: 0.72em 0.95em;
  font-size: clamp(0.64rem, 1.98cqi, 0.84rem);
  white-space: nowrap;
}

.s-actions-center {
  justify-content: center;
}

.s-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.s-btn:hover {
  background: var(--copper-2);
  border-color: var(--copper-2);
  color: var(--bg);
  transform: translateY(-1px);
}

.s-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.s-btn-ghost:hover {
  background: transparent;
  color: var(--copper-2);
  border-color: var(--copper-2);
}

/* secondary call to action: outlined in copper */
.s-btn-accent {
  border-color: rgba(240, 185, 143, 0.55);
  color: var(--copper-2);
}

.s-btn-small {
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.s-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.s-header.is-solid {
  background: rgba(14, 15, 19, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--rule);
}

.s-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.s-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  margin-right: auto;
}

.s-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.s-nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.s-nav a:hover {
  color: var(--ink);
}

.s-menu-btn {
  display: none;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 0.85rem/1 var(--font-sans);
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.s-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.s-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42rem 32rem at 78% 42%, var(--copper-glow), transparent 70%),
    radial-gradient(36rem 28rem at 8% 100%, rgba(88, 104, 160, 0.16), transparent 70%);
  pointer-events: none;
}

.s-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  width: 100%;
}

.s-hero-meta {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 39rem;
}

.s-hero-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  margin: 0;
}

.s-hero-numbers div {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.s-hero-numbers dt {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--copper-2);
}

.s-hero-numbers dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.s-hero-honors {
  display: flex;
  flex-wrap: nowrap;
  font-size: clamp(0.7rem, 0.1rem + 0.9vw, 0.8rem);
  color: var(--ink-2);
}

.s-hero-honors li {
  white-space: nowrap;
}

.s-hero-honors li + li::before {
  content: "•";
  margin: 0 0.6em;
  color: var(--copper);
}

/* Narrow screens: two honors per line, no bullets */
@media (max-width: 1000px) {
  .s-hero-honors {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 0.35rem 1.5rem;
    font-size: 0.8rem;
  }
  .s-hero-honors li + li::before {
    content: none;
  }
}

.s-portrait {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 24rem);
}

.s-rings {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 165%;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: var(--copper-2);
  stroke-width: 0.6;
  pointer-events: none;
}

.s-portrait-frame {
  position: relative;
  border-radius: 12rem 12rem 1.25rem 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 0 0 1px var(--rule-strong), 0 40px 120px -30px var(--copper-glow);
}

.s-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.s-portrait figcaption {
  position: relative;
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.7;
}

.s-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  width: 1.4rem;
  height: 2.3rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  transform: translateX(-50%);
}

.s-scroll-cue span {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 3px;
  height: 0.5rem;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--copper-2);
}

.motion .s-scroll-cue span {
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(0.75rem);
    opacity: 0;
  }
}

/* ---------------------------------------------------------------------
   Chapters
   --------------------------------------------------------------------- */
.s-chapter {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--rule);
}

.s-prologue-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 3rem;
}

.s-clipping {
  margin: 2.5rem 0 0;
  max-width: 19rem;
}

.s-clipping-paper {
  padding: 0.55rem 0.55rem 0.7rem;
  background: #efe9dd;
  border-radius: 2px;
  transform: rotate(-2.2deg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 22px 50px -18px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.s-clipping:hover .s-clipping-paper {
  transform: rotate(-0.6deg) scale(1.02);
}

.s-clipping-paper img {
  width: 100%;
  height: auto;
  filter: sepia(0.12) contrast(1.04);
}

.s-clipping figcaption {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.s-prologue-body .s-statement {
  margin-bottom: 2.25rem;
}

/* Research chapters */
.s-research:nth-child(odd) {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

.s-research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.s-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
}

.s-badge span {
  color: var(--copper);
  font-size: 0.6rem;
}

.s-finding {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0.25rem 1.4rem;
  border-left: 2px solid var(--copper);
}

.s-finding-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.4rem;
}

.s-finding p:last-child {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.25;
}

.s-projects {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.s-projects a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.s-projects-title {
  font-weight: 500;
  font-size: 1.02rem;
}

.s-projects-meta {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.s-projects-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--copper);
  transition: transform 0.2s ease;
}

.s-projects a:hover .s-projects-arrow {
  transform: translateX(4px);
}

.s-stats {
  margin: 0;
  display: grid;
  gap: 0;
}

.s-stats div {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.s-stats div:first-child {
  padding-top: 0;
}

.s-stats dt {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 5.8rem);
  line-height: 1;
  color: var(--ink);
}

.s-stats dd {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.s-studyintro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.s-studyintro .s-chapter-figure {
  margin: 0.4rem 0 0;
}

.s-studyintro--raised {
  margin-top: 1.5rem;
  align-items: start;
}

.s-studyintro--raised .s-question {
  margin-top: 0;
}

.s-studyintro--raised .s-movies {
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .s-studyintro {
    grid-template-columns: 1fr;
  }
}

.s-research-copy--wide {
  max-width: 44rem;
}

.s-research-copy--wide .s-body {
  max-width: none;
}

.s-studycards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.s-studycard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.4rem 1.15rem;
  border: 1px solid var(--rule-strong);
  border-radius: 1.1rem;
  background: linear-gradient(160deg, rgba(240, 185, 143, 0.07), transparent 55%), var(--bg-2);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.s-studycard:hover {
  color: inherit;
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -35px var(--copper-glow);
}

.s-studycard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.s-studycard-tag {
  color: var(--copper);
  font-weight: 500;
}

.s-studycard-status {
  color: var(--ink-3);
  text-align: right;
}

.s-studycard-title {
  margin: 0.7rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  line-height: 1.12;
  color: var(--ink);
}

.s-studycard-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.s-studycard-n {
  font-size: 0.85rem;
  color: var(--ink-2);
  text-align: left;
}

.s-studycard-n span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.2vw, 3.6rem);
  line-height: 0.95;
  color: var(--copper-2);
  margin-bottom: 0.3rem;
}

.s-studycard dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
}

.s-studycard dl .is-wide {
  grid-column: 1 / -1;
}

.s-studycard dt {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.s-studycard dd {
  margin: 0.1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink);
}

.s-studycard-go {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--copper-2);
}

.s-studycard-go span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.s-studycard:hover .s-studycard-go span {
  transform: translateX(4px);
}

/* Chapter II: grid of MRI maps */
.s-maps {
  margin: 0.4rem 0 0;
}

.s-maps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.s-maps-cell {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #000;
}

.s-maps-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-maps-cell span {
  position: absolute;
  left: 0.5rem;
  top: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.3rem;
  background: rgba(14, 15, 19, 0.75);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
}

.s-maps figcaption,
.s-cohort figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.s-maps-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.35rem;
  color: var(--ink-2);
}

.s-maps-legend i {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.4rem;
  border-radius: 2px;
  vertical-align: 0;
}

/* Chapter II: one slice movie per study */
.s-movies {
  display: grid;
  gap: 0.9rem;
  margin: 0.4rem 0 0;
}

.s-movies-cell {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 0.7rem;
  overflow: hidden;
  background: var(--bg);
}

.s-movies-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s-movies-cell span {
  position: absolute;
  left: 0.6rem;
  top: 0.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(14, 15, 19, 0.78);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-2);
}

/* Chapter III: athlete groups + segmented brain */
.s-cohort {
  margin: 0;
  align-self: start;
  display: grid;
  gap: 0.75rem;
}

.s-cohort figcaption {
  margin-top: 0.1rem;
  text-align: center;
}

/* study cards in a row share one height; a card next to a graphic keeps its natural height */
.s-studycards--side > .s-studycard {
  align-self: start;
}

.s-cohort-row {
  display: grid;
  grid-template-columns: 2.2rem auto 6.2rem minmax(0, 1fr);
  gap: 0.9rem 1rem;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 0.9rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%), var(--bg-2);
}

.s-cohort-icon {
  display: block;
  aspect-ratio: 1;
  background: var(--c);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* stick figures: one per three athletes, evenly spaced */
/* stick figures: one SVG per row, same scale in both rows */
.s-cohort-people {
  display: block;
  width: 100%;
  max-width: 21rem;
  height: 2.2rem;
  color: var(--c);
  opacity: 0.9;
}

.s-cohort-n {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--c);
}

.s-cohort-label {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.s-cohort-label small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.s-cohort-brains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.s-cohort-brain {
  text-align: center;
}

.s-cohort-brain img {
  width: 100%;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.15));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.s-cohort-brain:hover img {
  transform: translateY(-4px) scale(1.03);
}

.s-cohort-brain span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Optional figure next to a study card (set "figure" on the chapter in home-story.js) */
.s-studyfigure {
  margin: 0;
  align-self: start;
}

.s-studyfigure img {
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--rule-strong);
}

.s-studyfigure figcaption {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .s-studycards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .s-studycard {
    padding: 1.4rem 1.25rem;
  }
  .s-studycard-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .s-studycard dl {
    grid-template-columns: 1fr;
  }
  .s-studycard-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

.s-stats:empty {
  display: none;
}

.s-chapter-figure {
  margin: 2.5rem 0 0;
}

.s-chapter-figure-link {
  display: block;
  text-decoration: none;
}

.s-chapter-figure-img {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  outline: 1px solid transparent;
  outline-offset: 5px;
  transition: outline-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.s-chapter-figure-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}

.s-chapter-figure-cap {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  transition: color 0.2s ease;
}

.s-chapter-figure-link:hover .s-chapter-figure-img,
.s-chapter-figure-link:focus-visible .s-chapter-figure-img {
  outline-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px var(--copper-glow);
}

.s-chapter-figure-link:hover img {
  transform: scale(1.04);
  filter: saturate(1);
}

.s-chapter-figure-link:hover .s-chapter-figure-cap {
  color: var(--copper-2);
}

/* ---------------------------------------------------------------------
   The thread (timeline)
   --------------------------------------------------------------------- */
.s-thread-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.s-thread-lede {
  max-width: 44rem;
}

.s-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem 1.5rem;
}

.s-timeline li {
  position: relative;
  padding-top: 2.6rem;
}

.s-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  right: -1.5rem;
  top: 1.05rem;
  height: 1px;
  background: var(--rule-strong);
}

.s-tl-year {
  position: absolute;
  top: 0;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--copper-2);
  background: var(--bg);
  padding-right: 0.5rem;
  transform: translateY(0.25rem);
}

.s-tl-dot {
  position: absolute;
  top: calc(1.05rem - 4px);
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--copper);
}

.s-timeline li {
  display: flex;
  flex-direction: column;
}

.s-tl-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-decoration: none;
}

.s-tl-inst {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.s-tl-title {
  font-weight: 500;
  line-height: 1.35;
}

.s-tl-desc {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.s-tl-thumb {
  display: block;
  margin-top: auto;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0.7rem;
  background: var(--bg-3);
  border: 1px solid var(--rule-strong);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.s-tl-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.9);
  transition: filter 0.3s ease;
}

.s-tl-card:hover .s-tl-thumb video {
  filter: none;
}

.s-tl-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.9);
  transition: filter 0.3s ease;
}

.s-tl-thumb--frameless {
  border-color: transparent;
  background: var(--bg);
}

.s-tl-card:hover .s-tl-thumb {
  border-color: var(--copper);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -24px var(--copper-glow);
}

.s-tl-card:hover .s-tl-thumb img {
  filter: none;
}

.s-tl-card:hover .s-tl-title {
  color: var(--copper-2);
}

/* ---------------------------------------------------------------------
   Work: numbers, publications, talks
   --------------------------------------------------------------------- */
.s-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.5rem 0 4rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.s-numbers div {
  padding: 1.5rem 1.5rem 1.4rem 0;
}

.s-numbers div + div {
  padding-left: 1.75rem;
  border-left: 1px solid var(--rule);
}

.s-numbers dt {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  line-height: 0.95;
  color: var(--copper-2);
}

.s-numbers dd {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
}

.s-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
}

/* "On the record": lists on the left, a sticky panel on the right */
.s-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.s-talks-wrap {
  margin-top: 4.5rem;
}

.s-stage-col {
  position: sticky;
  top: 6.5rem;
}

.s-stage {
  position: relative;
  height: min(80vh, 44rem);
}

.s-papers,
.s-stage .s-globe-wrap {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.s-stage.is-globe .s-papers,
.s-stage.is-papers .s-globe-wrap {
  opacity: 0;
  pointer-events: none;
}

.s-stage.is-papers .s-globe-wrap {
  transform: scale(0.94);
}

.s-stage.is-globe .s-papers {
  transform: translateY(24px);
}

.s-stage .s-globe-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Paper covers: fanned stack, active one in front (positions set in home-story.js) */
.s-papers {
  display: flex;
  align-items: center;
}

.s-paper {
  position: absolute;
  left: 50%;
  top: 7%;
  width: min(90%, 27rem);
  aspect-ratio: 1000 / 1300;
  border-radius: 0.35rem;
  overflow: hidden;
  background: #f4f1ea;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: 50% 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
}

.s-paper.is-front {
  box-shadow: 0 45px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--copper);
}

.s-paper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.s-paper-blank {
  height: 100%;
  padding: 12% 10%;
  color: #1c1c1e;
  text-align: center;
}

.s-paper-venue {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6d72;
}

.s-paper-title {
  margin: 1.5rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.15;
}

.s-paper-authors {
  font-size: 0.85rem;
  color: #4f5156;
}

.s-pubs li {
  position: relative;
  outline: none;
}

.s-pubs li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  border-radius: 2px;
  background: var(--copper);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.s-pubs li:hover::before,
.s-pubs li:focus-visible::before {
  opacity: 1;
  transform: none;
}

.s-talks li {
  position: relative;
  cursor: default;
  outline: none;
  transition: background 0.25s ease;
}

.s-talks li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  border-radius: 2px;
  background: var(--copper);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.s-talks li:hover::before,
.s-talks li:focus-visible::before {
  opacity: 1;
  transform: none;
}

.s-talks li:hover .s-talks-title,
.s-talks li:focus-visible .s-talks-title {
  color: var(--ink);
}

.s-talks-title {
  color: var(--ink-2);
  transition: color 0.2s ease;
}

.s-globe-wrap {
  margin: 0;
  text-align: center;
}

.s-globe {
  width: min(100%, 30rem);
  margin: 0 auto;
  aspect-ratio: 1;
}

.s-globe svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.g-glow {
  fill: none;
  stroke: var(--copper-glow);
  stroke-width: 30;
  filter: blur(22px);
  opacity: 0.55;
}

.g-outline {
  fill: none;
  stroke: var(--rule-strong);
}

.g-grat {
  fill: none;
  stroke: rgba(236, 231, 223, 0.07);
  stroke-width: 0.6;
}

.g-land {
  fill: rgba(236, 231, 223, 0.16);
  stroke: rgba(236, 231, 223, 0.28);
  stroke-width: 0.5;
}

.g-arc {
  fill: none;
  stroke: var(--copper-2);
  stroke-width: 1.4;
  stroke-dasharray: 3 4;
}

.g-dot {
  fill: var(--copper);
  stroke: var(--bg);
  stroke-width: 1.5;
}

.g-pulse {
  fill: var(--copper);
  opacity: 0;
}

/* city tags appear only for the hovered presentation */
.g-tag {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.g-city.is-active .g-tag {
  opacity: 1;
}

.g-city.is-active .g-tag rect {
  stroke: var(--copper);
}

.g-city.is-active .g-tag text {
  fill: var(--copper-2);
}

.g-city.is-active .g-dot {
  fill: var(--copper-2);
}

.g-city.is-active .g-pulse {
  opacity: 0.35;
  animation: g-pulse 1.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes g-pulse {
  from {
    transform: scale(0.5);
    opacity: 0.5;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}

.g-home {
  fill: var(--ink);
}

.g-home-label rect,
.g-tag rect {
  fill: rgba(14, 15, 19, 0.82);
  stroke: rgba(236, 231, 223, 0.25);
  stroke-width: 0.6;
}

.g-home-label text,
.g-tag text {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: var(--ink);
}

.s-globe-label {
  margin-top: 1rem;
  min-height: 1.5em;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.s-globe-label strong {
  color: var(--copper-2);
  font-weight: 500;
}

.s-globe-wrap.is-unavailable {
  display: none;
}

.s-pubs li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.s-pubs-year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-3);
  line-height: 1.3;
}

.s-pubs-title {
  font-weight: 500;
  line-height: 1.4;
}

.s-pubs-title a {
  text-decoration: none;
}

.s-pubs-meta,
.s-talks-type {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.s-talks li {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.s-talks-where {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.35rem;
}

.s-talks-where strong {
  color: var(--copper);
  font-weight: 600;
}

.s-talks-title {
  line-height: 1.4;
}

.s-talks-title a {
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   Recognition
   --------------------------------------------------------------------- */
#honors .s-statement {
  margin: 1.5rem 0 3.5rem;
  max-width: 24ch;
}

.s-honors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  overflow: hidden;
}

.s-honor {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 1.75rem 1.6rem 1.9rem;
}

/* Linked honors: whole card is clickable */
.s-honor--link {
  position: relative;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.s-honor--link:hover,
.s-honor--link:focus-visible {
  color: inherit;
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--copper);
}

.s-honor-go {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--copper-2);
}

.s-honor-go span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.s-honor--link:hover .s-honor-go span {
  transform: translate(2px, -2px);
}

.s-honor-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.s-honor-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.12;
  margin: 0.6rem 0 0.7rem;
}

.s-honor-name a {
  text-decoration: none;
}

.s-honor-desc {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Remaining honors in a dropdown */
.s-honors-more {
  margin-top: 1.25rem;
  border: 1px solid rgba(240, 185, 143, 0.45);
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(240, 185, 143, 0.08), transparent 70%), var(--bg-2);
  transition: border-color 0.2s ease;
}

.s-honors-more:hover,
.s-honors-more[open] {
  border-color: var(--copper);
}

.s-honors-more summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.6rem;
  cursor: pointer;
  list-style: none;
  border-radius: 1rem;
}

.s-honors-more summary::-webkit-details-marker {
  display: none;
}

.s-honors-more-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}

.s-honors-count {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(240, 185, 143, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--copper-2);
}

.s-honors-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(240, 185, 143, 0.5);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--copper-2);
  transition: background 0.2s ease, color 0.2s ease;
}

.s-honors-more summary:hover .s-honors-toggle {
  background: var(--copper-2);
  color: var(--bg);
}

.s-honors-hide,
.s-honors-more[open] .s-honors-show {
  display: none;
}

.s-honors-more[open] .s-honors-hide {
  display: inline;
}

.s-honors-chev {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.25s ease;
}

.s-honors-more[open] .s-honors-chev {
  transform: translateY(25%) rotate(-135deg);
}

.s-honors-rows {
  padding: 0 1.6rem 0.75rem;
}

.s-honors-rows li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.s-honors-rows-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.2rem;
}

.s-honors-rows-name {
  font-weight: 500;
}

.s-honors-rows-name a {
  text-decoration: none;
}

.s-honors-rows-name a span {
  color: var(--copper-2);
  font-size: 0.85em;
}

.s-honors-rows-org {
  margin-left: 0.35rem;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.s-honors-rows-desc {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .s-honors-rows li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ---------------------------------------------------------------------
   Beyond the lab
   --------------------------------------------------------------------- */
.s-beyond-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  margin-top: 2rem;
  align-items: start;
}

.s-beyond-photo {
  margin: 0;
  position: sticky;
  top: 6rem;
}

.s-beyond-photo img {
  border-radius: 1rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 35%;
}

.s-beyond-photo figcaption {
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.55;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.s-beyond-copy .s-statement {
  margin-bottom: 3rem;
}

.s-beyond-group + .s-beyond-group {
  margin-top: 3rem;
}

.s-beyond-group li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.s-beyond-title {
  font-weight: 500;
}

.s-beyond-dates {
  margin-left: 0.4rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--copper);
}

.s-beyond-desc {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------------
   In the news
   --------------------------------------------------------------------- */
#featured .s-statement {
  margin: 1.5rem 0 3rem;
}

.s-press {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.s-press-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.s-press-card:hover,
.s-press-card:focus-visible {
  color: inherit;
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -35px var(--copper-glow);
}

.s-press-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.s-press-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}

.s-press-card:hover .s-press-img img {
  transform: scale(1.04);
  filter: none;
}

.s-press-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem 1.15rem;
}

.s-press-meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.s-press-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--ink);
}

.s-press-sum {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.s-press-go {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--copper-2);
}

/* Feature video under the news cards */
.s-feature {
  max-width: 46rem;
  margin: 4.5rem auto 0;
  text-align: center;
}

.s-feature-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.s-feature-title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink);
}

.s-feature-meta {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.s-feature-frame {
  margin-top: 1.6rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: #000;
  box-shadow: 0 40px 90px -40px var(--copper-glow);
  aspect-ratio: 16 / 9;
}

.s-feature-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-feature-sum {
  max-width: 38rem;
  margin: 1.1rem auto 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .s-press {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .s-press {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------
   Contact and footer
   --------------------------------------------------------------------- */
.s-contact {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
  overflow: hidden;
}

.s-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40rem 22rem at 50% 100%, var(--copper-glow), transparent 70%);
  pointer-events: none;
}

.s-contact-inner {
  position: relative;
}

.s-contact .s-display {
  max-width: 18ch;
  margin: 0 auto;
}

.s-contact .s-lede {
  margin-left: auto;
  margin-right: auto;
}

.s-footer {
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.s-footer-inner {
  display: flex;
  justify-content: space-between;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.s-footer a {
  text-decoration: none;
}

/* ---------------------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------------------- */
.motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

.motion .s-hero-copy > *,
.motion .s-portrait {
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.motion .s-hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.motion .s-hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.motion .s-hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.motion .s-hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}
.motion .s-portrait {
  animation-delay: 0.2s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .s-header-inner {
    gap: 0.6rem;
  }
  .s-menu-btn {
    display: inline-block;
  }
  .s-nav {
    display: none;
  }
  .s-header.is-open {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--rule);
  }
  .s-header.is-open .s-nav {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--bg);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--rule);
  }
  .s-header.is-open .s-nav a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.05rem;
    color: var(--ink);
  }
  .s-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .s-honors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow screens: no hover, so drop the panel and keep the lists */
@media (max-width: 900px) {
  .s-record {
    grid-template-columns: 1fr;
  }
  .s-stage-col {
    display: none;
  }
}

@media (max-width: 780px) {
  .s-hero-grid,
  .s-prologue-grid,
  .s-research-grid,
  .s-work-grid,
  .s-beyond-grid {
    grid-template-columns: 1fr;
  }
  .s-portrait {
    order: -1;
    width: min(70%, 16rem);
  }
  .s-hero {
    padding-top: 6rem;
  }
  .s-beyond-photo {
    position: static;
  }
  .s-clipping {
    margin: 2rem auto 0.5rem;
    max-width: 17rem;
    text-align: center;
  }
  .s-timeline,
  .s-honors {
    grid-template-columns: 1fr;
  }
  .s-numbers {
    grid-template-columns: 1fr;
  }
  .s-numbers div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .s-hero-numbers {
    gap: 0.5rem 1.5rem;
  }
  .s-scroll-cue {
    display: none;
  }
}

/* Phones: chapter labels stay on one line, hero buttons stay readable, honors bar stays tidy */
@media (max-width: 600px) {
  .s-kicker {
    gap: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
  .s-kicker-line {
    width: 1.25rem;
  }
  .s-hero-copy .s-btn {
    font-size: 0.85rem;
    padding: 0.65em 0.95em;
  }
  .s-honors-more summary {
    padding: 1rem 1.1rem;
  }
  .s-honors-more-title {
    font-size: 1.15rem;
  }
  .s-honors-show,
  .s-honors-hide {
    display: none !important;
  }
  .s-honors-toggle {
    padding: 0.5rem 0.6rem;
  }
}
