/* aimiirl.com: official website stylesheet */

:root {
  /* Light archival palette */
  --paper: #f5f0e6;
  --paper-soft: #fbf8f2;
  --paper-warm: #ece4d6;
  --ink: #161a17;
  --ink-muted: #504d46;
  --rule: rgba(22, 26, 23, 0.14);
  --rule-strong: rgba(22, 26, 23, 0.28);

  /* Dark editorial chapter palette */
  --dark-bg: #161a17;
  --dark-surface: #1d241f;
  --dark-forest: #1b2820;
  --dark-ink: #f5f0e6;
  --dark-muted: #b7b0a3;
  --dark-rule: rgba(245, 240, 230, 0.16);
  --dark-rule-strong: rgba(245, 240, 230, 0.34);

  /* Cherry finale ground (10.09:1 AAA with --paper) */
  --cherry-finale: #6b1d29;

  /* Character signature colors (all WCAG AA/AAA verified on respective grounds) */
  --c-aimi: #8e2836;
  --c-aimi-rule: #8e2836;
  --c-aimi-dark: #e67c87;
  --c-basil: #1f6b4a;
  --c-basil-rule: #1f6b4a;
  --c-basil-dark: #86cfa6;
  --c-charlie: #94600f;
  --c-charlie-rule: #b27b19;
  --c-charlie-dark: #e3b36f;

  /* Structural brand accents */
  --sage: #3d5947;
  --lavender: #6c5b8e;
  --lavender-on-dark: #c5b6e8;

  /* Self-hosted display and text families */
  --font-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-jp: "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;

  /* Three consolidated radii (+ 4px print matte) */
  --r-photo: 20px;
  --r-control: 14px;
  --r-pill: 999px;

  --container: 1200px;
  --gutter: 1.25rem;
  --header-h: 58px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  background: var(--dark-bg);
}

@media (prefers-reduced-motion: no-preference) {
  html.js {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

p,
.faq-answer,
.plate-bio {
  text-wrap: pretty;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--c-aimi);
  color: var(--paper);
}

.dark-zone ::selection {
  background: var(--lavender-on-dark);
  color: var(--ink);
}

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

.dark-zone :focus-visible {
  outline-color: var(--lavender-on-dark);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.inline-arrow {
  width: 13px;
  height: 13px;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 200ms var(--ease-out);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-control);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* Architectural Sticky Header (97% cream so dark chapters never turn it muddy gray) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: var(--header-h);
  background: rgba(245, 240, 230, 0.97);
  border-bottom: 1px solid var(--rule);
  transition: border-color 240ms var(--ease-out);
}

html.js .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
}

html:not(.js) .site-header:has(.nav-drawer[open]) {
  position: static;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.35rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
}

.wordmark-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--lavender);
  display: inline-block;
  transform: translateY(-1px);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: baseline;
  padding-block: 0.25rem;
  position: relative;
  transition: color 200ms var(--ease-out);
}

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

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.is-current {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-current::after {
  transform: scaleX(1);
}

/* Native <details> mobile navigation (lightened closed pill, zero JS required) */
.nav-drawer {
  position: relative;
  margin-left: auto;
}

.nav-drawer > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  min-height: 44px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-drawer > summary::-webkit-details-marker {
  display: none;
}

.nav-drawer > summary:hover {
  border-color: var(--rule-strong);
}

.nav-drawer[open] > summary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(220px, calc(100vw - 2 * var(--gutter)));
  max-height: 55dvh;
  overflow-y: auto;
  background: var(--paper-soft);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-control);
  box-shadow: 0 18px 40px rgba(22, 26, 23, 0.14);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-control);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: var(--paper-warm);
}

html:not(.js) .nav-drawer[open] {
  width: 100%;
}

html:not(.js) .nav-drawer[open] > summary {
  display: flex;
  width: fit-content;
  margin-left: auto;
}

html:not(.js) .nav-drawer[open] .mobile-menu {
  position: static;
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  min-width: 0;
  width: 100%;
  box-shadow: none;
}

/* =========================================================================
   DISPLAY TYPOGRAPHY
   ========================================================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 670;
}

.ep-cite {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: 1.04em;
  color: var(--ink);
}

.jp-name {
  font-family: var(--font-jp);
  font-weight: 400;
  color: inherit;
  white-space: nowrap;
  word-break: keep-all;
}

.nobr {
  white-space: nowrap;
}

@media (min-width: 22rem) {
  .nowrap {
    white-space: nowrap;
  }
}

h1 em,
h2 em,
.closing-headline em {
  font-style: normal;
  font-weight: 740;
}

#hero-title em {
  color: var(--c-aimi);
}

h1 {
  font-size: clamp(1.9rem, 5.1vw, 4.6rem);
  font-weight: 670;
  line-height: 0.98;
  letter-spacing: -0.048em;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.95rem, 4.2vw, 3.45rem);
  font-weight: 670;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h3,
h4 {
  font-size: clamp(1.22rem, 1.85vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

/* Mobile height-gated masthead scale: larger at 390x844 while preserving 320x568 fold */
@media (max-width: 767px) and (min-height: 700px) {
  h1 {
    font-size: clamp(2.15rem, 9.4vw, 2.65rem);
  }
}

/* =========================================================================
   CHAPTER 1: DOMINANT EDGE-BLEED HERO
   ========================================================================= */
.hero {
  padding-top: 1.1rem;
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-lead {
  margin: 1.25rem 0 1.25rem;
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  line-height: 1.52;
  color: var(--ink-muted);
  max-width: 44ch;
}

/* Sentence-case label (no tracked-uppercase eyebrow voice) */
.platform-heading {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}

/* Unified 4-cell segmented watch bar (solid dark ink in Hero, inverted cream in Cherry Finale).
   Container-queried: 1 col (<17.5rem), 2x2 (17.5rem-47.99rem), 4x1 (>=48rem). */
.dock-container {
  container-type: inline-size;
  width: 100%;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: var(--r-control);
  overflow: hidden;
  background: var(--ink);
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 58px;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  color: var(--paper);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
  min-width: 0;
  position: relative;
}

/* Internal hairline dividers for default 2x2 layout */
.platform-btn:nth-child(2n) {
  box-shadow: inset 1px 0 0 rgba(245, 240, 230, 0.16);
}

.platform-btn:nth-child(n + 3) {
  box-shadow: inset 0 1px 0 rgba(245, 240, 230, 0.16);
}

.platform-btn:nth-child(4) {
  box-shadow: inset 1px 0 0 rgba(245, 240, 230, 0.16), inset 0 1px 0 rgba(245, 240, 230, 0.16);
}

.platform-btn:hover {
  background: #232a25;
}

.platform-btn:active {
  background: #2a322c;
}

.platform-btn:focus-visible {
  outline-offset: -3px;
  z-index: 2;
}

.platform-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--paper);
  transition: color 200ms var(--ease-out);
}

.platform-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.18;
  flex: 1;
}

.platform-name {
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: break-word;
}

.platform-handle {
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--dark-muted);
  margin-top: 0.14rem;
  overflow-wrap: anywhere;
  transition: color 200ms var(--ease-out);
}

.platform-arrow {
  width: 13px;
  height: 13px;
  color: var(--dark-muted);
  flex-shrink: 0;
  transition: transform 220ms var(--ease-out), color 200ms var(--ease-out);
}

.platform-btn:hover .platform-arrow {
  color: var(--paper);
  transform: translate(2.5px, -2.5px);
}

/* Inverted warm cream watch bar inside the Cherry Finale */
.platform-grid--light {
  background: var(--paper-soft);
  border-color: rgba(245, 240, 230, 0.35);
}

.platform-grid--light .platform-btn {
  background: var(--paper-soft);
  color: var(--ink);
}

.platform-grid--light .platform-btn:nth-child(2n) {
  box-shadow: inset 1px 0 0 var(--rule);
}

.platform-grid--light .platform-btn:nth-child(n + 3) {
  box-shadow: inset 0 1px 0 var(--rule);
}

.platform-grid--light .platform-btn:nth-child(4) {
  box-shadow: inset 1px 0 0 var(--rule), inset 0 1px 0 var(--rule);
}

.platform-grid--light .platform-icon {
  color: var(--ink);
}

.platform-grid--light .platform-handle,
.platform-grid--light .platform-arrow {
  color: var(--ink-muted);
}

.platform-grid--light .platform-btn:hover,
.platform-grid--light .platform-btn:active {
  background: var(--paper-warm);
}

.platform-grid--light .platform-btn:hover .platform-arrow {
  color: var(--ink);
}

.platform-grid--light .platform-btn:focus-visible {
  outline-color: var(--lavender);
}

/* Dominant Borderless Hero Photograph (edge-to-edge on mobile, right-bleed on desktop) */
.hero-figure {
  margin: 0;
}

.hero-frame {
  position: relative;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
  border-radius: 0;
}

.hero-frame-inner {
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: var(--paper-warm);
  aspect-ratio: 3 / 2;
}

.hero-frame-inner picture,
.plate-photo picture,
.world-photo picture,
.screening-thumb picture,
.closing-polaroid picture,
.error-polaroid picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (max-width: 767px) {
  .hero {
    padding-bottom: 0;
  }

  .hero-figure {
    margin-inline: calc(-1 * var(--gutter));
  }

  .hero-frame,
  .hero-frame-inner {
    border-radius: 0;
  }
}

/* =========================================================================
   KINETIC STUDIO RIBBON (ACCESSIBLE PAUSE CONTROL + STATIC WRAPPED FALLBACK)
   ========================================================================= */
.studio-ribbon {
  background: var(--dark-bg);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-rule);
  border-bottom: 1px solid var(--dark-rule);
  padding-block: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ribbon-viewport {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.ribbon-track {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.ribbon-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 1.15rem;
  padding-inline: var(--gutter);
  min-width: 0;
}

.ribbon-group--dup,
.ribbon-group:not(.ribbon-group--dup) > .ribbon-sep:last-child {
  display: none;
}

.ribbon-toggle {
  display: none;
  appearance: none;
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  min-height: 44px;
  min-width: 68px;
  padding: 0.35rem 0.95rem;
  margin-left: 0.5rem;
  margin-right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  border-radius: var(--r-pill);
  border: 1px solid var(--dark-rule-strong);
  background: var(--dark-surface);
  color: var(--dark-ink);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ribbon-toggle:hover,
.studio-ribbon.is-paused .ribbon-toggle {
  background: var(--dark-ink);
  color: var(--dark-bg);
  border-color: var(--dark-ink);
}

.ribbon-item {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--dark-muted);
  text-align: center;
}

.ribbon-item--display {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: 1.06rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dark-ink);
}

@media (max-width: 479px) {
  .ribbon-item {
    font-size: 0.78rem;
  }

  .ribbon-item--display {
    font-size: 0.96rem;
  }
}

.ribbon-sep {
  width: 5px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--c-aimi-dark);
  flex-shrink: 0;
}

/* Animate only when JS provides the pause control AND user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  html.js .studio-ribbon {
    padding-block: 0.55rem;
  }

  html.js .ribbon-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 86%, transparent);
  }

  @media (min-width: 768px) {
    html.js .ribbon-viewport {
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent);
      mask-image: linear-gradient(90deg, transparent, #000 6%, #000 88%, transparent);
    }

    html.js .ribbon-toggle {
      margin-left: 1rem;
    }
  }

  html.js .ribbon-track {
    width: max-content;
    justify-content: flex-start;
    gap: 0;
    animation: ribbon-drift 34s linear infinite;
  }

  html.js .ribbon-group {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 1.45rem;
    padding-inline: 0;
    padding-right: 1.45rem;
  }

  @media (min-width: 768px) {
    html.js .ribbon-group {
      gap: 2.25rem;
      padding-right: 2.25rem;
    }
  }

  html.js .ribbon-group--dup {
    display: flex;
  }

  html.js .ribbon-group > .ribbon-sep:last-child {
    display: block;
  }

  html.js .ribbon-item {
    white-space: nowrap;
  }

  html.js .ribbon-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  html.js .studio-ribbon.is-paused {
    flex-wrap: wrap;
    padding-block: 0.72rem;
  }

  html.js .studio-ribbon.is-paused .ribbon-viewport {
    overflow: visible;
    flex-basis: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  @media (min-width: 768px) {
    html.js .studio-ribbon.is-paused {
      flex-wrap: nowrap;
      padding-block: 0.55rem;
    }

    html.js .studio-ribbon.is-paused .ribbon-viewport {
      flex-basis: auto;
    }
  }

  html.js .studio-ribbon.is-paused .ribbon-track {
    animation: none;
    width: 100%;
    justify-content: center;
    transform: none;
  }

  html.js .studio-ribbon.is-paused .ribbon-group {
    flex-wrap: wrap;
    flex-shrink: 1;
    justify-content: center;
    gap: 0.45rem 1.15rem;
    padding-inline: var(--gutter);
    max-width: 100%;
  }

  html.js .studio-ribbon.is-paused .ribbon-group--dup,
  html.js .studio-ribbon.is-paused .ribbon-group > .ribbon-sep:last-child {
    display: none;
  }

  html.js .studio-ribbon.is-paused .ribbon-item {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  @media (max-width: 767px) {
    html.js .studio-ribbon.is-paused .ribbon-toggle {
      order: -1;
      margin-left: auto;
      margin-right: var(--gutter);
    }
  }
}

@keyframes ribbon-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================================
   CHAPTER 2: SHARED-FLOOR CAST LINEUP, OVERHEARD & ALSO IN THE BUILDING
   ========================================================================= */
.chapter {
  padding-block: clamp(3.25rem, 6.5vw, 5.5rem);
}

#cast {
  padding-top: clamp(2.5rem, 4.5vw, 3.75rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.chapter--dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
}

.chapter--cherry {
  background: var(--cherry-finale);
  color: var(--paper);
}

.chapter-head {
  text-wrap: wrap;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.chapter--dark .chapter-head {
  border-bottom-color: var(--dark-rule);
}

/* Cast Lookbook (Shared-floor subgrid with stepped photo tops on desktop) */
.lookbook-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.cast-plate {
  display: flex;
  flex-direction: column;
  --char-color: var(--c-aimi);
  --char-rule: var(--c-aimi-rule);
}

.cast-plate--aimi {
  --char-color: var(--c-aimi);
  --char-rule: var(--c-aimi-rule);
}

.cast-plate--basil {
  --char-color: var(--c-basil);
  --char-rule: var(--c-basil-rule);
}

.cast-plate--charlie {
  --char-color: var(--c-charlie);
  --char-rule: var(--c-charlie-rule);
}

.plate-photo {
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--paper-warm);
  border: 0;
  aspect-ratio: 4 / 4.4;
}

.plate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 650ms var(--ease-out);
}

/* Mobile compact crops for Basil & Charlie: trim empty headroom and save scroll height */
@media (max-width: 767px) {
  .cast-plate--basil .plate-photo,
  .cast-plate--charlie .plate-photo {
    aspect-ratio: 1 / 1;
  }

  .cast-plate--basil .plate-photo img {
    object-position: 50% 45%;
  }

  .cast-plate--charlie .plate-photo img {
    object-position: 50% 35%;
  }
}

.cast-plate--aimi:hover .plate-photo img {
  transform: rotate(-0.5deg) scale(1.025);
}

.cast-plate--basil:hover .plate-photo img {
  transform: rotate(0.5deg) scale(1.025);
}

.cast-plate--charlie:hover .plate-photo img {
  transform: rotate(-0.4deg) scale(1.025);
}

.plate-body {
  padding-top: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plate-name {
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 670;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.plate-role {
  margin: 0.3rem 0 0.85rem;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: 1.05rem;
  color: var(--char-color);
}

.plate-bio {
  margin: 0 0 1.15rem;
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--ink-muted);
  flex: 1;
}

/* Split label/value character fact atop the 3px signature rule */
.plate-fact {
  margin: 0;
  padding-top: 0.72rem;
  border-top: 3px solid var(--char-rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
}

.plate-fact-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-muted);
}

.plate-fact-value {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: 1.06rem;
  color: var(--ink);
}

/* Deep Forest Overheard Exchange (all 3 voices visible in screenplay cadence) */
.overheard-stage {
  margin-top: clamp(3rem, 6vw, 4.75rem);
  background: var(--dark-forest);
  color: var(--dark-ink);
  border-radius: var(--r-photo);
  padding: clamp(1.75rem, 4.5vw, 3.25rem);
  position: relative;
}

.overheard-top {
  padding-bottom: 1.25rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--dark-rule);
}

.overheard-label {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--dark-ink);
}

.overheard-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 2.8vw, 2.25rem);
}

.overheard-panel figure {
  margin: 0;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
}

.overheard-panel:nth-child(2) figure {
  padding-left: clamp(0rem, 6vw, 5rem);
}

.overheard-panel:nth-child(3) figure {
  padding-left: clamp(0rem, 12vw, 10rem);
}

/* Tracked-uppercase voice #1 of 3: screenplay speaker cue */
.overheard-speaker {
  order: -1;
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.overheard-panel--aimi .overheard-speaker {
  color: var(--c-aimi-dark);
}

.overheard-panel--basil .overheard-speaker {
  color: var(--c-basil-dark);
}

.overheard-panel--charlie .overheard-speaker {
  color: var(--c-charlie-dark);
}

.overheard-quote {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: clamp(1.25rem, 2.25vw, 1.85rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--dark-ink);
  max-width: 32ch;
  text-indent: -0.42em;
}

@media (max-width: 639px) {
  .overheard-stage {
    padding: clamp(16px, 5vw, 28px);
  }

  .overheard-panel figure {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
    padding-left: 0 !important;
  }

  .overheard-speaker {
    text-align: left;
  }

  /* Keep hanging opening quote on mobile inside the 1.75rem slab padding */
  .overheard-quote {
    padding-left: 0.42em;
    overflow-wrap: anywhere;
  }
}

/* =========================================================================
   ALSO IN THE BUILDING: PINNED SNAPSHOTS (KEVIN + MEWS)
   ========================================================================= */
.world-strip-wrap,
.screening-wrap {
  container-type: inline-size;
  width: 100%;
}

.world-strip-wrap {
  margin-top: clamp(2.75rem, 5.5vw, 4.25rem);
  padding-top: clamp(2.25rem, 4.5vw, 3.25rem);
  border-top: 1px solid var(--rule);
}

.world-heading {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.world-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

.world-feature {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.world-badge-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
  min-width: 0;
}

.world-subtitle {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink-muted);
}

/* Tracked-uppercase voice #2 of 3: Mews fictional disclaimer pill (sole chip on page) */
.world-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.24rem 0.68rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(108, 91, 142, 0.45);
  color: var(--lavender);
  background: rgba(108, 91, 142, 0.08);
  line-height: 1.3;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
}

.world-text {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 44ch;
}

/* Pinned polaroid print snapshots */
.world-photo {
  width: 112px;
  padding: 6px 6px 18px;
  background: #fffdf8;
  border-radius: 4px;
  border: 0;
  box-shadow: 0 14px 28px -12px rgba(22, 26, 23, 0.28), 0 1px 2px rgba(22, 26, 23, 0.08);
  transition: transform 350ms var(--ease-out);
}

.world-photo picture {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-warm);
}

.world-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.world-feature--kevin .world-photo {
  transform: rotate(-2deg);
}

.world-feature--mews .world-photo {
  transform: rotate(1.5deg);
}

.world-feature:hover .world-photo {
  transform: rotate(0deg) translateY(-2px);
}

/* =========================================================================
   CHAPTER 3: DARK SCREENING ROOM (4-UP POSTER WALL + JOINED MINI WATCH BAR)
   ========================================================================= */
.screening-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.screening-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 0 0 1.5rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--dark-rule);
  border-radius: 0;
}

.screening-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.screening-thumb {
  width: 108px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-control);
  overflow: hidden;
  border: 0;
  background: var(--dark-surface);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
}

.screening-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.screening-card:hover .screening-thumb img,
.screening-card:focus-within .screening-thumb img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.screening-meta {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
}

/* Tracked-uppercase voice #3 of 3: episode cast credit line */
.screening-cast {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.cast-tag--aimi {
  color: var(--c-aimi-dark);
}

.cast-tag--basil {
  color: var(--c-basil-dark);
}

.cast-tag--charlie {
  color: var(--c-charlie-dark);
}

.screening-title {
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  font-weight: 670;
  color: var(--dark-ink);
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
}

.screening-quote {
  margin: 0.1rem 0 0.75rem;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 520;
  font-size: clamp(0.95rem, 1.3vw, 1.04rem);
  line-height: 1.42;
  color: var(--dark-muted);
  text-indent: -0.38em;
  padding-left: 0.38em;
}

/* Joined 4-cell segmented mini watch bar (matches Hero & Finale platform idiom) */
.ep-watch-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: 0;
  border: 1px solid var(--dark-rule-strong);
  border-radius: var(--r-control);
  overflow: hidden;
  margin-top: auto;
  max-width: 100%;
}

.ep-icon-link {
  display: grid;
  place-items: center;
  width: auto;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dark-muted);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.ep-icon-link + .ep-icon-link {
  box-shadow: inset 1px 0 0 var(--dark-rule);
}

.screening-card:hover .ep-icon-link,
.screening-card:focus-within .ep-icon-link {
  color: var(--dark-ink);
}

.ep-icon-link:hover {
  background: var(--dark-ink);
  color: var(--dark-bg) !important;
}

.ep-icon-link:active {
  background: rgba(245, 240, 230, 0.14);
  color: var(--dark-ink);
}

.ep-icon-link:focus-visible {
  outline-offset: -3px;
  z-index: 2;
}

.ep-icon {
  width: 18px;
  height: 18px;
}

/* Quiet single editorial channel line inside Screening Room (2x2 on mobile, dotted row >=600px) */
.dark-channel-line {
  container-type: inline-size;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.35rem;
}

.dark-channel-label {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dark-muted);
}

.dark-channel-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.45rem 1.75rem;
  justify-content: start;
}

.dark-channel-inline li {
  display: inline-flex;
  align-items: baseline;
}

.channel-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--dark-ink);
  text-decoration: none;
  padding-block: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.channel-text-link:hover {
  border-bottom-color: var(--dark-ink);
}

.channel-text-link:hover .inline-arrow {
  transform: translate(2px, -2px);
}

@media (min-width: 600px) {
  .dark-channel-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0;
  }

  .dark-channel-inline li + li::before {
    content: "\00B7";
    color: var(--dark-muted);
    margin-inline: 0.8rem;
    pointer-events: none;
  }
}

/* =========================================================================
   CHAPTER 4: ASYMMETRIC HAIRLINE FAQ
   ========================================================================= */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

.faq-aside {
  align-self: start;
}

.faq-aside h2 {
  font-size: clamp(1.75rem, 4.6vw, 3.65rem);
  line-height: 1.02;
}

.faq-list {
  border-top: 1px solid var(--rule-strong);
}

.faq-item {
  border-bottom: 1px solid var(--rule-strong);
}

/* Flush rule ends with inset focus ring strictly inside hairlines on all four sides */
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  margin-inline: 0;
  padding: 1.35rem 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.85vw, 1.38rem);
  font-weight: 670;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: color 180ms ease;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary:hover {
  color: var(--c-aimi);
}

.faq-item > summary:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: -4px;
  border-radius: 6px;
}

/* True geometric CSS + / x icon (rotates symmetrically around its exact center) */
.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--sage);
  transition: transform 240ms var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
}

.faq-item[open] > summary .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  margin: 0;
  padding: 0 0.6rem 1.4rem;
  color: var(--ink-muted);
  font-size: 0.99rem;
  line-height: 1.64;
  max-width: 60ch;
}

/* Behind the scenes */
.chapter--workflow {
  background: #efe9de;
}

.chapter--workflow > .container {
  container-type: inline-size;
}

.chapter--workflow h2 {
  text-wrap: wrap;
}

.workflow-steps {
  list-style: none;
  display: grid;
  gap: 1.1rem;
  padding: 0;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.25rem);
}

.workflow-steps li {
  border-block-start: 1px solid var(--rule-strong);
  padding-block-start: 0.95rem;
}

.workflow-steps h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.2;
}

.workflow-steps p,
.staging-heading p {
  margin: 0.58rem 0 0;
  line-height: 1.55;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.workflow-steps p {
  max-width: 41ch;
}

.staging-board {
  padding: clamp(0.85rem, 3vw, 2rem);
  border-radius: var(--r-photo);
  background: #24312a;
  color: var(--dark-ink);
}

.staging-heading {
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
}

.staging-heading p {
  color: var(--dark-muted);
  max-width: 62ch;
}

.staging-views,
.staging-cameras,
.reference-grid {
  display: grid;
  gap: clamp(0.65rem, 2vw, 1.15rem);
}

.staging-views {
  align-items: stretch;
}

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

.staging-views figure,
.reference-grid figure {
  min-width: 0;
  margin: 0;
}

.workflow-image {
  display: block;
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 0.46rem;
}

.workflow-image img {
  display: block;
  width: 100%;
  border-radius: inherit;
}

.workflow-enlarge {
  position: absolute;
  inset-block-start: 0.42rem;
  inset-inline-end: 0.42rem;
  box-sizing: content-box;
  width: 13px;
  height: 13px;
  padding: 6px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
}

.staging-views .workflow-image {
  border-color: var(--dark-rule-strong);
}

.staging-plan .workflow-image {
  display: grid;
  align-items: center;
  background-color: #46514a;
  min-block-size: 0;
}

.staging-views figcaption,
.reference-grid figcaption {
  padding-block-start: 0.52rem;
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.35;
}

.staging-views figcaption span,
.reference-grid figcaption span {
  display: block;
  font-weight: 500;
  font-size: 0.84rem;
  margin-block-start: 0.15rem;
  color: var(--ink-muted);
}

.staging-views figcaption span {
  color: var(--dark-muted);
}

.workflow-references {
  margin-block-start: clamp(2.25rem, 5vw, 4rem);
}

.workflow-references h3 {
  margin-block-end: 1rem;
}

.reference-grid img {
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #e2dacc;
}

@container (min-width: 30rem) {
  .workflow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.6rem;
  }
}

@container (min-width: 48rem) {
  .workflow-steps,
  .reference-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .staging-views {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .staging-plan {
    display: grid;
    grid-template-rows: 1fr auto;
    padding-bottom: 1.25rem;
  }
}

@container (max-width: 16rem) {
  .staging-cameras,
  .reference-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================================
   CHERRY FINALE & FOOTER
   ========================================================================= */
.closing-poster {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
  align-items: center;
}

.closing-headline {
  font-size: clamp(1.9rem, 14.8vw, 3.9rem);
  font-weight: 670;
  line-height: 0.95;
  letter-spacing: -0.048em;
  color: var(--paper);
}

.error-copy .studio-cta {
  margin-top: 1.5rem;
}

.closing-polaroids {
  --print-w: clamp(132px, 13vw, 180px);
  display: none;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
}

.closing-polaroid {
  width: var(--print-w);
  padding: 7px 7px 22px;
  background: #fffdf8;
  border-radius: 4px;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.closing-polaroid + .closing-polaroid {
  margin-left: calc(var(--print-w) * -0.24);
}

.closing-polaroid picture {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-warm);
}

.closing-polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-polaroid--aimi {
  transform: rotate(-4deg);
  margin-top: 1.25rem;
  z-index: 1;
}

.closing-polaroid--aimi img {
  object-position: 50% 18%;
}

.closing-polaroid--basil {
  transform: rotate(2deg) translateY(-0.75rem);
  z-index: 3;
}

.closing-polaroid--basil img {
  object-position: 50% 30%;
  scale: 1.08;
  transform-origin: 50% 60%;
}

.closing-polaroid--charlie {
  transform: rotate(-3deg);
  margin-top: 2.25rem;
  z-index: 2;
}

.closing-polaroid--charlie img {
  object-position: 50% 42%;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .closing-polaroid {
    transition: transform 420ms var(--ease-out);
  }

  .closing-polaroids:hover .closing-polaroid--aimi {
    transform: rotate(-6deg) translateX(-8px);
  }

  .closing-polaroids:hover .closing-polaroid--basil {
    transform: rotate(0deg) translateY(-1.1rem);
  }

  .closing-polaroids:hover .closing-polaroid--charlie {
    transform: rotate(-1deg) translateX(8px);
  }
}

/* Dark Colophon Footer (borderless join into cherry finale + monumental sign-off mark) */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  border-top: 0;
  padding-block: clamp(2.75rem, 5vw, 4rem) 2.75rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--dark-rule);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 12.5vw, 3.3rem);
  font-weight: 680;
  letter-spacing: -0.048em;
  color: var(--dark-ink);
  line-height: 0.95;
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
}

.site-footer .wordmark-dot {
  background: var(--lavender-on-dark);
  width: 0.14em;
  height: 0.14em;
  min-width: 8px;
  min-height: 8px;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--dark-muted);
  padding-block: 0.25rem;
  transition: color 180ms ease;
}

.footer-top-link:hover {
  color: var(--dark-ink);
}

.footer-top-link:hover .inline-arrow {
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* =========================================================================
   404 EDITORIAL SPREAD (PINNED BASIL POLAROID ON WARM CREAM)
   ========================================================================= */
body.error-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.error-page .site-header {
  border-bottom-color: transparent;
}

.error-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(2rem, 5vh, 3.5rem);
}

.error-page .site-footer {
  padding-block: 1.75rem 2rem;
}

.error-page .footer-mark {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.error-spread {
  max-width: 760px;
  width: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: start;
}

.error-polaroid {
  width: clamp(160px, 42vw, 235px);
  padding: 9px 9px 26px;
  background: #fffdf8;
  border-radius: 4px;
  box-shadow: 0 22px 44px -18px rgba(22, 26, 23, 0.3), 0 1px 3px rgba(22, 26, 23, 0.1);
  transform: rotate(-3deg);
}

.error-polaroid picture {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-warm);
}

.error-polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.1;
  transform-origin: 50% 60%;
}

.error-copy h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.02;
}

.studio-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.72rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: background-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.studio-cta:hover {
  background: var(--cherry-finale);
  transform: translateY(-1px);
}

.studio-cta:hover .inline-arrow {
  transform: translateX(3px);
}

@media (hover: none) {
  .platform-btn:active .platform-arrow {
    transform: translate(2px, -2px);
  }

  .studio-cta:active {
    background: var(--cherry-finale);
  }
}

/* Progressive scroll reveal & smooth FAQ accordion (visible/instant on no-JS, reduced motion, focus, print) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 580ms var(--ease-out), transform 580ms var(--ease-out);
  }

  html.js .lookbook-grid .reveal:nth-child(2) {
    transition-delay: 90ms;
  }

  html.js .lookbook-grid .reveal:nth-child(3) {
    transition-delay: 180ms;
  }

  html.js .screening-card.reveal:nth-child(2) {
    transition-delay: 70ms;
  }

  html.js .screening-card.reveal:nth-child(3) {
    transition-delay: 140ms;
  }

  html.js .screening-card.reveal:nth-child(4) {
    transition-delay: 210ms;
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  html.js .reveal:focus-within {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }

  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

@media print {
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */

/* Narrow mobile (<= 359px): guarantees all 4 hero buttons & photo peek fit above 568px */
@media (max-width: 359px) {
  :root {
    --gutter: 0.85rem;
  }

  .hero {
    padding-top: 0.75rem;
  }

  h1 {
    font-size: 1.62rem;
  }

  .hero-lead {
    font-size: 0.89rem;
    margin: 0.65rem 0 0.85rem;
    line-height: 1.4;
  }

  .platform-heading {
    font-size: 0.86rem;
    margin-bottom: 0.5rem;
  }

  .platform-btn {
    padding: 0.5rem 0.52rem;
    gap: 0.38rem;
    min-height: 52px;
  }

  .platform-icon {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  .platform-name {
    font-size: 0.83rem;
  }

  .platform-handle {
    font-size: 0.72rem;
  }

  .platform-arrow {
    display: none;
  }

  .screening-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .screening-thumb {
    width: 78px;
  }

  .world-photo {
    width: 86px;
    padding: 5px 5px 14px;
  }
}

/* Mobile tap targets: bring secondary links up to the 44px touch standard */
@media (max-width: 767px) {
  .channel-text-link,
  .footer-top-link {
    min-height: 44px;
  }
}

/* Landscape phones & small tablets (600px - 767px): side-by-side cast plates save ~1,600px of scroll */
@media (min-width: 600px) and (max-width: 767px) {
  .cast-plate {
    display: grid;
    grid-template-columns: minmax(0, min(42%, 14.5rem)) minmax(0, 1fr);
    gap: 0 1.5rem;
    align-items: start;
  }

  .cast-plate .plate-photo,
  .cast-plate--basil .plate-photo,
  .cast-plate--charlie .plate-photo {
    aspect-ratio: 4 / 5;
  }

  .cast-plate--basil .plate-photo img {
    object-position: 50% 20%;
    scale: 1.12;
    transform-origin: 50% 62%;
  }

  .cast-plate--charlie .plate-photo img {
    object-position: 50% 20%;
    scale: 1.1;
    transform-origin: 50% 85%;
  }

  .plate-body {
    padding-top: 0.15rem;
    height: 100%;
  }
}

/* Mid-width finale & footer smooth monotonic scale (climbs smoothly into 960px desktop values) */
@media (min-width: 600px) and (max-width: 959px) {
  .closing-headline {
    font-size: clamp(3.9rem, 2.4rem + 3.9vw, 4.4rem);
  }

  .footer-mark {
    font-size: clamp(3.3rem, 2.3rem + 2.7vw, 3.6rem);
  }

  .closing-polaroids {
    --print-w: 120px;
    display: flex;
    justify-content: flex-start;
    padding-left: 0.6rem;
    padding-right: 0;
    padding-block: 0.25rem 0.75rem;
  }
}

/* Tablet (768px - 959px) */
@media (min-width: 768px) {
  :root {
    --gutter: 1.85rem;
    --header-h: 62px;
  }

  .nav-drawer {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-frame {
    border-radius: var(--r-photo);
  }

  .lookbook-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    gap: 0 1.65rem;
    align-items: end;
  }

  .cast-plate {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .plate-body {
    display: contents;
  }

  .plate-photo {
    aspect-ratio: 4 / 5;
    align-self: end;
  }

  .plate-name {
    margin-top: 1.15rem;
    align-self: start;
  }

  .plate-role,
  .plate-bio {
    align-self: start;
  }

  .plate-fact {
    align-self: end;
  }

  .faq-layout {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 3rem;
  }

  .faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .error-spread {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3.25rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

/* Tablet-only headline, measure & cast crop tuning */
@media (min-width: 768px) and (max-width: 959px) {
  h1 {
    font-size: clamp(2.6rem, 6.4vw, 3.4rem);
  }

  .hero-lead {
    max-width: 52ch;
  }

  .cast-plate--basil .plate-photo img {
    scale: 1.12;
    transform-origin: 50% 62%;
  }

  .cast-plate--charlie .plate-photo img {
    scale: 1.1;
    transform-origin: 50% 85%;
  }
}

/* Desktop (>= 960px) */
@media (min-width: 960px) {
  :root {
    --gutter: 2.25rem;
    --header-h: 66px;
  }

  .hero {
    padding-top: 2.25rem;
    padding-bottom: clamp(2rem, 2.8vw, 2.75rem);
  }

  .hero-lead {
    margin-top: 1.35rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
  }

  /* Dominant right-bleed hero photo (clipped safely by .hero overflow-x: clip) */
  .hero-figure {
    margin-right: calc(-1 * (max(0px, (100vw - var(--container)) / 2) + var(--gutter)));
  }

  .hero-frame {
    border-radius: 28px 0 0 28px;
  }

  /* Shared-floor subgrid cast lineup: stepped photo tops on desktop */
  .lookbook-grid {
    grid-template-columns: 1.12fr 1fr 1fr;
    gap: 0 clamp(1.5rem, 2.6vw, 2.5rem);
  }

  .cast-plate--aimi .plate-photo {
    aspect-ratio: 4 / 5.35;
  }

  .cast-plate--basil .plate-photo {
    aspect-ratio: 4 / 4.8;
  }

  .cast-plate--basil .plate-photo img {
    scale: 1.12;
    transform-origin: 50% 62%;
  }

  .cast-plate--charlie .plate-photo {
    aspect-ratio: 4 / 4.35;
  }

  .cast-plate--charlie .plate-photo img {
    object-position: 50% 72%;
  }

  .plate-name {
    margin-top: 1.2rem;
  }

  /* Cherry Finale two-column climax with pinned polaroid cluster */
  .closing-poster {
    grid-template-columns: 1.25fr 1fr;
    gap: 2.5rem 3rem;
    align-items: center;
  }

  .closing-poster .dock-container {
    grid-column: 1 / -1;
  }

  .closing-headline {
    font-size: clamp(4.4rem, 6.2vw, 6.2rem);
  }

  .footer-mark {
    font-size: clamp(3.6rem, 5.2vw, 5.25rem);
  }

  .closing-polaroids {
    display: flex;
  }
}

/* =========================================================================
   CONTAINER-QUERY LAYOUT ADAPTATION (AFTER MEDIA QUERIES FOR 200% TEXT ZOOM)
   ========================================================================= */

/* Narrow container / 200% zoom: single column cleanly */
@container (max-width: 17.5rem) {
  .platform-grid,
  .world-feature,
  .screening-card {
    grid-template-columns: 1fr;
  }

  .platform-btn:nth-child(n) {
    box-shadow: none;
  }

  .platform-btn + .platform-btn {
    box-shadow: inset 0 1px 0 rgba(245, 240, 230, 0.16);
  }

  .platform-grid--light .platform-btn + .platform-btn {
    box-shadow: inset 0 1px 0 var(--rule);
  }

  .world-feature,
  .screening-card {
    gap: 0.75rem;
  }

  .world-photo,
  .screening-thumb {
    width: 100%;
    max-width: 160px;
  }

  .ep-watch-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .world-chip {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* 4-across unified platform bar ONLY when container >= 48rem (keeps tablet 768px in crisp 2x2) */
@container (min-width: 48rem) {
  .platform-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .platform-btn:nth-child(n) {
    box-shadow: none;
  }

  .platform-btn + .platform-btn {
    box-shadow: inset 1px 0 0 rgba(245, 240, 230, 0.16);
  }

  .platform-grid--light .platform-btn + .platform-btn {
    box-shadow: inset 1px 0 0 var(--rule);
  }
}

/* Tablet poster grid (2x2 borderless 4:5 posters; meta & mini watch bars fill full poster width) */
@container (min-width: 40rem) {
  .screening-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.75rem;
    align-items: stretch;
  }

  .screening-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.05rem;
    padding: 0;
    border-bottom: 0;
  }

  .screening-thumb {
    width: 100%;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.72);
  }

  .screening-meta {
    flex: 1;
    align-self: stretch;
    width: 100%;
    padding-top: 0.9rem;
    border-top: 1px solid var(--dark-rule);
  }

  .ep-watch-row {
    width: 100%;
  }

  /* Hang opening quote outside column left edge on poster cards */
  .screening-quote {
    padding-left: 0;
  }
}

/* Four-across poster wall from ~904px (52rem container) with shared watch-bar floor */
@container (min-width: 52rem) {
  .screening-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: stretch;
  }

  .screening-card:nth-child(2n) {
    margin-top: 3rem;
  }

  .screening-title {
    font-size: 1.12rem;
    min-height: calc(2 * 1.18em);
  }

  .screening-quote {
    font-size: 0.95rem;
  }
}

@container (min-width: 64rem) {
  .screening-title {
    font-size: 1.24rem;
  }

  .screening-quote {
    font-size: 1.04rem;
  }
}

/* Single-column side-by-side pinned snapshots on tablet & small desktop (print beside generous text) */
@container (min-width: 36rem) {
  .world-feature {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0.45rem 1.85rem;
    align-items: start;
  }

  .world-visual {
    grid-row: 1 / 3;
    align-self: start;
  }

  .world-badge-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem;
    padding-top: 0.45rem;
  }

  .world-text {
    grid-column: 2;
  }

  .world-photo {
    width: 168px;
    padding: 8px 8px 22px;
  }
}

/* Two-column pinned snapshots only when each text column has >= 200px */
@container (min-width: 58rem) {
  .world-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .world-photo {
    width: 200px;
    padding: 9px 9px 26px;
  }
}

@container (min-width: 68rem) {
  .world-photo {
    width: 220px;
    padding: 10px 10px 28px;
  }
}

/* Reduced motion: keep static polaroid tilts, disable transitions and hover movement */
@media (prefers-reduced-motion: reduce) {
  html,
  html.js {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .world-feature--kevin:hover .world-photo {
    transform: rotate(-2deg);
  }

  .world-feature--mews:hover .world-photo {
    transform: rotate(1.5deg);
  }

  .cast-plate:hover .plate-photo img,
  .screening-card:hover .screening-thumb img,
  .screening-card:focus-within .screening-thumb img,
  .platform-btn:hover .platform-arrow,
  .channel-text-link:hover .inline-arrow,
  .footer-top-link:hover .inline-arrow,
  .studio-cta:hover,
  .studio-cta:hover .inline-arrow {
    transform: none;
  }
}
