:root {
  --bg: #07090d;
  --panel: rgba(11, 14, 19, 0.84);
  --panel-strong: rgba(15, 18, 24, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3efe7;
  --muted: #b8b2ac;
  --accent: #d94d4d;
  --accent-soft: rgba(217, 77, 77, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --scroll-progress: 0%;
  --intro-progress: 0%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(113, 10, 10, 0.25), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(86, 12, 20, 0.18), transparent 24%),
    linear-gradient(180deg, #07090d 0%, #090b11 55%, #06070a 100%);
}

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

a {
  color: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 85%);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.2), rgba(5, 7, 10, 0.82)),
    url("assets/hero-menu.png") center center / cover no-repeat;
}

.hero-backdrop,
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-backdrop {
  background:
    radial-gradient(circle at 24% 22%, rgba(170, 27, 27, 0.25), transparent 25%),
    linear-gradient(180deg, rgba(3, 4, 6, 0.08), rgba(3, 4, 6, 0.72));
}

.hero-noise {
  opacity: 0.22;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 12%),
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.05), transparent 16%),
    radial-gradient(circle at 55% 70%, rgba(255, 255, 255, 0.04), transparent 14%);
}

.topbar,
.hero-content,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar,
.section,
.footer {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0.75rem 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8c8c 0%, #a01212 100%);
  box-shadow: 0 0 18px rgba(217, 77, 77, 0.7);
}

.brand-text {
  color: rgba(243, 239, 231, 0.88);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav a {
  padding: 0.72rem 1rem;
  text-decoration: none;
  color: rgba(243, 239, 231, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(3, 4, 6, 0.32);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.button:hover,
.button:focus-visible,
.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-2px);
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff5f0;
  border-color: rgba(217, 77, 77, 0.45);
  background: rgba(100, 11, 18, 0.24);
}

.hero-content {
  width: min(1160px, 100%);
  margin: auto auto 0;
  padding: clamp(5rem, 12vh, 8rem) 0 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #f1a1a1;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.96;
}

.hero h1 {
  max-width: 8ch;
  font-size: clamp(4rem, 9vw, 7.5rem);
  text-wrap: balance;
}

.hero-title {
  position: relative;
  display: grid;
  gap: 0.02em;
}

.hero-title::after {
  content: "";
  width: min(42vw, 340px);
  height: 1px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 229, 229, 0.92), rgba(217, 77, 77, 0));
  box-shadow: 0 0 18px rgba(217, 77, 77, 0.48);
  animation: titleSweep 6.4s ease-in-out infinite;
}

.title-word {
  display: block;
  width: fit-content;
  text-shadow:
    0 0 24px rgba(217, 77, 77, 0.18),
    0 0 64px rgba(217, 77, 77, 0.08);
  animation:
    titleDrift 7.5s ease-in-out infinite,
    titlePulseGlow 6.2s ease-in-out infinite;
}

.title-word-accent {
  margin-left: clamp(0.7rem, 2vw, 1.8rem);
  color: #fff1eb;
  text-shadow:
    0 0 18px rgba(255, 219, 219, 0.32),
    0 0 54px rgba(217, 77, 77, 0.24);
  animation-delay: 0.7s;
}

.hero-copy {
  max-width: 700px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: rgba(243, 239, 231, 0.84);
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.22fr 0.92fr;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin-top: 2.1rem;
  perspective: 1200px;
}

.hero-stage-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.45;
}

.hero-stage-glow-left {
  top: 5%;
  left: -4%;
  background: rgba(217, 77, 77, 0.18);
}

.hero-stage-glow-right {
  right: 6%;
  bottom: 10%;
  background: rgba(255, 230, 230, 0.1);
}

.hero-shot {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shot-lift: 0px;
  position: relative;
  overflow: hidden;
  min-height: 210px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: rgba(8, 10, 14, 0.78);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  transform:
    perspective(1200px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translate3d(0, var(--shot-lift), 0);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.04), rgba(7, 9, 13, 0.72)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 26%);
  pointer-events: none;
  z-index: 1;
}

.hero-shot:hover,
.hero-shot:focus-within {
  --shot-lift: -10px;
  border-color: rgba(217, 77, 77, 0.28);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.5);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 320ms ease;
}

.hero-shot:hover img,
.hero-shot:focus-within img {
  transform: scale(1.05);
  filter: contrast(1.05) saturate(1.08);
}

.hero-shot figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  color: rgba(243, 239, 231, 0.92);
  background: rgba(7, 9, 13, 0.62);
  backdrop-filter: blur(12px);
}

.hero-shot-main {
  grid-row: 1 / span 2;
}

.hero-shot-top {
  transform-origin: center bottom;
}

.hero-shot-bottom {
  transform-origin: center top;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button-primary {
  color: #fff6f5;
  background: linear-gradient(180deg, #c54b4b 0%, #911919 100%);
  box-shadow: 0 18px 40px rgba(145, 25, 25, 0.35);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(7, 8, 10, 0.5);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: rgba(243, 239, 231, 0.88);
  background: rgba(8, 10, 14, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 1.7rem;
}

.section-lead {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section h2 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
}

.two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
}

.two-column .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(217, 77, 77, 0.08), transparent 38%, transparent 68%, rgba(255, 255, 255, 0.03));
}

.story-card,
.feature-card,
.spotlight-card,
.character-card,
.episode-card,
.roadmap-card {
  padding: 1.8rem;
}

.story-card p,
.feature-card p,
.episode-card p,
.character-card p,
.spotlight-card p,
.detail-card p {
  margin: 0;
  color: var(--muted);
}

.story-card p + p {
  margin-top: 1rem;
}

.long-card p + p,
.episode-card p + p,
.detail-card p + p {
  margin-top: 0.95rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 0.55rem;
}

.episode-grid,
.character-grid,
.roadmap-grid,
.detail-grid {
  display: grid;
  gap: 1rem;
}

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

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

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.episode-card h3,
.character-card h3,
.detail-card h3,
.release-card h3 {
  margin-top: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: 2rem;
}

.episode-status {
  margin-top: 0.55rem;
  color: #f5c6c6;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag,
.role {
  display: inline-block;
  color: #f2b4b4;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.spotlight-card {
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(117, 12, 20, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel-strong);
}

.detail-card {
  padding: 1.8rem;
}

.detail-summary {
  margin-top: 0.6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(8, 10, 14, 0.88);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.gallery-item:hover,
.gallery-item:focus-within {
  border-color: rgba(217, 77, 77, 0.35);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-large img {
  aspect-ratio: 4 / 4.4;
}

.gallery-item figcaption {
  padding: 0.95rem 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.roadmap-section {
  padding-bottom: 6rem;
}

.roadmap-card {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  color: #efe9df;
  background:
    linear-gradient(180deg, rgba(150, 20, 20, 0.06), rgba(255, 255, 255, 0)),
    var(--panel);
}

.release-card {
  min-height: 220px;
  padding: 1.8rem;
}

.release-card p {
  margin: 0;
  color: var(--muted);
}

.release-card-highlight {
  background:
    radial-gradient(circle at top right, rgba(217, 77, 77, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--panel-strong);
}

.release-card-highlight h3 {
  font-size: clamp(2.9rem, 5vw, 4rem);
  line-height: 0.88;
  color: #fff4ef;
}

.endgame-section {
  min-height: min(94vh, 920px);
  display: grid;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 7rem;
}

.endgame-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(217, 77, 77, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 235, 235, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(8, 10, 14, 0.86);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.endgame-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.9), transparent 78%);
}

.endgame-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.endgame-sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto;
  transform: scale(0.92);
  opacity: 0.78;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 720ms ease;
}

.endgame-halo {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.endgame-halo-outer {
  box-shadow:
    0 0 30px rgba(217, 77, 77, 0.18),
    0 0 90px rgba(217, 77, 77, 0.12);
  animation: endgameOrbit 12s linear infinite;
}

.endgame-halo-inner {
  inset: 18px;
  border-color: rgba(255, 225, 225, 0.12);
  animation: endgameOrbitReverse 8.6s linear infinite;
}

.endgame-logo {
  position: relative;
  z-index: 2;
  width: min(72%, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 34px;
  box-shadow:
    0 0 40px rgba(217, 77, 77, 0.22),
    0 24px 54px rgba(0, 0, 0, 0.4);
  animation:
    endgameFloat 5.6s ease-in-out infinite,
    endgameGlow 4.8s ease-in-out infinite;
}

.endgame-copy h2 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.9;
  text-shadow:
    0 0 20px rgba(217, 77, 77, 0.12),
    0 0 60px rgba(217, 77, 77, 0.08);
}

.endgame-release,
.endgame-note {
  margin: 0;
}

.endgame-release {
  margin-top: 1.15rem;
  color: rgba(243, 239, 231, 0.78);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.endgame-release span {
  display: block;
  margin-top: 0.45rem;
  color: #fff4ef;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  letter-spacing: 0.04em;
  transform: translateY(12px);
  opacity: 0.78;
  transition:
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 680ms ease,
    text-shadow 680ms ease;
}

.endgame-note {
  max-width: 640px;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
}

body.is-at-end .endgame-sigil {
  transform: scale(1);
  opacity: 1;
}

body.is-at-end .endgame-release span {
  transform: none;
  opacity: 1;
  text-shadow:
    0 0 18px rgba(255, 221, 221, 0.2),
    0 0 42px rgba(217, 77, 77, 0.16);
}

.footer {
  padding: 0 0 3rem;
  color: rgba(243, 239, 231, 0.52);
  font-size: 0.92rem;
}

body {
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: var(--scroll-progress);
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 164, 164, 0.2), #d94d4d 55%, #fff0eb);
  box-shadow: 0 0 18px rgba(217, 77, 77, 0.55);
}

.page-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at center, rgba(163, 24, 24, 0.18), transparent 24%),
    radial-gradient(circle at center, rgba(7, 9, 13, 0.25), rgba(7, 9, 13, 0.96) 68%);
  transition:
    opacity 950ms ease,
    visibility 950ms ease;
}

.page-intro__iris,
.page-intro__signal {
  position: absolute;
  border-radius: 999px;
}

.page-intro__grid,
.page-intro__scanline,
.page-intro__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-intro__grid {
  opacity: 0.2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.92), transparent 72%);
  animation: introGridDrift 10s linear infinite;
}

.page-intro__scanline {
  opacity: 0.42;
  background: linear-gradient(180deg, transparent, rgba(255, 236, 236, 0.28), transparent);
  transform: translateY(-100%);
  animation: introScanline 2.4s linear infinite;
}

.page-intro__noise {
  opacity: 0.08;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 45%, rgba(255, 255, 255, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px);
  background-size: 180px 180px, 210px 210px, 160px 160px, 240px 240px;
  animation: introNoiseShift 0.45s steps(2, end) infinite;
}

.page-intro__panel {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(92vw, 420px);
  padding: 2rem 1.4rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(217, 77, 77, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    rgba(8, 10, 14, 0.68);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.page-intro__panel::before,
.page-intro__panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  pointer-events: none;
}

.page-intro__panel::before {
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.page-intro__panel::after {
  inset: auto 0 0;
  height: 36%;
  border-radius: 0 0 32px 32px;
  background: linear-gradient(180deg, transparent, rgba(217, 77, 77, 0.08));
}

.page-intro__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.page-intro__chip {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(243, 239, 231, 0.72);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-intro__icon-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(110px, 18vw, 138px);
  aspect-ratio: 1;
}

.page-intro__icon {
  position: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26px;
  box-shadow:
    0 0 34px rgba(217, 77, 77, 0.25),
    0 14px 34px rgba(0, 0, 0, 0.34);
  animation:
    iconFloat 2.8s ease-in-out infinite,
    iconFlicker 4.6s linear infinite;
}

.page-intro__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-intro__ring-outer {
  box-shadow: 0 0 24px rgba(217, 77, 77, 0.22);
  animation: introRotate 7s linear infinite;
}

.page-intro__ring-inner {
  inset: 11px;
  border-color: rgba(255, 215, 215, 0.14);
  animation: introRotateReverse 5.6s linear infinite;
}

.page-intro__label,
.page-intro__status,
.page-intro__warning,
.page-intro__percent {
  margin: 0;
}

.page-intro__label {
  color: rgba(241, 161, 161, 0.95);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.page-intro__status {
  min-height: 1.6em;
  color: rgba(243, 239, 231, 0.92);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 0 18px rgba(217, 77, 77, 0.16);
}

.page-intro__warning {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: rgba(255, 210, 210, 0.9);
  background: rgba(117, 18, 25, 0.26);
  border: 1px solid rgba(217, 77, 77, 0.22);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: introWarningPulse 2.2s ease-in-out infinite;
}

.page-intro__bar {
  width: 100%;
  height: 10px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.page-intro__bar-fill {
  display: block;
  width: var(--intro-progress);
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 214, 214, 0.82), rgba(217, 77, 77, 0.98) 48%, rgba(255, 243, 238, 0.9));
  box-shadow:
    0 0 18px rgba(217, 77, 77, 0.38),
    0 0 28px rgba(217, 77, 77, 0.18);
  transition: width 180ms ease;
}

.page-intro__percent {
  color: rgba(243, 239, 231, 0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.page-intro__iris {
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 218, 218, 0.16);
  box-shadow:
    0 0 0 18px rgba(217, 77, 77, 0.06),
    0 0 80px rgba(217, 77, 77, 0.28);
  animation: introPulse 1400ms ease-in-out infinite;
}

.page-intro__signal {
  width: min(42vw, 560px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 237, 237, 0.88), transparent);
  box-shadow: 0 0 24px rgba(255, 240, 235, 0.45);
  animation: introSweep 1350ms cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

body.is-loading .page-intro {
  opacity: 1;
  visibility: visible;
}

body.is-ready .page-intro {
  opacity: 0;
  visibility: hidden;
}

body.is-ready .page-intro__panel {
  opacity: 0;
  transform: scale(0.96) translateY(18px);
}

.page-shell {
  opacity: 1;
  transform: none;
}

body.is-loading .page-shell {
  opacity: 0;
  transform: translateY(24px);
}

.page-shell {
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.hero {
  background-position:
    calc(50% + (var(--hero-shift-x, 0px) * 0.45))
    calc(50% + (var(--hero-shift-y, 0px) * 0.32));
  will-change: background-position;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 13, 0.78));
}

.hero-backdrop {
  animation: backdropDrift 16s ease-in-out infinite alternate;
}

.hero-noise {
  animation: noiseFloat 11s linear infinite;
}

.topbar {
  position: sticky;
  top: 1rem;
  padding-inline: clamp(0.8rem, 1.7vw, 1.1rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(7, 9, 13, 0.42);
  backdrop-filter: blur(18px);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.topbar.is-condensed {
  border-color: rgba(217, 77, 77, 0.26);
  background: rgba(7, 9, 13, 0.74);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.nav a,
.button,
.card,
.gallery-item {
  will-change: transform;
}

.nav a {
  position: relative;
  overflow: hidden;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: auto 16px 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 234, 234, 0.88), transparent);
  transform: scaleX(0.12);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.nav a.is-active {
  color: #fff5f0;
  border-color: rgba(217, 77, 77, 0.45);
  background: rgba(100, 11, 18, 0.26);
}

.nav a.is-active::after,
.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.button {
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background-color 240ms ease,
    box-shadow 240ms ease,
    filter 240ms ease;
}

.button:hover,
.button:focus-visible {
  filter: saturate(1.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.card {
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms ease,
    border-color 240ms ease,
    background-color 240ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(217, 77, 77, 0.22);
  box-shadow: 0 36px 82px rgba(0, 0, 0, 0.46);
}

.gallery-item {
  cursor: zoom-in;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    box-shadow 420ms ease,
    filter 240ms ease;
}

.gallery-item img {
  transition:
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 400ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.07);
  filter: contrast(1.04) saturate(1.05);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  filter: blur(10px);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal[data-reveal="left"] {
  transform: translate3d(-44px, 0, 0);
}

.reveal[data-reveal="right"] {
  transform: translate3d(44px, 0, 0);
}

.reveal[data-reveal="zoom"] {
  transform: scale(0.92);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(121, 19, 19, 0.12), transparent 24%),
    rgba(3, 4, 7, 0.84);
  backdrop-filter: blur(16px);
  transition:
    opacity 260ms ease,
    backdrop-filter 260ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  width: min(980px, 100%);
  max-height: min(88vh, 980px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(9, 11, 15, 0.94);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(28px) scale(0.96);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-frame {
  transform: none;
}

.lightbox-image {
  width: 100%;
  max-height: min(72vh, 820px);
  object-fit: contain;
  border-radius: 22px;
}

.lightbox-caption {
  margin: 0.85rem 0 0;
  color: rgba(243, 239, 231, 0.8);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: clamp(0.9rem, 2vw, 1.4rem);
  right: clamp(0.9rem, 2vw, 1.4rem);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff3ef;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(10, 12, 17, 0.74);
  cursor: pointer;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: scale(1.06);
  border-color: rgba(217, 77, 77, 0.42);
  background: rgba(112, 14, 20, 0.44);
}

@keyframes introPulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.62;
  }

  50% {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes introSweep {
  0% {
    transform: translateX(-42%) scaleX(0.36);
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  100% {
    transform: translateX(42%) scaleX(1);
    opacity: 0;
  }
}

@keyframes introGridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(28px, 18px, 0);
  }
}

@keyframes introScanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes introNoiseShift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-6px, 4px, 0);
  }

  100% {
    transform: translate3d(5px, -3px, 0);
  }
}

@keyframes introRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes introRotateReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -7px, 0);
  }
}

@keyframes iconFlicker {
  0%,
  38%,
  40%,
  100% {
    filter: brightness(1);
  }

  39% {
    filter: brightness(1.2);
  }

  72% {
    filter: brightness(0.9);
  }

  74% {
    filter: brightness(1.1);
  }
}

@keyframes introWarningPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(217, 77, 77, 0);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 18px rgba(217, 77, 77, 0.16);
    transform: translateY(-1px);
  }
}

@keyframes endgameOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes endgameOrbitReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes endgameFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes endgameGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.08);
  }
}

@keyframes backdropDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }
}

@keyframes noiseFloat {
  0% {
    transform: translate3d(-1.5%, 0, 0);
  }

  50% {
    transform: translate3d(1.5%, 1.5%, 0);
  }

  100% {
    transform: translate3d(-1%, -1%, 0);
  }
}

@keyframes titleDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes titlePulseGlow {
  0%,
  100% {
    opacity: 0.96;
    filter: brightness(1);
  }

  45% {
    opacity: 1;
    filter: brightness(1.12);
  }

  47% {
    opacity: 0.78;
    filter: brightness(0.92);
  }

  52% {
    opacity: 1;
    filter: brightness(1.08);
  }
}

@keyframes titleSweep {
  0%,
  100% {
    transform: scaleX(0.65);
    opacity: 0.55;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .page-shell,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 1100px) {
  .hero-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .endgame-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

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

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .endgame-stage {
    padding: 2rem 1.4rem;
  }

  .hero-shot-main {
    grid-row: auto;
    min-height: 320px;
  }

  .two-column,
  .character-grid,
  .detail-grid,
  .release-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-content {
    padding-top: 4rem;
  }

  .page-intro__panel {
    padding: 1.5rem 1rem 1.25rem;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 15vw, 4.8rem);
  }

  .section {
    padding: 4rem 0;
  }

  .title-word-accent {
    margin-left: 0;
  }

  .hero-stage {
    gap: 0.85rem;
    margin-top: 1.7rem;
  }

  .endgame-section {
    min-height: auto;
    padding-bottom: 5rem;
  }

  .endgame-logo {
    width: min(74%, 190px);
    border-radius: 28px;
  }

  .endgame-release {
    font-size: 0.88rem;
  }

  .hero-shot {
    min-height: 220px;
  }

  .hero-shot figcaption {
    font-size: 0.95rem;
  }

  .episode-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item-large {
    grid-column: span 1;
  }

  .nav a,
  .button,
  .hero-facts li {
    width: 100%;
  }
}
