/* ==========================================================================
   Hushy — styles
   Tokens first; every component references a token instead of inventing a value.
   ========================================================================== */

@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 86%;
  ascent-override: 92%;
  descent-override: 28%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  /* colour */
  --bg: #0b0a09;
  --bg-soft: #100e0d;
  --surface: #171412;
  --surface-2: #201b18;
  --ink: #f4eee5;
  --ink-soft: #d9d0c6;
  --muted: #9d958d;
  --accent: #ff6048;
  --accent-soft: #e7a0a0;
  --gold: #d5ad72;
  --line: rgba(244, 238, 229, 0.1);
  --line-strong: rgba(244, 238, 229, 0.2);
  --line-media: rgba(255, 255, 255, 0.28);

  /* type */
  --display: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --serif-sc: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --fs-display-xl: clamp(3.75rem, 2.5rem + 6vw, 7rem);
  --fs-display-l: clamp(2.5rem, 1.8rem + 3.6vw, 5.25rem);
  --fs-display-m: clamp(2rem, 1.4rem + 2vw, 3rem);
  --fs-title: 1.75rem;
  --fs-title-s: 1.5rem;
  --fs-title-xs: 1.375rem;
  --fs-num: 1.125rem;
  --fs-body-l: 1.0625rem;
  --fs-body: 0.9375rem;
  --fs-body-s: 0.8125rem;
  --fs-ui: 0.8125rem;
  --fs-caption: 0.75rem;
  --fs-label: 0.6875rem;
  --ls-label: 0.14em;
  --fs-label-s: 0.6875rem; /* chips on imagery: same 11px floor, tighter tracking */
  --ls-label-s: 0.08em;

  /* space */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --gutter: clamp(16px, 4vw, 28px);
  --section: clamp(72px, 32px + 6vw, 128px);
  --heading-gap: var(--s7);
  --card-gap: var(--s4);
  --overlay-inset: 16px;
  --header-offset: var(--s7);
  --shell: 1240px;
  --header-height: 76px;

  /* shape & depth */
  --r-surface: 0;
  --r-label: 2px;
  --r-control: 999px;
  --shadow-1: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
  --shadow-2: 0 32px 70px -24px rgba(0, 0, 0, 0.65);
  --shadow-3: 0 48px 100px -20px rgba(0, 0, 0, 0.72);
  --ring: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --vignette: inset 0 0 40px rgba(0, 0, 0, 0.3);
  --scrim: linear-gradient(
    to top,
    rgba(6, 5, 4, 0.9) 0%,
    rgba(6, 5, 4, 0.72) 18%,
    rgba(6, 5, 4, 0.48) 36%,
    rgba(6, 5, 4, 0.24) 54%,
    rgba(6, 5, 4, 0.08) 70%,
    transparent 82%
  );
  --scrim-x: linear-gradient(
    90deg,
    rgba(10, 8, 7, 0.92) 0%,
    rgba(10, 8, 7, 0.7) 22%,
    rgba(10, 8, 7, 0.4) 45%,
    rgba(10, 8, 7, 0.14) 70%,
    rgba(10, 8, 7, 0.04) 100%
  );
  --ease: cubic-bezier(0.2, 0.72, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--s5));
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(125, 50, 41, 0.22) 0, rgba(125, 50, 41, 0.09) 12rem, transparent 27rem),
    radial-gradient(circle at 91% 27%, rgba(120, 80, 48, 0.1) 0, rgba(120, 80, 48, 0.04) 16rem, transparent 34rem),
    var(--bg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums; /* Cormorant defaults to old-style figures */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain: hides gradient banding and makes the 480p posters read as texture */
body::after {
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
}

/* separate rules: an engine without :has() must not drop the .is-locked half */
body.is-locked {
  overflow: hidden;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: none;
}

a {
  color: inherit;
}

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

/* the inline SVG sprite and any [hidden] element never take layout space */
[hidden] {
  display: none !important;
}

::selection {
  color: #fff;
  background: rgba(255, 96, 72, 0.58);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.shell {
  width: min(var(--shell), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

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

/* nav links / channel cards land the heading ~64px below the header instead of in the section's own padding */
.section[id] {
  scroll-margin-top: calc(40px - var(--section-pad));
}

/* --------------------------------------------------------------------------
   Type system
   -------------------------------------------------------------------------- */

/* every uppercase kicker / meta line on the site: one recipe */
.overline,
.hero-now > span,
.hero-shot__caption small,
.hero-gallery__note,
.channel-card__copy small,
.library-line,
.video-meta__format,
.empty-library small,
.speaker-line,
.dialog-kickers,
.comment-form label > span {
  font-family: var(--body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  line-height: 1.2;
  text-transform: uppercase;
}

/* chips that sit on imagery or act as status pills */
.hero-shot__badge,
.video-cover__top span,
.audio-art span,
.roadmap-status,
.brand-age {
  font-size: var(--fs-label-s);
  font-weight: 700;
  letter-spacing: var(--ls-label-s);
  line-height: 1;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* "A · B · C" — one separator idiom */
.meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.meta > span:not(:last-child)::after,
.overline span:not(:last-child)::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.65;
}

.overline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 20px;
  color: var(--gold);
}

.overline span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

h1 em,
h2 em {
  display: block;
  color: var(--accent-soft);
  font-style: italic;
  font-weight: 600;
}

h2 {
  font-size: var(--fs-display-l);
}

.section-heading h2 {
  max-width: 9em;
}

.section-intro {
  max-width: 620px;
  margin: var(--s5) 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  background: none;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button .icon {
  width: 0.85em;
  height: 0.85em;
  margin-left: 2px;
}

.button--primary {
  color: #160b09;
  background: var(--accent);
}

.button--quiet {
  border-color: var(--line-strong);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
}

.button--small {
  min-height: 42px;
  padding-inline: 18px;
  color: #160b09;
  background: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: var(--fs-ui);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.text-link__label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms ease;
}

.text-link .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
  transition: transform 180ms var(--ease);
}

/* --------------------------------------------------------------------------
   Age gate
   -------------------------------------------------------------------------- */

.age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: var(--s5);
  background: #080706;
  transition:
    opacity 420ms ease 80ms,
    visibility 0s linear 500ms;
}

.age-gate.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* returning visitors: the gate never paints */
html.age-ok .age-gate {
  display: none;
}

.age-gate__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: #080706;
  opacity: 0.72;
}

.age-gate__mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: blur(2.5px) saturate(0.85) contrast(1.06);
  transform: scale(1.04);
  animation: gate-drift 24s linear infinite alternate;
}

@keyframes gate-drift {
  from {
    transform: scale(1.04) translateX(-1%);
  }
  to {
    transform: scale(1.08) translateX(1%);
  }
}

.age-gate__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.76), rgba(8, 7, 6, 0.44)),
    linear-gradient(0deg, rgba(8, 7, 6, 0.92), transparent 55%, rgba(8, 7, 6, 0.7));
}

.age-gate__card {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  background: rgba(15, 13, 11, 0.91);
  box-shadow:
    0 0 0 1px rgba(255, 96, 72, 0.08),
    var(--shadow-3);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: gate-in 700ms var(--ease) 120ms backwards;
  transition:
    transform 420ms var(--ease),
    opacity 320ms ease;
}

.age-gate.is-hidden .age-gate__card {
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
}

@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.brand--gate {
  margin-bottom: var(--s8);
}

.age-gate__title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(3rem, 2rem + 4vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.age-gate__card > p:not(.overline, .age-gate__note) {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--s6);
}

.age-gate__note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
}

/* the blur lives on a pseudo-element so the header itself never becomes a
   containing block for the fixed mobile nav */
.site-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(11, 10, 9, 0.86);
  opacity: 0;
  content: "";
  transition: opacity 220ms ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

/* a real cut-out crescent, identical on every background */
.brand-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: radial-gradient(circle 6.5px at 76% 24%, transparent 97%, #000 100%);
  mask: radial-gradient(circle 6.5px at 76% 24%, transparent 97%, #000 100%);
}

.brand-age {
  margin-left: -2px;
  padding: 3px 5px 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-label);
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: -15px;
}

.site-nav a {
  position: relative;
  padding: 12px 15px;
  color: var(--muted);
  font-size: var(--fs-ui);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

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

.site-nav a.is-active {
  color: var(--ink);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 11, 10, 0.86);
  cursor: pointer;
  transition: transform 180ms var(--ease);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 180ms ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.86fr) minmax(470px, 1.14fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-top: calc(var(--header-height) + var(--header-offset));
  padding-bottom: clamp(40px, 6vw, 64px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: var(--fs-display-xl);
}

.hero-lede {
  max-width: 490px;
  margin: var(--s6) 0 0;
  color: var(--muted);
  font-size: var(--fs-body-l);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s5);
  margin-top: var(--s5);
}

.hero-now {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: baseline;
  margin: var(--s7) 0 0;
}

.hero-now > span {
  color: var(--muted);
}

.hero-now b {
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--fs-title-s);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.hero-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 680px;
  isolation: isolate; /* keeps the grain layer above every tile, not just the lower two */
}

.hero-shot {
  position: absolute;
  overflow: hidden;
  padding: 0;
  background: #181410;
  cursor: pointer;
  transition:
    box-shadow 300ms ease,
    transform 220ms var(--ease);
}

.hero-shot img,
.hero-shot__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shot img {
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(1.06) contrast(1.02);
  transition: transform 600ms var(--ease);
}

.hero-shot__scrim {
  z-index: 1;
  background: var(--scrim);
  box-shadow: var(--ring), var(--vignette);
  pointer-events: none;
}

/* elevation ladder = stacking order; main on top so its caption is never covered */
.hero-shot--main {
  z-index: 3;
  top: 1%;
  left: 2%;
  width: 53%;
  height: 78%;
  box-shadow: var(--shadow-3);
}

.hero-shot--wide {
  z-index: 2;
  right: 0;
  bottom: 2%;
  width: 62%;
  height: 37%;
  box-shadow: var(--shadow-2);
}

.hero-shot--small {
  z-index: 1;
  top: 4%;
  right: 0;
  width: 37%;
  height: 43%;
  box-shadow: var(--shadow-1);
}

.hero-shot__caption {
  position: absolute;
  z-index: 2;
  inset: auto var(--overlay-inset) var(--overlay-inset);
  display: grid;
  gap: 5px;
  color: var(--ink);
  text-align: left;
  transition: transform 400ms var(--ease);
}

.hero-shot__caption small {
  color: rgba(244, 238, 229, 0.86);
}

.hero-shot__caption strong {
  font-family: var(--display);
  font-size: var(--fs-title-xs);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.hero-shot__badge {
  position: absolute;
  z-index: 2;
  top: var(--overlay-inset);
  left: var(--overlay-inset);
  padding: 7px 9px;
  border: 1px solid var(--line-media);
  border-radius: var(--r-label);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 7, 6, 0.58);
}

.round-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line-media);
  border-radius: 50%;
  color: #17100e;
  background: rgba(244, 238, 229, 0.86);
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease);
}

.round-play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.round-play--sm {
  width: 40px;
  height: 40px;
}

.round-play--sm .icon {
  width: 14px;
  height: 14px;
}

.hero-gallery__note {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: -28px;
  margin: 0;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Channels
   -------------------------------------------------------------------------- */

.channels {
  border-top: 1px solid var(--line);
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  margin-top: var(--heading-gap);
}

.channel-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition:
    border-color 260ms ease,
    transform 220ms var(--ease);
}

.channel-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--scrim-x);
  content: "";
}

.channel-card__number {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 28px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: var(--fs-num);
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.channel-card__art {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 58%);
  mask-image: linear-gradient(90deg, transparent 18%, #000 58%);
}

.channel-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 25%;
  transition: transform 600ms var(--ease);
}

.channel-card__copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 66%;
  flex-direction: column;
  align-items: flex-start;
  align-self: end;
}

.channel-card__copy small {
  margin-bottom: 8px;
  color: var(--gold);
}

.channel-card__copy strong {
  font-family: var(--display);
  font-size: var(--fs-display-m);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.channel-card__copy strong em {
  display: block;
  color: var(--accent-soft);
  font-style: italic;
  font-weight: 600;
}

.channel-card__copy > span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s5);
  color: var(--ink-soft);
  font-size: var(--fs-ui);
  font-weight: 600;
}

.channel-card__copy .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--accent);
  transition: transform 180ms var(--ease);
}

/* --------------------------------------------------------------------------
   Library line + filters (Watch & Listen)
   -------------------------------------------------------------------------- */

.watch-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(57, 31, 26, 0.1), transparent 280px),
    var(--bg-soft);
}

.listen-section {
  border-top: 1px solid var(--line);
}

.library-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) 18px;
  margin: var(--heading-gap) 0 var(--s5);
  color: var(--muted);
}

.library-line__count b {
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--fs-num);
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
}

.library-line__rule {
  height: 1px;
  flex: 1 1 40px;
  background: var(--line);
}

.segment,
.speaker-filter {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: rgba(255, 255, 255, 0.025);
  letter-spacing: 0;
  text-transform: none;
}

.segment button,
.speaker-filter button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-control);
  color: var(--muted);
  background: transparent;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease);
}

.segment button.is-active,
.speaker-filter button.is-active {
  color: #160b09;
  background: var(--ink);
}

.segment button:focus-visible,
.speaker-filter button:focus-visible {
  outline-offset: -3px;
}

/* image buttons: inset ring so it reads against the poster */
.hero-shot:focus-visible,
.video-cover:focus-visible,
.channel-card:focus-visible {
  outline-offset: -4px;
}

/* --------------------------------------------------------------------------
   Video grid — shape follows the poster, not the slot
   -------------------------------------------------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s7) var(--card-gap);
}

.video-card {
  display: grid;
  min-width: 0;
  grid-column: span 3;
  grid-template-rows: auto 1fr;
}

.video-card[data-format="landscape"] {
  grid-column: span 6;
}

.video-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 3 / 4;
  border: 0;
  background: #080706;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition:
    box-shadow 300ms ease,
    transform 220ms var(--ease);
}

.video-card[data-format="landscape"] .video-cover {
  aspect-ratio: 16 / 9;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(1.06) contrast(1.02);
  transition: transform 600ms var(--ease);
}

.video-cover::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--scrim);
  box-shadow: var(--ring), var(--vignette);
  content: "";
  pointer-events: none;
}

.video-cover__top {
  position: absolute;
  z-index: 2;
  top: var(--overlay-inset);
  right: var(--overlay-inset);
  left: var(--overlay-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.video-cover__top span {
  padding: 6px 9px;
  border: 1px solid var(--line-media);
  border-radius: var(--r-label);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 7, 6, 0.58);
}

/* the duration stays top-right even when it is the only chip */
.video-cover__top span:last-child {
  margin-left: auto;
}

/* spice level — three hearts, bottom-left of the poster */
.video-cover__spice,
.audio-art .audio-art__spice {
  position: absolute;
  z-index: 2;
  bottom: var(--overlay-inset);
  left: var(--overlay-inset);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 9px;
  border: 1px solid var(--line-media);
  border-radius: var(--r-label);
  background: rgba(8, 7, 6, 0.58);
  font-size: 11px;
  pointer-events: none;
}

.audio-art .audio-art__spice {
  top: var(--overlay-inset);
  bottom: auto;
  left: auto;
  right: var(--overlay-inset);
}

.spice-heart--on {
  color: var(--accent);
}

.spice-heart--off {
  color: rgba(255, 255, 255, 0.32);
}

.spice--dialog {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 14px;
  font-size: 12px;
}

.video-cover__play {
  position: absolute;
  z-index: 2;
  right: var(--overlay-inset);
  bottom: var(--overlay-inset);
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #160b09;
  background: var(--ink);
  transition: transform 180ms var(--ease);
}

.video-cover__play .icon {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.video-body {
  display: flex;
  flex-direction: column;
  padding: var(--s4) 0 0;
}

.video-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-title-s);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.video-card[data-format="landscape"] .video-body h3 {
  font-size: var(--fs-title);
}

.video-title-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.video-title-button:focus-visible {
  outline-offset: 3px;
}

.video-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--fs-body-s);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 96, 72, 0.3);
  border-radius: var(--r-label);
  color: var(--accent-soft);
  background: rgba(255, 96, 72, 0.07);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.video-meta__format {
  min-width: 0;
  color: var(--muted);
}

.video-reactions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin: -4px -10px -4px 0;
}

.mini-reaction {
  display: inline-flex;
  min-height: 40px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: var(--r-control);
  color: var(--muted);
  background: transparent;
  font-size: var(--fs-ui);
  font-weight: 600;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease);
}

.mini-reaction .icon {
  width: 14px;
  height: 14px;
}

.mini-reaction b {
  color: var(--ink);
  font-weight: 600;
}

.mini-reaction b:empty {
  display: none;
}

.mini-reaction.is-liked {
  color: var(--ink);
}

.is-liked .icon {
  fill: var(--accent);
  stroke: var(--accent);
  animation: heart-pop 320ms var(--ease);
}

@keyframes heart-pop {
  40% {
    transform: scale(1.35);
  }
}

.empty-library {
  display: grid;
  min-height: 410px;
  grid-column: 1 / -1;
  place-items: center;
  padding: 52px 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 10%, rgba(231, 160, 160, 0.12), transparent 20rem),
    var(--surface);
  text-align: center;
}

.empty-library__inner {
  max-width: 520px;
}

.empty-library small {
  color: var(--gold);
}

.empty-library h3 {
  margin: 12px 0;
  font-family: var(--display);
  font-size: var(--fs-display-m);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.empty-library p {
  margin: 0 auto var(--s5);
  color: var(--muted);
  font-size: var(--fs-body);
}

/* --------------------------------------------------------------------------
   Listen — audio cards + custom player
   -------------------------------------------------------------------------- */

.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--card-gap);
}

.audio-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.audio-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
}

.audio-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
  transition: transform 600ms var(--ease);
}

.audio-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--scrim);
  box-shadow: var(--ring), var(--vignette);
  content: "";
  pointer-events: none;
}

.audio-art span {
  position: absolute;
  z-index: 2;
  bottom: var(--overlay-inset);
  left: var(--overlay-inset);
  padding: 6px 9px;
  border: 1px solid var(--line-media);
  border-radius: var(--r-label);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 7, 6, 0.58);
}

.audio-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--s5);
}

.speaker-line {
  margin-bottom: 18px;
  color: var(--gold);
}

.audio-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.audio-body > p {
  margin: 12px 0 var(--s5);
  color: var(--muted);
  font-size: var(--fs-body-s);
  line-height: 1.6;
}

.player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.player__toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms var(--ease);
}

.player__toggle .icon {
  width: 14px;
  height: 14px;
}

.player__toggle .icon--play {
  margin-left: 2px;
}

.player__toggle .icon--pause,
.player.is-playing .player__toggle .icon--play {
  display: none;
}

.player.is-playing .player__toggle .icon--pause {
  display: block;
}

.player.is-playing .player__toggle {
  border-color: transparent;
  color: #160b09;
  background: var(--accent);
}

/* 24px tall hit area, 2px visible track drawn in the middle */
.player__seek {
  width: 100%;
  height: 24px;
  margin: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 50% / var(--p, 0%) 2px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% 2px no-repeat;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.player__seek::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.player__seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.player__seek::-moz-range-track {
  height: 2px;
  background: transparent;
}

.player__seek:focus-visible {
  outline-offset: 2px;
}

.player__time {
  color: var(--muted);
  font-size: var(--fs-caption);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.player__time b {
  color: var(--ink);
  font-weight: 600;
}

.audio-tags {
  margin-top: var(--s4);
  color: var(--muted);
  font-size: var(--fs-caption);
}

/* --------------------------------------------------------------------------
   Roadmap
   -------------------------------------------------------------------------- */

.roadmap-section {
  position: relative;
  overflow: clip;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 96, 72, 0.12), transparent 32rem),
    #0d0b0a;
}

.roadmap-section::before {
  position: absolute;
  top: -18vw;
  right: -14vw;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 96, 72, 0.14), transparent 62%);
  content: "";
  filter: blur(28px);
  pointer-events: none;
}

.roadmap-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: clamp(64px, 9vw, 130px);
  align-items: start;
}

.roadmap-copy h2 {
  max-width: 9em;
}

.roadmap-copy > p:not(.overline) {
  max-width: 540px;
  margin: var(--s6) 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--s6);
}

.format-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-label);
  color: var(--ink-soft);
  font-size: var(--fs-ui);
  font-weight: 600;
}

.format-chips span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.roadmap-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.roadmap-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.roadmap-list__num {
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: var(--fs-num);
  line-height: 1.3;
  font-variant-numeric: lining-nums tabular-nums;
}

.roadmap-list h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: var(--fs-title-xs);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.roadmap-list p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-s);
  line-height: 1.6;
}

.roadmap-status {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-label);
  color: var(--muted);
}

.roadmap-list .is-live .roadmap-status {
  border-color: rgba(255, 96, 72, 0.34);
  color: var(--accent);
  background: rgba(255, 96, 72, 0.07);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--s6);
  border-top: 1px solid var(--line);
  background: #080706;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--s5);
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}

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

.footer-inner nav a {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

/* --------------------------------------------------------------------------
   Video dialog
   -------------------------------------------------------------------------- */

.video-dialog {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: min(90vh, 900px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #100e0d;
  box-shadow: var(--shadow-3);
  opacity: 0;
  overscroll-behavior: contain;
  transition: opacity 240ms var(--ease);
}

.video-dialog[open] {
  opacity: 1;
}

.video-dialog::backdrop {
  background: rgba(3, 3, 3, 0.86);
  opacity: 0;
  transition: opacity 240ms ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.video-dialog[open]::backdrop {
  opacity: 1;
}

.dialog-layout {
  display: grid;
  height: min(90vh, 900px);
  grid-template-columns: minmax(0, 1.18fr) minmax(370px, 0.82fr);
  transform: translateY(14px);
  transition: transform 360ms var(--ease);
}

.video-dialog[open] .dialog-layout {
  transform: none;
}

@starting-style {
  .video-dialog[open] {
    opacity: 0;
  }

  .video-dialog[open]::backdrop {
    opacity: 0;
  }

  .video-dialog[open] .dialog-layout {
    transform: translateY(14px);
  }
}

/* widescreen films: player on top, details below — no 52% letterbox */
.video-dialog[data-format="landscape"] {
  width: min(960px, calc(100% - 32px));
}

.video-dialog[data-format="landscape"] .dialog-layout {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
}

.video-dialog[data-format="landscape"] .dialog-screen {
  position: relative;
  height: auto;
  max-height: 60vh;
  aspect-ratio: 16 / 9;
}

/* stacked layout: the close button sits over the video, so no 76px clearance is needed */
.video-dialog[data-format="landscape"] .dialog-details {
  padding-top: clamp(30px, 5vw, 52px);
}

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 7, 6, 0.78);
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms var(--ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.dialog-close .icon {
  width: 18px;
  height: 18px;
}

.dialog-close:focus-visible,
.menu-toggle:focus-visible,
.player__toggle:focus-visible {
  outline-offset: 3px;
}

.dialog-screen {
  position: relative;
  display: grid;
  height: min(90vh, 900px);
  place-items: center;
  overflow: hidden;
  background: #000;
}

.dialog-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-source-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 96, 72, 0.32);
  color: var(--ink);
  background: rgba(25, 12, 10, 0.9);
  font-size: var(--fs-body-s);
}

.video-source-note span {
  color: var(--muted);
}

.dialog-details {
  overflow-y: auto;
  padding: 76px clamp(30px, 5vw, 52px) clamp(30px, 5vw, 52px);
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
}

.dialog-kickers {
  color: var(--gold);
}

.dialog-details > h2 {
  margin-top: 14px;
  font-size: var(--fs-display-m);
  line-height: 1.02;
}

.dialog-description {
  margin: var(--s5) 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.dialog-details > .tag-list {
  margin-top: 20px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: var(--s5);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
}

.reaction-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: var(--fs-ui);
  font-weight: 600;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease);
}

.reaction-button .icon {
  width: 15px;
  height: 15px;
}

.reaction-button.is-liked {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.reaction-button b {
  font-weight: 600;
}

.comments {
  padding-top: var(--s6);
}

.comments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comments-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-title-xs);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.comments-heading > span {
  color: var(--muted);
  font-size: var(--fs-caption);
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment-empty {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-body-s);
}

.comment {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.comment__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment__meta strong {
  font-size: var(--fs-body-s);
}

.comment__meta time {
  color: var(--muted);
  font-size: var(--fs-caption);
}

.comment p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-body-s);
  line-height: 1.6;
  white-space: pre-line;
}

.comment-form {
  display: grid;
  gap: 12px;
  margin-top: var(--s5);
}

.comment-form label {
  display: grid;
  gap: 6px;
}

.comment-form label > span {
  color: var(--muted);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.comment-form input {
  height: 46px;
}

.comment-form textarea {
  min-height: 92px;
  resize: vertical;
  padding-block: 11px;
}

.comment-form input:focus-visible,
.comment-form textarea:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 96, 72, 0.18);
}

.comment-form ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.comment-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.comment-form__footer small {
  max-width: 200px;
  color: var(--muted);
  font-size: var(--fs-caption);
}

/* --------------------------------------------------------------------------
   Toast — a popover, so it stacks above the modal dialog
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 1200;
  inset: auto 24px 24px auto;
  width: auto;
  max-width: min(360px, calc(100% - 48px));
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(20, 17, 15, 0.94);
  font-size: var(--fs-ui);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* two rules on purpose: one unknown pseudo-class would invalidate a shared list */
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast:popover-open {
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .toast:popover-open {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* discrete display/overlay transitions only where the whole shorthand stays valid */
@supports (transition-behavior: allow-discrete) {
  .video-dialog {
    transition:
      opacity 240ms var(--ease),
      overlay 240ms allow-discrete,
      display 240ms allow-discrete;
  }

  .video-dialog::backdrop {
    transition:
      opacity 240ms ease,
      overlay 240ms allow-discrete,
      display 240ms allow-discrete;
  }

  .toast {
    transition:
      opacity 180ms ease,
      transform 180ms var(--ease),
      display 180ms allow-discrete,
      overlay 180ms allow-discrete;
  }
}

/* --------------------------------------------------------------------------
   Reveal — JS-gated, so a script failure never hides the page
   -------------------------------------------------------------------------- */

.reveal {
  transition:
    opacity 600ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal--delay {
  --i: 2;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

/* returning visitors: the hero is never hidden, not even for a frame */
.js.age-ok .reveal--hero:not(.is-visible) {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Hover (pointer devices only) and press states
   -------------------------------------------------------------------------- */

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }

  .button--primary:hover,
  .button--small:hover {
    background: #ff7964;
  }

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

  .text-link:hover .text-link__label {
    text-decoration-color: var(--accent);
  }

  .text-link:hover .icon,
  .channel-card:hover .channel-card__copy .icon {
    transform: translateY(4px);
  }

  .site-nav a:hover,
  .footer-inner nav a:hover,
  .segment button:hover,
  .speaker-filter button:hover {
    color: var(--ink);
  }

  .hero-shot:hover {
    box-shadow: var(--shadow-3);
  }

  .hero-shot:hover img {
    transform: scale(1.02);
  }

  .hero-shot:hover .round-play {
    transform: translate(-50%, -50%) scale(1.08);
  }

  .hero-shot:hover .hero-shot__caption {
    transform: translateY(-3px);
  }

  .channel-card:hover {
    border-color: var(--line-strong);
  }

  .channel-card:hover .channel-card__art img {
    transform: scale(1.04);
  }

  .video-card:hover .video-cover {
    box-shadow: var(--shadow-2);
  }

  .video-card:hover .video-cover img {
    transform: scale(1.035);
  }

  .video-cover:hover .video-cover__play {
    transform: scale(1.08);
  }

  .video-title-button:hover {
    color: var(--accent-soft);
  }

  .mini-reaction:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
  }

  .reaction-button:hover {
    border-color: var(--line-strong);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
  }

  .mini-reaction.is-liked:hover,
  .reaction-button.is-liked:hover {
    border-color: rgba(255, 96, 72, 0.34);
    background: rgba(255, 96, 72, 0.12);
  }

  .audio-card:hover .audio-art img {
    transform: scale(1.035);
  }

  .player__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .player.is-playing .player__toggle:hover {
    background: #ff7964;
  }

  .dialog-close:hover {
    background: rgba(8, 7, 6, 0.95);
  }
}

.button:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 80ms;
}

.hero-shot:active,
.video-cover:active,
.channel-card:active {
  transform: scale(0.992);
}

.mini-reaction:active,
.reaction-button:active,
.segment button:active,
.speaker-filter button:active,
.dialog-close:active,
.menu-toggle:active,
.player__toggle:active {
  transform: scale(0.94);
  transition-duration: 80ms;
}

/* --------------------------------------------------------------------------
   Responsive — layout only; type and spacing are fluid above
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }

  .video-card,
  .video-card[data-format="landscape"] {
    grid-column: span 6;
  }

  .roadmap-layout {
    grid-template-columns: minmax(0, 0.78fr) minmax(450px, 1.22fr);
    gap: 64px;
  }
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: calc(var(--header-height) + var(--s8));
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-gallery {
    aspect-ratio: 10 / 9;
    max-height: none;
  }

  .hero-shot--main {
    left: 0;
  }

  /* the small tile is a thumbnail here: caption only, no play button over the text */
  .hero-shot--small .round-play {
    display: none;
  }

  .hero-shot--small .hero-shot__caption small {
    display: none;
  }

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

  .video-card[data-format="landscape"] {
    grid-column: 1 / -1;
  }

  .roadmap-layout {
    grid-template-columns: 1fr;
  }

  .dialog-layout,
  .video-dialog[data-format="landscape"] .dialog-layout {
    height: min(90vh, 900px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dialog-screen,
  .video-dialog[data-format="landscape"] .dialog-screen {
    position: relative;
    z-index: 2;
    height: min(55vh, 510px);
    min-height: 330px;
    max-height: none;
    aspect-ratio: auto;
  }

  .dialog-details,
  .video-dialog[data-format="landscape"] .dialog-details {
    overflow: visible;
    padding-top: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 66px;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 72px var(--gutter);
    background: rgba(9, 8, 7, 0.97);
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 220ms ease,
      visibility 220ms ease,
      transform 220ms var(--ease);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 9px 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: var(--fs-display-l);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 320ms var(--ease),
      transform 320ms var(--ease);
  }

  .site-nav.is-open a {
    opacity: 1;
    transform: none;
  }

  .site-nav.is-open a:nth-child(2) {
    transition-delay: 50ms;
  }

  .site-nav.is-open a:nth-child(3) {
    transition-delay: 100ms;
  }

  .site-nav.is-open a:nth-child(4) {
    transition-delay: 150ms;
  }

  .site-nav a::after {
    display: none;
  }

  /* the two 1px bars sit 11px apart; ±5.5px brings them onto one centre so they read as an × */
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(5.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--s7));
    padding-bottom: var(--s8);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-gallery {
    aspect-ratio: 17 / 25;
    max-height: none;
  }

  .hero-shot--main {
    width: 60%;
    height: 75%;
  }

  .hero-shot--small {
    width: 32%;
    height: 39%;
  }

  .hero-shot--wide {
    width: 68%;
    height: 34%;
  }

  .round-play {
    width: 48px;
    height: 48px;
  }

  .channel-card {
    min-height: 320px;
    padding: 22px;
  }

  .channel-card__number {
    top: 22px;
    left: 22px;
  }

  .channel-card__copy {
    width: 78%;
  }

  .segment,
  .speaker-filter {
    width: 100%;
    flex-basis: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    margin-left: 0;
    scrollbar-width: none;
  }

  .segment::-webkit-scrollbar,
  .speaker-filter::-webkit-scrollbar {
    display: none;
  }

  .segment button,
  .speaker-filter button {
    flex: 1 0 auto;
  }

  .video-grid {
    gap: var(--s6) 12px;
  }

  .video-card[data-format="portrait"] {
    grid-column: span 6;
  }

  .video-card[data-format="portrait"] .video-description,
  .video-card[data-format="portrait"] .tag-list span:nth-child(n + 3),
  .video-card[data-format="portrait"] .video-meta__format,
  .video-card[data-format="portrait"] .video-cover__top span:first-child {
    display: none;
  }

  .video-card[data-format="portrait"] .video-body h3 {
    font-size: var(--fs-title-xs);
  }

  .video-card[data-format="portrait"] .video-meta {
    justify-content: flex-start;
  }

  .video-card[data-format="portrait"] .video-reactions {
    margin-left: -10px;
  }

  .roadmap-list li {
    grid-template-columns: 28px 1fr auto;
    gap: 14px;
  }

  .age-gate {
    place-items: end center;
    padding: 14px;
  }

  .age-gate__mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .age-gate__mosaic img:last-child {
    display: none;
  }

  .age-gate__card {
    max-height: calc(100vh - 28px);
    max-height: calc(100svh - 28px);
    overflow-y: auto;
    padding: 28px var(--gutter);
    overscroll-behavior: contain;
  }

  .brand--gate {
    margin-bottom: var(--s7);
  }

  .age-gate__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .video-dialog,
  .video-dialog[data-format="landscape"] {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
  }

  .dialog-layout,
  .video-dialog[data-format="landscape"] .dialog-layout {
    height: 100vh;
    height: 100dvh;
  }

  .dialog-screen,
  .video-dialog[data-format="landscape"] .dialog-screen {
    height: 48vh;
    min-height: 280px;
  }

  .dialog-close {
    top: 10px;
    right: 10px;
  }

  .dialog-details {
    padding: 30px var(--gutter) 56px;
  }

  .footer-inner nav {
    gap: 14px;
  }
}


/* --------------------------------------------------------------------------
   The reading room — books, spines and the story dialog
   -------------------------------------------------------------------------- */

.book-search {
  margin-left: auto;
}

.book-search input {
  min-height: 38px;
  width: min(240px, 100%);
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--body);
  font-size: var(--fs-ui);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.book-search input::placeholder {
  color: var(--muted);
}

.book-search input:focus-visible {
  outline: none;
  border-color: var(--line-strong);
}

.book-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--s6);
}

.book-filters button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--body);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease);
}

.book-filters button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.book-filters button.is-active {
  color: #160b09;
  border-color: var(--ink);
  background: var(--ink);
}

.book-filters button:focus-visible {
  outline-offset: -3px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s7) var(--card-gap);
}

.book-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
}

.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  width: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-align: left;
  background:
    radial-gradient(130% 90% at 85% -12%, rgba(255, 96, 72, 0.24), transparent 55%),
    linear-gradient(168deg, #1e1512 0%, #130d0b 55%, #0d0a09 100%);
  cursor: pointer;
  transition:
    border-color 200ms ease,
    box-shadow 200ms var(--ease),
    transform 200ms var(--ease);
}

.book-cover:hover {
  border-color: rgba(255, 96, 72, 0.55);
  box-shadow: var(--shadow-1);
  transform: translateY(-3px);
}

.book-cover:focus-visible {
  outline-offset: -4px;
}

.book-cover__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 96, 72, 0.45);
  border-radius: var(--r-label);
  color: var(--accent-soft);
  background: rgba(13, 10, 9, 0.6);
  font-family: var(--body);
  font-size: var(--fs-label-s);
  font-weight: 700;
  letter-spacing: var(--ls-label-s);
}

.book-cover__title {
  margin-top: 34px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font-family: var(--serif-sc);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.book-cover__meta {
  margin-top: auto;
  padding-top: var(--s4);
  font-size: var(--fs-caption);
}

.book-card > .tag-list {
  margin-top: var(--s3);
}

.book-empty {
  grid-column: span 12;
  margin: 0;
  padding: var(--s7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-body-s);
}

/* The story dialog */
.story-dialog {
  width: min(860px, calc(100% - 32px));
  max-height: min(90vh, 900px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #100e0d;
  box-shadow: var(--shadow-3);
  opacity: 0;
  overscroll-behavior: contain;
  transition: opacity 240ms var(--ease);
}

.story-dialog[open] {
  opacity: 1;
}

.story-dialog::backdrop {
  background: rgba(3, 3, 3, 0.86);
  opacity: 0;
  transition: opacity 240ms ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.story-dialog[open]::backdrop {
  opacity: 1;
}

.story-scroll {
  height: min(90vh, 900px);
  overflow-y: auto;
  padding: 64px clamp(24px, 6vw, 64px) clamp(48px, 8vw, 88px);
  overscroll-behavior: contain;
  transform: translateY(14px);
  transition: transform 360ms var(--ease);
  scrollbar-color: var(--line-strong) transparent;
}

.story-dialog[open] .story-scroll {
  transform: none;
}

@starting-style {
  .story-dialog[open] {
    opacity: 0;
  }

  .story-dialog[open]::backdrop {
    opacity: 0;
  }

  .story-dialog[open] .story-scroll {
    transform: translateY(14px);
  }
}

.story-scroll > h2 {
  margin-top: 14px;
  font-family: var(--serif-sc);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
}

.story-byline {
  margin-top: var(--s4);
}

.story-prose {
  margin-top: var(--s6);
  font-family: var(--serif-sc);
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--ink-soft);
}

.story-prose p {
  margin: 0 0 1.15em;
  text-align: justify;
}

.story-prose h3 {
  margin: 1.9em 0 1em;
  padding-top: 1.3em;
  border-top: 1px solid var(--line);
  font-family: var(--serif-sc);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.story-prose h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.story-loading {
  font-family: var(--body) !important;
  color: var(--muted);
}

@media (max-width: 1020px) {
  .book-card {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .book-card {
    grid-column: span 12;
  }

  .book-cover {
    aspect-ratio: auto;
    min-height: 190px;
    padding: 16px;
  }

  .book-cover__title {
    margin-top: 30px;
    font-size: 1.125rem;
  }
}

@media (max-width: 680px) {
  .story-scroll {
    padding: 58px var(--gutter) 64px;
  }

  .story-prose {
    font-size: 15.5px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — remove movement, keep colour fades
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-shot img,
  .channel-card__art img,
  .video-cover img,
  .audio-art img,
  .button,
  .video-cover__play,
  .round-play,
  .text-link .icon,
  .channel-card__copy .icon,
  .hero-shot__caption,
  .toast,
  .site-nav,
  .site-nav a,
  .age-gate,
  .age-gate__card,
  .video-dialog,
  .video-dialog::backdrop,
  .dialog-layout,
  .story-dialog,
  .story-dialog::backdrop,
  .story-scroll,
  .book-cover {
    transition-duration: 0.01ms;
  }

  .age-gate__card,
  .age-gate__mosaic img,
  .is-liked .icon {
    animation: none;
  }
}
