/* The room introduces the thesis; the essay gives it space to be read. */
.hero-copy {
  --hero-font: 'Nunito', 'DM Sans', sans-serif;
  position: absolute;
  inset: 108px 24px 216px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  pointer-events: none;
}
.hero-copy .hero-heading,
.hero-copy .hero-message {
  position: static;
  width: 100%;
  max-width: 56rem;
  transform: none;
}
.hero-copy .hero-heading > p {
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .2em;
}
.hero-copy .hero-heading h1 {
  margin: 1rem 0 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(7rem, 10.5vw, 10rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.hero-copy .hero-heading > span { display: none; }
.hero-message h2.thesis-hero-title {
  margin: 0;
  font: 700 clamp(2rem, 3.8vw, 3.5rem)/1.12 var(--hero-font);
  letter-spacing: -.035em;
}
.thesis-hero-title span { color: var(--accent); white-space: nowrap; }
.hero-message > p { margin-top: 1rem; font-size: 1rem; line-height: 1.7; }
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 24rem);
  gap: .875rem;
  margin: 1.75rem auto 0;
  pointer-events: auto;
}
.hero-actions .action, .hero-actions .hero-stats-link {
  justify-content: center;
  gap: 1rem;
  min-height: 52px;
  padding: .875rem 1rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}
.hero-actions .hero-stats-link {
  border-color: #e8e3ff55;
  background: #181a284d;
  backdrop-filter: blur(12px);
}
.hero-actions .hero-stats-link:hover { background: #e8e3ff18; }
.hero-actions .action > span, .hero-actions .hero-stats-link > span {
  font-size: 1.125rem;
  font-weight: 400;
}
.thesis-intro { padding-block: clamp(3.5rem, 7vw, 6rem); }
.thesis-intro > .section-index {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
}
.thesis-intro-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2.5rem;
  padding-top: 2.75rem;
}
.thesis-intro-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  color: var(--muted);
  font: .875rem/1.7 var(--mono);
}
.thesis-intro-label img { width: 5rem; opacity: .8; }
.thesis-intro-copy { max-width: 49rem; min-width: 0; }
.thesis-intro-copy > p {
  max-width: 40rem;
  margin-bottom: 1.25rem;
  color: #c5c1d0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.8;
}
.thesis-intro-copy h2 {
  margin-block: 2rem;
  font: 500 clamp(2rem, 3.7vw, 3.25rem)/1.16 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.thesis-intro-copy h2 span { color: var(--accent); }
.thesis-text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 44px;
  padding-block: .65rem;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: .9375rem;
}
.thesis-text-link:hover { color: var(--ink); border-color: var(--ink); }
.community-thesis {
  max-width: 42rem;
  margin-top: 2rem;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}
.footer-thesis { font-size: .875rem; }
.navigation > a { font-size: .875rem; }
.navigation > a[aria-current="page"] { color: var(--accent); }
.thesis-page .header { position: relative; left: auto; transform: none; }
.thesis-masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(28rem, 42vw, 40rem);
  padding-block: clamp(3.5rem, 6vw, 6rem);
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.thesis-masthead-copy { position: relative; z-index: 1; }
.thesis-eyebrow {
  margin-bottom: 1.75rem;
  color: var(--muted);
  font: .75rem/1.6 var(--mono);
  letter-spacing: .12em;
}
.thesis-masthead h1 {
  font: 700 clamp(4rem, 8vw, 7.5rem)/.98 var(--display);
  letter-spacing: -.07em;
}
.thesis-masthead h1 span { color: var(--accent); }
.thesis-subtitle {
  margin-top: 1.75rem;
  color: #d2cddc;
  font: italic clamp(1.25rem, 2vw, 1.75rem)/1.5 Georgia, serif;
}
.thesis-room {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #00000008 0%, #00000012 25%, #00000040 45%, #000000ad 65%, #000 88%);
  mask-image: linear-gradient(to right, #00000008 0%, #00000012 25%, #00000040 45%, #000000ad 65%, #000 88%);
}
.thesis-prose {
  width: min(calc(100% - 112px), 44rem);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
  color: #cdc8d7;
  font-size: 1.125rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.thesis-prose > p { margin-bottom: 1.6rem; }
.thesis-prose .thesis-opening { color: var(--ink); font-size: 1.25rem; }
.thesis-prose h2 {
  margin-block: 3.5rem 1.75rem;
  color: var(--ink);
  font: 500 clamp(2rem, 3.5vw, 3rem)/1.2 var(--display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.thesis-prose h2 span { color: var(--accent); }
.thesis-citation {
  color: var(--accent);
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: #b8d9d177;
  text-underline-offset: .2em;
}
.thesis-citation:hover { color: var(--ink); }
.thesis-prose .thesis-context {
  margin-block: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 1rem;
}
.thesis-prose .thesis-closing {
  margin-block: 3.5rem 2rem;
  padding-block: 2.5rem;
  border-block: 1px solid var(--line);
  color: var(--ink);
  font: 500 clamp(2.25rem, 4vw, 3.5rem)/1.14 var(--display);
  letter-spacing: -.055em;
}
.thesis-closing strong { font-weight: inherit; }
.thesis-closing span { color: var(--accent); }
.thesis-ending-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }
.thesis-ending-links .action { font-size: .9375rem; }
.thesis-page .footer { border-top: 1px solid var(--line); }
@media (min-width: 1001px) {
  .header { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header .logo { justify-self: start; }
  .header-right { justify-self: end; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  .header { gap: 1rem; }
  .navigation { gap: .875rem; }
  .navigation > a { font-size: .8125rem; }
  .header-copy { gap: .75rem; padding-inline: .875rem; }
}
@media (max-width: 1000px) {
  .navigation {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: #191826fa;
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    gap: .25rem;
  }
  .navigation.is-open { display: grid; }
  .navigation > a { padding-block: .75rem; }
  .menu-toggle { display: block; }
}
@media (max-width: 700px) {
  .immersive-hero {
    height: auto;
    min-height: max(60rem, 100svh);
    max-height: none;
    padding-bottom: 21rem;
  }
  .hero-copy {
    position: relative;
    inset: auto;
    width: calc(100% - 40px);
    margin-inline: auto;
    padding-top: 7.5rem;
    gap: 1.75rem;
  }
  .hero-copy .hero-heading h1 { font-size: clamp(5.5rem, 24vw, 7rem); }
  .hero-copy .hero-heading > p { letter-spacing: .12em; }
  .hero-message h2.thesis-hero-title { font-size: clamp(2rem, 8.8vw, 3rem); }
  .thesis-hero-title span { display: block; }
  .hero-actions { gap: .75rem; }
  .hero-actions .action, .hero-actions .hero-stats-link { gap: .5rem; padding-inline: .75rem; }
  .mobile-room-controls {
    position: relative;
    inset: auto;
    transform: none;
    width: max-content;
    max-width: calc(100% - 40px);
    margin: 2rem auto 0;
  }
  .room-playback-controls {
    position: relative;
    inset: auto;
    transform: none;
    width: max-content;
    max-width: calc(100% - 40px);
    margin: .75rem auto 0;
  }
  .thesis-intro-layout { grid-template-columns: 1fr; padding-top: 1.75rem; }
  .thesis-intro-label { display: none; }
  .thesis-intro > .section-index { flex-wrap: wrap; gap: .5rem 1rem; }
  .thesis-intro-copy h2 { margin-block: 1.75rem; }
  .community-thesis { margin-top: 1.5rem; }
  .navigation > a { font-size: .875rem; }
  .footer-bottom { justify-content: flex-start; }
  .footer-bottom > a { margin-left: 0; }
  .thesis-masthead { min-height: 27rem; padding-block: 3.5rem; }
  .thesis-masthead h1 { font-size: clamp(3.125rem, 13vw, 5.5rem); }
  .thesis-eyebrow { margin-bottom: 1.25rem; }
  .thesis-room {
    object-position: 70% 50%;
    -webkit-mask-image: linear-gradient(to right, #00000008 0%, #00000012 35%, #00000059 70%, #000 100%);
    mask-image: linear-gradient(to right, #00000008 0%, #00000012 35%, #00000059 70%, #000 100%);
  }
  .thesis-prose { width: calc(100% - 40px); font-size: 1.0625rem; line-height: 1.8; }
  .thesis-prose .thesis-opening { font-size: 1.125rem; }
  .thesis-prose h2 { margin-top: 2.75rem; }
  .thesis-ending-links { gap: 1rem 1.5rem; }
}
@media (max-width: 360px) {
  .thesis-prose { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .thesis-page { scroll-behavior: auto; }
}
