:root {
  --img-hero-bg: url("img/hero-bg.webp");
  --img-hero-scene: url("img/hero-scene.webp");
  --img-episodes-bg: url("img/episodes-bg.webp");
  --img-mechanics-bg: url("img/mechanics-bg.webp");
  --img-mechanics-board: url("img/mechanics-board.webp");
  --img-final-bg: url("img/final-bg.webp");
  --img-mechanics-1: url("img/mechanics-1.webp");
  --img-mechanics-2: url("img/mechanics-2.webp");
  --img-logo: url("img/logo.webp");

  --black: #050505;
  --black-soft: #0d0c0b;
  --paper: #d8c5a3;
  --paper-muted: #a99678;
  --gold: #ddc169;
  --bronze: #99794d;
  --red: #df5a24;
  --red-deep: #8c2718;
  --white: #f3eee6;
  --line: rgba(216, 197, 163, 0.28);
  --display: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --page: min(1180px, calc(100vw - 80px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 4%, rgba(153, 121, 77, 0.08), transparent 26rem),
    var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 4px),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, 0.012) 6px);
  mix-blend-mode: soft-light;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 16px;
  left: 16px;
  padding: 10px 16px;
  color: var(--black);
  background: var(--gold);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  width: var(--page);
  height: 96px;
  border-bottom: 1px solid rgba(216, 197, 163, 0.14);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(221, 193, 105, 0.4);
  border-radius: 50%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 30px);
}

.main-nav a,
.header-action {
  position: relative;
  color: rgba(243, 238, 230, 0.72);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.main-nav a {
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  background: transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--red);
}

.main-nav a.is-active::after {
  background: var(--red);
}

.header-action {
  justify-self: end;
  padding: 10px 0;
  color: var(--gold);
  border-bottom: 1px solid var(--bronze);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(720px, 100svh);
  padding: 136px max(40px, calc((100vw - 1180px) / 2)) 48px;
  overflow: hidden;
  isolation: isolate;
}

main {
  display: flex;
  flex-direction: column;
}

#top { order: 1; }
#about { order: 2; }
#trailer { order: 3; }
#mechanics { order: 4; }
#episodes { order: 5; }
#faq { order: 6; }
#finale { order: 7; }

.hero::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  content: "";
  background: #020202 var(--img-hero-scene) right center / auto 100% no-repeat;
}

.hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, #020202 0%, rgba(2, 2, 2, 0.97) 25%, rgba(2, 2, 2, 0.72) 42%, rgba(2, 2, 2, 0.06) 65%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 66%, #020202 100%);
}

.hero-noise {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(590px, 47vw);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--paper-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.31em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  /* Last-resort guard: German and English headings carry words long enough
     (FUNKTIONIERT, FREQUENTLY) to burst a phone-width column at display sizes.
     Breaking beats a horizontally scrolling page. */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

h1 {
  max-width: 590px;
  font-size: clamp(72px, 7.2vw, 116px);
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-tagline {
  margin: 24px 0 12px;
  color: var(--paper);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.hero-tagline strong,
.mechanics-tagline strong {
  color: var(--red);
  font-weight: 600;
}

.hero-description {
  max-width: 500px;
  margin: 0;
  color: rgba(243, 238, 230, 0.62);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.button-primary {
  position: relative;
  color: #110906;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 165, 118, 0.25), 0 10px 40px rgba(140, 39, 24, 0.18);
  clip-path: polygon(1% 4%, 98% 0, 100% 94%, 2% 100%);
}

.button-primary:hover {
  background-color: #ec6832;
  filter: brightness(1.08);
}

.button-outline {
  color: var(--gold);
  border: 1px solid var(--bronze);
}

.button-outline:hover {
  color: var(--black);
  background: var(--gold);
}

.text-link {
  padding: 7px 0;
  color: var(--paper);
  border-bottom: 1px solid var(--bronze);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--gold);
}

.text-link-muted {
  color: rgba(216, 197, 163, 0.46);
  border-color: rgba(153, 121, 77, 0.35);
}

.case-status {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 12px 20px;
  color: rgba(243, 238, 230, 0.74);
  border-top: 1px solid var(--bronze);
  border-bottom: 1px solid rgba(153, 121, 77, 0.42);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.case-status-number {
  color: var(--red);
}

.section {
  position: relative;
  width: 100%;
  padding: 96px max(40px, calc((100vw - 1180px) / 2));
}

.section-heading h2,
.briefing h2,
.faq h2,
.final-cta h2 {
  font-size: clamp(72px, 7.2vw, 116px);
}

.section-heading-split {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 44px;
}

.section-intro {
  max-width: 440px;
  margin: 0 0 10px;
  padding: 22px 0 0 24px;
  color: rgba(243, 238, 230, 0.57);
  border-left: 1px solid var(--red-deep);
  font-size: 14px;
}

.episodes {
  background:
    radial-gradient(circle at 78% 18%, rgba(153, 121, 77, 0.1), transparent 28rem),
    linear-gradient(180deg, #070706, #0b0a08 55%, #050505);
}

.episodes::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  content: "";
  opacity: 0.12;
  background: var(--img-episodes-bg) center / cover no-repeat;
  filter: grayscale(1);
}

.episode-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.45fr 0.82fr 0.82fr;
  gap: 24px;
}

.episode-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 197, 163, 0.22);
  background: rgba(6, 6, 5, 0.75);
}

.episode-card-featured {
  border-color: rgba(223, 90, 36, 0.74);
}

.episode-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.episode-card-featured .episode-image {
  height: 330px;
}

.episode-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(4, 4, 4, 0.92));
}

.episode-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.82) contrast(1.1) brightness(0.76);
}

.photo-index {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 15px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 34px;
}

.episode-content {
  padding: 28px 26px 32px;
}

.episode-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.episode-state b {
  color: var(--paper-muted);
  font-weight: 500;
}

.episode-content h3 {
  margin: 0 0 14px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.episode-card:not(.episode-card-featured) {
  container-type: inline-size;
}

/* Sized against the card, not the viewport: the grid goes 3 -> 2 -> 1 column,
   so a vw-based size cannot track how much room a title actually has. */
.episode-card:not(.episode-card-featured) .episode-content h3 {
  font-size: clamp(24px, 11cqi, 40px);
}

.episode-content p {
  margin: 0 0 25px;
  color: rgba(243, 238, 230, 0.56);
  font-size: 12px;
}

.episode-meta {
  display: flex;
  gap: 18px;
  margin: 18px 0 25px;
  padding: 15px 0;
  color: var(--paper-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.episode-meta span + span::before {
  margin-right: 18px;
  color: var(--red);
  content: "×";
}

.episode-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.episode-buy strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 400;
}

.episode-buy .button {
  min-height: 50px;
}

.mechanics {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 68% 43%, rgba(153, 121, 77, 0.12), transparent 25rem),
    linear-gradient(180deg, rgba(2, 2, 2, 0.58), #050505 88%),
    var(--img-mechanics-bg) center / cover no-repeat;
}

.mechanics::before {
  position: absolute;
  z-index: 0;
  right: 4%;
  bottom: 5%;
  width: 34%;
  height: 34%;
  content: "";
  opacity: 0.25;
  border: 1px solid rgba(153, 121, 77, 0.08);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 34px, rgba(153, 121, 77, 0.09) 35px, transparent 36px),
    linear-gradient(28deg, transparent 49.8%, rgba(153, 121, 77, 0.08) 50%, transparent 50.2%);
}

.mechanics::after {
  position: absolute;
  z-index: 0;
  inset: 72px 3% 54px;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  border-top: 1px solid rgba(153, 121, 77, 0.2);
  border-bottom: 1px solid rgba(153, 121, 77, 0.13);
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(153, 121, 77, 0.12) 14% 14.1%, transparent 14.1% 72%, rgba(153, 121, 77, 0.1) 72% 72.1%, transparent 72.1%),
    repeating-linear-gradient(0deg, transparent 0 88px, rgba(216, 197, 163, 0.025) 89px, transparent 90px);
}

.mechanics-heading {
  position: relative;
  z-index: 3;
  max-width: 670px;
  margin-bottom: 54px;
}

.mechanics-heading h2 {
  font-size: clamp(74px, 6.8vw, 106px);
}

.mechanics-tagline {
  margin: 24px 0 0;
  color: var(--paper-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.mechanic-board {
  position: relative;
  z-index: 3;
  width: 100%;
  aspect-ratio: 1180 / 480;
  min-height: 0;
}

.mechanic-steps {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mechanic-step {
  position: absolute;
  min-width: 0;
  padding: 0;
}

.mechanic-step:nth-child(1) {
  top: 22%;
  left: 0;
  width: 20%;
}

.mechanic-step:nth-child(2) {
  top: 7%;
  left: 21%;
  width: 18%;
}

.mechanic-step:nth-child(3) {
  top: 19%;
  left: 40%;
  width: 20%;
}

.mechanic-step:nth-child(4) {
  top: 6%;
  left: 62%;
  width: 18%;
}

.mechanic-step:nth-child(5) {
  top: 18%;
  left: 81%;
  width: 19%;
}

.board-thread {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.board-thread-segment {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #721911, #b42c1d 48%, #7b1c13);
  box-shadow: 0 0 7px rgba(223, 90, 36, 0.32);
  transform-origin: left center;
}

.board-thread-1 {
  top: 22%;
  left: 10%;
  width: 20.9%;
  transform: rotate(-17deg);
}

.board-thread-2 {
  top: 7%;
  left: 30%;
  width: 20.6%;
  transform: rotate(14deg);
}

.board-thread-3 {
  top: 19%;
  left: 50%;
  width: 21.6%;
  transform: rotate(-14deg);
}

.board-thread-4 {
  top: 6%;
  left: 71%;
  width: 20.1%;
  transform: rotate(14deg);
}

.board-thread-joint {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid #51361e;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
  box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.25), 0 3px 7px #000;
  transform: translate(-50%, -50%);
}

.board-joint-1 { top: 22%; left: 10%; }
.board-joint-2 { top: 7%; left: 30%; }
.board-joint-3 { top: 19%; left: 50%; }
.board-joint-4 { top: 6%; left: 71%; }
.board-joint-5 { top: 18%; left: 90.5%; }

.mechanic-step::after {
  display: block;
  width: 78%;
  height: 34px;
  margin-top: 14px;
  content: "";
  opacity: 0.16;
  border-top: 1px solid var(--bronze);
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(216, 197, 163, 0.35) 19px, transparent 20px),
    linear-gradient(0deg, transparent 48%, rgba(216, 197, 163, 0.28) 50%, transparent 52%);
}

.clue-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.05;
  margin: 0 0 20px;
  padding: 8px;
  background: #211b13;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.78);
  clip-path: polygon(2% 4%, 96% 0, 100% 94%, 4% 100%, 0 34%);
}

.clue-photo::after {
  position: absolute;
  z-index: 2;
  inset: 7px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(4, 4, 4, 0.52)),
    linear-gradient(90deg, rgba(113, 24, 17, 0.08), transparent 40%);
}

.clue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.17) saturate(0.7) contrast(1.16) brightness(0.7);
}

.clue-paper {
  background: #3a2b1c;
}

.clue-paper img {
  object-position: 50% 28%;
}

.mechanic-step:nth-child(2) .clue-photo {
  aspect-ratio: 1 / 1.22;
}

.mechanic-step:nth-child(3) .clue-photo {
  aspect-ratio: 1 / 1.03;
}

.mechanic-step:nth-child(4) .clue-photo {
  aspect-ratio: 1 / 1.22;
}

.mechanic-step:nth-child(5) .clue-photo {
  aspect-ratio: 1 / 1.05;
}

.clue-cipher {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #2b1c12;
  background:
    radial-gradient(circle at 62% 38%, rgba(125, 40, 25, 0.18), transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(74, 49, 29, 0.1) 28px),
    #ad9876;
}

.clue-cipher::after {
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 35%, rgba(32, 21, 13, 0.38) 100%),
    linear-gradient(115deg, transparent 58%, rgba(84, 28, 20, 0.18) 58.5%, transparent 59%);
}

.cipher-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  width: 88%;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px 12px;
  font-family: var(--display);
  font-size: clamp(16px, 1.5vw, 25px);
  line-height: 1;
  text-align: center;
  transform: rotate(-3deg);
}

.cipher-sheet::before {
  position: absolute;
  top: 41%;
  left: 47%;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(117, 33, 24, 0.72);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%) rotate(8deg);
}

.cipher-key {
  color: #7d271c;
  font-weight: 600;
}

.pin {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid #573d22;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
  box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.26), 0 3px 7px #000;
  transform: translate(-50%, -45%);
}

.step-number {
  display: block;
  margin-bottom: 0;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1;
}

.mechanic-step h3 {
  margin: 4px 0 7px;
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mechanic-step p {
  display: none;
}

.mechanics-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 35px;
  margin-top: 44px;
}

.mechanics-footer > span {
  color: var(--paper-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mechanics-footer > span::before {
  display: inline-block;
  width: 110px;
  height: 1px;
  margin-right: 22px;
  vertical-align: middle;
  content: "";
  background: var(--bronze);
}

.briefing {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 72px;
  background: #0a0907;
}

.briefing::after {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 430px;
  height: 430px;
  content: "";
  opacity: 0.1;
  background: var(--img-logo) center / contain no-repeat;
}

.briefing-collage {
  position: relative;
  min-height: 520px;
}

.briefing-main-photo,
.briefing-small-photo {
  position: absolute;
  margin: 0;
  padding: 9px;
  background: #1b1712;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.64);
}

.briefing-main-photo {
  top: 25px;
  left: 0;
  width: 84%;
  height: 390px;
  transform: rotate(-3deg);
  clip-path: polygon(2% 4%, 97% 0, 100% 93%, 4% 100%, 0 35%);
}

.briefing-small-photo {
  right: -2%;
  bottom: 22px;
  width: 39%;
  height: 270px;
  transform: rotate(7deg);
  clip-path: polygon(0 4%, 94% 0, 100% 96%, 4% 100%);
}

.briefing-main-photo img,
.briefing-small-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.15) saturate(0.75) contrast(1.08) brightness(0.72);
}

.briefing-stamp {
  position: absolute;
  z-index: 3;
  bottom: 85px;
  left: -10px;
  padding: 12px 18px;
  color: var(--red);
  border: 2px solid rgba(223, 90, 36, 0.66);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-8deg);
}

.briefing-copy {
  position: relative;
  z-index: 2;
}

.briefing-copy .lead {
  margin: 32px 0 18px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.35;
}

.briefing-copy > p:not(.eyebrow):not(.lead) {
  max-width: 520px;
  margin: 0;
  color: rgba(243, 238, 230, 0.58);
  font-size: 13px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 38px 0;
}

.facts div {
  padding: 18px 10px 14px 0;
  border-top: 1px solid var(--bronze);
}

.facts dt {
  color: var(--red);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.facts dd {
  margin: 7px 0 0;
  color: rgba(243, 238, 230, 0.48);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.faq {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  background:
    radial-gradient(circle at 15% 40%, rgba(153, 121, 77, 0.11), transparent 25rem),
    #050505;
}

.faq-list {
  border-top: 1px solid var(--bronze);
}

.faq-list details {
  border-bottom: 1px solid rgba(216, 197, 163, 0.19);
}

.faq-list summary {
  position: relative;
  padding: 26px 46px 26px 0;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--display);
  font-size: 22px;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 28px;
  right: 6px;
  color: var(--red);
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list summary .faq-num {
  margin-right: 22px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.faq-list p {
  max-width: 620px;
  margin: -7px 46px 27px 36px;
  color: rgba(243, 238, 230, 0.54);
  font-size: 12px;
}

.final-cta {
  display: flex;
  min-height: 520px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.72), #050505),
    var(--img-final-bg) center / cover no-repeat;
}

.final-cta-mark {
  position: absolute;
  color: transparent;
  font-family: var(--display);
  font-size: 540px;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(221, 193, 105, 0.1);
}

.final-cta .eyebrow,
.final-cta h2,
.final-cta p,
.final-cta .button {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  margin-bottom: 22px;
}

.final-cta > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: rgba(243, 238, 230, 0.58);
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 60px;
  padding: 45px max(40px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(216, 197, 163, 0.18);
  background: #030303;
}

.footer-title {
  color: var(--gold);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.site-footer p,
.footer-note {
  margin: 2px 0 0;
  color: rgba(243, 238, 230, 0.35);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  gap: 30px;
}

.site-footer nav a {
  color: var(--paper-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-footer nav a:hover {
  color: var(--red);
}

.footer-note {
  justify-self: end;
}

.footer-provider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding-top: 24px;
  color: rgba(243, 238, 230, 0.42);
  font-size: 9px;
  letter-spacing: 0.11em;
  border-top: 1px solid rgba(216, 197, 163, 0.12);
  text-transform: uppercase;
}

.footer-provider strong {
  color: rgba(243, 238, 230, 0.7);
  font-weight: 500;
}

@media (max-width: 1120px) {
  :root {
    --page: calc(100vw - 48px);
  }

  .site-header {
    grid-template-columns: 190px 1fr 80px;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding-right: 24px;
    padding-left: 24px;
  }

  .section,
  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .episode-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
  }

  .episode-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .briefing {
    gap: 55px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 56px 1fr auto;
    width: calc(100vw - 32px);
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 25px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: max(680px, 100svh);
    padding-top: 122px;
  }

  .hero-copy {
    z-index: 12;
    width: min(540px, 58vw);
  }

  .section-heading-split,
  .briefing,
  .faq {
    grid-template-columns: 1fr;
  }

  .section-heading-split,
  .faq {
    gap: 35px;
  }

  .section-intro {
    max-width: 600px;
  }

  .episode-grid {
    grid-template-columns: 1fr 1fr;
  }

  .episode-card-featured {
    grid-column: 1 / -1;
  }

  .episode-card-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .episode-card-featured .episode-image {
    height: 100%;
    min-height: 470px;
  }

  .mechanics {
    min-height: auto;
  }

  .mechanic-board {
    aspect-ratio: auto;
    min-height: 0;
  }

  .board-thread {
    display: none;
  }

  .mechanic-steps {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 0 8px 48px;
  }

  .mechanic-steps::before {
    position: absolute;
    top: 28px;
    bottom: 34px;
    left: 18px;
    width: 2px;
    content: "";
    background: linear-gradient(180deg, #7f2118, #b32b1d 52%, #711811);
    box-shadow: 0 0 8px rgba(223, 90, 36, 0.26);
  }

  .mechanic-step,
  .mechanic-step-low {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 0.95fr) 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0 24px;
    padding: 0 0 42px;
  }

  .mechanic-step:nth-child(1),
  .mechanic-step:nth-child(2),
  .mechanic-step:nth-child(3),
  .mechanic-step:nth-child(4),
  .mechanic-step:nth-child(5) {
    top: auto;
    left: auto;
    width: auto;
  }

  .mechanic-step::after {
    display: none;
  }

  .mechanic-step::before {
    position: absolute;
    z-index: 7;
    top: 22px;
    left: -37px;
    width: 12px;
    height: 12px;
    border: 2px solid #5b3b20;
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
    box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.24), 0 3px 7px #000;
  }

  .mechanic-step:last-child {
    width: auto;
    padding-bottom: 0;
  }

  .mechanic-step .clue-photo,
  .mechanic-step:nth-child(2) .clue-photo,
  .mechanic-step:nth-child(3) .clue-photo,
  .mechanic-step:nth-child(4) .clue-photo {
    grid-row: 1 / span 3;
    height: 226px;
    aspect-ratio: auto;
    margin: 0;
    transform: none;
  }

  .step-number,
  .mechanic-step h3,
  .mechanic-step p {
    grid-column: 2;
  }

  .briefing-collage {
    width: min(660px, 100%);
    margin: 0 auto;
  }

  .briefing-copy {
    max-width: 650px;
  }

  .faq-list {
    max-width: 760px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer nav {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100vw - 32px);
  }

  body {
    font-size: 14px;
  }

  .site-header {
    grid-template-columns: 48px 1fr auto;
    height: 78px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .main-nav {
    gap: 23px;
    padding-left: 8px;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 9px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: max(840px, 100svh);
    align-items: flex-start;
    padding: 108px 16px 370px;
  }

  .hero::before {
    background-position: 67% 100%;
    background-size: auto 56%;
  }

  .hero::after {
    background:
      linear-gradient(180deg, #020202 0%, rgba(2, 2, 2, 0.98) 43%, rgba(2, 2, 2, 0.35) 65%, #020202 100%);
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .hero-tagline {
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: 0.11em;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .text-link {
    width: max-content;
    align-self: center;
  }

  .case-status {
    width: 100%;
    justify-content: center;
    margin-top: 38px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .section {
    padding: 70px 16px;
  }

  .section-heading h2,
  .briefing h2,
  .faq h2,
  .final-cta h2 {
    /* Floor sized for the longest word across the six locales, not for Russian
       alone — "FREQUENTLY"/"FRECUENTES" must still fit a 320px screen. */
    font-size: clamp(38px, 13.5vw, 78px);
  }

  .section-heading-split {
    margin-bottom: 34px;
  }

  .section-intro {
    padding-top: 0;
    font-size: 12px;
  }

  .episode-grid,
  .episode-card-featured {
    display: grid;
    grid-template-columns: 1fr;
  }

  .episode-card-featured {
    grid-column: auto;
  }

  .episode-card-featured .episode-image {
    min-height: 300px;
  }

  .episode-image {
    height: 250px;
  }

  .episode-buy {
    align-items: stretch;
    flex-direction: column;
  }

  .episode-buy .button {
    width: 100%;
  }

  .mechanics-tagline {
    line-height: 1.8;
  }

  .mechanic-steps {
    gap: 0;
    padding-left: 38px;
  }

  .mechanic-steps::before {
    left: 14px;
  }

  .mechanic-step,
  .mechanic-step-low {
    display: block;
    padding-bottom: 36px;
  }

  .mechanic-step::before {
    top: 18px;
    left: -30px;
  }

  .mechanic-step .clue-photo,
  .mechanic-step:nth-child(2) .clue-photo,
  .mechanic-step:nth-child(3) .clue-photo,
  .mechanic-step:nth-child(4) .clue-photo {
    height: 245px;
    margin-bottom: 17px;
  }

  .mechanics-footer {
    align-items: stretch;
    flex-direction: column;
    margin-top: 50px;
  }

  .mechanics-footer > span::before {
    width: 40px;
  }

  .briefing {
    gap: 45px;
  }

  .briefing-collage {
    min-height: 430px;
  }

  .briefing-main-photo {
    width: 94%;
    height: 325px;
  }

  .briefing-small-photo {
    right: 0;
    width: 42%;
    height: 225px;
  }

  .briefing-stamp {
    bottom: 40px;
    left: 2px;
  }

  .briefing-copy .lead {
    font-size: 21px;
  }

  .facts {
    gap: 8px;
  }

  .facts dt {
    font-size: 28px;
  }

  .faq-list summary {
    padding-right: 35px;
    font-size: 18px;
  }

  .faq-list summary .faq-num {
    margin-right: 10px;
  }

  .faq-list p {
    margin-right: 10px;
    margin-left: 0;
  }

  .final-cta {
    min-height: 560px;
  }

  .final-cta-mark {
    font-size: 390px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 36px 16px;
  }

  .site-footer nav {
    grid-row: auto;
    grid-column: auto;
    flex-wrap: wrap;
  }

  .footer-note {
    justify-self: start;
  }
}

/* The mechanics scene is one continuous investigation board. */
.mechanics.section {
  min-height: 0;
  padding: 38px max(24px, calc((100vw - 1480px) / 2));
  background: #030303;
}

.mechanics::before,
.mechanics::after {
  display: none;
}

.mechanics-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 939;
  overflow: hidden;
  isolation: isolate;
  background: var(--img-mechanics-board) center / cover no-repeat;
}

.mechanics-canvas::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 34%, rgba(0, 0, 0, 0.18) 100%);
}

.mechanics-canvas .mechanics-heading {
  position: absolute;
  z-index: 2;
  top: 5.5%;
  left: 2.2%;
  max-width: 650px;
  margin: 0;
}

.mechanics-canvas .mechanics-heading h2 {
  font-size: clamp(64px, 6.2vw, 104px);
  line-height: 0.82;
}

.mechanics-canvas .mechanics-tagline {
  margin-top: 22px;
}

.mechanics-labels {
  position: absolute;
  z-index: 3;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mechanics-labels li {
  position: absolute;
  top: 75.5%;
  width: 17%;
  min-width: 0;
}

.mechanics-labels li:nth-child(1) { left: 2.6%; }
.mechanics-labels li:nth-child(2) { left: 22.3%; }
.mechanics-labels li:nth-child(3) { left: 41.7%; }
.mechanics-labels li:nth-child(4) { left: 61.2%; }
.mechanics-labels li:nth-child(5) { left: 80.5%; }

.mechanics-labels span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1;
}

.mechanics-labels strong {
  display: block;
  color: var(--paper);
  font-size: clamp(8px, 0.75vw, 11px);
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mechanics-labels p {
  display: block;
  max-width: 225px;
  margin: 8px 0 0;
  color: rgba(216, 197, 163, 0.68);
  font-size: clamp(8px, 0.64vw, 10px);
  line-height: 1.55;
}

.mechanics-resolution {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(34px, 4vw, 68px);
  margin: 28px 2.2% 0;
  padding: 40px 0 10px;
}

.mechanics-resolution::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #5d120e, #a4261a 55%, #6e1711);
  box-shadow: 0 0 7px rgba(223, 90, 36, 0.24);
}

.mechanics-resolution::after {
  position: absolute;
  top: -25px;
  right: 5%;
  width: 150px;
  height: 1px;
  content: "";
  background: #8e2118;
  transform: rotate(18deg);
  transform-origin: right center;
}

.resolution-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.resolution-step::before {
  position: absolute;
  top: -47px;
  left: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid #573d22;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
  box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.26), 0 3px 7px #000;
}

.resolution-step > span {
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(25px, 2.1vw, 36px);
  line-height: 1;
  white-space: nowrap;
}

.resolution-step strong {
  display: block;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.resolution-step p {
  max-width: 360px;
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.mechanics-resolution .button {
  min-width: 270px;
}

.mechanics-canvas .mechanics-footer {
  position: absolute;
  z-index: 3;
  right: 2.2%;
  bottom: 2.5%;
  left: 2.2%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  margin: 0;
}

.mechanics-canvas .mechanics-footer .button {
  min-width: 272px;
}

/* The trailer is an independent chapter of the page. */
.trailer-section {
  background:
    radial-gradient(circle at 72% 42%, rgba(122, 83, 42, 0.1), transparent 34rem),
    #050504;
}

.game-trailer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
  width: 100%;
  margin: 0;
  padding: 0;
}

.trailer-copy h2 {
  margin: 14px 0 22px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(43px, 4.4vw, 70px);
  font-weight: 400;
  line-height: 0.89;
}

.trailer-copy > p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.trailer-frame {
  position: relative;
  padding: 9px;
  background: #17130f;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
  clip-path: polygon(1% 2%, 98.5% 0, 100% 96%, 96% 100%, 0 98%);
  transform: rotate(-0.6deg);
}

.trailer-frame::before {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 2px solid #5a3e20;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
  box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.28), 0 3px 7px #000;
  transform: translate(-50%, -50%);
}

.trailer-frame video,
.trailer-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  filter: saturate(0.82) contrast(1.05);
}

.trailer-frame iframe {
  height: auto;
  border: 0;
}

@media (max-width: 860px) {
  .mechanics.section {
    padding: 70px 24px;
  }

  .mechanics-canvas {
    aspect-ratio: auto;
    overflow: visible;
    background: none;
  }

  .mechanics-canvas::before {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    margin: 30px 0 32px;
    content: "";
    background: var(--img-mechanics-board) center 68% / cover no-repeat;
  }

  .mechanics-canvas::after {
    display: none;
  }

  .mechanics-canvas .mechanics-heading {
    position: relative;
    top: auto;
    left: auto;
    max-width: 650px;
  }

  .mechanics-canvas .mechanics-heading h2 {
    font-size: clamp(66px, 12vw, 96px);
  }

  .mechanics-labels {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
    margin-bottom: 34px;
  }

  .mechanics-labels li,
  .mechanics-labels li:nth-child(n) {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 15px 0;
    border-top: 1px solid rgba(153, 121, 77, 0.28);
  }

  .mechanics-labels span {
    font-size: 34px;
  }

  .mechanics-labels strong {
    font-size: 9px;
  }

  .mechanics-labels p {
    max-width: 360px;
    font-size: 11px;
  }

  .mechanics-resolution {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 10px 0 0;
    padding: 14px 0 0 34px;
  }

  .mechanics-resolution::before {
    top: 0;
    bottom: 0;
    left: 7px;
    width: 1px;
    height: auto;
  }

  .mechanics-resolution::after {
    display: none;
  }

  .resolution-step::before {
    top: 4px;
    left: -33px;
  }

  .mechanics-resolution .button {
    width: max-content;
    min-width: 270px;
  }

  .mechanics-canvas .mechanics-footer {
    position: relative;
    inset: auto;
    justify-content: space-between;
  }

  .game-trailer {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
  }

  .trailer-frame {
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .mechanics.section {
    padding: 58px 16px;
  }

  .mechanics-canvas::before {
    aspect-ratio: 16 / 9;
    margin-top: 24px;
  }

  .mechanics-labels {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mechanics-canvas .mechanics-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .mechanics-canvas .mechanics-footer > span::before {
    width: 36px;
  }

  .mechanics-canvas .mechanics-footer .button {
    width: 100%;
    min-width: 0;
  }

  .resolution-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resolution-step > span {
    font-size: 30px;
  }

  .mechanics-resolution .button {
    width: 100%;
    min-width: 0;
  }

  .game-trailer {
    gap: 28px;
    margin: 0;
    padding: 0;
  }

  .trailer-copy h2 {
    font-size: clamp(45px, 14vw, 62px);
  }

  .trailer-frame {
    padding: 6px;
    transform: none;
  }
}

/* Mechanics v5: two complete chapters, eight separate stages and a true finale. */
.mechanics-v5.section {
  min-height: 0;
  padding: 98px max(24px, calc((100vw - 1480px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 16%, rgba(132, 99, 58, 0.08), transparent 32rem),
    #030303;
}

.mechanics-v5-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 72px;
  margin-bottom: 42px;
}

.mechanics-v5-heading h2 {
  margin: 10px 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(74px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.81;
}

.mechanics-v5-heading .mechanics-tagline {
  margin-top: 24px;
}

.mechanics-v5-intro {
  margin: 0 0 8px;
  padding-left: 26px;
  color: var(--text-muted);
  line-height: 1.8;
  border-left: 1px solid var(--bronze);
}

.mechanics-chapter {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 1858 / 846;
  isolation: isolate;
}

.mechanics-chapter-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mechanics-chapter::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 66%, rgba(2, 2, 2, 0.42) 78%, rgba(2, 2, 2, 0.8) 100%);
}

.mechanics-stage-grid {
  position: absolute;
  z-index: 2;
  right: 4.4%;
  bottom: 2.8%;
  left: 4.4%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4.2%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mechanics-stage {
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(153, 121, 77, 0.38);
}

.mechanics-stage > span {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(30px, 2.5vw, 42px);
  line-height: 1;
}

.mechanics-stage strong {
  display: block;
  color: var(--paper);
  font-size: clamp(8px, 0.72vw, 11px);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mechanics-stage p {
  max-width: 260px;
  margin: 7px 0 0;
  color: rgba(216, 197, 163, 0.66);
  font-size: clamp(8px, 0.66vw, 10px);
  line-height: 1.5;
}

.mechanics-thread-turn,
.mechanics-thread-finale {
  position: relative;
  z-index: 3;
  height: 82px;
  pointer-events: none;
}

.mechanics-thread-turn::before {
  position: absolute;
  top: -96px;
  right: 1px;
  width: 1px;
  height: 270px;
  content: "";
  background: linear-gradient(180deg, #6f1711, #a3291c 48%, #68140f);
  box-shadow: 0 0 7px rgba(223, 90, 36, 0.24);
}

.mechanics-thread-turn span,
.mechanics-thread-finale span {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #573d22;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
  box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.26), 0 3px 7px #000;
}

.mechanics-thread-turn span {
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
}

.mechanics-thread-finale {
  height: 104px;
}

.mechanics-thread-finale::before {
  position: absolute;
  top: -95px;
  bottom: 23px;
  left: 1px;
  width: 1px;
  content: "";
  background: #8e2118;
  box-shadow: 0 0 7px rgba(223, 90, 36, 0.24);
}

.mechanics-thread-finale::after {
  position: absolute;
  bottom: 23px;
  left: 1px;
  width: 27%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #8e2118, #5e140f);
  transform: rotate(5deg);
  transform-origin: left center;
}

.mechanics-thread-finale span {
  bottom: 13px;
  left: 26.5%;
}

.mechanics-finale {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 5vw, 78px);
  width: calc(100% - 6%);
  margin: 0 auto;
  padding: clamp(26px, 3vw, 44px);
  border-top: 1px solid rgba(153, 121, 77, 0.28);
  border-bottom: 1px solid rgba(153, 121, 77, 0.18);
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.35), #0d0b08 65%),
    #080706;
}

.mechanics-finale-visual {
  position: relative;
  margin: 0;
  padding: 9px;
  background: #1b1610;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
  clip-path: polygon(1% 2%, 98% 0, 100% 95%, 96% 100%, 0 98%);
  transform: rotate(-0.45deg);
}

.mechanics-finale-visual::after {
  position: absolute;
  inset: 9px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent 55%, rgba(3, 3, 3, 0.2));
}

.mechanics-finale-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.84);
}

.mechanics-finale-pin {
  position: absolute;
  z-index: 4;
  top: 4px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid #573d22;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
  box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.26), 0 3px 7px #000;
  transform: translate(-50%, -50%);
}

.mechanics-finale-number {
  display: block;
  margin: 12px 0 7px;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(42px, 4.2vw, 70px);
  line-height: 1;
}

.mechanics-finale-copy h3 {
  margin: 0 0 20px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(35px, 3.2vw, 52px);
  font-weight: 400;
  line-height: 0.95;
}

.mechanics-finale-copy > p:not(.eyebrow) {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 1000px) {
  .mechanics-v5-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .mechanics-v5-intro {
    max-width: 620px;
  }

  .mechanics-stage p {
    display: none;
  }

  .mechanics-finale {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  }
}

@media (max-width: 860px) {
  .mechanics-v5.section {
    padding: 72px 24px;
  }

  .mechanics-v5-heading {
    margin-bottom: 52px;
  }

  .mechanics-v5-heading h2 {
    font-size: clamp(38px, 12vw, 96px);
  }

  .mechanics-chapter {
    aspect-ratio: auto;
  }

  .mechanics-chapter-art {
    display: none;
  }

  .mechanics-chapter::after {
    display: none;
  }

  .mechanics-stage-grid {
    position: relative;
    inset: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .mechanics-stage {
    padding-top: 0;
    border-top: 0;
  }

  .mechanics-stage::before {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 17px;
    content: "";
    background-repeat: no-repeat;
    background-size: 400% auto;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.55);
  }

  .mechanics-chapter-first .mechanics-stage::before {
    background-image: var(--img-mechanics-1);
  }

  .mechanics-chapter-second .mechanics-stage::before {
    background-image: var(--img-mechanics-2);
  }

  .mechanics-stage-01::before,
  .mechanics-stage-08::before { background-position: 0 38%; }
  .mechanics-stage-02::before,
  .mechanics-stage-07::before { background-position: 33.333% 38%; }
  .mechanics-stage-03::before,
  .mechanics-stage-06::before { background-position: 66.666% 38%; }
  .mechanics-stage-04::before,
  .mechanics-stage-05::before { background-position: 100% 38%; }

  .mechanics-stage > span {
    font-size: 38px;
  }

  .mechanics-stage strong {
    font-size: 10px;
  }

  .mechanics-stage p {
    display: block;
    font-size: 11px;
  }

  .mechanics-thread-turn {
    height: 78px;
  }

  .mechanics-thread-turn::before {
    top: 5px;
    right: 10px;
    height: 68px;
  }

  .mechanics-thread-turn span {
    right: 3px;
  }

  .mechanics-thread-finale {
    height: 88px;
  }

  .mechanics-thread-finale::before {
    top: 0;
    bottom: 18px;
    left: 10px;
  }

  .mechanics-thread-finale::after {
    bottom: 18px;
    left: 10px;
    width: 24%;
  }

  .mechanics-thread-finale span {
    bottom: 8px;
    left: 23.5%;
  }

  .mechanics-finale {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 22px;
  }

  .mechanics-finale-copy {
    padding: 14px 6px 8px;
  }
}

@media (max-width: 620px) {
  .mechanics-v5.section {
    padding: 60px 16px;
  }

  .mechanics-v5-heading {
    margin-bottom: 38px;
  }

  .mechanics-v5-intro {
    padding-left: 18px;
  }

  .mechanics-stage-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mechanics-stage::before {
    aspect-ratio: 5 / 4;
    background-position-y: 35%;
  }

  .mechanics-thread-turn,
  .mechanics-thread-finale {
    height: 64px;
  }

  .mechanics-finale {
    padding: 12px;
  }

  .mechanics-finale-visual {
    padding: 6px;
    transform: none;
  }

  .mechanics-finale-copy {
    padding: 18px 4px 6px;
  }

  .mechanics-finale-copy .button {
    width: 100%;
  }
}

/* Cinematic motion system */
.opening-scene {
  display: none;
}

.js .opening-scene {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s 1.15s;
}

.opening-scene::before,
.opening-scene::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 50.5%;
  content: "";
  background:
    radial-gradient(circle at center, rgba(106, 73, 39, 0.13), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px),
    #030303;
  transition: transform 1.05s cubic-bezier(0.77, 0, 0.18, 1) 0.12s;
}

.opening-scene::before {
  left: 0;
  border-right: 1px solid rgba(223, 90, 36, 0.44);
}

.opening-scene::after {
  right: 0;
  border-left: 1px solid rgba(223, 90, 36, 0.44);
}

.opening-scene-mark,
.opening-scene-caption {
  position: relative;
  z-index: 2;
  transition: opacity 0.38s ease, transform 0.52s ease;
}

.opening-scene-mark {
  display: grid;
  width: clamp(150px, 18vw, 230px);
  aspect-ratio: 1;
  padding: 12px;
  border: 1px solid rgba(221, 193, 105, 0.42);
  border-radius: 50%;
  place-items: center;
  background: radial-gradient(circle, rgba(70, 48, 27, 0.32), rgba(3, 3, 3, 0.92) 72%);
  box-shadow: 0 0 0 7px rgba(221, 193, 105, 0.04), 0 0 58px rgba(221, 193, 105, 0.13);
}

.opening-scene-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: sepia(0.08) saturate(0.88) brightness(0.88) contrast(1.08);
}

.opening-scene-caption {
  position: absolute;
  top: calc(50% + 116px);
  color: var(--paper-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.page-ready .opening-scene {
  visibility: hidden;
}

.page-ready .opening-scene::before {
  transform: translate3d(-101%, 0, 0);
}

.page-ready .opening-scene::after {
  transform: translate3d(101%, 0, 0);
}

.page-ready .opening-scene-mark,
.page-ready .opening-scene-caption {
  opacity: 0;
  transform: scale(0.92);
}

.atmosphere-canvas {
  position: fixed;
  z-index: 24;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}

.cursor-aura {
  position: fixed;
  z-index: 23;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.21;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 193, 105, 0.18), rgba(223, 90, 36, 0.045) 34%, transparent 69%);
  mix-blend-mode: screen;
  transform: translate3d(calc(var(--aura-x, 50vw) - 50%), calc(var(--aura-y, 50vh) - 50%), 0);
  will-change: transform;
}

.scroll-thread {
  position: fixed;
  z-index: 80;
  top: 19vh;
  right: 18px;
  width: 1px;
  height: 62vh;
  pointer-events: none;
  background: rgba(153, 121, 77, 0.18);
}

.scroll-thread span {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: var(--scroll-progress, 0%);
  background: linear-gradient(180deg, var(--red), #8d1c13);
  box-shadow: 0 0 9px rgba(223, 90, 36, 0.42);
}

.scroll-thread span::after {
  position: absolute;
  right: -4px;
  bottom: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid #5b3b1f;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 68%);
  box-shadow: 0 0 10px rgba(221, 193, 105, 0.25);
}

.site-header {
  position: fixed;
  z-index: 60;
  transition:
    top 0.45s ease,
    width 0.45s ease,
    padding 0.45s ease,
    background-color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    backdrop-filter 0.45s ease;
}

.site-header.is-scrolled {
  top: 12px;
  width: min(var(--page), calc(100vw - 28px));
  height: 72px;
  padding: 0 20px;
  border-color: rgba(216, 197, 163, 0.2);
  background: rgba(5, 5, 5, 0.74);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.hero::before {
  transform: scale(1.035);
  transform-origin: 72% 50%;
  animation: hero-cinematic-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-noise {
  position: absolute;
  z-index: -1;
  inset: -18%;
  display: block;
  pointer-events: none;
  opacity: 0.3;
  background:
    radial-gradient(circle at 62% 44%, rgba(216, 197, 163, 0.13), transparent 17%),
    radial-gradient(circle at 74% 63%, rgba(216, 197, 163, 0.1), transparent 21%),
    radial-gradient(circle at var(--pointer-x, 68%) var(--pointer-y, 42%), rgba(223, 90, 36, 0.08), transparent 16%);
  filter: blur(24px);
  animation: smoke-drift 17s ease-in-out infinite alternate;
}

.js .reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition:
    opacity 0.88s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 0.95s ease var(--reveal-delay, 0ms),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.js .reveal-hero {
  transform: translate3d(-22px, 24px, 0);
}

.js .reveal.is-visible {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-parallax {
  --media-scale: 1.055;
  transform: translate3d(0, var(--motion-shift, 0px), 0) scale(var(--media-scale));
  transform-origin: center;
  transition: transform 0.14s linear, filter 0.5s ease;
  will-change: transform;
}

.episode-card:hover .motion-parallax,
.briefing-main-photo:hover .motion-parallax,
.briefing-small-photo:hover .motion-parallax {
  --media-scale: 1.1;
  filter: sepia(0.05) saturate(0.96) contrast(1.1) brightness(0.86);
}

.mechanics-chapter {
  overflow: hidden;
}

.mechanics-chapter::before {
  position: absolute;
  z-index: 2;
  top: -30%;
  bottom: -30%;
  left: -24%;
  width: 13%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(221, 193, 105, 0.13), transparent);
  filter: blur(9px);
  mix-blend-mode: screen;
  transform: rotate(9deg);
  animation: evidence-light-pass 9s ease-in-out infinite 1.5s;
}

.mechanics-thread-turn::before,
.mechanics-thread-finale::before,
.mechanics-thread-finale::after {
  background-size: 100% 260%;
  animation: thread-current 3.8s ease-in-out infinite;
}

.mechanics-thread-turn span,
.mechanics-thread-finale span,
.mechanics-finale-pin {
  animation: pin-breathe 2.8s ease-in-out infinite;
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --base-rotation: 0deg;
  transform-style: preserve-3d;
  will-change: transform;
}

.trailer-frame.tilt-card {
  --base-rotation: -0.6deg;
}

.mechanics-finale-visual.tilt-card {
  --base-rotation: -0.45deg;
}

.tilt-card:not(.reveal),
.tilt-card.reveal.is-visible {
  transform: perspective(1150px) rotateZ(var(--base-rotation)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.tilt-card.is-tilting {
  transition: transform 0.16s ease-out, box-shadow 0.28s ease !important;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.46);
}

.tilt-card::before {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 224, 167, 0.12), transparent 32%);
  transition: opacity 0.28s ease;
}

.tilt-card.is-tilting::before {
  opacity: 1;
}

.magnetic-button {
  overflow: hidden;
  transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0);
  transition: transform 0.18s ease-out, filter 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  will-change: transform;
}

.button-primary::after {
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 22%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: rgba(255, 244, 218, 0.5);
  filter: blur(6px);
  transform: skewX(-18deg);
}

.button-primary:hover::after {
  animation: button-flare 0.72s ease-out;
}

.episode-card-featured {
  animation: featured-border-pulse 4.6s ease-in-out infinite;
}

.faq-list details[open] p {
  animation: answer-unfold 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.final-cta-mark {
  animation: final-mark-float 12s ease-in-out infinite alternate;
}

@keyframes hero-cinematic-drift {
  0% { transform: scale(1.035) translate3d(0, 0, 0); }
  100% { transform: scale(1.075) translate3d(-0.8%, -0.5%, 0); }
}

@keyframes smoke-drift {
  0% { transform: translate3d(-2%, 1%, 0) scale(0.96); opacity: 0.2; }
  50% { opacity: 0.36; }
  100% { transform: translate3d(3%, -2%, 0) scale(1.06); opacity: 0.27; }
}

@keyframes evidence-light-pass {
  0%, 20% { left: -24%; opacity: 0; }
  34% { opacity: 0.55; }
  62% { opacity: 0.12; }
  76%, 100% { left: 118%; opacity: 0; }
}

@keyframes thread-current {
  0%, 100% { filter: brightness(0.8); box-shadow: 0 0 4px rgba(223, 90, 36, 0.12); }
  50% { filter: brightness(1.32); box-shadow: 0 0 11px rgba(223, 90, 36, 0.38); }
}

@keyframes pin-breathe {
  0%, 100% { filter: brightness(0.92); box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.24), 0 3px 7px #000; }
  50% { filter: brightness(1.22); box-shadow: 0 0 0 5px rgba(121, 83, 43, 0.25), 0 0 16px rgba(221, 193, 105, 0.25); }
}

@keyframes button-flare {
  0% { left: -35%; opacity: 0; }
  22% { opacity: 0.55; }
  100% { left: 120%; opacity: 0; }
}

@keyframes featured-border-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(223, 90, 36, 0); }
  50% { box-shadow: 0 0 42px rgba(223, 90, 36, 0.09); }
}

@keyframes answer-unfold {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes final-mark-float {
  0% { transform: translate3d(-1%, 1%, 0) rotate(-1deg); opacity: 0.68; }
  100% { transform: translate3d(1.5%, -1.5%, 0) rotate(1deg); opacity: 1; }
}

@media (max-width: 860px) {
  .scroll-thread,
  .cursor-aura {
    display: none;
  }

  .atmosphere-canvas {
    opacity: 0.5;
  }

  .site-header.is-scrolled {
    top: 8px;
    height: 66px;
    padding: 0 14px;
  }

  .mechanics-chapter::before {
    display: none;
  }
}

@media (max-width: 620px) {
  .opening-scene-caption {
    top: calc(50% + 92px);
    max-width: 240px;
    text-align: center;
  }

  .site-header.is-scrolled {
    width: calc(100vw - 16px);
  }

  .atmosphere-canvas {
    opacity: 0.35;
  }
}

/* True standalone foreground objects: one transparent hand and eight exact cards. */
.hero::before {
  background-image: var(--img-hero-bg);
  filter: brightness(0.86) saturate(0.86) contrast(1.04);
}

.hero-depth-scene {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  perspective: 1400px;
}

.hero-depth-mist {
  position: absolute;
  z-index: 0;
  top: 3%;
  right: 4%;
  width: min(66vw, 1060px);
  aspect-ratio: 16 / 10;
  opacity: 0.16;
  background: var(--img-mechanics-bg) center / cover no-repeat;
  filter: grayscale(1) brightness(0.62) contrast(1.12) blur(9px);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, rgba(0, 0, 0, 0.82) 48%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 15%, rgba(0, 0, 0, 0.82) 48%, transparent 78%);
  animation: depth-mist-drift 13s ease-in-out infinite alternate;
}

.depth-float {
  --depth-x: 0px;
  --depth-y: 0px;
  --depth-rx: 0deg;
  --depth-ry: 0deg;
  position: absolute;
  display: block;
  pointer-events: auto;
  transform-origin: center;
  animation: depth-piece-bob var(--depth-duration, 6.8s) ease-in-out infinite var(--depth-delay, 0s);
  will-change: transform;
}

.depth-float > img,
.depth-float > .mechanics-card-crop {
  display: block;
  width: 100%;
  height: 100%;
  transform: perspective(1350px) translate3d(var(--depth-x), var(--depth-y), 0) rotateX(var(--depth-rx)) rotateY(var(--depth-ry));
  transform-origin: inherit;
  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.72s ease,
    box-shadow 0.78s ease;
  will-change: transform, filter;
}

.hero-floating-hand {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 18vw;
  display: block;
  width: auto;
  height: min(98svh, 920px);
  aspect-ratio: 1;
  pointer-events: none;
  transform-origin: 55% 48%;
  animation: hero-hand-drift 9.5s ease-in-out infinite;
  will-change: transform;
}

.hero-floating-hand > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.94) saturate(0.9) drop-shadow(0 28px 32px rgba(0, 0, 0, 0.76));
}

.mechanics-chapter {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(116, 90, 61, 0.1), transparent 58%),
    linear-gradient(180deg, #030303 0%, #070605 48%, #020202 100%);
}

.mechanics-chapter-art {
  opacity: 0;
  pointer-events: none;
}

.mechanics-chapter::before {
  display: none;
}

.mechanics-chapter::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.42)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 35%, transparent 72%, rgba(2, 2, 2, 0.78) 100%);
}

.mechanics-card-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  perspective: 1300px;
}

.mechanics-card-stage::before,
.mechanics-card-smoke {
  position: absolute;
  z-index: 0;
  inset: 4% -3% 8%;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background: var(--img-mechanics-bg) center / cover no-repeat;
  filter: grayscale(1) brightness(0.62) contrast(1.2) blur(7px);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  animation: evidence-mist-drift 12s ease-in-out infinite alternate;
}

.mechanics-card-smoke {
  inset: 15% 8% 21%;
  opacity: 0.09;
  filter: grayscale(1) brightness(0.72) contrast(1.18) blur(16px);
  animation-delay: -5s;
  animation-direction: alternate-reverse;
}

.mechanics-thread-network {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(223, 62, 36, 0.32));
}

.mechanics-thread-network path {
  fill: none;
  stroke: rgba(168, 35, 27, 0.94);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  animation: thread-current 4.8s ease-in-out infinite;
}

.mechanics-card-object {
  z-index: 2;
  pointer-events: auto;
  transform-origin: 50% 50%;
}

.mechanics-card-object::before {
  position: absolute;
  z-index: 4;
  top: -7px;
  left: 50%;
  width: 17px;
  height: 17px;
  border: 2px solid #5b3b20;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle at 35% 28%, #f2d28e, #60401e 65%);
  box-shadow: 0 0 0 4px rgba(91, 59, 31, 0.24), 0 4px 9px #000;
  transform: translateX(-50%);
  animation: pin-breathe 4.8s ease-in-out infinite;
}

.mechanics-card-crop {
  overflow: hidden;
  border: 1px solid rgba(181, 144, 93, 0.28);
  background-repeat: no-repeat;
  clip-path: polygon(1% 1.2%, 98.6% 0, 100% 98.2%, 2% 100%, 0 2%);
  box-shadow: 0 25px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(221, 193, 105, 0.07);
}

.mechanics-chapter-first .mechanics-card-crop {
  background-image: var(--img-mechanics-1);
}

.mechanics-chapter-second .mechanics-card-crop {
  background-image: var(--img-mechanics-2);
}

.mechanics-card-1 {
  --depth-duration: 6.9s;
  --depth-delay: -1.2s;
  top: 24.94%;
  left: 4.31%;
  width: 24.6%;
  height: 47.64%;
}

.mechanics-card-1 .mechanics-card-crop {
  background-size: 406.6% 209.9%;
  background-position: 5.71% 47.63%;
}

.mechanics-card-2 {
  --depth-duration: 7.8s;
  --depth-delay: -4.4s;
  top: 24.94%;
  left: 29.98%;
  width: 20.77%;
  height: 47.99%;
}

.mechanics-card-2 .mechanics-card-crop {
  background-size: 481.35% 208.37%;
  background-position: 37.84% 47.95%;
}

.mechanics-card-3 {
  --depth-duration: 7.2s;
  --depth-delay: -2.7s;
  top: 24.82%;
  left: 51.99%;
  width: 21.74%;
  height: 48.35%;
}

.mechanics-card-3 .mechanics-card-crop {
  background-size: 459.9% 206.85%;
  background-position: 66.44% 48.05%;
}

.mechanics-card-4 {
  --depth-duration: 8.2s;
  --depth-delay: -6.1s;
  top: 24.94%;
  left: 75.89%;
  width: 19.64%;
  height: 48.35%;
}

.mechanics-card-4 .mechanics-card-crop {
  background-size: 509.04% 206.85%;
  background-position: 94.44% 48.28%;
}

.mechanics-card-object.is-depth-active {
  z-index: 5;
}

.mechanics-card-object.is-depth-active .mechanics-card-crop {
  filter: brightness(1.06) saturate(1.02) drop-shadow(0 24px 28px rgba(0, 0, 0, 0.72));
  box-shadow: 0 30px 62px rgba(0, 0, 0, 0.78), 0 0 22px rgba(223, 90, 36, 0.08);
}

.mechanics-stage-grid {
  z-index: 4;
}

.mechanics-stage {
  transition: transform 0.68s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.58s ease;
}

.mechanics-stage strong,
.mechanics-stage p,
.mechanics-stage > span {
  transition: color 0.58s ease, opacity 0.58s ease, text-shadow 0.58s ease;
}

.mechanics-stage.is-evidence-active {
  border-color: rgba(223, 90, 36, 0.72);
  transform: translate3d(0, -2px, 0);
}

.mechanics-stage.is-evidence-active > span {
  color: #ff7040;
  text-shadow: 0 0 20px rgba(223, 90, 36, 0.32);
}

.mechanics-stage.is-evidence-active strong {
  color: #fff4dc;
}

.mechanics-stage.is-evidence-active p {
  color: rgba(243, 229, 203, 0.86);
}

@keyframes depth-piece-bob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes hero-hand-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0.15deg); }
  50% { transform: translate3d(0, -4px, 0) rotate(-0.15deg); }
}

@keyframes depth-mist-drift {
  0% { transform: translate3d(-3%, 2%, 0) scale(0.94); opacity: 0.11; }
  100% { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 0.2; }
}

@keyframes evidence-mist-drift {
  0% { transform: translate3d(-2%, 1%, 0) scale(0.96); opacity: 0.07; }
  100% { transform: translate3d(2.5%, -1.5%, 0) scale(1.05); opacity: 0.16; }
}

@media (max-width: 860px) {
  .hero-floating-hand {
    top: 10%;
    right: -2%;
    width: auto;
    height: min(74svh, 680px);
  }

  .hero-depth-mist {
    right: -8%;
    width: 76vw;
  }

  .mechanics-card-stage {
    display: none;
  }

  .mechanics-chapter {
    background: none;
  }

  .mechanics-stage::before {
    border: 1px solid rgba(181, 144, 93, 0.24);
    clip-path: polygon(1% 1.2%, 98.6% 0, 100% 98.2%, 2% 100%, 0 2%);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.68);
  }

  .mechanics-stage-01::before,
  .mechanics-stage-08::before {
    aspect-ratio: 457 / 403;
    background-size: 406.6% 209.9%;
    background-position: 5.71% 47.63%;
  }

  .mechanics-stage-02::before,
  .mechanics-stage-07::before {
    aspect-ratio: 386 / 406;
    background-size: 481.35% 208.37%;
    background-position: 37.84% 47.95%;
  }

  .mechanics-stage-03::before,
  .mechanics-stage-06::before {
    aspect-ratio: 404 / 409;
    background-size: 459.9% 206.85%;
    background-position: 66.44% 48.05%;
  }

  .mechanics-stage-04::before,
  .mechanics-stage-05::before {
    aspect-ratio: 365 / 409;
    background-size: 509.04% 206.85%;
    background-position: 94.44% 48.28%;
  }
}

@media (max-width: 620px) {
  .hero-floating-hand {
    top: auto;
    right: -5%;
    bottom: 0;
    width: auto;
    height: min(54svh, 470px);
  }

  .hero-depth-mist {
    top: auto;
    right: -18%;
    bottom: 0;
    width: 118vw;
  }

  .mechanics-stage::before {
    margin-bottom: 18px;
  }
}

/* Local text editor, opened through admin.html or index.html#admin. */
.admin-toolbar {
  position: fixed;
  z-index: 900;
  top: 18px;
  right: 18px;
  width: min(370px, calc(100vw - 36px));
  padding: 18px;
  color: var(--paper);
  border: 1px solid rgba(221, 193, 105, 0.36);
  background: rgba(7, 6, 5, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.74);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.admin-toolbar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.admin-toolbar-heading strong {
  color: var(--gold);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}

.admin-toolbar-heading span,
.admin-status {
  color: rgba(243, 238, 230, 0.48);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-toolbar > p {
  margin: 12px 0 16px;
  color: rgba(243, 238, 230, 0.66);
  font-size: 11px;
  line-height: 1.55;
}

.admin-toolbar-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-toolbar button,
.admin-toolbar a,
.admin-import {
  display: grid;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--paper);
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  border: 1px solid rgba(216, 197, 163, 0.22);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  place-items: center;
  text-transform: uppercase;
}

.admin-toolbar button:hover,
.admin-toolbar a:hover,
.admin-import:hover {
  color: #fff;
  border-color: rgba(223, 90, 36, 0.72);
  background: rgba(223, 90, 36, 0.14);
}

.admin-import input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.admin-status {
  display: block;
  margin-top: 12px;
}

.admin-status.is-success {
  color: #d8c5a3;
}

.admin-mode .opening-scene,
.admin-mode .cursor-aura {
  display: none !important;
}

.admin-editable {
  outline: 1px dashed rgba(221, 193, 105, 0.3);
  outline-offset: 5px;
  cursor: text !important;
  transition: outline-color 0.25s ease, background-color 0.25s ease !important;
}

.admin-editable:hover,
.admin-editable:focus {
  outline-color: rgba(223, 90, 36, 0.94);
  background: rgba(223, 90, 36, 0.07);
}

@media (max-width: 620px) {
  .admin-toolbar {
    top: auto;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .admin-toolbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .opening-scene,
  .atmosphere-canvas,
  .cursor-aura,
  .scroll-thread {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal,
  .js .reveal.is-visible,
  .motion-parallax,
  .tilt-card,
  .tilt-card.reveal.is-visible,
  .magnetic-button {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* --- i18n additions --- */
h1 span,
.section-heading h2,
.mechanics-v5-heading h2,
.faq-heading h2,
.final-cta h2,
.episode-content h3,
.mechanics-finale-copy h3,
.briefing-stamp {
  white-space: pre-line;
}

h1 span {
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}

.lang-switch {
  position: relative;
  line-height: 1;
}

.lang-switch > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: rgba(243, 238, 230, 0.72);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  list-style: none;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.lang-switch > summary::-webkit-details-marker {
  display: none;
}

.lang-switch > summary::after {
  content: "be";
  font-size: 9px;
  letter-spacing: 0;
}

.lang-switch > summary:hover,
.lang-switch[open] > summary {
  color: var(--paper);
  border-color: rgba(216, 197, 163, 0.55);
}

.lang-switch-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 148px;
  padding: 6px;
  background: rgba(8, 8, 8, 0.97);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.lang-switch-menu a {
  padding: 8px 11px;
  color: rgba(243, 238, 230, 0.7);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch-menu a:hover {
  color: var(--paper);
  background: rgba(216, 197, 163, 0.09);
}

.lang-switch-menu a[aria-current="true"] {
  color: var(--red);
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-langs a {
  color: rgba(243, 238, 230, 0.45);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-langs a:hover,
.footer-langs a[aria-current="true"] {
  color: var(--paper);
}

.footer-provider:empty,
.footer-provider span:empty,
.footer-provider strong:empty {
  display: none;
}
