@font-face {
  font-family: "Jost";
  src: url("assets/fonts/Jost-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Doto";
  src: url("assets/fonts/Doto-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0e1420;
  --surface: #182232;
  --fg: #f7e3b7;
  --coral: #e97b5d;
  --peach: #f0b48b;
  --amber: #e6c56a;
  --teal: #3aa6a3;
  --paper: #c9c0a7;
  --paper-ink: #352f24;
  --muted: color-mix(in oklch, var(--paper) 76%, var(--bg));
  --line: color-mix(in oklch, var(--amber) 32%, transparent);
  --line-strong: color-mix(in oklch, var(--amber) 72%, transparent);
  --font-display: "Jost", "Avenir Next", "Futura", sans-serif;
  --font-body: "Jost", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-label: "Doto", "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 5.5rem);
  --section-space: clamp(6.5rem, 12vw, 12rem);
  --ease-out: cubic-bezier(.2, .75, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  content: "";
  opacity: .025;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

body.modal-open { overflow: hidden; }

::selection { background: var(--amber); color: var(--bg); }

a { color: inherit; }
button { color: inherit; font: inherit; }
img, video { display: block; max-width: 100%; }

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: var(--bg);
  background: var(--amber);
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform .2s ease;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8rem;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 0 -4px var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  width: clamp(13.125rem, 16vw, 15rem);
  min-height: 44px;
  text-decoration: none;
}

.wordmark img { width: 100%; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
.site-nav a, .back-to-top {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 520;
  letter-spacing: .02em;
}

.site-nav a::after, .back-to-top::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease-out);
}

.site-nav a:hover::after, .site-nav a:focus-visible::after,
.back-to-top:hover::after, .back-to-top:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  min-height: max(50rem, calc(56.28vw + 3rem));
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.hero-art, .hero-shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.hero-art {
  top: 3rem;
  z-index: -3;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}
.hero-shade {
  bottom: 0;
  z-index: -2;
  height: 100%;
  background: linear-gradient(to bottom, transparent 78%, var(--bg) 100%);
}

.hero-content {
  align-self: center;
  width: min(100%, 90rem);
  padding: 10rem var(--gutter) 6rem;
}

.hero h1, .feature h2, .themes h2, .approach h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 580;
  letter-spacing: -.035em;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(4.8rem, 7.5vw, 8rem);
  line-height: .94;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 31rem);
  gap: 2rem;
  align-items: start;
  margin-top: clamp(2rem, 4vh, 3.5rem);
}

.hero-intro p {
  margin: 0;
  color: color-mix(in oklch, var(--fg) 84%, transparent);
  font-size: clamp(1.25rem, 1.45vw, 1.4rem);
  line-height: 1.55;
}

.primary-cta {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: min(100%, 20rem);
  min-height: 4.4rem;
  padding: .9rem 1.25rem .9rem 1.5rem;
  border: 1px solid var(--coral);
  background: var(--coral);
  color: var(--bg);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: .02em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.primary-cta svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.primary-cta:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); transform: translateY(-2px); }
.primary-cta:active { transform: translateY(1px); }

.section-pad { padding: var(--section-space) var(--gutter); }

.feature { position: relative; overflow: hidden; background: var(--bg); }
.feature::before {
  position: absolute;
  top: 5rem;
  right: -22rem;
  width: 36rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.feature > * { position: relative; z-index: 1; }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(18rem, .72fr) minmax(32rem, 1.28fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: end;
  margin-top: 0;
}

.feature h2 { font-size: clamp(3.9rem, 7.5vw, 8rem); font-weight: 590; line-height: .9; }
.episode-number {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--amber);
  font-family: var(--font-label);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
}

.feature-deck {
  max-width: 34rem;
  margin: 2.5rem 0 0;
  color: var(--paper);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.55;
}

.feature-figure { margin: 0; }
.image-frame { position: relative; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); }
.image-frame img { width: 100%; height: auto; transition: transform 1s var(--ease-out), filter .7s ease; }
.image-frame:hover img { transform: scale(1.018); filter: saturate(1.05); }
.preview-trigger {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 22rem;
  min-height: 4.6rem;
  padding: .65rem 1.35rem .65rem .65rem;
  border: 1px solid color-mix(in oklch, var(--fg) 28%, transparent);
  background: color-mix(in oklch, var(--bg) 91%, transparent);
  box-shadow: 0 1.25rem 3rem color-mix(in oklch, var(--bg) 42%, transparent);
  cursor: pointer;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.preview-trigger:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); transform: translateY(-2px); }
.preview-trigger:active { transform: translateY(1px); }
.play-mark { display: grid; place-items: center; flex: 0 0 3.2rem; aspect-ratio: 1; border: 1px solid currentColor; }
.play-mark svg { width: 1.3rem; fill: currentColor; stroke: none; }

.themes { background: var(--fg); color: var(--paper-ink); }
.themes-intro {
  display: block;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid color-mix(in oklch, var(--paper-ink) 24%, transparent);
}

.themes-intro h2 { max-width: 14ch; font-size: clamp(3rem, 5.7vw, 6.2rem); font-weight: 590; line-height: .98; }
.theme-explorer { display: grid; grid-template-columns: minmax(16rem, .65fr) minmax(28rem, 1.35fr); gap: clamp(3rem, 8vw, 10rem); padding-top: clamp(3rem, 6vw, 5.5rem); }
.theme-tabs { display: flex; flex-direction: column; }
.theme-tabs button {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 4.6rem;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--paper-ink) 24%, transparent);
  background: transparent;
  color: color-mix(in oklch, var(--paper-ink) 72%, var(--fg));
  cursor: pointer;
  text-align: left;
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  font-weight: 520;
  transition: color .25s ease, padding-left .25s ease;
}

.theme-tabs button:hover { color: var(--paper-ink); padding-left: .5rem; }
.theme-tabs button[aria-selected="true"] { color: var(--paper-ink); font-weight: 620; }
.theme-tabs button:focus-visible { outline-color: var(--coral); }

.theme-panel { max-width: 47rem; animation: panel-in .55s var(--ease-out); }
.theme-panel h3 { max-width: 16ch; margin: 0 0 2rem; font-size: clamp(2.1rem, 3.4vw, 4rem); font-weight: 520; line-height: 1.05; letter-spacing: -.025em; }
.theme-panel > p { max-width: 59ch; margin: 0; font-size: clamp(1.05rem, 1.3vw, 1.24rem); line-height: 1.65; }

.approach {
  display: grid;
  grid-template-columns: minmax(25rem, 1.16fr) minmax(25rem, .84fr);
  min-height: 56rem;
  background: var(--surface);
}

.approach-image { position: relative; margin: 0; overflow: hidden; }
.approach-image::after { position: absolute; inset: 0; content: ""; box-shadow: inset -3rem 0 5rem color-mix(in oklch, var(--surface) 60%, transparent); pointer-events: none; }
.approach-image img { width: 100%; height: 100%; object-fit: cover; object-position: 84% center; }
.approach-copy { align-self: center; padding: clamp(5rem, 8vw, 9rem) var(--gutter); }
.approach h2 { font-size: clamp(3.7rem, 6.5vw, 7rem); font-weight: 590; line-height: .91; }
.approach-lede { max-width: 35rem; margin: 2.5rem 0 0; color: var(--paper); font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.6; }
.approach-secondary { max-width: 35rem; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.65; }

.site-footer { padding: clamp(5rem, 9vw, 8rem) var(--gutter) clamp(3rem, 5vw, 5rem); background: var(--bg); overflow: hidden; }
.footer-top { display: flex; justify-content: flex-end; align-items: center; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.back-to-top { gap: .8rem; }
.footer-signature { width: 100%; margin-top: clamp(5rem, 10vw, 9rem); }
.footer-signature img { width: 100%; height: auto; }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: color-mix(in oklch, var(--bg) 92%, transparent); backdrop-filter: blur(16px); }
.modal-shell { position: relative; width: min(100%, 72rem); max-height: calc(100svh - 2 * var(--gutter)); overflow: auto; padding: clamp(1.2rem, 2vw, 2rem); border: 1px solid var(--line-strong); background: var(--bg); box-shadow: 0 2rem 8rem color-mix(in oklch, var(--bg) 78%, transparent); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 2rem; margin-bottom: 1.2rem; }
.modal-head h2 { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 540; letter-spacing: -.015em; }
.modal-close { display: grid; place-items: center; flex: 0 0 3rem; width: 3rem; height: 3rem; padding: 0; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; transition: background .2s ease, color .2s ease; }
.modal-close svg { width: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.modal-close:hover { background: var(--fg); color: var(--bg); }
.video-frame { aspect-ratio: 16 / 9; background: color-mix(in oklch, var(--bg) 88%, black); }
.video-frame video { width: 100%; height: 100%; object-fit: contain; }
.modal-note { margin: .9rem 0 0; color: var(--muted); font-size: 1rem; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .hero { min-height: auto; }
  .hero-art { top: 8rem; left: -20%; width: 120%; height: auto; }
  .hero-shade { top: 8rem; bottom: auto; height: 67.54vw; background: linear-gradient(to bottom, transparent 72%, var(--bg) 100%); }
  .hero-content { padding-top: calc(67.54vw + 8rem); padding-bottom: 6rem; }
  .hero h1 { max-width: 12ch; font-size: clamp(4rem, 8.5vw, 5.7rem); }
  .feature-grid { grid-template-columns: 1fr; align-items: start; }
  .feature-copy { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 3rem; }
  .feature-copy h2 { grid-row: 1; }
  .feature-deck { margin-top: 0; }
  .theme-explorer { grid-template-columns: minmax(12rem, .58fr) minmax(0, 1.42fr); gap: clamp(3rem, 6vw, 5rem); }
  .theme-panels { min-width: 0; }
  .approach { grid-template-columns: 1fr; }
  .approach-image { min-height: 62vw; }
  .approach-image::after { box-shadow: inset 0 -3rem 5rem color-mix(in oklch, var(--surface) 50%, transparent); }
  .approach-copy { padding-inline: var(--gutter); }
}

@media (max-width: 700px) {
  :root { --section-space: 6.5rem; }
  .site-header { position: absolute; height: 5.2rem; }
  .wordmark { width: clamp(10.25rem, 45vw, 11.5rem); }
  .menu-toggle {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    padding: .5rem 0 .5rem .75rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 550;
    letter-spacing: .02em;
  }
  .menu-glyph { display: grid; align-content: center; gap: 5px; width: 1.2rem; height: 1.2rem; }
  .menu-glyph i { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .25s ease; }
  .menu-toggle[aria-expanded="true"] .menu-glyph i:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-glyph i:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: .4rem;
    padding: 6rem var(--gutter) 3rem;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: visibility .3s, opacity .3s ease, transform .3s var(--ease-out);
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .site-nav a { width: 100%; min-height: 4rem; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; padding-top: 0; }
  .hero-art { top: 5.2rem; left: -70%; width: 170%; height: auto; }
  .hero-shade {
    top: 5.2rem;
    bottom: auto;
    height: 95.68vw;
    background: linear-gradient(to bottom, transparent 76%, var(--bg) 100%);
  }
  .hero-content { padding-top: calc(95.68vw + 5.2rem); padding-bottom: 5.5rem; }
  .hero h1 { max-width: 9ch; font-size: clamp(3.1rem, 15.5vw, 5.4rem); line-height: .94; }
  .hero-intro { grid-template-columns: 1fr; gap: 2rem; margin-top: 2.4rem; }
  .hero-intro p { max-width: 29rem; font-size: 1.125rem; }
  .primary-cta { min-height: 4.1rem; font-size: 1.125rem; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 0; gap: 3.5rem; }
  .feature-copy { display: block; }
  .feature h2 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .feature-deck { margin-top: 2rem; font-size: 1.05rem; }
  .preview-trigger { position: static; width: 100%; min-width: 0; min-height: 4.8rem; gap: .75rem; padding: .65rem .85rem; border: 0; border-top: 1px solid var(--line-strong); background: var(--bg); box-shadow: none; font-size: 1.125rem; backdrop-filter: none; }
  .play-mark { flex-basis: 2.75rem; }
  .image-frame:hover img { transform: none; }
  .themes-intro h2 { margin-top: 2.2rem; font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .theme-explorer { grid-template-columns: 1fr; gap: 3.5rem; }
  .theme-tabs { flex-direction: row; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .theme-tabs button { flex: 0 0 auto; grid-template-columns: 1fr; width: auto; min-height: 3.7rem; padding: .8rem 1.3rem .8rem 0; margin-right: 1.3rem; white-space: nowrap; }
  .theme-tabs button:hover { padding-left: 0; }
  .theme-panel h3 { font-size: 2.5rem; }
  .approach-image { min-height: 34rem; }
  .approach { grid-template-columns: 1fr; }
  .approach-image img { object-position: 84% center; }
  .approach h2 { font-size: clamp(3.4rem, 15vw, 5rem); }
  .approach-copy { padding-block: 6.5rem; }
  .footer-top { align-items: start; }
  .modal { padding: 0; align-items: end; }
  .modal-shell { width: 100%; max-height: 94svh; padding: 1rem; border-right: 0; border-bottom: 0; border-left: 0; }
  .modal-head { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
