:root {
  --paper: #ebe8e1;
  --ink: #181818;
  --royal: #281b47;
  --muted: color-mix(in oklch, var(--ink) 58%, var(--paper));
  --line: color-mix(in oklch, var(--royal) 16%, var(--paper));
  --surface: color-mix(in oklch, var(--paper) 88%, white);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: clamp(4rem, 8vw, 6rem);
  --font-display: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--royal);
  opacity: 1;
  transition: opacity 720ms ease, visibility 720ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: min(44vw, 580px);
  overflow: hidden;
}

.loader-mark img {
  width: 100%;
  clip-path: inset(0 100% 0 0);
  animation: loaderSweep 3.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: var(--space-sm) clamp(0.75rem, 3vw, 2rem);
  color: var(--paper);
  background: var(--royal);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in oklch, var(--royal) 12%, transparent);
}

.brand img {
  width: clamp(76px, 8vw, 112px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.45rem, 1.3vw, 1.2rem);
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1.05vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav a {
  position: relative;
  padding-block: 0.35rem;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--royal);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--royal) 50%, transparent), transparent 42%),
    linear-gradient(90deg, color-mix(in oklch, var(--royal) 52%, transparent), transparent 56%),
    color-mix(in oklch, var(--ink) 20%, transparent);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-content: center;
  gap: var(--space-lg);
  padding: 6rem clamp(1rem, 5vw, 5rem) 4rem;
  text-align: center;
  color: var(--paper);
}

.word-rise {
  display: grid;
  gap: 0.18em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.1vw, 4.35rem);
  font-weight: 600;
  line-height: 1.05;
}

.word-rise > span {
  display: flex;
  justify-content: center;
  gap: 0.18em;
  overflow: hidden;
}

.word-rise span span {
  display: inline-block;
  opacity: 0;
  transform: translateY(115%) rotate(4deg);
}

body.is-hero-ready .word-rise span span {
  animation: riseWord 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.word-rise span:nth-child(1) span:nth-child(1) { animation-delay: 120ms; }
.word-rise span:nth-child(1) span:nth-child(2) { animation-delay: 260ms; }
.word-rise span:nth-child(1) span:nth-child(3) { animation-delay: 400ms; }
.word-rise span:nth-child(2) span:nth-child(1) { animation-delay: 600ms; }
.word-rise span:nth-child(2) span:nth-child(2) { animation-delay: 740ms; }
.word-rise span:nth-child(2) span:nth-child(3) { animation-delay: 880ms; }

.hero-copy p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
  font-weight: 500;
}

.section {
  padding: var(--space-3xl) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid color-mix(in oklch, var(--royal) 14%, var(--paper));
}

h2,
h3 {
  margin: 0;
  color: var(--royal);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}

h2 {
  max-width: 14ch;
  font-size: clamp(1.28rem, 2.68vw, 2.76rem);
}

h2 span {
  display: block;
  font-size: 0.8em;
}

h3 {
  font-size: clamp(1.08rem, 1.92vw, 2.28rem);
}

.section-heading,
.manifesto-grid,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.manifesto-list {
  display: grid;
  gap: var(--space-md);
  padding-top: clamp(0.5rem, 2vw, 1.4rem);
}

.manifesto-list p {
  margin: 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line);
  color: var(--royal);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.thesis {
  display: grid;
  gap: clamp(5.5rem, 11vw, 8.5rem);
  border-top: 0;
}

.thesis-intro {
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: auto;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(5.46rem, 14.56vw, 11.83rem);
  padding-inline: clamp(1.5rem, 6vw, 5rem);
  background: var(--royal);
  text-align: center;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 900ms ease, transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.thesis-intro p {
  max-width: 62ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.12rem, 1.75vw, 1.72rem);
  font-weight: 500;
  line-height: 1.38;
}

.thesis-intro p span {
  display: block;
}

.thesis-intro.is-visible p span {
  animation: thesisLineIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.thesis-intro.is-visible p span:nth-child(1) { animation-delay: 80ms; }
.thesis-intro.is-visible p span:nth-child(2) { animation-delay: 220ms; }
.thesis-intro.is-visible p span:nth-child(3) { animation-delay: 420ms; }

.thesis-intro p .alpha-words {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28em;
}

.thesis-intro.is-visible p .alpha-words {
  animation: none;
}

.thesis-intro.is-visible p .alpha-words span {
  animation: thesisLineIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.thesis-intro.is-visible p .alpha-words span:nth-child(1) { animation-delay: 440ms; }
.thesis-intro.is-visible p .alpha-words span:nth-child(2) { animation-delay: 540ms; }
.thesis-intro.is-visible p .alpha-words span:nth-child(3) { animation-delay: 640ms; }
.thesis-intro.is-visible p .alpha-words span:nth-child(4) { animation-delay: 740ms; }
.thesis-intro.is-visible p .alpha-words span:nth-child(5) { animation-delay: 840ms; }
.thesis-intro.is-visible p .alpha-words span:nth-child(6) { animation-delay: 940ms; }

.thesis-intro p span + span {
  margin-top: var(--space-md);
}

.thesis-intro p .alpha-words span {
  margin-top: 0;
}

.thesis-intro .thesis-lead {
  font-size: 1.9em;
  font-weight: 500;
  text-transform: uppercase;
}

.thesis-intro .thesis-lead span {
  display: block;
}

.thesis-intro .thesis-lead span + span {
  margin-top: 0;
}

.thesis-intro .thesis-lead + span {
  margin-top: var(--space-xl);
}

.thesis-logo {
  width: clamp(18px, 2.28vw, 29px);
  margin-top: clamp(4.5rem, 12vw, 10rem);
  opacity: 0;
  transform: translateY(18px);
}

.thesis-intro.is-visible .thesis-logo {
  animation: thesisLineIn 900ms cubic-bezier(0.16, 1, 0.3, 1) 1080ms both;
}

.thesis-list {
  display: grid;
  gap: clamp(4.5rem, 9vw, 7rem);
}

.thesis-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding-top: clamp(1.75rem, 4vw, 3rem);
  border-top: 1px solid color-mix(in oklch, var(--royal) 14%, var(--paper));
}

.thesis-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.thesis-copy {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  max-width: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.thesis-copy::-webkit-scrollbar {
  display: none;
}

.thesis-copy span {
  flex: 0 0 auto;
  color: color-mix(in oklch, var(--royal) 52%, var(--paper));
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.thesis-copy h3 {
  max-width: none;
  font-size: clamp(0.96rem, 1.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.08;
  white-space: nowrap;
}

.thesis-companies {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.thesis-companies-wide {
  row-gap: clamp(2rem, 5vw, 4rem);
}

.thesis-companies a {
  display: grid;
  gap: 0.12rem;
  color: var(--royal);
}

.thesis-companies img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.76) contrast(0.94);
  opacity: 0;
  transform: translateY(18px);
  transition: filter 300ms ease, opacity 680ms ease, transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.thesis-companies span {
  margin-top: var(--space-xs);
  font-size: clamp(0.96rem, 1.2vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms ease 150ms, transform 720ms cubic-bezier(0.16, 1, 0.3, 1) 150ms;
}

.thesis-companies small {
  color: color-mix(in oklch, var(--royal) 58%, var(--paper));
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 620ms ease 280ms, transform 720ms cubic-bezier(0.16, 1, 0.3, 1) 280ms;
}

.thesis-companies a.is-visible img,
.thesis-companies a.is-visible span,
.thesis-companies a.is-visible small {
  opacity: 1;
  transform: translateY(0);
}

.thesis-companies a:hover img {
  filter: saturate(1.04) contrast(1);
  transform: translateY(-6px);
}

.podcast-panel,
.documentary-panel {
  display: grid;
  align-content: start;
  gap: var(--space-xl);
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.podcast-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  transition: transform 260ms ease;
}

.podcast-grid img:hover {
  transform: translateY(-4px);
}

.documentary-layout {
  display: grid;
  gap: var(--space-lg);
}

.documentary-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  aspect-ratio: 16 / 9;
}

.documentary-media img,
.documentary-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documentary-media video {
  opacity: 0;
  transition: opacity 720ms ease;
}

.documentary-media:hover video,
.documentary-media:focus-visible video {
  opacity: 1;
}

.podcast-panel p,
.documentary-panel p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.24rem);
}

.documentary-panel p span {
  display: block;
}

.documentary-panel p span + span {
  margin-top: var(--space-md);
}

.social {
  padding-top: var(--space-xl);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social-row a {
  min-height: 8rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(-26px);
  color: var(--royal);
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.5vw, 1.6rem);
  font-weight: 600;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 220ms ease, color 220ms ease;
}

.social-row a.is-visible {
  animation: socialLinkIn 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.social-row a:nth-child(1).is-visible { animation-delay: 0ms; }
.social-row a:nth-child(2).is-visible { animation-delay: 100ms; }
.social-row a:nth-child(3).is-visible { animation-delay: 200ms; }
.social-row a:nth-child(4).is-visible { animation-delay: 300ms; }

.social-row a:last-child {
  border-right: 0;
}

.social-row a:hover {
  color: var(--paper);
  background: var(--royal);
}

.contact {
  align-items: end;
}

.email-link {
  justify-self: end;
  color: var(--royal);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
}

.email-link:hover {
  color: var(--ink);
}

.site-footer {
  display: grid;
  justify-items: end;
  gap: 0.12rem;
  padding: var(--space-xl) clamp(1rem, 5vw, 5rem);
  color: color-mix(in oklch, var(--ink) 70%, var(--paper));
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: right;
}

.site-footer p {
  margin: 0;
}

.text-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 720ms ease, transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes riseWord {
  from {
    opacity: 0;
    transform: translateY(110%) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes thesisLineIn {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    letter-spacing: 0;
    transform: translateY(0);
  }
}

@keyframes socialLinkIn {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loaderSweep {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  52%,
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .text-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
  }

  .nav {
    max-width: none;
    flex: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: clamp(0.32rem, 1.5vw, 0.65rem);
    font-size: clamp(0.48rem, 1.45vw, 0.58rem);
  }

  .word-rise > span {
    flex-wrap: wrap;
  }

  .section-heading,
  .manifesto-grid,
  .contact,
  .documentary-layout,
  .thesis-intro,
  .thesis-group {
    grid-template-columns: 1fr;
  }

  h2 {
    max-width: 12ch;
  }

  .thesis-intro {
    padding-inline: var(--space-md);
    opacity: 1;
    transform: none;
  }

  .thesis-intro .thesis-lead {
    font-size: 1.25em;
  }

  .thesis-copy {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .thesis-copy h3 {
    white-space: normal;
  }

  .email-link {
    justify-self: start;
  }

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

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

  .social-row a:nth-child(2) {
    border-right: 0;
  }

  .social-row a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .site-header {
    position: absolute;
    align-items: center;
  }

  .brand img {
    width: 58px;
  }

  .nav {
    max-width: none;
    gap: 0.28rem;
    font-size: clamp(0.42rem, 1.55vw, 0.5rem);
  }

  .word-rise {
    font-size: clamp(1.65rem, 8.8vw, 2.35rem);
  }

  .hero-copy {
    text-align: left;
  }

  .word-rise > span {
    justify-content: flex-start;
  }

  .thesis-companies {
    grid-template-columns: 1fr;
  }

  .documentary-media {
    width: 100vw;
  }

  .documentary-media video {
    display: none;
  }

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