:root {
  --cream: #f6f0e2;
  --paper: #e9e7d4;
  --ink: #090204;
  --maroon: #3a0716;
  --red: #b72339;
  --soft: rgba(246, 240, 226, 0.82);
  --stage-w: 1440;
  --stage-h: 1024;
  --cursor-x: -100px;
  --cursor-y: -100px;
  --mouse-slow-x: 0px;
  --mouse-slow-y: 0px;
  --mouse-mid-x: 0px;
  --mouse-mid-y: 0px;
  --mouse-fast-x: 0px;
  --mouse-fast-y: 0px;
  --mouse-front-x: 0px;
  --mouse-front-y: 0px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: auto;
  /* Unified site: the page scrolls vertically through the stacked scenes
     (Splide used to lock this to one slide). */
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--ink);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scenes,
.splide,
.splide__track,
.splide__list,
.splide__slide {
  height: 100svh;
}

.scenes {
  position: relative;
  z-index: 1;
  /* Grow to contain every stacked scene; the page (html) does the scrolling. */
  height: auto;
  overflow: hidden;
  background: var(--ink);
}

.splide__track {
  overflow: hidden;
}

.splide__list {
  align-items: stretch;
  will-change: transform;
}

.splide__slide {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.splide__pagination {
  position: fixed;
  top: 50%;
  right: clamp(0.65rem, 1.6vw, 1.25rem);
  z-index: 92;
  display: grid;
  gap: 0.76rem;
  padding: 0.74rem 0.5rem;
  margin: 0;
  border: 1px solid rgba(246, 240, 226, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 8, 13, 0.72), rgba(6, 2, 4, 0.78)),
    rgba(6, 2, 4, 0.64);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  list-style: none;
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.splide__pagination__page {
  position: relative;
  display: block;
  width: 0.82rem;
  height: 0.82rem;
  padding: 0;
  border: 1px solid rgba(246, 240, 226, 0.5);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.38), transparent 32%),
    rgba(246, 240, 226, 0.14);
  box-shadow:
    0 0 0 3px rgba(246, 240, 226, 0.04),
    0 8px 18px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    width 180ms ease,
    height 180ms ease;
}

.splide__pagination__page.is-active {
  border-color: var(--red);
  width: 1.2rem;
  height: 1.2rem;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(180deg, #d12d45, var(--red));
  box-shadow:
    0 0 0 4px rgba(183, 35, 57, 0.18),
    0 0 22px rgba(183, 35, 57, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.48);
  transform: scale(1.02);
}

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

a,
button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-nav {
  position: fixed;
  inset: calc(0.9rem + env(safe-area-inset-top)) auto auto 50%;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.42rem;
  border: 1px solid rgba(246, 240, 226, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(35, 13, 19, 0.76), rgba(9, 3, 5, 0.8)),
    rgba(8, 3, 5, 0.72);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  opacity: 0;
  clip-path: inset(0 49% 0 49% round 999px);
  pointer-events: none;
  transform: translateX(-50%) translateY(-12px) scale(0.92);
  transform-origin: center;
  visibility: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    opacity 240ms ease,
    clip-path 580ms cubic-bezier(0.16, 0.92, 0.24, 1),
    transform 580ms cubic-bezier(0.16, 0.92, 0.24, 1),
    visibility 0s linear 580ms;
}

body.nav-is-visible .site-nav {
  opacity: 1;
  clip-path: inset(0 0 0 0 round 999px);
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
  transition:
    opacity 240ms ease,
    clip-path 580ms cubic-bezier(0.16, 0.92, 0.24, 1),
    transform 580ms cubic-bezier(0.16, 0.92, 0.24, 1),
    visibility 0s;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.22rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.92rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(246, 240, 226, 0.88);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(8px) scale(0.95);
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 260ms ease,
    transform 180ms ease;
}

body.nav-is-visible .site-nav a {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 150ms;
}

.site-nav a:hover {
  color: #fff8e9;
  background: rgba(246, 240, 226, 0.08);
}

.site-nav a.is-current {
  border-color: rgba(183, 35, 57, 0.74);
  background: linear-gradient(180deg, rgba(207, 45, 67, 0.98), rgba(154, 22, 42, 0.98));
  box-shadow:
    0 10px 24px rgba(183, 35, 57, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: var(--cream);
}

body.nav-is-visible .site-nav a.is-current {
  transform: translateY(-1px) scale(1);
}

body.nav-is-visible .nav-mark {
  transition-delay: 210ms;
}

body.nav-is-visible .nav-links a:nth-child(1) {
  transition-delay: 260ms;
}

body.nav-is-visible .nav-links a:nth-child(2) {
  transition-delay: 310ms;
}

body.nav-is-visible .nav-links a:nth-child(3) {
  transition-delay: 360ms;
}

body.nav-is-visible .nav-links a:nth-child(4) {
  transition-delay: 410ms;
}

.nav-mark {
  min-width: 5.2rem;
}

.nav-links {
  display: flex;
  gap: 0.28rem;
}

.cursor-tracker {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.cursor-ring,
.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  translate: -50% -50%;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0);
  will-change: transform;
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(246, 240, 226, 0.72);
  box-shadow:
    0 0 20px rgba(183, 35, 57, 0.28),
    inset 0 0 14px rgba(246, 240, 226, 0.08);
  transition:
    width 160ms ease,
    height 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--cream);
  box-shadow: 0 0 14px rgba(246, 240, 226, 0.48);
}

body.cursor-hot .cursor-ring {
  width: 58px;
  height: 58px;
  border-color: rgba(183, 35, 57, 0.94);
  background: rgba(183, 35, 57, 0.08);
}

.scene {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #12050a;
}

.scene::after {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(95% 72% at 50% 46%, transparent 38%, rgba(0, 0, 0, 0.28) 72%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.52)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 24%, transparent 68%, rgba(0, 0, 0, 0.86));
}

.scene--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(clamp(4.5rem, 15vh, 9.5rem) + env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.scene--hero::before {
  position: absolute;
  inset: -4%;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(180deg, rgba(62, 3, 24, 0.02), rgba(11, 4, 6, 0.18)),
    image-set(
      url("./assets/hero-1440.avif") type("image/avif"),
      url("./assets/hero-1440.webp") type("image/webp"),
      url("./assets/hero.jpg") type("image/jpeg")
    );
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  transform:
    translate3d(var(--hero-bg-x, 0px), var(--hero-bg-y, 0px), 0)
    scale(var(--hero-bg-scale, 1));
  will-change: transform;
}

.hero-lockup {
  position: relative;
  z-index: 22;
  width: min(70vw, 60rem);
  text-align: center;
  transform:
    translate3d(var(--hero-logo-x, 0px), var(--hero-logo-y, 0px), 0)
    scale(var(--hero-logo-scale, 1));
  will-change: transform;
}

.brand-logo-frame,
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-logo {
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.26));
}

.tagline-art {
  width: min(50vw, 36rem);
  height: auto;
  margin: clamp(1rem, 2.6vw, 1.75rem) auto 0;
  user-select: none;
  filter: drop-shadow(0 2px 2px rgba(17, 13, 13, 0.36));
  -webkit-user-drag: none;
}

.find-button {
  position: relative;
  z-index: 22;
  display: flex;
  width: 152px;
  height: 47px;
  margin-top: clamp(2.2rem, 5vh, 4rem);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 3px 13.2px 0 rgba(32, 28, 28, 0.77);
  color: var(--cream);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.find-button:hover {
  background: #c92b43;
  box-shadow: 0 5px 16px rgba(32, 28, 28, 0.8);
  transform: translateY(-1px);
}

.brand-logo-frame,
.tagline-art,
.find-button {
  opacity: 0;
  transform-origin: center;
  will-change: opacity, filter, scale, translate;
}

.brand-logo-frame {
  scale: 0.955;
  translate: 0 28px;
  filter: blur(10px) brightness(0.72);
  animation: hero-logo-reveal 1450ms cubic-bezier(0.12, 0.72, 0.12, 1) 140ms forwards;
}

.tagline-art {
  scale: 0.985;
  translate: 0 16px;
  filter: blur(5px) drop-shadow(0 2px 2px rgba(17, 13, 13, 0.36));
  animation: hero-tagline-reveal 720ms cubic-bezier(0.18, 0.82, 0.28, 1) 1550ms forwards;
}

.find-button {
  scale: 0.96;
  translate: 0 14px;
  animation: hero-button-reveal 520ms cubic-bezier(0.18, 0.92, 0.24, 1) 2250ms forwards;
}

.scene--layered {
  background: #12050a;
}

.scene-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 140.625svh);
  height: max(71.111vw, 100svh);
  overflow: hidden;
  transform:
    translate3d(-50%, calc(-50% + var(--stage-y, 0px)), 0)
    scale(var(--stage-scale, 1))
    rotate(var(--stage-tilt, 0deg));
  transform-origin: center;
  will-change: transform;
}

.scene-stage::before,
.scene-stage::after {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  content: "";
}

.scene-stage::before {
  background:
    linear-gradient(180deg, rgba(62, 3, 24, 0.28), rgba(34, 7, 14, 0.2) 42%, rgba(7, 2, 5, 0.18)),
    radial-gradient(86% 80% at 50% 35%, transparent 42%, rgba(0, 0, 0, 0.35) 100%);
}

.scene-stage::after {
  background:
    linear-gradient(90deg, rgba(5, 1, 3, 0.38), transparent 18%, transparent 82%, rgba(5, 1, 3, 0.38)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 30%, transparent 72%, rgba(0, 0, 0, 0.52));
}

/* Vignette overlays disabled while the scene lighting is being reworked. */
.scene::after,
.scene-stage::before,
.scene-stage::after {
  display: none;
}

.layer,
.scene-copy {
  position: absolute;
  left: var(--layer-left, calc(var(--x) * 100% / 1440));
  top: var(--layer-top, calc(var(--y) * 100% / 1024));
  width: var(--layer-width, calc(var(--w) * 100% / 1440));
  height: var(--layer-height, auto);
}

.layer {
  z-index: 1;
  max-width: none;
  object-position: center;
  transform:
    translate3d(
      calc(var(--tx, 0px) + var(--drift-x, 0px) + var(--mouse-shift-x, 0px)),
      calc(var(--ty, 0px) + var(--drift, 0px) + var(--mouse-shift-y, 0px)),
      0
    )
    scale(var(--scale-x, 1), var(--scale-y, 1))
    scale(var(--layer-scale, 1));
  transform-origin: center;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

.layer--cover {
  height: var(--layer-height, calc(var(--h) * 100% / 1024));
  object-fit: cover;
}

.layer--sprite {
  height: var(--layer-height, calc(var(--h) * 100% / 1024));
  object-fit: contain;
}

.parallax--slow {
  --drift: var(--drift-slow, 0px);
  --drift-x: var(--drift-x-slow, 0px);
  --mouse-shift-x: var(--mouse-slow-x, 0px);
  --mouse-shift-y: var(--mouse-slow-y, 0px);
}

.parallax--mid {
  --drift: var(--drift-mid, 0px);
  --drift-x: var(--drift-x-mid, 0px);
  --mouse-shift-x: var(--mouse-mid-x, 0px);
  --mouse-shift-y: var(--mouse-mid-y, 0px);
}

.parallax--fast {
  --drift: var(--drift-fast, 0px);
  --drift-x: var(--drift-x-fast, 0px);
  --mouse-shift-x: var(--mouse-fast-x, 0px);
  --mouse-shift-y: var(--mouse-fast-y, 0px);
}

.parallax--front {
  --drift: var(--drift-front, 0px);
  --drift-x: var(--drift-x-front, 0px);
  --mouse-shift-x: var(--mouse-front-x, 0px);
  --mouse-shift-y: var(--mouse-front-y, 0px);
}

.layer--foreground,
.dialogue-box,
.layer--phone,
.clock-face,
.time-display,
.time-icon,
.quote-stack {
  z-index: 16;
}

.layer--shoe {
  z-index: 6;
}

.scene-copy {
  z-index: 20;
  height: auto;
  color: var(--paper);
  opacity: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.62);
  transform: translate3d(var(--copy-x, 0px), calc(38px + var(--copy-y, 0px)), 0);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.78, 0.22, 1),
    transform 920ms cubic-bezier(0.18, 0.86, 0.18, 1);
}

.scene.is-active .scene-copy,
.scene.has-played .scene-copy {
  opacity: 1;
  transform: translate3d(var(--copy-x, 0px), var(--copy-y, 0px), 0);
}

.scene-copy--center {
  text-align: center;
}

.scene-copy h2,
.about-inner h2,
.contact-inner h2 {
  margin: 0 0 clamp(0.9rem, 2.1svh, 1.6rem);
  font-family: Impact, "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: clamp(2.75rem, max(4.444vw, 6.25svh), 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.scene-copy p {
  margin: 0 0 clamp(0.85rem, 2svh, 1.35rem);
  font-size: clamp(1rem, max(1.389vw, 1.953svh), 1.25rem);
  font-weight: 300;
  line-height: 1.28;
}

[data-typewriter] {
  position: relative;
  display: inline-block;
  min-height: 1em;
}

.scene-copy h2[data-typewriter],
.about-inner h2[data-typewriter],
.contact-inner h2[data-typewriter],
.social-panel h2[data-typewriter] {
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 12px 28px rgba(0, 0, 0, 0.52);
}

[data-typewriter].is-typing {
  color: #fff8e9;
  text-shadow:
    1px 0 rgba(183, 35, 57, 0.62),
    -1px 0 rgba(123, 227, 166, 0.22),
    0 0 24px rgba(246, 240, 226, 0.18);
}

.is-typing::after {
  display: inline-block;
  width: 0.46em;
  height: 0.12em;
  margin-left: 0.1em;
  border-radius: 999px;
  background: var(--red);
  box-shadow:
    0 0 12px rgba(183, 35, 57, 0.72),
    0 0 22px rgba(246, 240, 226, 0.18);
  content: "";
  translate: 0 -0.08em;
  animation: caret-blink 720ms steps(2, end) infinite;
}

[data-typewriter].typing-burst {
  animation: typewriter-burst 420ms steps(2, end);
}

.scene-copy h2.has-typed::before,
.about-inner h2.has-typed::before,
.contact-inner h2.has-typed::before,
.social-panel h2.has-typed::before {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.06em;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(183, 35, 57, 0.92), transparent);
  content: "";
  transform-origin: left;
  animation: title-scan 620ms cubic-bezier(0.16, 0.92, 0.24, 1) both;
}

.scene--intro .layer--foreground {
  --ty: var(--intro-front-y, 0px);
  --layer-scale: var(--intro-front-scale, 1);
}

/* Figma 0-34: red vignette over the crash — transparent core bottom-right (on
   the wreckage), falling to near-black at the edges. Sits above the scene but
   below the foreground rocks (z16) and the copy (z20). */
.intro-vignette {
  position: absolute;
  inset: 0;
  z-index: 18; /* above the foreground landscape (z16) so it actually darkens the
                  whole scene, but below the copy (z20) so the text stays bright */
  pointer-events: none;
  transition: opacity 700ms ease;
  /* Figma 0-34 red→black ramp, re-centred toward the middle-bottom (the crash)
     so the darkening is balanced left/right on wide screens. */
  background: radial-gradient(
    ellipse 90% 122% at 57% 82%,
    rgba(116, 40, 54, 0) 38%,
    rgba(75, 29, 46, 1) 70%,
    rgba(20, 11, 13, 1) 99%
  );
}

/* As the scene morphs into the phone close-up, hand the darkening over to the
   snap-evidence wash so the vignette doesn't sit on top of the phone. */
.scene--intro.is-evidence-focused .intro-vignette {
  opacity: 0;
}

.scene--intro .scene-copy h2 {
  color: #e9e7d4;
  font-family: "Saira ExtraCondensed", "Saira Extra Condensed", Impact, "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

.scene--intro .scene-copy p {
  color: #e9e7d4;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.intro-evidence-focus {
  position: absolute;
  inset: 0;
  z-index: 34;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-1.8%, 1.2%, 0) scale(1.18);
  transform-origin: 50% 50%;
  filter: blur(5px) brightness(0.78) saturate(1.08);
  transition:
    opacity 2100ms cubic-bezier(0.16, 0.92, 0.18, 1),
    transform 2700ms cubic-bezier(0.16, 0.92, 0.18, 1),
    filter 2400ms cubic-bezier(0.16, 0.92, 0.18, 1);
  will-change: opacity, transform, filter;
  contain: paint;
  backface-visibility: hidden;
}

.intro-evidence-focus img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.035);
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.scene--intro .layer {
  transition:
    opacity 1800ms cubic-bezier(0.16, 0.92, 0.18, 1),
    filter 1900ms cubic-bezier(0.16, 0.92, 0.18, 1);
}

.scene--intro.is-evidence-queued .scene-copy {
  transition-duration: 520ms, 720ms;
}

.scene--intro.is-evidence-focused .scene-copy {
  opacity: 0;
  transform: translate3d(calc(var(--copy-x, 0px) - 12px), calc(var(--copy-y, 0px) - 18px), 0);
}

.scene--intro.is-evidence-focused .layer:not(.layer--foreground) {
  opacity: 0.2;
  filter: blur(2px) brightness(0.74);
}

.scene--intro.is-evidence-focused .layer--foreground {
  opacity: 0.12;
  filter: blur(2.4px) brightness(0.7);
}

.scene--intro.is-evidence-focused .intro-evidence-focus {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0) brightness(1) saturate(1);
}

/* Phone snap sequence: a phone rises over the focused shoe; its transparent
   screen frames the same shoe (a viewfinder), then the screen flashes white. */
.intro-evidence-phone {
  position: absolute;
  inset: 0;
  z-index: 38;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  --phone-h: 106svh;
}

.intro-evidence-phone__device {
  position: relative;
  height: var(--phone-h);
  aspect-ratio: 1528 / 2105;
  transform: translate3d(0, 118%, 0);
}

/* Transparent screen window: holds the shoe + flash, clipped to the screen rect.
   Rect measured from the phone art's alpha channel (≈11.7/12.1/35.3/25.1). */
.intro-evidence-phone__screen {
  position: absolute;
  left: 10.6%;
  right: 11%;
  top: 34.1%;
  bottom: 23.9%;
  z-index: 1;
  overflow: hidden;
  border-radius: 5% / 3.4%;
  /* Transparent: before the photo is taken the screen is a viewfinder — you see
     the big scene shoe (.intro-evidence-focus, z34) straight through it. */
  background: transparent;
}

.intro-evidence-phone__shoe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  /* Tone down the photo: it was reading too bright / high-contrast on the lit
     red screen. Dim + lower contrast so the shoe sits in the screen, not glows. */
  filter: brightness(0.8) contrast(0.86) saturate(0.96);
  /* Hidden until the flash — before that the screen is a see-through viewfinder. */
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
}

/* The captured photo "develops" under the white flash, so when the flash fades
   the saved shoe photo is sitting in the screen. */
.scene--intro.is-evidence-focused .intro-evidence-phone__shoe {
  animation: intro-shoe-capture 260ms ease 3950ms both;
}

@keyframes intro-shoe-capture {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Phone frame on top: the transparent screen reveals the shoe, the opaque body
   covers the seam where the screen window bleeds past the cut-out. */
.intro-evidence-phone__img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 -14px 40px rgba(0, 0, 0, 0.55));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* White flash fills the screen window (clipped by it) to fake the photo capture. */
.intro-evidence-flash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #fff;
  opacity: 0;
}

.scene--intro.is-evidence-focused .intro-evidence-phone {
  opacity: 1;
}

.scene--intro.is-evidence-focused .intro-evidence-phone__device {
  animation: intro-phone-rise 1200ms cubic-bezier(0.16, 0.86, 0.2, 1) 1900ms both;
}

.scene--intro.is-evidence-focused .intro-evidence-flash {
  animation: intro-phone-flash 720ms ease-out 3900ms both;
}

@keyframes intro-phone-rise {
  from {
    transform: translate3d(0, 118%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes intro-phone-flash {
  0% {
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  48% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}

/* ===== Snap-evidence resolve (Figma "Fotkanje 4") — the SAME intro scene.
   Once the photo is snapped, the phone glides center → left and the copy
   reveals on the right. All keyed off .is-evidence-focused with delays that
   land just after the flash (rise 1.9–3.1s, flash 3.9–4.6s, resolve ~4.7s+). */

/* The dock wraps the rising device so the rise (device transform) and the
   glide-to-left (dock transform) never fight over the same property. */
.intro-evidence-phone__dock {
  position: relative;
  transition: transform 1250ms cubic-bezier(0.16, 0.86, 0.2, 1) 4700ms;
}

.scene--intro.is-evidence-focused .intro-evidence-phone__dock {
  transform: translate3d(-21.5vw, 11vh, 0) scale(0.72);
}

/* Dark-red wash drops over the shoe close-up once the photo is taken. */
.intro-snap-wash {
  position: absolute;
  inset: 0;
  z-index: 37;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(76% 90% at 31% 52%, rgba(151, 38, 53, 0.94), rgba(74, 16, 28, 0.99) 50%, rgba(20, 5, 10, 1) 100%),
    linear-gradient(104deg, rgba(26, 7, 12, 0.36) 0%, rgba(26, 7, 12, 0.08) 30%, rgba(12, 3, 6, 1) 100%);
}

.scene--intro.is-evidence-focused .intro-snap-wash {
  animation: intro-snap-fade 900ms ease 4700ms both;
}

/* SNAP EVIDENCE copy reveals on the right. */
.intro-snap-copy {
  position: absolute;
  left: 56.6%;
  top: 23.6%;
  width: 31.8%;
  max-width: 30rem;
  z-index: 39;
  color: var(--paper);
  opacity: 0;
  transform: translate3d(2%, 16px, 0);
  pointer-events: none;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.62);
}

.scene--intro.is-evidence-focused .intro-snap-copy {
  animation: intro-snap-copy-in 950ms cubic-bezier(0.2, 0.78, 0.22, 1) 5200ms both;
}

.intro-snap-copy h2 {
  margin: 0 0 clamp(0.9rem, 2.1svh, 1.6rem);
  font-family: Impact, "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: clamp(2.75rem, max(4.444vw, 6.25svh), 4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.4),
    0 12px 28px rgba(0, 0, 0, 0.52);
}

.intro-snap-copy p {
  margin: 0 0 clamp(0.85rem, 2svh, 1.35rem);
  font-size: clamp(1rem, max(1.389vw, 1.953svh), 1.25rem);
  font-weight: 300;
  line-height: 1.28;
}

.intro-snap-copy p:last-child {
  margin-bottom: 0;
}

@keyframes intro-snap-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes intro-snap-copy-in {
  from {
    opacity: 0;
    transform: translate3d(2%, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.scene--schedules .layer--street {
  --ty: var(--schedule-street-y, 0px);
  filter: brightness(var(--schedule-brightness, 0.92)) saturate(var(--schedule-saturation, 0.92));
}

/* Anchor the street panorama to the BOTTOM of the viewport so the train tracks
   are always visible — only the dark top crops on short/wide screens (laptops). */
.scene--schedules .scene-stage {
  top: auto;
  bottom: 0;
  transform: translateX(-50%) scale(var(--stage-scale, 1));
  transform-origin: bottom center;
}

/* Schedules: cross-fade through day/people states (each = bg + red wash +
   characters at their own positions). The rotation timer lives in JS. */
.sched-rotator {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sched-state {
  position: absolute;
  inset: 0;
  isolation: isolate;
  opacity: 0;
  transition: opacity 1200ms ease;
}

.sched-state.is-current {
  opacity: 1;
}

.sched-wash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  /* Figma overlay: transparent over the street (bottom), dark toward the top. */
  background: linear-gradient(
    0deg,
    rgba(116, 40, 54, 0) 28.88%,
    rgba(96, 34, 50, 0.5) 38.41%,
    rgba(75, 29, 46, 0.79) 47.11%,
    #3d1826 54.17%,
    #30141e 63.97%,
    #140b0d 92.19%
  );
}

.sched-person {
  z-index: 5;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

/* Copy lives at the section (viewport) level, not inside the cover-scaled
   stage, so the heading is never cropped at the top on any aspect ratio. */
.sched-copy {
  position: absolute;
  top: clamp(4.5rem, 11svh, 8rem);
  left: 50%;
  width: min(92%, 60rem);
  height: auto;
  z-index: 40;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 760ms ease;
}

.scene--schedules.is-active .sched-copy,
.scene--schedules.has-played .sched-copy {
  opacity: 1;
  transform: translateX(-50%);
}

.scene--schedules .scene-stage::before {
  background:
    linear-gradient(180deg, rgba(17, 4, 8, 0.92) 0%, rgba(35, 8, 15, 0.86) 24%, rgba(30, 7, 13, 0.34) 54%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(58% 44% at 50% 24%, rgba(140, 17, 40, 0.16), transparent 70%);
}

.schedule-marker {
  z-index: 18;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.84);
}

.scene--schedules.is-active .schedule-marker {
  animation: marker-pop 900ms cubic-bezier(0.16, 0.92, 0.24, 1) forwards;
}

.scene--schedules.is-active .marker--two {
  animation-delay: 260ms;
}

/* ───────────────────────────────────────────────────────────────────────────
   Loop / "Conquer time"
   Beat 1 (Figma 0-44): apartment room + two characters under the soft red
   vignette. Beat 2 (Figma 0-51): everything darkens to a tight spotlight that
   halos the clock top-right, and the clock device fades in. The beats crossfade
   automatically once the scene is active.
   ─────────────────────────────────────────────────────────────────────────── */

/* Full-bleed cover, centred (the default scene-stage). Cover keeps the clock
   (near the frame top) in view; the characters' lower legs may crop on very
   wide/short screens — fine, since in beat 2 the darkness swallows them anyway
   (matches Figma 0-51). Near-black background matches the vignette edges. */
.scene--loop {
  background-color: #140b0d;
}

.loop-char {
  z-index: 4;
  opacity: 0;
  transition: opacity 620ms ease;
}

.scene--loop.is-active .loop-char,
.scene--loop.has-played .loop-char {
  opacity: 1;
}

/* Beat 1 — red vignette on the pair (Figma 0-44: radial centred frame 747,609 ≈
   51.9%/59.5%, r ≈ 856px). Visible at rest, crossfades out once active. */
.loop-vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  transition: opacity 1100ms ease 900ms;
  background: radial-gradient(
    ellipse 59.4% 83.6% at 51.9% 59.5%,
    rgba(116, 40, 54, 0) 38.4%,
    rgba(75, 29, 46, 1) 70.1%,
    rgba(20, 11, 13, 1) 99%
  );
}

.scene--loop.is-active .loop-vignette,
.scene--loop.has-played .loop-vignette {
  opacity: 0;
}

/* Beat 2 — dark spotlight haloing the clock top-right (Figma 0-51: radial
   centred frame 1184,196 ≈ 82.2%/19.1%, r ≈ 957px). Crossfades in. */
.loop-vignette-dark {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse 66.5% 93.5% at 82.2% 19.1%,
    rgba(116, 40, 54, 0) 12%,
    rgba(75, 29, 46, 0.73) 37.5%,
    rgba(20, 11, 13, 1) 68.5%
  );
}

/* Beat 2 only: fades in (~0.9–2s), holds, then fades back out (~2.4–3.5s) as
   beat 3's darken + centred spotlight take over — keyframed in-then-out pulse so
   the characters end up faintly visible (Figma 0-62), not pitch black. */
.scene--loop.is-active .loop-vignette-dark,
.scene--loop.has-played .loop-vignette-dark {
  animation: loop-dark51-pulse 4000ms ease forwards;
}

@keyframes loop-dark51-pulse {
  0%,
  22.5% {
    opacity: 0;
  }
  50%,
  60% {
    opacity: 1;
  }
  87.5%,
  100% {
    opacity: 0;
  }
}

/* Beat 3 — Figma 0-62. Rectangle 7: heavy near-opaque darken that blacks out the
   room/characters behind the clock + copy. Fades in as the clock morphs. */
.loop-darken {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1100ms ease 2400ms;
  background: rgba(37, 17, 25, 0.96);
}

.scene--loop.is-active .loop-darken,
.scene--loop.has-played .loop-darken {
  opacity: 1;
}

/* 0-62 spotlight re-centres onto the clock/copy (radial centred frame 905,499 ≈
   62.8%/48.7%, r ≈ 873px), sitting over the darken. */
.loop-vignette-center {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1100ms ease 2400ms;
  background: radial-gradient(
    ellipse 60.6% 85.3% at 62.8% 48.7%,
    rgba(116, 40, 54, 0) 29.8%,
    rgba(75, 29, 46, 0.37) 67.8%,
    rgba(20, 11, 13, 1) 99%
  );
}

.scene--loop.is-active .loop-vignette-center,
.scene--loop.has-played .loop-vignette-center {
  opacity: 1;
}

/* Clock device (Figma 0-57…0-61): bezel sprite + sun icon + "Monday / Morning"
   on the green LCD. Pops in small top-right after the room darkens (beat 2),
   then enlarges and slides to centre-right (beat 3). left/top/width/height are a
   % of the stage so the clock scales with the cover stage; the inner content is
   sized in cqw so it grows with the device. */
.loop-clock {
  position: absolute;
  left: 77.22%;
  top: 12.21%;
  width: 19.51%;
  height: 12.6%;
  z-index: 12;
  container-type: inline-size;
  opacity: 0;
  transform: translateY(-10px) scale(0.92);
  transform-origin: top right;
  transition:
    opacity 550ms ease 900ms,
    transform 650ms cubic-bezier(0.2, 0.9, 0.25, 1) 900ms,
    left 1150ms cubic-bezier(0.5, 0, 0.18, 1) 2400ms,
    top 1150ms cubic-bezier(0.5, 0, 0.18, 1) 2400ms,
    width 1150ms cubic-bezier(0.5, 0, 0.18, 1) 2400ms,
    height 1150ms cubic-bezier(0.5, 0, 0.18, 1) 2400ms;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.6));
}

.scene--loop.is-active .loop-clock,
.scene--loop.has-played .loop-clock {
  opacity: 1;
  transform: translateY(0) scale(1);
  left: 43.26%;
  top: 30.08%;
  width: 51.74%;
  height: 33.4%;
}

.loop-clock__device {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Icon / day / period are reel viewports: each shows one value, with a stack of
   four (last = first) that scrolls upward to cycle. */
.loop-clock__icon {
  position: absolute;
  left: 24.5%;
  top: 33%;
  width: 12%;
  height: 9.5cqw;
  overflow: hidden;
}

.loop-clock__day,
.loop-clock__period {
  position: absolute;
  left: 58.5%;
  width: 62%;
  height: 8.4cqw;
  transform: translateX(-50%);
  overflow: hidden;
  /* Soft top/bottom edges so values scroll in/out cleanly (no hard clipping). */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

.loop-clock__day {
  top: 25%;
}

.loop-clock__period {
  top: 46%;
}

.loop-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.loop-reel > span {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 8.4cqw;
  color: #7be3a6;
  font: 700 6.4cqw / 1 "Courier New", monospace;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow: 0 0 5px rgba(123, 227, 166, 0.5);
  white-space: nowrap;
}

.loop-reel--icon > img {
  display: block;
  flex: none;
  width: 100%;
  height: 9.5cqw;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(123, 227, 166, 0.4));
}

/* Reels hold on "Monday / Morning" through the morph (4s delay), then scroll.
   Period + icon cycle every ~2.7s; the day advances once per full period cycle
   (3×) so it reads Mon Morning → Mon Afternoon → … → Wed Evening → loop. */
/* All three reels (icon + day + period) share ONE animation, so they spin in
   perfect unison: Mon·Morning·sun → Tue·Afternoon·sunset → Wed·Evening·moon → … */
.scene--loop.is-active .loop-reel,
.scene--loop.has-played .loop-reel {
  animation: loop-reel-spin 3600ms cubic-bezier(0.38, 0, 0.1, 1) 4000ms infinite;
}

/* Each value eases up to the next (long scroll = fluid), settles briefly, then
   continues; -75% lands on the repeated first value so the loop is seamless. */
@keyframes loop-reel-spin {
  0%,
  17% {
    transform: translateY(0);
  }
  33%,
  50% {
    transform: translateY(-25%);
  }
  66%,
  83% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(-75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loop-reel {
    animation: none !important;
  }
}

.loop-clock__sep {
  position: absolute;
  left: 43%;
  top: 47.5%;
  width: 29.4%;
  height: 0;
  border-top: 1.5px solid #7be3a6;
  box-shadow: 0 0 5px rgba(123, 227, 166, 0.5);
}

/* The CONQUER TIME copy holds back until the clock starts settling (beat 3). */
.scene--loop .scene-copy {
  transition-delay: 2400ms;
}

/* The Torovians (Figma "Likovi"): apartment bg + red wash, a portrait that
   cross-fades between Wally / Kenny / Klara, and the golden dialogue card with
   the name on its tab + the typed quote. Heading/body stay top-left (--x/--y). */
.torovian-wash {
  position: absolute;
  top: 0;
  bottom: 0;
  /* The room art spills past the stage (overflow:visible) to cover wide screens,
     so the darkening must spill too. Stretch left/right by the inverse of
     --char-fit so the wash always reaches the viewport edges. At --char-fit:1
     this resolves to 0 (no change). */
  left: calc((1 - 1 / var(--char-fit, 1)) * 50%);
  right: calc((1 - 1 / var(--char-fit, 1)) * 50%);
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18, 5, 10, 0.82), rgba(42, 11, 21, 0.46) 42%, rgba(28, 8, 15, 0.72) 100%),
    radial-gradient(58% 50% at 52% 44%, rgba(126, 42, 58, 0.28), transparent 72%);
}

/* Swap: the new character fades in from a small right offset and settles left;
   the outgoing one fades out drifting left. Transition-based = reliable. */
.character-portrait {
  z-index: 10;
  height: calc(var(--h) * 100% / 1024);
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition:
    opacity 300ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scene--characters.is-active .character-portrait.is-current,
.scene--characters.has-played .character-portrait.is-current {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 480ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.torovian-board {
  z-index: 22;
  height: calc(var(--h) * 100% / 1024);
  container-type: inline-size;
  pointer-events: none;
}

.torovian-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.torovian-dialogue {
  position: absolute;
  inset: 0;
  color: #1d1919;
  font-family: Quantico, "Courier New", monospace;
}

.torovian-dialogue [data-typewriter].is-typing {
  color: #1d1919;
  text-shadow: none;
}

.quote {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

.quote.is-current {
  opacity: 1;
}

/* Name on the card's tab. Figma text node sits at frame (498, 733.7) inside the
   (178, 250) 1340×754 card box → 23.88% / 64.15%. Quantico Bold 32px = 2.39cqw. */
.quote figcaption {
  position: absolute;
  left: 23.88%;
  top: 64.15%;
  font-weight: 700;
  font-size: 2.39cqw;
  transform: rotate(-1.95deg);
}

/* Quote in the card body (Figma frame 409,799, 899 wide). */
.quote blockquote {
  position: absolute;
  left: 17.2%;
  top: 73%;
  width: 67%;
  margin: 0;
  font-size: 2.4cqw;
  font-weight: 400;
  line-height: 1.32;
}

/* Anchor the room to the bottom so the dialogue card is always visible.
   overflow:visible lets the oversized room art keep covering the sides even
   when --char-fit shrinks the stage on short screens (see below). */
.scene--characters .scene-stage {
  top: auto;
  bottom: 0;
  overflow: visible;
  transform: translateX(-50%) scale(calc(var(--stage-scale, 1) * var(--char-fit, 1)));
  transform-origin: bottom center;
}

/* The Figma frame is 1.406:1. On a wider/shorter screen (most laptops) the
   cover-scaled stage grows taller than the viewport and would crop the
   character's head off the top. Scale the whole scene down a touch so the
   character keeps headroom; the bottom (card) stays pinned. Wider aspect →
   smaller fit. Rules are in ascending order so the widest match wins. */
@media (min-aspect-ratio: 13 / 8) {
  .scene--characters .scene-stage {
    --char-fit: 0.95;
  }
}
@media (min-aspect-ratio: 5 / 3) {
  .scene--characters .scene-stage {
    --char-fit: 0.92;
  }
}
@media (min-aspect-ratio: 16 / 9) {
  .scene--characters .scene-stage {
    --char-fit: 0.88;
  }
}
@media (min-aspect-ratio: 2 / 1) {
  .scene--characters .scene-stage {
    --char-fit: 0.82;
  }
}

/* Heading/body ride at the viewport top-left so they never crop. */
.char-copy {
  position: absolute;
  left: clamp(1.5rem, 13vw, 13rem);
  top: clamp(3.8rem, 11svh, 7rem);
  width: min(30rem, 44vw);
  height: auto;
  z-index: 40;
  text-align: left;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 760ms ease,
    transform 760ms ease;
}

.scene--characters.is-active .char-copy,
.scene--characters.has-played .char-copy {
  opacity: 1;
  transform: translateY(0);
}

.scene--about {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: 100svh;
  padding: clamp(5.5rem, 12svh, 8rem) 0 clamp(3rem, 8svh, 6rem);
  overflow: hidden;
  background: #0a0205;
}

/* Background = the same main-menu video, full-bleed, dimmed under an overlay
   that is darker on the left (where the testimonials sit). */
.about-bg__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.about-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(5, 1, 3, 0.9) 0%, rgba(7, 2, 5, 0.62) 46%, rgba(7, 2, 5, 0.44) 100%),
    radial-gradient(115% 85% at 26% 50%, rgba(81, 26, 51, 0.42), transparent 72%);
}

/* Content: heading, then testimonials (left) + the autoplay clip (right). */
.about-inner {
  position: relative;
  z-index: 36;
  display: flex;
  flex-direction: column;
  gap: clamp(1.3rem, 3.4svh, 2.3rem);
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.18, 0.86, 0.18, 1);
}

.scene--about.is-active .about-inner,
.scene--about.has-played .about-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about-inner h2 {
  margin: 0 0 clamp(0.3rem, 1.2svh, 0.9rem);
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
  width: 100%;
}

.chat-list {
  display: grid;
  gap: clamp(1.3rem, 3.2svh, 2.3rem);
  width: 100%;
  margin: 0;
}

.chat-row {
  display: grid;
  grid-template-columns: clamp(2.7rem, 4.2vw, 3.8rem) 1fr;
  gap: clamp(0.75rem, 1.4vw, 1.2rem);
  align-items: start;
}

.chat-row img {
  width: clamp(2.7rem, 4.2vw, 3.8rem);
  aspect-ratio: 1;
  margin-top: clamp(1.6rem, 2.3vw, 2.2rem);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.chat-message {
  display: grid;
  gap: clamp(0.45rem, 1vw, 0.7rem);
  min-width: 0;
}

.chat-message h3 {
  margin: 0;
  color: var(--paper);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.1;
}

.chat-bubble {
  padding: clamp(0.8rem, 1.4vw, 1.05rem) clamp(0.95rem, 1.8vw, 1.3rem);
  border-radius: 24px;
  background: #67667f;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.chat-bubble p {
  margin: 0;
  color: var(--paper);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chat-bubble--binary {
  letter-spacing: 0.02em;
  opacity: 0.94;
}

/* Right: the autoplaying main-menu video, framed like a clip. */
.about-clip {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(246, 240, 226, 0.14);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6);
}

/* Facade: static thumbnail + centred play button; click swaps in the YT embed. */
.about-clip__btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.about-clip__thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms cubic-bezier(0.18, 0.86, 0.18, 1), filter 320ms ease;
}

.about-clip__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(3rem, 5.2vw, 4.4rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(183, 35, 57, 0.92);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.46);
  transition: transform 200ms ease, background-color 200ms ease;
}

.about-clip__play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: clamp(0.18rem, 0.4vw, 0.3rem);
  border-top: clamp(0.52rem, 1vw, 0.78rem) solid transparent;
  border-bottom: clamp(0.52rem, 1vw, 0.78rem) solid transparent;
  border-left: clamp(0.86rem, 1.7vw, 1.28rem) solid #fff8e9;
}

.about-clip__btn:hover .about-clip__thumb,
.about-clip__btn:focus-visible .about-clip__thumb {
  transform: scale(1.04);
  filter: brightness(1.06);
}

.about-clip__btn:hover .about-clip__play,
.about-clip__btn:focus-visible .about-clip__play {
  transform: scale(1.08);
  background: rgba(201, 42, 66, 0.97);
}

.about-clip__btn:focus-visible {
  outline: 2px solid var(--paper, #f6f0e2);
  outline-offset: 3px;
}

.about-clip__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.scene--contact {
  display: grid;
  height: 100svh;
  min-height: 100svh;
  align-items: center;
  padding: calc(6rem + env(safe-area-inset-top)) clamp(1.25rem, 7vw, 8rem) 5rem;
  background: #12050a;
}

.contact-bg {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -2;
  width: max(100vw, 205.2svh);
  max-width: none;
  height: auto;
  opacity: 0.42;
  transform: translate(-50%, -50%);
}

.scene--contact::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(37, 17, 25, 0.84), rgba(20, 6, 12, 0.84)),
    radial-gradient(70% 80% at 68% 40%, rgba(178, 102, 121, 0.18), transparent 65%);
}

.contact-inner {
  position: relative;
  z-index: 36;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  width: min(100%, 74rem);
  margin: 0 auto;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.18, 0.86, 0.18, 1);
}

.scene--contact.is-active .contact-inner,
.scene--contact.has-played .contact-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.contact-form,
.social-panel {
  position: relative;
  z-index: 2;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  border-radius: 28px;
  background:
    radial-gradient(135% 130% at 14% 108%, rgba(178, 102, 121, 0.62), rgba(107, 60, 73, 0.5) 40%, rgba(36, 18, 25, 0.97) 80%),
    rgba(36, 18, 25, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44);
}

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

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--paper);
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: #b9a9a9;
  box-shadow: inset 0 4px 8.8px rgba(26, 17, 17, 0.25);
  color: #201c1c;
  outline: 0;
}

.contact-form input {
  height: 3.125rem;
  padding: 0 0.9rem;
}

.contact-form textarea {
  min-height: 7.5rem;
  resize: vertical;
  padding: 0.8rem 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow:
    inset 0 4px 8.8px rgba(26, 17, 17, 0.25),
    0 0 0 3px rgba(246, 240, 226, 0.24);
}

.contact-form button {
  display: inline-flex;
  width: 13.25rem;
  height: 3.625rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  background: var(--red);
  box-shadow:
    0 3px 14.4px 4px rgba(0, 0, 0, 0.25),
    inset 0 4px 8.8px rgba(247, 189, 189, 0.25);
  color: var(--cream);
  cursor: pointer;
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Honeypot — visually hidden, but present in the DOM so naive bots fill it. */
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline submit status under the button. */
.contact-status {
  margin: 0.35rem 0 0;
  min-height: 1.25em;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 600;
  line-height: 1.3;
}

.contact-status[data-state="ok"] {
  color: #7be3a6;
}

.contact-status[data-state="error"] {
  color: #ff9a9a;
}

.social-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: clamp(0rem, 9svh, 5rem);
}

.social-panel a {
  display: flex;
  width: min(100%, 14rem);
  min-height: 3.125rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0 1rem;
  border-radius: 15px;
  background: #b9a9a9;
  box-shadow:
    0 4px 9.5px 4px rgba(26, 17, 17, 0.36),
    inset 0 7px 6.6px rgba(255, 255, 255, 0.31);
  color: #201c1c;
  text-decoration: none;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    background-color 170ms ease;
}

.social-panel a:hover {
  transform: translateY(-2px);
  box-shadow:
    0 9px 18px 4px rgba(26, 17, 17, 0.42),
    inset 0 7px 6.6px rgba(255, 255, 255, 0.31);
}

.social-icon {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes hero-logo-reveal {
  0% {
    opacity: 0;
    scale: 0.955;
    translate: 0 28px;
    filter: blur(10px) brightness(0.72);
  }

  48% {
    opacity: 0.58;
    filter: blur(4px) brightness(0.88);
  }

  100% {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    filter: blur(0) brightness(1);
  }
}

@keyframes hero-tagline-reveal {
  0% {
    opacity: 0;
    scale: 0.985;
    translate: 0 16px;
    filter: blur(5px) drop-shadow(0 2px 2px rgba(17, 13, 13, 0.36));
  }

  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    filter: blur(0) drop-shadow(0 2px 2px rgba(17, 13, 13, 0.36));
  }
}

@keyframes hero-button-reveal {
  0% {
    opacity: 0;
    scale: 0.96;
    translate: 0 14px;
  }

  70% {
    opacity: 1;
    scale: 1.035;
    translate: 0 -1px;
  }

  100% {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes caret-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes typewriter-burst {
  0% {
    filter: none;
    translate: 0 0;
  }

  18% {
    filter: drop-shadow(2px 0 rgba(183, 35, 57, 0.58));
    translate: -1px 0;
  }

  36% {
    filter: drop-shadow(-2px 0 rgba(123, 227, 166, 0.32));
    translate: 1px 0;
  }

  58% {
    filter: drop-shadow(0 0 14px rgba(246, 240, 226, 0.22));
    translate: 0 0;
  }

  100% {
    filter: none;
    translate: 0 0;
  }
}

@keyframes title-scan {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  36% {
    opacity: 1;
  }

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

@keyframes marker-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.84);
  }

  58% {
    opacity: 1;
    transform: translate3d(0, -7px, 0) scale(1.05);
  }

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

@keyframes time-tick {
  0%,
  18% {
    opacity: 0.58;
    filter: blur(0.7px);
  }

  22%,
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes character-cycle {
  0%,
  5% {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
    filter: brightness(0.78);
  }

  11%,
  30% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: brightness(1);
  }

  36%,
  100% {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
    filter: brightness(0.78);
  }
}

@keyframes quote-cycle {
  0%,
  5% {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }

  11%,
  30% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  36%,
  100% {
    opacity: 0;
    transform: translate3d(-16px, 0, 0);
  }
}

@media (min-width: 1600px) and (min-height: 850px) {
  .scene-copy h2,
  .about-inner h2,
  .contact-inner h2 {
    font-size: clamp(4.2rem, 4.1vw, 6.4rem);
  }

  .scene-copy p {
    font-size: clamp(1.25rem, 1.15vw, 1.65rem);
  }

  .hero-lockup {
    width: min(64vw, 74rem);
  }

  .tagline-art {
    width: min(43vw, 43rem);
  }

  .about-inner {
    width: min(100%, 92rem);
  }

  .contact-inner {
    width: min(100%, 88rem);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: flex;
  }

  .site-nav {
    top: calc(0.72rem + env(safe-area-inset-top));
    bottom: auto;
    justify-content: flex-start;
    max-width: calc(100vw - 0.75rem);
    padding: 0.34rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    min-height: 2rem;
    padding: 0 0.64rem;
    font-size: 0.66rem;
  }

  .nav-mark {
    display: none;
  }

  .scene--hero {
    padding-top: calc(clamp(6.2rem, 21vh, 9.6rem) + env(safe-area-inset-top));
  }

  .hero-lockup {
    width: min(94vw, 36rem);
  }

  .tagline-art {
    width: min(78vw, 20rem);
  }

  .find-button {
    margin-top: clamp(3.2rem, 8vh, 4.8rem);
  }

  .scene-copy {
    left: calc((100% - 100vw) / 2 + 1.25rem) !important;
    top: auto !important;
    bottom: clamp(4.25rem, 9svh, 6.5rem);
    width: calc(100vw - 2.5rem) !important;
    max-width: 36rem;
  }

  .scene-copy--center {
    text-align: left;
  }

  .scene-copy h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .scene-copy p {
    max-width: 35rem;
    margin-bottom: 0.65rem;
    font-size: clamp(0.94rem, 4.1vw, 1.08rem);
    line-height: 1.27;
  }

  .scene--intro .scene-copy {
    bottom: clamp(4.75rem, 10svh, 7rem);
  }

  .scene--intro .scene-copy h2 {
    font-size: clamp(48px, 14vw, 64px);
  }

  .scene--intro .scene-copy p {
    font-size: clamp(17px, 4.5vw, 20px);
  }

  .scene--snap .scene-copy,
  .scene--loop .scene-copy {
    top: calc((100svh - 100svh) / 2 + 5.1rem) !important;
    bottom: auto;
  }

  .scene--schedules .scene-copy {
    top: calc((100svh - 100svh) / 2 + 5rem) !important;
    bottom: auto;
  }

  .scene--characters .scene-copy {
    top: calc(4.4rem + env(safe-area-inset-top)) !important;
    bottom: auto;
    left: calc((100% - 100vw) / 2 + 1.1rem) !important;
    width: calc(100vw - 2.2rem) !important;
    text-align: left;
    transform: translate3d(var(--copy-x, 0px), calc(22px + var(--copy-y, 0px)), 0);
  }

  .scene--characters.is-active .scene-copy,
  .scene--characters.has-played .scene-copy {
    transform: translate3d(var(--copy-x, 0px), var(--copy-y, 0px), 0);
  }

  .scene--characters {
    --characters-panel-x: 0px !important;
    --characters-panel-y: 0px !important;
    --characters-panel-scale: 1 !important;
  }

  .torovian-panel {
    top: auto;
    right: auto;
    bottom: calc(5.6rem + env(safe-area-inset-bottom));
    left: calc((100% - 100vw) / 2 + 50vw);
    width: calc(100vw - 2.2rem);
    grid-template-areas:
      "tabs"
      "portrait"
      "dialogue";
    grid-template-columns: 1fr;
    gap: 0.55rem;
    transform:
      translate3d(calc(-50% + var(--characters-panel-x, 0px)), var(--characters-panel-y, 0px), 0)
      scale(var(--characters-panel-scale, 1));
  }

  .torovian-panel::before {
    inset: 2.45rem -0.45rem -0.5rem;
  }

  .torovian-portrait {
    min-height: clamp(10rem, 28svh, 15rem);
  }

  .torovian-dialogue {
    min-height: clamp(9.6rem, 25svh, 13rem);
    padding: 0.95rem;
  }

  .quote {
    inset: 0.95rem;
  }

  .quote blockquote {
    min-height: 4.6rem;
    margin-top: 2.65rem;
    font-size: clamp(0.92rem, 3.7vw, 1.13rem);
  }

  .quote figcaption {
    left: 1.1rem;
    font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  }

  .character-tabs {
    justify-content: center;
    width: min(100%, 22rem);
    padding: 0.28rem;
  }

  .character-tab {
    min-width: 0;
    flex: 1 1 0;
    min-height: 2.15rem;
  }

  .clock-face,
  .time-display,
  .time-icon {
    opacity: 0.62;
  }

  .scene--about {
    height: auto;
    min-height: 100svh;
    padding: calc(4.8rem + env(safe-area-inset-top)) 1rem 1.6rem;
  }

  .about-inner {
    gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .about-inner h2,
  .contact-inner h2 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .chat-list {
    margin-top: 0;
    gap: 0.6rem;
  }

  .chat-row {
    grid-template-columns: 3rem 1fr;
    gap: 0.65rem;
  }

  .chat-row img {
    width: 3rem;
  }

  .chat-bubble {
    padding: 0.68rem 0.85rem;
  }

  .chat-message h3 {
    margin-bottom: 0;
    font-size: clamp(0.82rem, 3.4vw, 0.98rem);
  }

  .contact-inner,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .scene--contact {
    align-items: start;
    padding: calc(4.8rem + env(safe-area-inset-top)) 1rem calc(4.3rem + env(safe-area-inset-bottom));
  }

  .contact-inner {
    height: 100%;
    gap: 0.9rem;
    align-content: start;
  }

  .contact-form {
    gap: 0.66rem;
    padding: 0.92rem 1rem;
  }

  .contact-form label {
    gap: 0.28rem;
    font-size: 0.86rem;
  }

  .contact-form input {
    height: 2.45rem;
  }

  .contact-form textarea {
    min-height: 4.65rem;
  }

  .contact-form button {
    height: 2.8rem;
  }

  .social-panel {
    flex-flow: row wrap;
    gap: 0.42rem;
    padding-top: 0;
  }

  .social-panel h2 {
    width: 100%;
    margin-bottom: 0.15rem;
  }

  .social-panel a {
    width: auto;
    min-height: 2.35rem;
    padding: 0 0.7rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  .scene-copy p:nth-of-type(n + 3) {
    display: none;
  }

  .scene--intro .scene-copy p:nth-of-type(3),
  .scene--snap .scene-copy p:nth-of-type(2),
  .scene--loop .scene-copy p:nth-of-type(2) {
    display: block;
  }

  .contact-form {
    padding: 0.92rem;
    gap: 0.62rem;
  }

  .contact-form input {
    height: 2.38rem;
  }

  .contact-form textarea {
    min-height: 4.5rem;
  }

  .contact-form button {
    width: 100%;
  }

  .torovian-panel {
    bottom: calc(5.35rem + env(safe-area-inset-bottom));
  }

  .torovian-portrait {
    min-height: 22svh;
  }

  .character-tabs {
    width: 100%;
  }

  .scene--characters .scene-copy p:nth-of-type(n + 2) {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  [role="button"],
  label,
  summary {
    cursor: pointer;
  }

  input,
  textarea,
  select {
    cursor: text;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-tracker {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .scene--hero {
    padding-top: calc(5.1rem + env(safe-area-inset-top));
  }

  .hero-lockup {
    width: min(64vw, 54rem);
  }

  .tagline-art {
    width: min(46vw, 32rem);
    margin-top: 0.9rem;
  }

  .find-button {
    margin-top: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }

  html {
    scroll-snap-type: none;
  }

  .brand-logo-frame,
  .tagline-art,
  .find-button,
  .scene-copy,
  .chat-row {
    opacity: 1;
    scale: 1;
    translate: 0 0;
    transform: none;
  }
}
