:root {
  --navy-0: #060910;
  --navy-1: #0b1220;
  --navy-2: #122036;
  --navy-3: #1a2d4a;
  --gold-0: #7c5a18;
  --gold-1: #c9a227;
  --gold-2: #e8d08a;
  --gold-3: #f6e7b8;
  --ember: #d8782a;
  --steel: #4f8fb8;
  --ink: #ece4d0;
  --mute: #b7ae96;
  --line: rgba(232, 208, 138, 0.22);
  --serif-display: "Cinzel Decorative", "Cinzel", serif;
  --serif: "Cinzel", serif;
  --body: "Cormorant Garamond", Georgia, serif;
  --ui: "Outfit", system-ui, sans-serif;
  --script: "Great Vibes", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--navy-0);
  color: var(--ink);
}

body {
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: #fff8e4;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--navy-0);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-1), var(--gold-0));
  border-radius: 99px;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(79, 143, 184, 0.16), transparent 62%),
    radial-gradient(720px 480px at 82% 18%, rgba(216, 120, 42, 0.08), transparent 58%),
    radial-gradient(1000px 700px at 50% 110%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(180deg, #070c16 0%, #0a1424 42%, #08101b 100%);
}

.fog {
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  animation: drift 28s var(--ease) infinite alternate;
}

.fog-a {
  top: -10%;
  left: -8%;
  background: #1a3a5c;
}

.fog-b {
  right: -12%;
  top: 20%;
  background: #3a2a12;
  animation-duration: 36s;
}

.fog-c {
  left: 30%;
  bottom: -20%;
  background: #12243c;
  animation-duration: 40s;
}

.shaft {
  position: absolute;
  top: -20%;
  width: 18vw;
  height: 140%;
  background: linear-gradient(180deg, rgba(246, 231, 184, 0.07), transparent 70%);
  transform: rotate(18deg);
  filter: blur(10px);
  animation: shaftPulse 9s ease-in-out infinite;
}

.shaft-a { left: 12%; }
.shaft-b { left: 48%; animation-delay: -3s; opacity: 0.6; }
.shaft-c { left: 74%; animation-delay: -6s; width: 10vw; }

#emberCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.2s steps(2) infinite;
}

.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 208, 138, 0.14), transparent 68%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.is-pointer .cursor-glow {
  opacity: 1;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2.4rem;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(6, 9, 16, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-frame {
  width: 48px;
  height: 48px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-3), var(--gold-0));
  box-shadow: 0 0 0 1px rgba(246, 231, 184, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.brand-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-3);
}

.brand-sym {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--mute);
}

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

.nav-links a {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold-2);
  transition: width 0.35s var(--ease);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sigil {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(18, 32, 54, 0.55);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.sigil img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sigil:hover {
  transform: translateY(-2px);
  border-color: var(--gold-1);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.28);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cta-gold,
.cta-nav {
  color: #1a1204;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-1) 55%, var(--gold-0));
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cta-gold img,
.cta-nav img {
  filter: none;
}

.cta-ghost {
  color: var(--gold-3);
  border: 1px solid var(--line);
  background: rgba(10, 16, 28, 0.4);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 4.8s ease-in-out infinite;
  z-index: -1;
}

.cta:hover {
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.menu-btn i {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold-2);
  transition: transform 0.3s ease;
}

/* Hero */
.title-card {
  position: relative;
  z-index: 3;
  padding: 8.5rem 2.4rem 3rem;
  min-height: 100vh;
}

.virtue-rail {
  position: absolute;
  left: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--gold-2);
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  opacity: 0.7;
  animation: railFade 6s ease-in-out infinite;
}

.title-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.portrait-col {
  position: relative;
  display: grid;
  justify-items: center;
}

.portrait-orbit,
.orbit-slow {
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 1px dashed rgba(232, 208, 138, 0.28);
  animation: spin 28s linear infinite;
}

.orbit-slow {
  inset: -13%;
  border-style: solid;
  border-color: transparent transparent rgba(232, 208, 138, 0.16) transparent;
  animation-duration: 40s;
  animation-direction: reverse;
}

.portrait-gate {
  position: relative;
  width: min(100%, 430px);
  padding: 12px;
  background:
    linear-gradient(160deg, #f6e7b8, #c9a227 38%, #6d4e14 72%, #e8d08a);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(201, 162, 39, 0.16);
  transform-style: preserve-3d;
  animation: riseIn 1.1s var(--ease) both, floaty 6.5s ease-in-out 1.1s infinite;
}

.portrait-gate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  background: #101820;
}

.portrait-gate .corner {
  position: absolute;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #2a1c08;
  stroke-width: 2.2;
}

.corner.tl { top: 8px; left: 8px; }
.corner.tr { top: 8px; right: 8px; }
.corner.bl { bottom: 8px; left: 8px; }
.corner.br { bottom: 8px; right: 8px; }

.portrait-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--script);
  font-size: 1.8rem;
  color: var(--gold-3);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.virtue-script {
  margin-top: 1.1rem;
  font-family: var(--script);
  font-size: 2rem;
  color: var(--gold-2);
  letter-spacing: 0.04em;
}

.decree {
  animation: riseIn 1.2s 0.15s var(--ease) both;
}

.eyebrow,
.chapter-index,
.side-kicker,
.reel-label,
.ca-label {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}

.mega {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--serif-display);
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

.mega-line {
  display: block;
  font-size: clamp(4.2rem, 9vw, 7.4rem);
  background: linear-gradient(180deg, #fff4c8 0%, #e8d08a 38%, #c9a227 72%, #8a6718 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.25));
  position: relative;
}

.mega-line.super {
  padding-left: 0.02em;
}

.script-line {
  font-family: var(--script);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--gold-2);
  line-height: 1.1;
}

.ru-line {
  margin: 0.15rem 0 1rem;
  font-style: italic;
  color: var(--mute);
  font-size: 1.35rem;
}

.lede {
  max-width: 36ch;
  color: #d8d0bc;
  margin-bottom: 1.3rem;
}

.token-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold-3);
}

.chip img {
  width: 54px;
  height: 16px;
  object-fit: contain;
}

.ca-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 520px;
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  border: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.7);
  margin-bottom: 1.3rem;
}

.ca-bar code {
  flex: 1;
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--gold-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  transition: background 0.25s ease;
}

.copy-btn:hover,
.copy-btn.copied {
  background: rgba(201, 162, 39, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Filmstrip */
.reel-wrap {
  max-width: 1240px;
  margin: 4.5rem auto 0;
}

.reel-label {
  margin-bottom: 0.7rem;
}

.filmstrip {
  position: relative;
  padding: 18px 0;
  background: #0a0d12;
  border: 1px solid rgba(232, 208, 138, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.sprockets {
  height: 14px;
  background:
    radial-gradient(circle at 10px 7px, #1c1408 4px, transparent 4.5px) 0 0 / 28px 14px,
    linear-gradient(#2a2114, #2a2114);
}

.filmstrip-track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 8px 10px;
  animation: reel 42s linear infinite;
}

.filmstrip:hover .filmstrip-track {
  animation-play-state: paused;
}

.cell {
  width: 210px;
  height: 132px;
  overflow: hidden;
  border: 2px solid #1a140c;
  background: #000;
}

.cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

/* Dossier */
.dossier,
.trials,
.screening {
  position: relative;
  z-index: 3;
  padding: 7rem 2.4rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--serif-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-3), var(--gold-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  margin-top: 0.6rem;
  color: var(--mute);
  font-size: 1.25rem;
}

.dossier-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3rem;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.dossier-side {
  position: sticky;
  top: 7rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 40%),
    rgba(10, 16, 28, 0.72);
}

.dossier-side h3,
.chapter-copy h3,
.seal h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--gold-3);
  margin: 0.35rem 0 0.7rem;
}

.stat-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-list li {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.stat-list strong {
  font-family: var(--serif-display);
  font-size: 2.2rem;
  color: var(--gold-2);
}

.stat-list span,
.handles {
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.chapter {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid transparent;
  background: rgba(8, 13, 22, 0.35);
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}

.chapter.flip {
  grid-template-columns: 1.1fr 0.9fr;
}

.chapter.flip .chapter-media {
  order: 2;
}

.chapter:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.chapter-media {
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 210px;
  background: #0a1018;
}

.chapter-media video {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.chapter-copy p:last-child {
  color: #d2cbb8;
}

/* Trials */
.seal-path {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.seal-path::before {
  content: "";
  position: absolute;
  top: 64px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  animation: pathGlow 3.6s ease-in-out infinite;
}

.seal {
  position: relative;
  text-align: center;
  padding: 0.4rem 0.6rem 1rem;
}

.seal-ring {
  width: 108px;
  height: 108px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f6e7b8, #c9a227 46%, #6d4e14 78%);
  box-shadow: 0 0 0 8px rgba(12, 16, 24, 0.85), 0 0 24px rgba(201, 162, 39, 0.25);
  animation: sealPulse 5s ease-in-out infinite;
}

.seal:nth-child(2) .seal-ring { animation-delay: 0.4s; }
.seal:nth-child(3) .seal-ring { animation-delay: 0.8s; }
.seal:nth-child(4) .seal-ring { animation-delay: 1.2s; }

.seal-ring img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.seal-ring img[alt="Solana"] {
  width: 78px;
  height: 28px;
}

.seal-num {
  display: block;
  font-family: var(--serif);
  letter-spacing: 0.2em;
  color: var(--gold-1);
  margin-bottom: 0.25rem;
}

.seal p {
  color: var(--mute);
  font-size: 1.05rem;
}

/* Chart */
.screen-frame {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(160deg, #f6e7b8, #c9a227 40%, #6d4e14 75%, #e8d08a);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.screen-frame iframe {
  width: 100%;
  height: 640px;
  border: 0;
  background: #0b1220;
}

/* Join us — banner only here */
.premiere {
  position: relative;
  z-index: 3;
  min-height: 92vh;
  display: grid;
  place-items: end center;
  overflow: hidden;
}

.premiere-art {
  position: absolute;
  inset: 0;
  background: url("banner.png") center 35% / cover no-repeat;
  transform: scale(1.04);
  animation: ken 22s ease-in-out infinite alternate;
}

.premiere-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 9, 16, 0.08) 0%, rgba(6, 9, 16, 0.04) 48%, rgba(6, 9, 16, 0.78) 100%);
}

.premiere-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem 3.2rem;
  max-width: 820px;
}

.premiere-copy .section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--gold-3);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.premiere-copy p {
  color: #efe6cf;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.premiere-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Footer */
.foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 2.4rem 2rem;
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 16, 0.86);
}

.foot p {
  font-size: 0.98rem;
  color: var(--mute);
}

.foot-sigs {
  display: flex;
  gap: 0.5rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn 0.9s var(--ease) forwards;
  animation-play-state: paused;
}

.reveal.in {
  animation-play-state: running;
}

.paw {
  position: fixed;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 50;
  opacity: 0.85;
  animation: pawFade 0.9s ease forwards;
}

@keyframes drift {
  to { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

@keyframes shaftPulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.42; }
}

@keyframes grainShift {
  to { transform: translate3d(-2%, 2%, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reel {
  to { transform: translateX(-50%); }
}

@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(12, 16, 24, 0.85), 0 0 18px rgba(201, 162, 39, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(12, 16, 24, 0.85), 0 0 32px rgba(201, 162, 39, 0.4); }
}

@keyframes pathGlow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes ken {
  to { transform: scale(1.12) translateY(-1.5%); }
}

@keyframes railFade {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

@keyframes pawFade {
  from { transform: scale(0.4) rotate(-15deg); opacity: 0.9; }
  to { transform: scale(1.4) rotate(12deg); opacity: 0; }
}

@media (max-width: 1024px) {
  .virtue-rail { display: none; }
  .title-grid,
  .dossier-layout,
  .chapter,
  .chapter.flip,
  .seal-path {
    grid-template-columns: 1fr;
  }
  .chapter.flip .chapter-media { order: 0; }
  .dossier-side { position: static; }
  .seal-path::before { display: none; }
}

@media (max-width: 820px) {
  .nav { padding: 0.85rem 1rem; }
  .nav-tools .sigil:nth-child(2),
  .nav-tools .sigil:nth-child(3) {
    display: none;
  }
  .nav-links {
    position: fixed;
    inset: 74px 1rem auto;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: rgba(8, 12, 20, 0.94);
    border: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .cta-nav { display: none; }
  .menu-btn { display: flex; }
  .title-card,
  .dossier,
  .trials,
  .screening {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .title-card { padding-top: 7rem; }
  .mega-line { font-size: clamp(3.2rem, 16vw, 5rem); }
  .screen-frame iframe { height: 460px; }
  .foot {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .filmstrip-track { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
