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

@font-face {
  font-family: "ITC Eras Light";
  src: url("../Fonts/itc-eras-ultra/ITC Eras Light Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Jurassic Park";
  src: url("../Fonts/fontz/fontz/dino/Jurassic_Park.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Architects Daughter";
  src: url("../Fonts/fontz/fontz/dino/ArchitectsDaughter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Jello Stone";
  src: url("../Fonts/fontz/fontz/steentijd/JelloStone-YqKz8.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Asimovian";
  src: url("../Fonts/asimovian/asimovian-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Carnevalee Freakshow";
  src: url("../Fonts/fontz/fontz/wildeweste/Carnevalee Freakshow.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "World War I";
  src: url("../Fonts/fontz/fontz/WW1/CFWorldatWarPERSO-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Enigma";
  src: url("../Fonts/fontz/fontz/WW1/EnigmaSans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Star Jedi";
  src: url("../Fonts/fontz/fontz/future/Starjedi.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Aldrich";
  src: url("../Fonts/aldrich/Aldrich-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Buda";
  src: url("../Fonts/buda/Buda-Light.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Amstelvar Alpha";
  src: url("../Fonts/amstelvaralpha/AmstelvarAlpha-Variations.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Egyptian Outline";
  src: url("../Fonts/fontz/fontz/cleo/EgyptianOutline-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

html {
  scroll-behavior: auto;
  background: #000;
  overscroll-behavior: none;
}

body {
  overflow: hidden;
  background: #000;
  overscroll-behavior: none;
}

.video-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3000;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  clip-path: circle(47% at 50% 50%);
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 120ms ease;
  will-change: transform;
}

.video-cursor.is-visible {
  opacity: 0.86;
}

@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

body.intro-active .scroll-container,
body.intro-active .elevator {
  visibility: hidden;
}

body.intro-active.intro-timeline-visible .elevator {
  visibility: visible;
  z-index: 1100;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  opacity: 1;
  transition: opacity 500ms ease;
  cursor: pointer;
}

.intro-screen.is-finished {
  opacity: 0;
  pointer-events: none;
}

.intro-screen.is-end-starback .intro-copy,
.intro-screen.is-end-starback .intro-start,
.intro-screen.is-end-starback .intro-skip {
  display: none;
}

.intro-screen.is-end-starback .ending-crawl {
  opacity: 1;
  visibility: visible;
}

.intro-video {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  transform: translate(-50%, -50%);
  background: #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.intro-video.is-active {
  opacity: 1;
}

.intro-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 350ms ease;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.intro-copy {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 2rem));
  color: #fff;
  font-family: "ITC Eras Light", "Eras Light ITC", "Eras Light", "ERASLGHT", system-ui, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
}

.intro-copy p + p {
  margin-top: 1rem;
}

.ending-crawl {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  overflow: hidden;
  perspective: 900px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.ending-crawl::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0) 24%,
    rgba(0, 0, 0, 0) 72%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.ending-crawl-content {
  position: absolute;
  top: 105%;
  width: min(940px, calc(100% - 2rem));
  color: #fff;
  font-family: "ITC Eras Light", "Eras Light ITC", "Eras Light", "ERASLGHT", system-ui, sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.86);
  transform-origin: 50% 100%;
  will-change: transform;
  backface-visibility: hidden;
}

.ending-crawl.is-playing .ending-crawl-content {
  animation: ending-crawl-rise var(--ending-crawl-duration, 58s) linear forwards;
}

.ending-crawl-content p + p {
  margin-top: 1.05em;
}

@keyframes ending-crawl-rise {
  from {
    transform: translate3d(0, 0, 0) rotateX(12deg);
  }
  to {
    transform: translate3d(0, calc(-1 * var(--ending-crawl-distance, 2600px)), 0) rotateX(12deg);
  }
}

.intro-gate.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 350ms ease, visibility 0s linear 350ms;
}

.intro-start {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 7vh, 4rem);
  z-index: 1;
  transform: translateX(-50%);
  padding: 1rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 600 clamp(1rem, 2vw, 1.35rem)/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.intro-skip,
.ending-skip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 11;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.88);
  font: 500 0.75rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.intro-skip[hidden],
.ending-skip[hidden] {
  display: none;
}

.end-blackout {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 0s linear 700ms;
}

.end-blackout.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms ease;
}

.scroll-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* Dino lagen */
.page-dino {
  background: #172319;
}

.layer-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  object-fit: fill;
  object-position: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  translate: 0 var(--parallax-y, 0px);
  transition: translate 90ms linear;
  will-change: translate;
}

.layer[data-layer="1"] { z-index: 1; }
.layer[data-layer="2"] { z-index: 2; }
.layer[data-layer="3"] { z-index: 3; }
.layer[data-layer="4"] { z-index: 4; }
.layer[data-layer="5"] { z-index: 5; }
.layer[data-layer="6"] { z-index: 6; }

.interaction-trigger {
  pointer-events: none;
}

.interaction-trigger:focus-visible {
  outline: 5px solid rgba(255, 255, 255, 0.9);
  outline-offset: -8px;
}

.layer-stack:has(.interaction-trigger) {
  cursor: pointer;
}

.meteor-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.meteor-layer-back { z-index: 5; }
.meteor-layer-front { z-index: 7; }

.meteor {
  position: absolute;
  top: 0;
  left: var(--start-left, 50%);
  width: var(--meteor-size, 400px);
  transform: translateX(-50%);
}

.meteor.falling {
  top: var(--start-top, -400px);
  animation: meteor-fall var(--fall-duration, 3.5s) linear var(--fall-delay, 0s) forwards;
}

.meteor-img {
  display: block;
  width: 100%;
  height: auto;
}

.meteor.is-landed {
  top: var(--land-top, 82%);
  left: var(--end-left, var(--start-left, 50%));
}

@keyframes meteor-fall {
  from {
    top: var(--start-top, -400px);
    left: var(--start-left);
  }
  to {
    top: var(--land-top, 82%);
    left: var(--end-left);
  }
}

/* Dino sway */
.layer-dino {
  will-change: translate;
}

.layer-dino-left {
  animation: sway-left 5s ease-in-out infinite;
}

.layer-dino-right {
  animation: sway-right 5.5s ease-in-out infinite;
}

@keyframes sway-left {
  0%, 100% { translate: 0 var(--parallax-y, 0px); }
  50% { translate: -22px var(--parallax-y, 0px); }
}

@keyframes sway-right {
  0%, 100% { translate: 0 var(--parallax-y, 0px); }
  50% { translate: 22px var(--parallax-y, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .layer {
    translate: none;
  }

  .layer-dino {
    animation: none;
  }

  .stone-shake {
    animation: none;
  }
}

/* Steentijd lagen */
.page-steentijd {
  background: #111b28;
}

.stone-shake {
  animation: stone-shake 0.22s ease-in-out infinite alternate;
}

@keyframes stone-shake {
  from { translate: -7px var(--parallax-y, 0px); }
  to { translate: 7px var(--parallax-y, 0px); }
}

.layer-vuur,
.layer-swap-gif {
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease-out, visibility 0s linear 140ms;
}

.layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease-out, visibility 0s linear 140ms;
}

.layer-vuur.is-active,
.layer-swap-gif.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 140ms ease-out;
}

/* Cleopatra */
.page-cleo {
  background: #c29245;
}

/* Wilde Westen */
.page-wilde-westen {
  background: #c1813f;
}

.hooibaal {
  position: absolute;
  bottom: 7%;
  left: 0;
  width: clamp(140px, 22vw, 260px);
  height: auto;
  z-index: 8;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(105vw) rotate(0deg);
}

.hooibaal.is-rolling {
  opacity: 1;
  visibility: visible;
  animation: hooibaal-roll 3.2s linear forwards;
}

@keyframes hooibaal-roll {
  from {
    transform: translateX(105vw) rotate(0deg);
  }
  to {
    transform: translateX(-22vw) rotate(-900deg);
  }
}

/* Witte dummy pagina */
.page-dummy {
  background: #fff;
}

/* Witte jaartijdlijn */
.elevator {
  --timeline-track-height: min(64vh, 520px);
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  color: #fff;
  font-family: system-ui, sans-serif;
  transition: left 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.elevator-track {
  position: relative;
  width: 130px;
  height: var(--timeline-track-height);
  touch-action: none;
  transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.elevator-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  transition: opacity 350ms ease;
}

.elevator-dot {
  position: absolute;
  left: 1px;
  top: 0;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.elevator-dot.is-dragging {
  cursor: grabbing;
}

.timeline-year {
  position: absolute;
  left: 18px;
  top: 50%;
  min-width: 8ch;
  transform: translateY(-50%);
  color: #fff;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  cursor: inherit;
  pointer-events: auto;
  user-select: none;
  transition: left 900ms cubic-bezier(0.22, 1, 0.36, 1),
    font-size 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-year:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 5px;
}

.era-overlay {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: min(560px, 100vw);
  height: 100vh;
  height: 100dvh;
  padding: clamp(1.6rem, 5vh, 3rem) clamp(1.4rem, 4vw, 2.3rem);
  background: #00000099;
  color: #fff;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  overflow-y: auto;
}

.era-overlay.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.era-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 300 1.55rem/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.28);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.era-overlay-close:hover {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.2), 0 5px 18px rgba(0, 0, 0, 0.34);
  transform: scale(1.05);
}

.era-overlay-close:active {
  transform: scale(0.96);
}

.era-overlay-content {
  max-width: 30rem;
}

.era-overlay-title {
  margin-top: 0.2rem;
  color: #fff;
  font-family: "ITC Eras Light", "Eras Light ITC", "Eras Light", "ERASLGHT", system-ui, sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.era-overlay[data-era="dino"] .era-overlay-title {
  font-family: "Jurassic Park", "ITC Eras Light", system-ui, sans-serif;
  font-size: clamp(3.6rem, 8.5vw, 6.8rem);
  line-height: 0.82;
  letter-spacing: 0.015em;
}

.era-overlay[data-era="steentijd"] .era-overlay-title {
  font-family: "Jello Stone", "ITC Eras Light", system-ui, sans-serif;
  letter-spacing: 0.015em;
}

.era-overlay[data-era="cleo"] .era-overlay-title {
  font-family: "Egyptian Outline", "ITC Eras Light", system-ui, sans-serif;
  letter-spacing: 0.015em;
}

.era-overlay[data-era="wilde-westen"] .era-overlay-title {
  font-family: "Carnevalee Freakshow", "ITC Eras Light", system-ui, sans-serif;
  letter-spacing: 0.015em;
}

.era-overlay[data-era="war"] .era-overlay-title {
  font-family: "World War I", "ITC Eras Light", system-ui, sans-serif;
  letter-spacing: 0.015em;
}

.era-overlay[data-era="future"] .era-overlay-title {
  font-family: "Aldrich", "ITC Eras Light", system-ui, sans-serif;
  letter-spacing: 0.04em;
}

.era-overlay-period,
.era-overlay-text {
  font-family: "ITC Eras Light", "Eras Light ITC", "Eras Light", "ERASLGHT", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72);
}

.era-overlay[data-era="dino"] .era-overlay-period,
.era-overlay[data-era="dino"] .era-overlay-text {
  font-family: "Architects Daughter", "ITC Eras Light", system-ui, sans-serif;
}

.era-overlay[data-era="steentijd"] .era-overlay-period,
.era-overlay[data-era="steentijd"] .era-overlay-text {
  font-family: "Asimovian", "ITC Eras Light", system-ui, sans-serif;
}

.era-overlay[data-era="cleo"] .era-overlay-period,
.era-overlay[data-era="cleo"] .era-overlay-text {
  font-family: "Buda", "ITC Eras Light", system-ui, sans-serif;
}

.era-overlay[data-era="cleo"] .era-overlay-text {
  font-size: 23px;
}

.era-overlay[data-era="wilde-westen"] .era-overlay-period,
.era-overlay[data-era="wilde-westen"] .era-overlay-text {
  font-family: "Amstelvar Alpha", "ITC Eras Light", system-ui, sans-serif;
  font-variation-settings: "wght" 180;
  font-weight: 300;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.78);
}

.era-overlay[data-era="wilde-westen"] .era-overlay-period {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.era-overlay[data-era="wilde-westen"] .era-overlay-text {
  font-size: 28px;
  letter-spacing: 0.075em;
  line-height: 1.58;
}

.era-overlay[data-era="war"] .era-overlay-period,
.era-overlay[data-era="war"] .era-overlay-text {
  font-family: "Enigma", "ITC Eras Light", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0;
}

.era-overlay[data-era="future"] .era-overlay-period,
.era-overlay[data-era="future"] .era-overlay-text {
  font-family: "Aldrich", "ITC Eras Light", system-ui, sans-serif;
}

.era-overlay-period {
  margin-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.3;
}

.era-overlay-text {
  margin-top: 1.2rem;
  font-size: 1.08rem;
  line-height: 1.48;
}

.elevator.is-ending {
  left: 1.5rem;
  top: 50%;
  width: auto;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.elevator.is-ending .elevator-track {
  width: 130px;
  height: min(72vh, 590px);
}

.elevator.is-ending .elevator-bar {
  opacity: 1;
}

.elevator.is-ending .elevator-dot {
  top: 100% !important;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.elevator.is-ending .timeline-year {
  position: absolute;
  left: 18px;
  top: 50%;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  transform: translateY(-50%);
  text-align: left;
  transition: font-size 500ms ease;
}

.elevator.is-uncertain .timeline-year {
  animation: timeline-glitch 420ms steps(1, end) infinite;
  color: #fff;
  text-shadow:
    -7px 0 rgba(255, 0, 70, 0.85),
    7px 0 rgba(0, 225, 255, 0.85),
    0 0 18px rgba(255, 255, 255, 0.9);
}

@keyframes timeline-glitch {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    filter: none;
  }
  12% {
    transform: translate(calc(-50% - 18px), calc(-50% + 7px)) rotate(-4deg) scale(1.08, 0.92);
    filter: contrast(1.8);
  }
  24% {
    transform: translate(calc(-50% + 13px), calc(-50% - 11px)) rotate(3deg) scale(0.94, 1.13);
    filter: hue-rotate(80deg);
  }
  37% {
    transform: translate(calc(-50% - 6px), calc(-50% - 2px)) rotate(-1deg) scale(1.18, 0.82);
    filter: brightness(2);
  }
  49% {
    transform: translate(calc(-50% + 21px), calc(-50% + 13px)) rotate(5deg) scale(0.9, 1.08);
    filter: invert(1);
  }
  61% {
    transform: translate(calc(-50% - 14px), calc(-50% + 4px)) rotate(-5deg) scale(1.12);
    filter: hue-rotate(190deg);
  }
  73% {
    transform: translate(calc(-50% + 5px), calc(-50% - 15px)) rotate(2deg) scale(0.88, 1.2);
    filter: contrast(2.4);
  }
  86% {
    transform: translate(calc(-50% + 17px), calc(-50% + 2px)) rotate(-3deg) scale(1.2, 0.88);
    filter: brightness(0.55);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    filter: none;
  }
}

/* Oorlog en Future */
.page-war {
  background: #647176;
}

.page-future {
  background: #111d2d;
}

.war-soldier {
  top: 50%;
  left: 50%;
  width: 90%;
  height: 100%;
  object-fit: contain;
  z-index: 5 !important;
}

.page-war .layer[data-layer="4"] {
  z-index: 6;
}

.draggable-time-object {
  position: absolute;
  left: var(--drag-x, 8%);
  z-index: 4;
  width: var(--drag-width, clamp(120px, 20vmin, 280px));
  height: auto;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: translateY(var(--drag-bob, 0px)) scaleX(var(--drag-facing, 1));
  transition: transform 0.18s ease-out;
  will-change: left, transform;
}

.draggable-time-object.is-dragging {
  cursor: grabbing;
  transition: none;
}

.draggable-plane {
  --drag-width: clamp(140px, 22vmin, 300px);
  top: 20%;
}

.draggable-car {
  --drag-width: clamp(140px, 24vmin, 320px);
  left: var(--drag-x, 10%);
  top: var(--drag-y, 68%);
}

.ambient-flyer {
  position: absolute;
  top: var(--fly-top, 20%);
  left: 0;
  z-index: 2;
  width: var(--fly-width, clamp(70px, 11vmin, 160px));
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  filter: brightness(0.78) saturate(0.8);
  animation: ambient-fly-right var(--fly-duration, 7s) linear forwards;
}

.page-future .ambient-flyer {
  z-index: 1;
  filter: brightness(0.72) saturate(0.9);
}

.ambient-flyer.is-reverse {
  animation-name: ambient-fly-left;
}

.ambient-flyer-car {
  --fly-width: clamp(80px, 13vmin, 180px);
}

@keyframes ambient-fly-right {
  0% {
    opacity: 0;
    transform: translateX(-120%) scaleX(1) rotate(-3deg);
  }
  10%, 90% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 120%)) scaleX(1) rotate(3deg);
  }
}

@keyframes ambient-fly-left {
  0% {
    opacity: 0;
    transform: translateX(calc(100vw + 120%)) scaleX(-1) rotate(-3deg);
  }
  10%, 90% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translateX(-120%) scaleX(-1) rotate(3deg);
  }
}

@media (max-width: 600px) {
  .intro-gate {
    align-items: flex-start;
    padding-top: 8vh;
  }

  .intro-copy {
    line-height: 1.25;
  }

  .intro-copy p + p {
    margin-top: 0.7rem;
  }

  .intro-start {
    width: min(22rem, calc(100% - 2rem));
    padding-inline: 1rem;
    line-height: 1.2;
  }

  .elevator {
    left: 0.8rem;
  }

  .elevator-track {
    height: min(52vh, 350px);
  }
}
