/* Mehmed: Fetihler Sultanı — hero page
   Ported from the Claude Design project "FSM Dizisi Hero Sayfası" (FSM Hero.dc.html). */

:root {
  /* brand palette (locked) mapped to roles */
  --surface: #0a0806;
  --surface-stage: #050403;
  --surface-card: #120e0a;
  --ink: #f3e7cf;
  --ink-2: #e9dcc4;
  --ink-soft: #d9cab0;
  --ink-muted: #bfae90;
  --ink-dim: #8f826c;
  --ink-faint: #857963; /* #6f6553 lifted on the same hue for 4.5:1 */
  --brand-gold: #d8b77a;
  --color-accent: #d8b77a;
  --color-accent-hover: #f1d9a6;

  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Manrope', sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-x: clamp(20px, 6vw, 96px);

  /* viewport-height unit that ignores mobile browser toolbars */
  --vh: 1vh;

  /* scroll-driven hero state, written by fsm.js */
  --p: 0;
  --a: 0;
  --b: 0;
  --c: 0;
  --f: 0;
}

@supports (height: 100svh) {
  :root { --vh: 1svh; }
}

html:not(.js) {
  --p: 1;
  --a: 1;
  --b: 1;
  --c: 1;
}

html,
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--brand-gold); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

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

.fsm-lock { overflow: hidden; }
.fsm-paused body * { animation-play-state: paused !important; }

@keyframes fsmFadeIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes fsmRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fsmCue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--color-accent);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--surface); }

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  background: var(--surface);
  transition: opacity 1.3s cubic-bezier(.6, 0, .2, 1);
}
.fsm-lock .loader,
.loader.is-out { display: flex; }
.loader.is-out { opacity: 0; pointer-events: none; }
.loader[hidden] { display: none !important; }

.loader__halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 40% at 50% 46%, oklch(0.45 0.07 70 / 0.22), transparent 70%);
  pointer-events: none;
}
.loader__mark {
  position: relative;
  width: min(78vw, 680px);
  transition: transform 1.6s cubic-bezier(.6, 0, .2, 1);
}
.loader.is-out .loader__mark { transform: scale(1.08); }
.loader__canvas {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px oklch(0.78 0.1 75 / 0.25));
}
.loader__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.loader.is-text .loader__text { opacity: 1; transform: none; }
.loader.is-out .loader__text { opacity: 0; }
.loader__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--ink);
}
.loader__sub {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  color: var(--brand-gold);
}
.loader__track {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: #ffffff14;
}
.loader__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--brand-gold);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
  animation: fsmRise 1.2s 0.4s both;
}
/* past the hero the bar gets a backdrop so it never sits on top of section text */
.is-past-hero .site-header {
  background: rgba(10, 8, 6, 0.92);
  border-bottom-color: #ffffff0d;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 1px 12px #000;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--ink);
}
.brand__rule { width: 1px; height: 18px; background: #d8b77a88; }
.brand__sub {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--brand-gold);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.site-nav__link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-shadow: 0 1px 12px #000;
}
.site-nav__link:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--color-accent); color: var(--surface); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--surface); }
.btn-primary__icon {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.btn-outline { border: 1px solid #e9dcc466; color: var(--ink-2); }
.btn-outline:hover { border-color: var(--brand-gold); color: var(--brand-gold); }
.btn-header {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid #d8b77a88;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: 0.2em;
}
.btn-header:hover { background: var(--brand-gold); color: var(--surface); }

/* ---------- hero stage ---------- */
.stage { position: relative; height: 520vh; }
html:not(.js) .stage { height: 100vh; }
.stage__sticky {
  position: sticky;
  top: 0;
  height: calc(var(--vh) * 100);
  overflow: hidden;
  background: var(--surface-stage);
}
.poster-wrap { position: absolute; inset: 0; }
.poster {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(max(100vw, var(--vh) * 90) * (1 - var(--c)) + min(var(--vh) * 66.7, 86vw) * var(--c));
  aspect-ratio: 2 / 3;
  transform: translate(-50%, calc(-40% - 10% * var(--c)));
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 calc(var(--c) * 16%), #000 calc(100% - var(--c) * 16%), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 calc(var(--c) * 16%), #000 calc(100% - var(--c) * 16%), transparent 100%);
}
.poster__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 14% 40% at 50% 38%, oklch(0.8 0.11 70 / 0.55), transparent 70%);
  opacity: calc(var(--b) * 1.2 * (1 - var(--c)));
}
.poster__sides { position: absolute; inset: 0; animation: fsmFadeIn 2.6s 0.2s both; }
.poster__slice {
  position: absolute;
  inset: 0;
  background: url(../mehmed-poster.webp) center / 100% 100%;
}
.poster__slice--left {
  clip-path: inset(0 60% 0 0);
  transform: translateX(calc((1 - var(--a)) * -22vw));
}
.poster__slice--right {
  clip-path: inset(0 0 0 60.6%);
  transform: translateX(calc((1 - var(--a)) * 22vw));
}
.poster__slice--center {
  clip-path: inset(0 39.3% 0 40%);
  transform: translateY(calc((1 - var(--b)) * 105%));
  filter: brightness(calc(1 + var(--f) * 0.5)) drop-shadow(0 0 40px oklch(0.8 0.11 70 / 0.6));
}

.stage__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 50%, oklch(0.92 0.06 80), transparent 75%);
  mix-blend-mode: screen;
  opacity: calc(var(--f) * 0.55);
  pointer-events: none;
}
.embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.stage__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, var(--surface-stage) 100%);
  pointer-events: none;
}
.stage__top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 20vh;
  background: linear-gradient(to bottom, rgba(5, 4, 3, 0.6) 0%, rgba(5, 4, 3, 0.25) 50%, rgba(5, 4, 3, 0) 100%);
  pointer-events: none;
}
.stage__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  background: linear-gradient(to top, #0a0806 0%, rgba(10, 8, 6, 0.88) 22%, rgba(10, 8, 6, 0.5) 58%, rgba(10, 8, 6, 0) 100%);
  pointer-events: none;
}

.hero-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  opacity: calc(1 - var(--a) * 2.2);
  transform: translateY(calc(var(--a) * -40px));
  pointer-events: none;
}
.hero-intro__eyebrow {
  font-size: 12px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brand-gold);
  animation: fsmRise 1.4s 1.2s both;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 92px);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #efe3cb;
  animation: fsmRise 1.6s 1.5s both;
}
.hero-title__sub {
  display: block;
  margin-top: 18px;
  font-size: 0.32em;
  letter-spacing: 0.3em;
  color: var(--brand-gold);
}
.hero-intro__note {
  margin: 0;
  max-width: 380px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 26px);
  color: var(--ink-muted);
  animation: fsmRise 1.6s 1.9s both;
}

.hero-side {
  position: absolute;
  top: 50%;
  width: calc((100vw - min(var(--vh) * 66.7, 86vw)) / 2 - clamp(40px, 8vw, 140px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: clamp(0, calc(var(--c) * 2.5 - 1.4), 1);
  visibility: hidden;
  pointer-events: none;
}
.is-docked .hero-side,
html:not(.js) .hero-side { visibility: visible; }
.hero-side--left {
  left: clamp(20px, 5vw, 80px);
  gap: 22px;
  transform: translate(calc((1 - var(--c)) * -40px), -50%);
}
.hero-side--right {
  right: clamp(20px, 5vw, 80px);
  align-items: flex-end;
  gap: 26px;
  text-align: right;
  transform: translate(calc((1 - var(--c)) * 40px), -50%);
}
.hero-side__eyebrow {
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.hero-side__time {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 50px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.hero-side__rule { width: 80px; height: 1px; background: var(--brand-gold); }
.hero-side__logo { align-self: flex-start; height: 30px; width: auto; }
.hero-side__lede {
  margin: 0;
  max-width: 320px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero-side__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  pointer-events: auto;
}

.stage-progress {
  position: absolute;
  left: var(--gutter);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  pointer-events: none;
}
.stage-progress__track { position: relative; width: 120px; height: 1px; background: #ffffff22; }
.stage-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--p) * 100%);
  background: var(--brand-gold);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  opacity: calc(1 - var(--p) * 6);
  pointer-events: none;
}
.scroll-cue__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fsmRise 1.4s 2.4s both;
}
.scroll-cue__label {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: var(--brand-gold);
  animation: fsmCue 2.2s ease-in-out infinite;
}

/* ---------- shared section type ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1), border-color .3s;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- story ---------- */
.story {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(90px, 14vw, 180px) var(--section-x) clamp(80px, 10vw, 140px);
}
.story__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.story .eyebrow { margin-bottom: 28px; }
.story__lede {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: clamp(64px, 8vw, 110px);
}
.chapter {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid #ffffff10;
  transition: border-color .3s;
}
.chapter:hover { border-color: #d8b77a66; }
.chapter__img {
  position: absolute;
  inset: 0;
  background-image: url(../mehmed-poster.webp);
  filter: sepia(0.2) brightness(0.75);
}
.chapter__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, #0a0806f2 92%);
}
.chapter__body {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chapter__meta { display: flex; align-items: baseline; gap: 14px; }
.chapter__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--brand-gold);
}
.chapter__line { flex: 1; height: 1px; background: #d8b77a44; }
.chapter__year {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}
.chapter__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2vw, 30px);
  letter-spacing: 0.03em;
  color: var(--ink);
}
.chapter__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* ---------- cast ---------- */
.cast {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) var(--section-x) clamp(90px, 12vw, 160px);
}
.cast__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.cast .eyebrow { margin-bottom: 24px; }
.cast .section-title { line-height: 1.05; }
.cast__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.season-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #ffffff14; }
.season-tab {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.season-tab:hover { color: var(--ink); }
.season-tab[aria-pressed="true"] { background: var(--color-accent); color: var(--surface); }
.cast__arrows { display: flex; gap: 8px; }
.icon-btn {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #d8b77a66;
  background: transparent;
  color: var(--brand-gold);
  font-size: 18px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--brand-gold); color: var(--surface); }

.cast-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  margin-right: calc(-1 * var(--section-x));
  padding-right: var(--section-x);
  padding-bottom: 4px;
}
.cast-track::-webkit-scrollbar { display: none; }
.cast-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.cast-card {
  position: relative;
  flex: 0 0 clamp(220px, 22vw, 290px);
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid #ffffff10;
  scroll-snap-align: start;
  transition: border-color .3s;
}
.cast-card[hidden] { display: none; }
.cast-card:hover { border-color: #d8b77a88; }
.cast-card__img {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  filter: saturate(0.75) brightness(0.9);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .8s;
}
.cast-card:hover .cast-card__img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.cast-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, #0a0806f5 96%);
  pointer-events: none;
}
.cast-card__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.cast-card__role {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.cast-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* ---------- trailer ---------- */
.trailer {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid #ffffff0d;
}
.trailer__bg {
  position: absolute;
  inset: -5%;
  background: url(../mehmed-poster.webp) center 36% / cover;
  filter: brightness(0.32) sepia(0.25) blur(1px);
}
.trailer__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, #0a0806 85%);
}
.trailer__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 80px 24px;
  text-align: center;
}
.play-btn {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid var(--brand-gold);
  border-radius: 50%;
  background: #0a080666;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color .3s, transform .3s;
}
.play-btn:hover { background: #d8b77a33; transform: scale(1.06); }
.play-btn__icon {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 22px solid var(--color-accent-hover);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.trailer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.trailer__note {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 1.6vw, 23px);
  color: var(--ink-muted);
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter);
  border-top: 1px solid #ffffff0d;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.partners { display: flex; align-items: center; gap: 32px; }
.partners__rule { width: 1px; height: 22px; background: #ffffff22; }
.partner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  transition: opacity .35s, transform .35s;
}
.partners:has(.partner:hover) .partner:not(:hover),
.partners:has(.partner:focus-visible) .partner:not(:focus-visible) { opacity: 0.35; }
.partner:hover,
.partner:focus-visible { transform: scale(1.08); }
.partner__logo { width: auto; }
.partner__logo--miray { height: 40px; }
.partner__logo--trt { height: 24px; }
.partner__logo--wapi { height: 26px; }
.partner__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + var(--tip-gap, 10px));
  transform: translate(-50%, 6px);
  padding: 7px 12px;
  white-space: nowrap;
  background: var(--brand-gold);
  color: var(--surface);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.partner--trt .partner__tip { --tip-gap: 6px; }
.partner--wapi .partner__tip { --tip-gap: 5px; }
.partner:hover .partner__tip,
.partner:focus-visible .partner__tip { opacity: 1; transform: translate(-50%, 0); }

/* ---------- language switch ---------- */
.lang { display: flex; gap: 4px; }
.lang__btn {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid #d8b77a44;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lang__btn:hover { color: var(--ink); border-color: var(--brand-gold); }
.lang__btn[aria-pressed="true"] { color: var(--ink); border-color: var(--brand-gold); background: #d8b77a26; }

/* ---------- person modal ---------- */
.cast-card__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: inherit;
}
.cast-card__hit:focus-visible { outline-offset: -4px; }

.person-modal {
  width: min(880px, 92vw);
  max-width: none;
  max-height: calc(var(--vh) * 100 - 32px);
  padding: 0;
  border: 1px solid #d8b77a44;
  background: var(--surface-card);
  color: var(--ink-2);
  overflow: auto;
}
.person-modal[open] { animation: fsmModalIn .22s ease-out both; }
.person-modal::backdrop {
  background: rgba(5, 4, 3, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.person-modal__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 3fr) 5fr;
}
.person-modal__close { position: absolute; top: 12px; right: 12px; z-index: 3; background: #0a0806cc; }
.person-modal__portrait {
  position: relative;
  min-height: 360px;
  background-repeat: no-repeat;
}
.person-modal__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--surface-card));
}
.person-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 44px) clamp(24px, 4vw, 44px) clamp(8px, 2vw, 20px);
}
.person-modal__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.person-modal__actor { margin: 0; font-size: 14px; color: var(--ink-muted); }
.person-modal__actor strong { font-weight: 600; color: var(--ink-soft); }
.person-modal__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid #d8b77a33;
  border-bottom: 1px solid #d8b77a33;
}
.person-modal__fiction {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid #d8b77a33;
  border-bottom: 1px solid #d8b77a33;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.person-modal__fiction[hidden],
.person-modal__dates[hidden] { display: none; }
.person-modal__dates dt {
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.person-modal__dates dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
}
.person-modal__bio {
  margin: 0;
  max-width: 62ch;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.person-modal__note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-dim); }
@media (max-width: 640px) {
  .person-modal__inner { grid-template-columns: 1fr; }
  .person-modal__portrait { min-height: 0; aspect-ratio: 4 / 3; }
  .person-modal__portrait::after { background: linear-gradient(to bottom, transparent 55%, var(--surface-card)); }
  .person-modal__body { padding: 8px 20px 28px; }
}

/* ---------- trailer modal ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.modal-open { overflow: hidden; }
.trailer-modal {
  width: min(1100px, 92vw, (var(--vh) * 100 - 140px) * 16 / 9);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  overflow: visible;
}
.trailer-modal[open] { animation: fsmModalIn .22s ease-out both; }
.trailer-modal::backdrop {
  background: rgba(5, 4, 3, 0.92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.trailer-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.trailer-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-gold);
}
.trailer-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid #d8b77a44;
}
.trailer-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@keyframes fsmModalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- small screens: the docked poster fills the screen height (as on desktop)
   and the CTA block sits at the bottom; the poster slides up just enough to keep
   its series logo (bottom ~15%) clear of the buttons ---------- */
@media (max-width: 1100px) {
  :root {
    --dock-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    --dock-space: calc(var(--dock-bottom) + 120px); /* 2 × 48px buttons + 12px gap + 12px air */
  }
  .poster {
    width: calc(max(100vw, var(--vh) * 90) * (1 - var(--c)) + var(--vh) * 66.7 * var(--c));
    transform: translate(-50%, calc(-40% - 10% * var(--c) + var(--c) * min(0px, var(--vh) * 15 - var(--dock-space))));
  }
  .hero-side--left { display: none; }
  .hero-side--right {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: var(--dock-bottom);
    width: auto;
    overflow: visible;
    align-items: center;
    text-align: center;
    opacity: clamp(0, calc(var(--c) * 6 - 5), 1); /* appear once the poster has settled */
    transform: translateY(calc((1 - var(--c)) * 24px));
  }
  .hero-side__lede { display: none; }
  .hero-side__actions { width: min(100%, 360px); }
  .stage-progress { opacity: calc(1 - var(--c)); }
}

@media (max-width: 640px) {
  .season-tabs { width: 100%; }
  .season-tab { flex: 1; padding: 0 6px; letter-spacing: 0.1em; }
  .brand__rule,
  .brand__sub,
  .site-nav__link { display: none; }
  .site-nav { gap: 16px; }
  .partners { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .stage { height: 100vh; }
  .scroll-cue { display: none; }
  .cast-card:hover .cast-card__img,
  .partner:hover,
  .partner:focus-visible,
  .play-btn:hover { transform: none; }
}
