:root {
  --bg: #030202;
  --bg-soft: #0b0807;
  --ink: #fff4df;
  --muted: #b9ad98;
  --gold: #d6aa55;
  --gold-strong: #ffd978;
  --ember: #c34f35;
  --blood: #6f1417;
  --aether: #6fb2b3;
  --glass: rgba(8, 6, 5, 0.64);
  --line: rgba(255, 217, 120, 0.24);
  --mx: 0;
  --my: 0;
  --scroll-shift: 0;
  --scroll-progress: 0;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 10%, rgba(111, 178, 179, 0.1), transparent 34rem),
    radial-gradient(circle at 78% 18%, rgba(195, 79, 53, 0.14), transparent 32rem),
    linear-gradient(180deg, #020101, var(--bg) 36rem, #070504);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

body.archive-mode {
  --bg: #020506;
  --bg-soft: #071315;
  --ink: #f2fbf7;
  --gold-strong: #d9f4ce;
  --gold: #9ccfbd;
  --ember: #5f9ca0;
  --blood: #183d44;
  --aether: #8bd8da;
}

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

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cursor-aura {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.36;
  background:
    radial-gradient(circle, rgba(255, 217, 120, 0.22), transparent 56%),
    radial-gradient(circle at 35% 35%, rgba(111, 178, 179, 0.16), transparent 44%);
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 240ms ease;
}

.scroll-meter {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-meter span {
  display: block;
  width: calc(var(--scroll-progress) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--ember), var(--gold-strong), var(--aether));
  box-shadow: 0 0 26px rgba(255, 217, 120, 0.72);
}

.cinematic-intro {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020101;
  transition:
    opacity 900ms ease,
    visibility 900ms ease;
}

.cinematic-intro.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), transparent 48%, rgba(0, 0, 0, 0.92)),
    url("./assets/intro-gateway.webp") center / cover;
  filter: brightness(0.44) saturate(1.12);
  transform: scale(1.08);
  animation: introZoom 5.2s ease forwards;
}

.intro-rift {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro-rift span {
  position: absolute;
  width: min(70vw, 920px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 217, 120, 0.22);
  border-radius: 50%;
  box-shadow:
    inset 0 0 48px rgba(255, 217, 120, 0.1),
    0 0 80px rgba(195, 79, 53, 0.1);
  transform: rotateX(70deg);
  animation: introRing 5s cubic-bezier(0.2, 0.8, 0.15, 1) infinite;
}

.intro-rift span:nth-child(2) {
  width: min(52vw, 680px);
  animation-delay: -1.6s;
}

.intro-rift span:nth-child(3) {
  width: min(36vw, 470px);
  border-color: rgba(111, 178, 179, 0.2);
  animation-delay: -3.1s;
}

.intro-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(92vw, 980px);
  padding: 48px 24px;
  text-align: center;
}

.intro-content img {
  width: clamp(92px, 12vw, 148px);
  filter: drop-shadow(0 0 42px rgba(255, 217, 120, 0.62));
  animation: introEmblem 2.8s ease-in-out infinite;
}

.intro-content p {
  margin: 22px 0 8px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.intro-content h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 15vw, 13rem);
  font-weight: 600;
  line-height: 0.82;
  text-shadow:
    0 0 24px rgba(255, 217, 120, 0.28),
    0 32px 90px rgba(0, 0, 0, 0.82);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.intro-enter,
.intro-actions button {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 217, 120, 0.62);
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.intro-enter {
  color: #1e1205;
  background: linear-gradient(135deg, #ffe08a, #c58c36);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    0 0 36px rgba(255, 217, 120, 0.22);
}

.intro-actions button:not(.intro-enter) {
  color: rgba(255, 244, 223, 0.82);
  background: rgba(8, 6, 5, 0.48);
  backdrop-filter: blur(12px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: 14px clamp(14px, 3vw, 48px);
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 217, 120, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 6, 5, 0.84), rgba(8, 6, 5, 0.6)),
    rgba(8, 6, 5, 0.68);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.36),
    inset 0 0 24px rgba(255, 217, 120, 0.035);
  backdrop-filter: blur(20px);
  pointer-events: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-link img {
  width: 42px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 217, 120, 0.5));
}

.brand-link span {
  display: grid;
  gap: 1px;
}

.brand-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
}

.brand-link small {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 25px);
  color: rgba(255, 244, 223, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 1px;
  background: var(--gold-strong);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: var(--gold-strong);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.sound-toggle,
.design-toggle,
.button,
.video-play,
.inner-form button,
.echo-form button,
.world-node,
.seal-column button,
.site-footer button,
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid rgba(255, 217, 120, 0.28);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.sound-toggle {
  padding: 0 13px;
  color: rgba(255, 244, 223, 0.84);
}

.design-toggle {
  min-width: 128px;
  padding: 0 13px;
  color: rgba(255, 244, 223, 0.84);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sound-toggle:hover,
.design-toggle:hover,
.button:hover,
.video-play:hover,
.inner-form button:hover,
.echo-form button:hover,
.world-node:hover,
.seal-column button:hover,
.site-footer button:hover,
.modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 217, 120, 0.76);
  background: rgba(255, 217, 120, 0.1);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

body.archive-mode .nav-shell {
  background:
    linear-gradient(90deg, rgba(3, 12, 14, 0.9), rgba(3, 12, 14, 0.58)),
    rgba(3, 12, 14, 0.7);
  border-color: rgba(139, 216, 218, 0.26);
}

body.archive-mode .hero::before {
  background:
    linear-gradient(90deg, rgba(2, 5, 6, 0.95), rgba(2, 5, 6, 0.24) 42%, rgba(2, 5, 6, 0.86)),
    linear-gradient(180deg, rgba(2, 5, 6, 0.18), rgba(2, 5, 6, 0.94));
}

body.archive-mode .button.solid,
body.archive-mode .intro-enter,
body.archive-mode .echo-form button,
body.archive-mode .inner-form button,
body.archive-mode .seal-column button.is-active {
  color: #061415;
  background: linear-gradient(135deg, #d9f4ce, #6fb2b3);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(118px, 16vh, 168px) clamp(18px, 6vw, 90px) clamp(58px, 9vh, 90px);
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 2, 2, 0.92), rgba(3, 2, 2, 0.28) 40%, rgba(3, 2, 2, 0.84)),
    linear-gradient(180deg, rgba(3, 2, 2, 0.2), rgba(3, 2, 2, 0.92));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30vh;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.dust-canvas,
.hero-video,
.hero-stage {
  position: absolute;
  inset: 0;
}

.dust-canvas {
  z-index: 4;
  opacity: 0.76;
  pointer-events: none;
}

.hero-video {
  z-index: -5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(1.12) contrast(1.08) brightness(0.58);
  transform: scale(1.05);
}

.hero-stage {
  inset: -10vh -7vw;
  z-index: -4;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(var(--my) * -5deg))
    rotateY(calc(var(--mx) * 8deg));
}

.depth {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.depth-back {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.18) contrast(1.12) brightness(0.68);
  transform:
    translate3d(
      calc(var(--mx) * -40px),
      calc((var(--my) * -24px) + (var(--scroll-shift) * -0.1px)),
      -220px
    )
    scale(1.26);
}

.star-map {
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 24%, rgba(255, 244, 223, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 16%, rgba(255, 217, 120, 0.74) 0 1px, transparent 1.4px),
    radial-gradient(circle at 82% 72%, rgba(111, 178, 179, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle at 29% 68%, rgba(255, 244, 223, 0.54) 0 1px, transparent 1.4px);
  background-size: 190px 150px, 230px 180px, 260px 220px, 310px 250px;
  opacity: 0.5;
  transform:
    translate3d(
      calc(var(--mx) * 52px),
      calc((var(--my) * 26px) + (var(--scroll-shift) * -0.2px)),
      -50px
    );
  animation: drift 18s linear infinite;
}

.light-scan {
  inset: -20% -40%;
  background:
    linear-gradient(
      112deg,
      transparent 35%,
      rgba(255, 217, 120, 0.04) 42%,
      rgba(255, 217, 120, 0.22) 48%,
      rgba(111, 178, 179, 0.1) 52%,
      transparent 60%
    );
  mix-blend-mode: screen;
  animation: lightScan 7.5s ease-in-out infinite;
}

.temporal-grid {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 217, 120, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 217, 120, 0.08) 1px, transparent 1px);
  background-size: 118px 118px;
  mask-image: radial-gradient(circle at 54% 45%, black 0 34%, transparent 68%);
  opacity: 0.24;
  transform:
    translate3d(
      calc(var(--mx) * 22px),
      calc((var(--my) * 14px) + (var(--scroll-shift) * -0.12px)),
      40px
    )
    rotateX(58deg)
    scale(1.25);
}

.title-eclipse {
  left: -4vw;
  right: -4vw;
  bottom: -14vh;
  height: 42vh;
  background:
    radial-gradient(ellipse at 56% 0%, rgba(255, 217, 120, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(3, 2, 2, 0), rgba(3, 2, 2, 0.9) 34%, #030202 72%);
  transform:
    translate3d(
      calc(var(--mx) * 12px),
      calc(var(--my) * 10px),
      220px
    );
}

.portal-core {
  position: absolute;
  left: 58%;
  top: 47%;
  width: min(62vw, 770px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform:
    translate3d(
      calc(-50% + var(--mx) * 36px),
      calc(-50% + var(--my) * 20px + var(--scroll-shift) * -0.08px),
      160px
    )
    rotateX(65deg);
  transform-style: preserve-3d;
}

.portal-core img {
  width: clamp(78px, 10vw, 150px);
  opacity: 0.88;
  filter:
    drop-shadow(0 0 28px rgba(255, 217, 120, 0.72))
    drop-shadow(0 20px 60px rgba(0, 0, 0, 0.74));
  transform: rotateX(-65deg) translateZ(90px);
  animation: floatSeal 4.8s ease-in-out infinite;
}

.portal-glow {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 217, 120, 0.62), rgba(255, 217, 120, 0.12) 42%, transparent 72%),
    radial-gradient(circle, rgba(111, 178, 179, 0.32), transparent 68%);
  filter: blur(8px);
  transform: translateZ(70px);
  animation: portalPulse 3.2s ease-in-out infinite;
}

.portal-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255, 217, 120, 0.32);
  border-radius: 50%;
  box-shadow:
    inset 0 0 42px rgba(255, 217, 120, 0.1),
    0 0 52px rgba(195, 79, 53, 0.12);
}

.portal-ring::before,
.portal-ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 217, 120, 0.26);
  border-radius: inherit;
}

.ring-a {
  animation: orbit 24s linear infinite;
}

.ring-b {
  inset: 19%;
  border-color: rgba(111, 178, 179, 0.3);
  animation: orbitReverse 18s linear infinite;
}

.ring-c {
  inset: 30%;
  border-color: rgba(195, 79, 53, 0.36);
  animation: orbit 11s linear infinite;
}

.chapter-strip {
  position: absolute;
  left: clamp(18px, 6vw, 90px);
  right: clamp(18px, 6vw, 90px);
  bottom: clamp(20px, 5vh, 54px);
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  color: rgba(255, 244, 223, 0.42);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chapter-strip span {
  position: relative;
  overflow: hidden;
  padding-top: 10px;
  white-space: nowrap;
}

.chapter-strip span::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(255, 217, 120, 0.2);
}

.chapter-strip span::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-strong), transparent);
  animation: chapterPulse 4s ease-in-out infinite;
}

.chapter-strip span:nth-child(2)::after {
  animation-delay: -1s;
}

.chapter-strip span:nth-child(3)::after {
  animation-delay: -2s;
}

.chapter-strip span:nth-child(4)::after {
  animation-delay: -3s;
}

.hero-copy {
  position: relative;
  z-index: 7;
  align-self: center;
  max-width: 760px;
  transform:
    translate3d(
      calc(var(--mx) * 12px),
      calc((var(--my) * 8px) + (var(--scroll-shift) * -0.035px)),
      180px
    );
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(4rem, 10vw, 10.5rem);
  line-height: 0.82;
  text-shadow:
    0 0 20px rgba(255, 217, 120, 0.28),
    0 32px 100px rgba(0, 0, 0, 0.84);
}

h2 {
  max-width: 940px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 6.4rem);
  line-height: 0.92;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
}

.hero-line {
  max-width: 670px;
  margin-bottom: 28px;
  color: rgba(255, 244, 223, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-width: 176px;
  padding: 0 18px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.button.solid {
  border-color: rgba(255, 217, 120, 0.72);
  color: #1d1205;
  background: linear-gradient(135deg, #ffe08a, #c58c36);
}

.button.ghost {
  background: rgba(8, 6, 5, 0.52);
  backdrop-filter: blur(14px);
}

.scene-rail {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  top: 50%;
  z-index: 8;
  display: grid;
  gap: 14px;
  color: rgba(255, 244, 223, 0.54);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.scene-rail span {
  position: relative;
  padding-right: 34px;
}

.scene-rail span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: rgba(255, 217, 120, 0.28);
}

.scene-rail .is-active {
  color: var(--gold-strong);
}

.odyssey-section,
.director-section,
.engine-section,
.characters-section,
.echo-section,
.teaser-section,
.circle-section {
  position: relative;
  display: grid;
  gap: clamp(34px, 5vw, 70px);
  padding: clamp(86px, 13vw, 164px) clamp(18px, 6vw, 90px);
  scroll-margin-top: 92px;
  overflow: hidden;
}

.section-copy,
.director-head,
.engine-copy,
.teaser-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.section-copy p:not(.eyebrow),
.director-head p,
.engine-copy p,
.teaser-copy p:not(.eyebrow) {
  color: rgba(255, 244, 223, 0.72);
  font-size: clamp(1rem, 1.75vw, 1.18rem);
  line-height: 1.78;
}

.director-section {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(8, 5, 4, 0.96), rgba(3, 2, 2, 0.98)),
    radial-gradient(circle at 10% 14%, rgba(255, 217, 120, 0.1), transparent 26rem),
    radial-gradient(circle at 84% 26%, rgba(111, 178, 179, 0.1), transparent 30rem);
}

body.archive-mode .director-section {
  background:
    linear-gradient(180deg, rgba(2, 8, 9, 0.98), rgba(2, 5, 6, 0.98)),
    radial-gradient(circle at 12% 16%, rgba(139, 216, 218, 0.14), transparent 28rem),
    radial-gradient(circle at 84% 26%, rgba(217, 244, 206, 0.08), transparent 30rem);
}

.director-head {
  max-width: 940px;
}

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

.director-card {
  position: relative;
  min-height: 310px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 120, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 244, 223, 0.055), rgba(255, 244, 223, 0.018)),
    rgba(8, 6, 5, 0.68);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.director-card::before {
  content: "";
  position: absolute;
  inset: -45% -30% auto;
  height: 58%;
  background: radial-gradient(circle, rgba(255, 217, 120, 0.16), transparent 58%);
  transform: translateY(var(--card-shift, 0));
}

.director-card span {
  color: var(--gold-strong);
  font-weight: 950;
  letter-spacing: 0.22em;
}

.director-card h3 {
  margin-top: 78px;
}

.director-card p {
  margin: 0;
  color: rgba(255, 244, 223, 0.72);
  line-height: 1.65;
}

body.archive-mode .director-card {
  border-color: rgba(139, 216, 218, 0.22);
  background:
    linear-gradient(180deg, rgba(139, 216, 218, 0.07), rgba(139, 216, 218, 0.018)),
    rgba(3, 12, 14, 0.76);
}

.timeline-console {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 28px;
  border: 1px solid rgba(255, 217, 120, 0.18);
  border-radius: 8px;
  background: rgba(8, 6, 5, 0.62);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
}

.timeline-line {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-strong), rgba(255, 217, 120, 0.1));
}

.timeline-console article {
  position: relative;
  z-index: 2;
  padding: 52px 20px 0 0;
}

.timeline-console article::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold-strong);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 18px rgba(255, 217, 120, 0.4);
}

.timeline-console span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-strong);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.timeline-console strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.timeline-console p {
  margin: 0;
  color: rgba(255, 244, 223, 0.64);
  line-height: 1.55;
}

.odyssey-section {
  min-height: 110svh;
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.6), rgba(12, 6, 4, 0.96)),
    var(--bg);
}

.odyssey-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 2, 2, 0.9), transparent 55%),
    url("./assets/temporal-hall.webp") right center / min(72vw, 1200px) auto no-repeat;
  opacity: 0.32;
  transform: translateY(calc(var(--scroll-shift) * -0.04px));
}

.shot-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.shot-card,
.character-wall,
.video-shell,
.echo-terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 120, 0.18);
  border-radius: 8px;
  background: rgba(8, 6, 5, 0.66);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.shot-card {
  min-height: clamp(380px, 46vw, 610px);
  transform-style: preserve-3d;
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.08);
  transition: transform 700ms ease;
}

.shot-card::after,
.character-wall::after,
.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 30%, rgba(3, 2, 2, 0.84)),
    linear-gradient(90deg, rgba(111, 178, 179, 0.08), transparent 36%, rgba(195, 79, 53, 0.16));
}

.shot-card:hover img {
  transform: scale(1.08);
}

.shot-card span,
.shot-card h3 {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
}

.shot-card span {
  top: 22px;
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.shot-card h3 {
  bottom: 22px;
  transform: translateZ(52px);
}

.engine-section {
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  background:
    radial-gradient(circle at 68% 48%, rgba(255, 217, 120, 0.12), transparent 28rem),
    radial-gradient(circle at 76% 54%, rgba(111, 178, 179, 0.12), transparent 34rem),
    linear-gradient(180deg, #090605, #030202);
}

.orbitarium {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78vw, 780px);
  perspective: 1100px;
}

.sealed-stars {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  transform: rotateX(66deg);
}

.sealed-stars i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 217, 120, 0.72);
  box-shadow: 0 0 12px rgba(255, 217, 120, 0.46);
  opacity: var(--star-opacity, 0.34);
  animation: sealedBlink 3.8s ease-in-out infinite;
}

.orbitarium::before {
  content: "";
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 217, 120, 0.18), transparent 12%),
    radial-gradient(circle, rgba(255, 217, 120, 0.06), transparent 60%);
  filter: blur(10px);
}

.orbit {
  position: absolute;
  width: var(--size, min(68vw, 720px));
  aspect-ratio: 1;
  border: 1px solid rgba(255, 217, 120, 0.26);
  border-radius: 50%;
  transform: rotateX(66deg) rotateZ(0);
  box-shadow:
    inset 0 0 38px rgba(255, 217, 120, 0.08),
    0 0 54px rgba(0, 0, 0, 0.32);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px dashed rgba(255, 217, 120, 0.18);
  border-radius: inherit;
}

.orbit-one {
  --size: min(68vw, 720px);
  animation: orbit3d 28s linear infinite;
}

.orbit-two {
  --size: min(54vw, 560px);
  border-color: rgba(111, 178, 179, 0.26);
  animation: orbit3dReverse 20s linear infinite;
}

.orbit-three {
  --size: min(38vw, 410px);
  border-color: rgba(195, 79, 53, 0.32);
  animation: orbit3d 14s linear infinite;
}

.engine-core {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: clamp(170px, 18vw, 230px);
  aspect-ratio: 1;
  padding: 26px;
  border: 1px solid rgba(255, 217, 120, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 217, 120, 0.18), transparent 44%),
    rgba(8, 6, 5, 0.58);
  box-shadow:
    0 0 64px rgba(255, 217, 120, 0.12),
    inset 0 0 42px rgba(255, 217, 120, 0.08);
}

.engine-core img {
  width: 62px;
  filter: drop-shadow(0 0 22px rgba(255, 217, 120, 0.55));
}

.engine-core strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.82;
}

.engine-core span {
  color: rgba(255, 244, 223, 0.7);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-node {
  position: absolute;
  z-index: 6;
  min-width: 128px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.world-node::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-strong);
  box-shadow: 0 0 18px rgba(255, 217, 120, 0.82);
}

.node-a {
  left: 9%;
  top: 31%;
}

.node-b {
  right: 8%;
  top: 22%;
}

.node-c {
  right: 16%;
  bottom: 20%;
}

.node-d {
  left: 16%;
  bottom: 16%;
}

.characters-section {
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 120svh;
  background:
    linear-gradient(90deg, rgba(3, 2, 2, 0.9), transparent 48%, rgba(3, 2, 2, 0.75)),
    #030202;
}

.character-theater {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
  gap: clamp(18px, 3vw, 34px);
  min-height: min(84vw, 840px);
  overflow: hidden;
  border: 1px solid rgba(255, 217, 120, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(3, 2, 2, 0.76), rgba(3, 2, 2, 0.22) 48%, rgba(3, 2, 2, 0.78)),
    url("./assets/character-triptych.webp") center / cover;
  box-shadow:
    0 36px 120px rgba(0, 0, 0, 0.54),
    inset 0 0 80px rgba(255, 217, 120, 0.035);
  isolation: isolate;
  perspective: 1400px;
}

.theater-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 217, 120, 0.14), transparent 28%),
    radial-gradient(circle at 22% 64%, rgba(111, 178, 179, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(3, 2, 2, 0.1), rgba(3, 2, 2, 0.9));
  transition: filter 420ms ease;
}

.theater-backdrop::before,
.theater-backdrop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(82vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 217, 120, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(66deg);
  animation: orbit 26s linear infinite;
}

.theater-backdrop::after {
  width: min(58vw, 610px);
  border-color: rgba(111, 178, 179, 0.2);
  animation-direction: reverse;
  animation-duration: 18s;
}

.theater-controls {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 8;
  display: flex;
  gap: 10px;
}

.theater-controls button,
.character-dossier button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 217, 120, 0.26);
  border-radius: 8px;
  color: rgba(255, 244, 223, 0.82);
  background: rgba(3, 2, 2, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.character-stage {
  position: relative;
  min-height: 760px;
  transform-style: preserve-3d;
}

.character-3d {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: clamp(210px, 24vw, 330px);
  height: clamp(420px, 50vw, 640px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 120, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(3, 2, 2, 0.72);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transform:
    translateX(calc(-50% + var(--x, 0%)))
    translateZ(var(--z, 0))
    rotateY(var(--ry, 0deg))
    scale(var(--scale, 0.88));
  transform-style: preserve-3d;
  opacity: var(--opacity, 0.62);
  transition:
    transform 520ms cubic-bezier(0.2, 0.85, 0.18, 1),
    opacity 420ms ease,
    filter 420ms ease,
    border-color 420ms ease;
}

.character-3d.is-active {
  --scale: 1.06;
  --opacity: 1;
  border-color: rgba(255, 217, 120, 0.62);
  filter: saturate(1.12) contrast(1.08);
  box-shadow:
    0 54px 140px rgba(0, 0, 0, 0.64),
    0 0 70px rgba(255, 217, 120, 0.16);
}

.character-portrait {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, transparent 42%, rgba(3, 2, 2, 0.9)),
    url("./assets/character-triptych.webp");
  background-size: 330% 100%, 330% 100%;
  background-position: center, var(--pos, center);
  filter: brightness(0.88) saturate(1.08);
  transform: translateZ(24px) scale(1.03);
  transition: transform 520ms ease;
}

.character-3d.is-active .character-portrait {
  transform: translateZ(64px) scale(1.08);
}

.character-sigil {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 217, 120, 0.32);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(255, 217, 120, 0.1),
    0 0 34px rgba(255, 217, 120, 0.12);
  transform: translateX(-50%) translateZ(90px);
  animation: orbit 20s linear infinite;
}

.character-sigil::before,
.character-sigil::after {
  content: "";
  position: absolute;
  inset: 19%;
  border: 1px dashed rgba(255, 217, 120, 0.26);
  border-radius: inherit;
}

.character-sigil::after {
  inset: 44% -18%;
  height: 1px;
  border: 0;
  background: rgba(255, 217, 120, 0.32);
}

.character-3d strong,
.character-3d em {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 3;
  text-align: left;
  transform: translateZ(120px);
}

.character-3d strong {
  bottom: 56px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  line-height: 1;
}

.character-3d em {
  bottom: 26px;
  color: var(--gold-strong);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.character-dossier {
  position: relative;
  z-index: 7;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(24px, 3vw, 42px);
  border-left: 1px solid rgba(255, 217, 120, 0.14);
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.84), rgba(3, 2, 2, 0.58)),
    rgba(3, 2, 2, 0.64);
  backdrop-filter: blur(14px);
}

.character-dossier h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 1;
  overflow-wrap: normal;
}

.character-dossier > p:not(.eyebrow) {
  color: rgba(255, 244, 223, 0.78);
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  line-height: 1.64;
}

.character-dossier dl {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.character-dossier dl div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 217, 120, 0.12);
}

.character-dossier dt {
  margin-bottom: 6px;
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.character-dossier dd {
  margin: 0;
  color: rgba(255, 244, 223, 0.76);
}

.character-dossier button {
  align-self: flex-start;
  min-height: 46px;
  color: #1d1205;
  background: linear-gradient(135deg, #ffe08a, #c58c36);
}

body.archive-mode .character-theater {
  border-color: rgba(139, 216, 218, 0.22);
  background:
    linear-gradient(90deg, rgba(2, 7, 8, 0.82), rgba(2, 7, 8, 0.28) 48%, rgba(2, 7, 8, 0.82)),
    url("./assets/character-triptych.webp") center / cover;
}

body.archive-mode .character-dossier,
body.archive-mode .theater-controls button {
  border-color: rgba(139, 216, 218, 0.22);
  background: rgba(3, 12, 14, 0.66);
}

body.archive-mode .character-dossier button {
  color: #061415;
  background: linear-gradient(135deg, #d9f4ce, #6fb2b3);
}

.character-wall {
  min-height: min(78vw, 760px);
  isolation: isolate;
}

.character-wall img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.08) saturate(1.05);
  transform: scale(1.02);
}

.crack-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.44;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 45%, rgba(255, 217, 120, 0.22) 45.2%, transparent 45.8%),
    linear-gradient(62deg, transparent 0 54%, rgba(255, 217, 120, 0.13) 54.2%, transparent 54.7%),
    linear-gradient(142deg, transparent 0 62%, rgba(111, 178, 179, 0.12) 62.2%, transparent 62.7%);
  mix-blend-mode: screen;
}

.character-wall:hover .crack-overlay {
  opacity: 0.72;
}

.seal-column {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 3;
  display: grid;
  gap: 10px;
}

.seal-column button {
  justify-content: flex-start;
  min-width: 178px;
  padding: 0 14px;
  color: rgba(255, 244, 223, 0.82);
  background: rgba(3, 2, 2, 0.58);
  backdrop-filter: blur(12px);
}

.seal-column button.is-active {
  color: #1b1105;
  background: linear-gradient(135deg, #ffe08a, #c58c36);
}

.character-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  max-width: 560px;
  margin: 0;
  color: rgba(255, 244, 223, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.3rem);
  line-height: 1.16;
}

.echo-section {
  min-height: 92svh;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(3, 2, 2, 0.86), rgba(9, 5, 6, 0.96)),
    url("./assets/locked-realms.webp") center / cover fixed;
}

.echo-terminal {
  width: min(100%, 980px);
  padding: clamp(24px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(8, 6, 5, 0.82), rgba(8, 6, 5, 0.56)),
    rgba(8, 6, 5, 0.72);
  backdrop-filter: blur(18px);
}

.echo-terminal h2 {
  max-width: 760px;
}

.echo-form,
.inner-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 620px;
  margin-top: 28px;
}

.echo-form label,
.inner-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.echo-form input,
.inner-form input {
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 217, 120, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.echo-form input:focus,
.inner-form input:focus {
  border-color: rgba(255, 217, 120, 0.76);
  box-shadow: 0 0 0 3px rgba(255, 217, 120, 0.1);
}

.echo-form button,
.inner-form button {
  min-width: 120px;
  padding: 0 18px;
  color: #1d1205;
  font-weight: 950;
  background: linear-gradient(135deg, #ffe08a, #c58c36);
}

.echo-output {
  display: block;
  min-height: 96px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(111, 178, 179, 0.24);
  border-radius: 8px;
  color: rgba(255, 244, 223, 0.86);
  background: rgba(3, 2, 2, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1.32;
}

.echo-output.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.12em;
  background: var(--gold-strong);
  box-shadow: 0 0 18px rgba(255, 217, 120, 0.72);
  vertical-align: -0.12em;
  animation: caretBlink 720ms steps(1) infinite;
}

.echo-status {
  margin: 16px 0 0;
  color: rgba(111, 178, 179, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.teaser-section {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 217, 120, 0.12), transparent 28rem),
    linear-gradient(180deg, #030202, #0b0604 52%, #030202);
}

.video-shell {
  width: min(100%, 1280px);
  justify-self: center;
  aspect-ratio: 16 / 9;
  background: #080605;
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border: 1px solid rgba(255, 217, 120, 0.24);
  border-radius: 8px;
  pointer-events: none;
  box-shadow:
    inset 0 0 42px rgba(255, 217, 120, 0.06),
    0 0 80px rgba(255, 217, 120, 0.08);
}

.teaser-video,
.modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 82px;
  min-height: 82px;
  padding: 0;
  border-radius: 50%;
  color: var(--gold-strong);
  background: rgba(3, 2, 2, 0.62);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-play svg {
  width: 2.2rem;
  height: 2.2rem;
}

.video-shell.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.circle-section {
  min-height: 72svh;
  place-items: center start;
  background:
    linear-gradient(90deg, rgba(111, 178, 179, 0.08), transparent 38%),
    url("./assets/sealed-book.webp") right center / min(46vw, 620px) auto no-repeat,
    rgba(3, 2, 2, 0.98);
}

.teaser-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 54px);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 217, 120, 0.08), transparent 36rem),
    rgba(0, 0, 0, 0.92);
}

.modal-rift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(255, 217, 120, 0.08) 23%, transparent 36%),
    conic-gradient(from 40deg, transparent, rgba(255, 217, 120, 0.12), transparent, rgba(111, 178, 179, 0.1), transparent);
  filter: blur(0.5px);
  animation: orbit 18s linear infinite;
}

.teaser-modal[hidden] {
  display: none;
}

.modal-frame {
  position: relative;
  z-index: 2;
  width: min(100%, 1400px);
}

.modal-frame p {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.teaser-modal .modal-video {
  width: min(100%, 1400px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 217, 120, 0.32);
  border-radius: 8px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.72);
}

.modal-close {
  position: absolute;
  right: clamp(16px, 4vw, 48px);
  top: clamp(16px, 4vw, 42px);
  min-width: 88px;
  padding: 0 14px;
  background: rgba(8, 6, 5, 0.62);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 6vw, 90px) 46px;
  border-top: 1px solid rgba(255, 217, 120, 0.14);
  color: rgba(255, 244, 223, 0.68);
}

.site-footer span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.site-footer button {
  min-height: 40px;
  padding: 0 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 860ms ease,
    transform 860ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tilt-card {
  transform:
    perspective(1000px)
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tilt-card:hover {
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.54);
}

@keyframes introZoom {
  to {
    transform: scale(1);
  }
}

@keyframes introRing {
  0% {
    opacity: 0;
    transform: rotateX(70deg) scale(0.62) rotateZ(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotateX(70deg) scale(1.34) rotateZ(240deg);
  }
}

@keyframes introEmblem {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes orbit {
  to {
    rotate: 360deg;
  }
}

@keyframes orbitReverse {
  to {
    rotate: -360deg;
  }
}

@keyframes orbit3d {
  to {
    transform: rotateX(66deg) rotateZ(360deg);
  }
}

@keyframes orbit3dReverse {
  to {
    transform: rotateX(66deg) rotateZ(-360deg);
  }
}

@keyframes drift {
  to {
    background-position:
      190px 150px,
      -230px 180px,
      260px -220px,
      -310px -250px;
  }
}

@keyframes lightScan {
  0%,
  30% {
    transform: translateX(-30%);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  100% {
    transform: translateX(30%);
    opacity: 0;
  }
}

@keyframes floatSeal {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -18px;
  }
}

@keyframes portalPulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translateZ(70px) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateZ(70px) scale(1.08);
  }
}

@keyframes chapterPulse {
  0%,
  100% {
    transform: translateX(-18%);
    opacity: 0.28;
  }
  50% {
    transform: translateX(150%);
    opacity: 1;
  }
}

@keyframes sealedBlink {
  0%,
  100% {
    opacity: var(--star-opacity, 0.34);
    transform: scale(0.74);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.38);
  }
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

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

  .director-grid,
  .timeline-console {
    grid-template-columns: 1fr 1fr;
  }

  .engine-section,
  .characters-section {
    grid-template-columns: 1fr;
  }

  .character-theater {
    grid-template-columns: 1fr;
  }

  .character-dossier {
    border-top: 1px solid rgba(255, 217, 120, 0.14);
    border-left: 0;
  }

  .engine-copy {
    max-width: 900px;
  }

  .portal-core {
    left: 62%;
    width: min(78vw, 680px);
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }

  .shot-card {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .cursor-aura {
    display: none;
  }

  .site-header {
    padding: 10px;
  }

  .nav-shell {
    min-height: 56px;
  }

  .brand-link small,
  .sound-toggle span,
  .scene-rail,
  .chapter-strip {
    display: none;
  }

  .nav-tools {
    gap: 6px;
  }

  .design-toggle {
    min-width: 92px;
    padding: 0 10px;
    font-size: 0.62rem;
  }

  .hero {
    padding-top: 106px;
  }

  .portal-core {
    left: 55%;
    top: 38%;
    width: 96vw;
    opacity: 0.62;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.8rem);
  }

  .hero-actions,
  .echo-form,
  .inner-form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .button,
  .echo-form button,
  .inner-form button {
    width: 100%;
  }

  .orbitarium {
    min-height: 620px;
  }

  .world-node {
    min-width: 112px;
    font-size: 0.82rem;
  }

  .node-a {
    left: 0;
    top: 26%;
  }

  .node-b {
    right: 0;
    top: 24%;
  }

  .node-c {
    right: 0;
    bottom: 18%;
  }

  .node-d {
    left: 0;
    bottom: 18%;
  }

  .character-wall {
    min-height: 560px;
  }

  .character-stage {
    min-height: 650px;
  }

  .character-3d {
    width: clamp(170px, 50vw, 240px);
    height: 470px;
  }

  .character-3d strong,
  .character-3d em {
    left: 14px;
    right: 14px;
  }

  .character-dossier {
    min-height: auto;
  }

  .seal-column {
    right: 14px;
    left: 14px;
    grid-template-columns: 1fr 1fr;
  }

  .seal-column button {
    min-width: 0;
    font-size: 0.78rem;
  }

  .director-grid,
  .timeline-console {
    grid-template-columns: 1fr;
  }

  .director-card {
    min-height: 240px;
  }

  .director-card h3 {
    margin-top: 44px;
  }

  .timeline-line {
    left: 34px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 1px;
    height: auto;
  }

  .timeline-console article {
    padding: 18px 0 18px 34px;
  }

  .timeline-console article::before {
    top: 24px;
    left: -1px;
  }

  .circle-section {
    background:
      linear-gradient(180deg, rgba(3, 2, 2, 0.78), rgba(3, 2, 2, 0.98)),
      url("./assets/sealed-book.webp") center bottom / 80vw auto no-repeat;
  }
}

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

  .hero-stage,
  .hero-copy,
  .depth,
  .tilt-card,
  .portal-core {
    transform: none !important;
  }
}
