/* Jason & Lucia: art deco jewel-tone night. Fonts are self-hosted from assets/vendor/fonts/. */
@font-face { font-family: "Playfair Display"; src: url("vendor/fonts/playfair-display/400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("vendor/fonts/playfair-display/700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("vendor/fonts/playfair-display/400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("vendor/fonts/playfair-display/700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("vendor/fonts/libre-baskerville/400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("vendor/fonts/libre-baskerville/700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url("vendor/fonts/libre-baskerville/400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ground: #041611;
  --ground-2: #0a0718;
  --emerald: #1fa77a;
  --emerald-deep: #0b4d3a;
  --ruby: #e0315e;
  --ruby-deep: #8e0f33;
  --sapphire: #4a74ec;
  --sapphire-deep: #0d2a6b;
  --amethyst: #a463e0;
  --amethyst-deep: #3c1663;
  --gold: #ecc97f;
  --gold-hi: #fbe7b5;
  --gold-deep: #b98a35;
  --ivory: #f6efdf;
  --ivory-dim: #d6ccb6;
  --panel: rgba(4, 18, 14, 0.8);
  --panel-2: rgba(12, 8, 28, 0.84);
  --hair: rgba(236, 201, 127, 0.5);
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body: "Libre Baskerville", Georgia, "Iowan Old Style", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 5vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; color: var(--ivory); background: transparent;
  font-family: var(--body); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; }
strong { color: var(--gold-hi); font-weight: 700; }
em { font-style: italic; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--gold); color: #17110a; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ── The world layer ─────────────────────────────────────────── */
.world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: radial-gradient(ellipse at 50% 70%, #2a0f3c 0%, #0c0a1f 45%, var(--ground) 100%); }
.world-veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(2, 8, 7, 0.55) 100%),
    linear-gradient(180deg, rgba(2, 8, 7, 0.35) 0%, transparent 18%, transparent 82%, rgba(2, 8, 7, 0.45) 100%);
}
.world-fallback { position: fixed; inset: 0; z-index: 0; display: none; pointer-events: none; }
.no-webgl .world { display: none; }
.no-webgl .world-fallback {
  display: block;
  background:
    linear-gradient(180deg, rgba(4, 22, 17, 0.55), rgba(10, 7, 24, 0.85)),
    url("../media/banner.webp") center 40% / cover no-repeat;
}
.no-webgl .world-fallback::after {
  content: ""; position: absolute; left: 50%; bottom: -30vmin; width: 140vmin; height: 140vmin; transform: translateX(-50%);
  background: repeating-conic-gradient(from -90deg at 50% 50%, rgba(236, 201, 127, 0.16) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 70%); mask: radial-gradient(circle, #000 0 30%, transparent 70%);
}

/* ── Progress rail (the only navigation) ─────────────────────── */
.rail { position: fixed; right: clamp(10px, 1.6vw, 26px); top: 18vh; bottom: 18vh; z-index: 20; width: 9px; pointer-events: none; }
.rail__line { position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(236, 201, 127, 0.22); }
.rail__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--emerald), var(--gold) 50%, var(--ruby)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail__gem { position: absolute; left: -4px; top: calc(var(--p, 0) * 100%); width: 9px; height: 9px; margin-top: -4px; background: var(--gold-hi); transform: rotate(45deg); box-shadow: 0 0 12px rgba(251, 231, 181, 0.9); }

/* ── Crest ───────────────────────────────────────────────────── */
.crest { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--gutter); }
.crest__mark { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; min-height: 44px; }
.crest__name { font-family: var(--display); font-size: 15px; letter-spacing: 0.32em; text-transform: uppercase; }
.crest__buy { min-height: 44px; }

.medal { position: relative; display: inline-block; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 4px rgba(4, 22, 17, 0.9), 0 0 0 5px var(--gold); flex: none; }
.medal img { width: 100%; height: 100%; object-fit: cover; }
.medal--small { width: 40px; height: 40px; }
.medal--large { width: clamp(150px, 16vw, 210px); height: clamp(150px, 16vw, 210px); }
.js .medal--sweep { clip-path: circle(0% at 50% 50%); transition: clip-path 2.4s var(--ease); }
.is-in .medal--sweep { clip-path: circle(50% at 50% 50%); }
.medal--sweep::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 238, 200, 0.75) 50%, transparent 62%);
  transform: translateX(-120%); animation: sweep 7s var(--ease) 1.6s infinite;
}
@keyframes sweep { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }

/* ── Type ────────────────────────────────────────────────────── */
.display { font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.display em { font-weight: 400; color: var(--gold); }
.display--m { font-size: clamp(32px, 4.2vw, 62px); line-height: 1.04; margin: 0.15em 0 0.5em; }
.display--center { text-align: center; }
.kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); flex: none; }
.kicker--center { justify-content: center; }
.numeral {
  position: absolute; top: -0.62em; right: 22px; margin: 0; font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(76px, 8vw, 128px); line-height: 1; color: transparent;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
}
.note { color: var(--ivory-dim); font-size: 0.9em; font-style: italic; }
.fine { color: var(--ivory-dim); font-size: 12.5px; letter-spacing: 0.04em; margin: 18px 0 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 28px;
  font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--gold); transition: background-color .8s var(--ease), color .8s var(--ease), box-shadow .8s var(--ease);
}
.btn--gold { color: #1a1206; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 45%, var(--gold-deep)); box-shadow: 0 0 0 3px rgba(4, 22, 17, 0.9), 0 0 0 4px rgba(236, 201, 127, 0.55), 0 10px 40px -10px rgba(236, 201, 127, 0.6); }
.btn--gold:hover { color: #1a1206; box-shadow: 0 0 0 3px rgba(4, 22, 17, 0.9), 0 0 0 4px var(--gold-hi), 0 14px 60px -8px rgba(251, 231, 181, 0.85); }
.btn--line { color: var(--ivory); background: rgba(4, 22, 17, 0.55); }
.btn--line:hover { color: var(--ivory); background: rgba(236, 201, 127, 0.14); }
.btn--big { min-height: 64px; padding: 0 48px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
[aria-disabled="true"] { cursor: not-allowed; }

/* ── Prologue ────────────────────────────────────────────────── */
main, .foot { position: relative; z-index: 2; }
.prologue { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 96px var(--gutter) 72px; }
.prologue__grid { display: grid; grid-template-columns: 1fr minmax(240px, 30vw) 1fr; grid-template-areas: "title arch side"; align-items: center; gap: clamp(24px, 3.5vw, 64px); }
.prologue__title { grid-area: title; text-align: right; }
.prologue__title, .prologue__side {
  position: relative; padding: clamp(18px, 2vw, 30px);
  background: radial-gradient(ellipse at 50% 50%, rgba(4, 18, 14, 0.82), rgba(10, 7, 24, 0.7) 70%, rgba(10, 7, 24, 0.0) 100%);
  border-radius: 4px;
}
.prologue__side { background: linear-gradient(180deg, rgba(4, 18, 14, 0.8), rgba(12, 8, 28, 0.82)); border: 1px solid rgba(236, 201, 127, 0.3); }
.cue { background: rgba(4, 18, 14, 0.72); width: max-content; margin: 0 auto; padding: 6px 14px; color: var(--ivory); }
.prologue__title .kicker { justify-content: flex-end; }
.prologue__title .display { font-size: clamp(44px, 5.8vw, 98px); text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55); }
.prologue__date { margin: 22px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); color: var(--gold-hi); }
.prologue__side { grid-area: side; max-width: 420px; }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; margin: 0 0 12px; color: var(--ivory); }
.lede { margin: 0; color: var(--ivory-dim); }

.arch { grid-area: arch; position: relative; margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.arch__frame {
  position: relative; aspect-ratio: 4 / 5; padding: 7px;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep) 40%, var(--gold) 70%, #7a5a1f);
  clip-path: polygon(0 100%, 0 18%, 9% 18%, 9% 10%, 20% 10%, 20% 4.5%, 34% 4.5%, 34% 0, 66% 0, 66% 4.5%, 80% 4.5%, 80% 10%, 91% 10%, 91% 18%, 100% 18%, 100% 100%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}
.arch__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  clip-path: polygon(0 100%, 0 18%, 9% 18%, 9% 10%, 20% 10%, 20% 4.5%, 34% 4.5%, 34% 0, 66% 0, 66% 4.5%, 80% 4.5%, 80% 10%, 91% 10%, 91% 18%, 100% 18%, 100% 100%);
}
.arch__burst {
  position: absolute; left: 50%; top: 42%; width: 190%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(236, 201, 127, 0.5) 0deg 1.1deg, transparent 1.1deg 7.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 30%, transparent 70%); mask: radial-gradient(circle, transparent 0 22%, #000 30%, transparent 70%);
  animation: turn 240s linear infinite;
}
@keyframes turn { to { rotate: 360deg; } }
.arch__fan {
  position: absolute; left: 50%; bottom: -26px; width: 64%; aspect-ratio: 2 / 1; translate: -50% 0; border-radius: 999px 999px 0 0; overflow: hidden;
  background:
    repeating-conic-gradient(from -90deg at 50% 100%, var(--gold) 0deg 1.4deg, transparent 1.4deg 12deg),
    radial-gradient(circle at 50% 100%, rgba(4, 22, 17, 0.95) 0 34%, rgba(4, 22, 17, 0.7) 35% 100%);
  border: 1px solid var(--gold); border-bottom: 0;
  box-shadow: 0 -2px 30px rgba(236, 201, 127, 0.25);
}
.arch__fan::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 34%; aspect-ratio: 2 / 1; translate: -50% 0; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--emerald), var(--emerald-deep)); border: 1px solid var(--gold); border-bottom: 0; }
.arch__cap { position: absolute; left: 0; right: 0; bottom: -58px; text-align: center; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-dim); }
/* Tilt parallax: --tx/--ty (-1..1) come from pointer / device tilt; each plane has its own depth --d */
.tilt-layer { will-change: transform; transform: translate3d(calc(var(--tx, 0) * var(--d) * 1px), calc(var(--ty, 0) * var(--d) * 0.6px), 0); }
.arch__burst { --d: -18; }
.arch__frame { --d: 6; }
.arch__fan { --d: 16; }
.panel, .scene__text { translate: calc(var(--tx, 0) * -9px) calc(var(--ty, 0) * -6px); }
.plate { translate: calc(var(--tx, 0) * 14px) calc(var(--ty, 0) * 9px); }
.visa { translate: calc(var(--tx, 0) * var(--vd, 6px)) calc(var(--ty, 0) * var(--vd, 6px) * 0.6); }
.visa:nth-child(even) { --vd: -8px; }
.visa--buy { --vd: 12px; }
/* Jewel tint per chapter */
#ch1 { --hair: rgba(63, 208, 158, 0.6); }
#ch2 { --hair: rgba(255, 90, 131, 0.6); }
#ch3 { --hair: rgba(143, 176, 255, 0.65); }
#ch4 { --hair: rgba(200, 150, 245, 0.6); }
#ch1 .numeral { background-image: linear-gradient(180deg, var(--gold-hi), #3fd09e); }
#ch2 .numeral { background-image: linear-gradient(180deg, var(--gold-hi), #ff5a83); }
#ch3 .numeral { background-image: linear-gradient(180deg, var(--gold-hi), #8fb0ff); }
#ch4 .numeral { background-image: linear-gradient(180deg, var(--gold-hi), #c896f5); }
#ch1 .kicker::before { background: #3fd09e; }
#ch2 .kicker::before { background: #ff5a83; }
#ch3 .kicker::before { background: #8fb0ff; }
#ch4 .story__head .kicker::before { background: #c896f5; }
.loops { margin-top: 14px; }
.loops__h { font-size: 13px; color: var(--ivory-dim); margin: 0 0 8px !important; }
.loops__btn { min-height: 44px; padding: 0 14px; font-size: 11px; letter-spacing: 0.16em; margin: 0 8px 8px 0; }
.loops__status { font-size: 13px; color: var(--gold-hi); min-height: 1.4em; margin: 0 !important; }

.cue { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-dim); }
.cue span { color: var(--gold); }
.tilt-permit { position: absolute; left: 50%; bottom: 48px; translate: -50% 0; min-height: 44px; padding: 0 18px; background: rgba(4, 22, 17, 0.8); color: var(--gold); border: 1px solid var(--gold); font: inherit; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }

/* ── Chapters & panels ───────────────────────────────────────── */
.chapter { min-height: 135vh; display: flex; align-items: center; padding: 18vh var(--gutter); }
.chapter[data-side="right"] { justify-content: flex-end; }
.chapter[data-side="center"] { justify-content: center; }
.panel {
  position: relative; width: min(100%, 540px); padding: clamp(30px, 3vw, 48px) clamp(24px, 2.8vw, 44px);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--hair); box-shadow: inset 0 0 0 7px rgba(4, 22, 17, 0.6), inset 0 0 0 8px rgba(236, 201, 127, 0.22), 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 34px; height: 34px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) 6px 6px / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 6px 6px / 1px 16px no-repeat;
}
.panel::before { left: -6px; top: -6px; }
.panel::after { right: -6px; bottom: -6px; transform: rotate(180deg); }
.panel p { margin: 0 0 1em; }
.panel > p:last-child { margin-bottom: 0; }
.panel--date { width: min(100%, 660px); text-align: center; }
.panel--date .kicker { justify-content: center; }
.panel--date .numeral { right: 50%; translate: 50% 0; }

.emblem { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin: 6px 0 22px; }
.emblem__cap { font-size: 0.88em; color: var(--ivory-dim); margin: 0; }

/* Dusk control */
.dusk { margin: 6px 0 18px; padding: 20px 0 4px; border-top: 1px solid rgba(236, 201, 127, 0.25); }
.dusk__label { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.dusk__label output { color: var(--ivory); letter-spacing: 0.12em; font-style: italic; text-transform: none; font-family: var(--display); font-size: 17px; }
.dusk__range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 8px 0 4px; background: transparent; cursor: pointer; }
.dusk__range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #ff8a5b, #e0315e 30%, var(--amethyst) 60%, var(--sapphire) 85%, #0b1a4d); border: 1px solid rgba(236, 201, 127, 0.4); }
.dusk__range::-moz-range-track { height: 4px; background: linear-gradient(90deg, #ff8a5b, #e0315e 30%, var(--amethyst) 60%, var(--sapphire) 85%, #0b1a4d); border: 1px solid rgba(236, 201, 127, 0.4); }
.dusk__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); border: 2px solid #1a1206; transform: rotate(45deg); box-shadow: 0 0 18px rgba(251, 231, 181, 0.7); }
.dusk__range::-moz-range-thumb { width: 22px; height: 22px; background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); border: 2px solid #1a1206; border-radius: 0; transform: rotate(45deg); box-shadow: 0 0 18px rgba(251, 231, 181, 0.7); }
.dusk__range:focus-visible { outline-offset: 2px; }
.dusk__hint { font-size: 0.86em; color: var(--ivory-dim); margin: 0 0 4px !important; }
.dusk__msg { min-height: 1.75em; margin: 0 !important; font-family: var(--display); font-style: italic; font-size: 1.12em; color: var(--gold-hi); }
.dusk__count { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ivory-dim); margin: 8px 0 0 !important; }
.dusk__n { font-family: var(--display); font-size: 22px; color: var(--gold); letter-spacing: 0; margin-left: 8px; }
.cue-inline { font-size: 0.86em; color: var(--ivory-dim); font-style: italic; }

/* ── Story ───────────────────────────────────────────────────── */
.story { position: relative; }
.story__head { min-height: 110vh; display: flex; align-items: center; padding: 18vh var(--gutter); }
.scene { min-height: 125vh; display: flex; align-items: center; padding: 14vh var(--gutter); }
.scene[data-side="right"] { justify-content: flex-end; }
.scene > * { position: relative; }
.scene { gap: 0; }
.scene .plate, .scene .scene__text { width: min(100%, 420px); }
.scene { flex-direction: column; justify-content: center; }
.scene[data-side="left"] { align-items: flex-start; }
.scene[data-side="right"] { align-items: flex-end; }
.plate {
  margin: 0; padding: 8px; background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep) 45%, var(--gold) 80%);
  box-shadow: 0 0 0 4px rgba(4, 22, 17, 0.9), 0 0 0 5px rgba(236, 201, 127, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.plate img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.scene__text { padding: 22px 26px 24px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--hair); border-top: 0; }
.scene__text h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; margin: 0 0 8px; }
.scene__text p { margin: 0; color: var(--ivory-dim); }
.scene__no { font-family: var(--display); font-style: italic; color: var(--gold) !important; font-size: 18px; margin-bottom: 2px !important; }

/* ── Countdown ───────────────────────────────────────────────── */
.countdown { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 22px !important; }
.countdown__n { font-family: var(--display); font-weight: 700; font-size: clamp(72px, 10vw, 150px); line-height: 0.95; color: transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; }
.countdown__l { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }

/* ── Passport (token panel) ──────────────────────────────────── */
.passport-wrap { width: min(100%, 920px); }
.passport {
  position: relative; overflow: hidden; padding: clamp(22px, 3vw, 40px);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(74, 116, 236, 0.32), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(31, 167, 122, 0.24), transparent 55%),
    linear-gradient(150deg, rgba(13, 42, 107, 0.7) 0%, rgba(11, 34, 87, 0.66) 45%, rgba(8, 48, 63, 0.72) 100%);
  border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px rgba(4, 14, 30, 0.7), inset 0 0 0 7px rgba(236, 201, 127, 0.45), 0 50px 120px -40px rgba(0, 0, 0, 0.9);
}
.passport__guilloche {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.32;
  background:
    repeating-radial-gradient(circle at 85% 20%, transparent 0 9px, rgba(236, 201, 127, 0.35) 9px 10px),
    repeating-radial-gradient(circle at 10% 90%, transparent 0 13px, rgba(164, 99, 224, 0.4) 13px 14px);
  -webkit-mask: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.3)); mask: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.3));
}
.passport > *:not(.passport__guilloche) { position: relative; }
.passport__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid rgba(236, 201, 127, 0.4); font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.passport__body { display: grid; grid-template-columns: 150px 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; padding: 24px 0; }
.passport__photo { margin: 0; padding: 5px; background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep)); }
.passport__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; width: 100%; }
.passport__fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.passport__fields div { border-bottom: 1px dotted rgba(236, 201, 127, 0.35); padding-bottom: 6px; }
.passport__fields dt { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.passport__fields dd { margin: 2px 0 0; font-family: var(--display); font-size: 19px; line-height: 1.3; }
.dim { color: var(--ivory-dim); font-size: 0.75em; font-style: italic; }

.visas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 8px 0 24px; }
.visa {
  --ink: var(--gold); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 128px; padding: 18px 10px; text-decoration: none; color: var(--ivory); isolation: isolate;
  rotate: var(--r, 0deg); transition: rotate 1.4s var(--ease), transform 1.4s var(--ease), opacity 1.4s var(--ease);
}
.visa:hover { color: var(--ivory); rotate: 0deg; }
.visa__ink { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); z-index: -1; fill: none; stroke: var(--ink); stroke-width: 2.2; opacity: 0.85; }
.visa__ink .g { stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.visa__k { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
.visa__t { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.visa__s { font-size: 11px; color: var(--ivory-dim); }
.visa--emerald { --ink: #3fd09e; --r: -4deg; }
.visa--ruby { --ink: #ff5a83; --r: 3deg; }
.visa--sapphire { --ink: #8fb0ff; --r: -2deg; }
.visa--amethyst { --ink: #c896f5; --r: 5deg; }
.visa--gold { --ink: var(--gold); --r: -3deg; }
.visa--x { --ink: var(--ivory); --r: 2deg; }
.visa--buy { --ink: var(--gold-hi); --r: -1.5deg; grid-column: span 2; grid-row: span 2; min-height: 260px; }
.visa--buy .visa__ink { stroke-width: 1.6; }
.visa--buy .visa__t { font-size: clamp(28px, 3.2vw, 44px); color: var(--gold-hi); }
.visa--buy::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; z-index: -2; background: radial-gradient(circle, rgba(236, 201, 127, 0.28), transparent 70%); }
.visa.is-inert { opacity: 0.62; }
.visa.is-inert .visa__s::after { content: " · soon"; }
.js .passport .visa { opacity: 0; transform: scale(1.25); }
.passport.is-in .visa { opacity: 1; transform: none; }
.passport.is-in .visa.is-inert { opacity: 0.62; }
.passport.is-in .visa:nth-child(2) { transition-delay: .15s; }
.passport.is-in .visa:nth-child(3) { transition-delay: .3s; }
.passport.is-in .visa:nth-child(4) { transition-delay: .45s; }
.passport.is-in .visa:nth-child(5) { transition-delay: .6s; }
.passport.is-in .visa:nth-child(6) { transition-delay: .75s; }
.passport.is-in .visa:nth-child(7) { transition-delay: .9s; }

.mrz { padding: 18px 0 6px; border-top: 1px solid rgba(236, 201, 127, 0.4); }
.mrz__label { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.mrz__line { margin: 0 0 8px; white-space: nowrap; overflow: hidden; font-size: clamp(12px, 1.4vw, 17px); letter-spacing: 0.3em; color: rgba(246, 239, 223, 0.7); font-variant-numeric: tabular-nums; }
.mrz__ca {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; width: 100%; min-height: 58px; padding: 10px 16px;
  font: inherit; color: var(--ivory); text-align: left; cursor: pointer;
  background: rgba(2, 10, 24, 0.55); border: 1px dashed rgba(236, 201, 127, 0.6);
  transition: background-color .8s var(--ease), border-color .8s var(--ease);
}
.mrz__ca:hover:not([disabled]) { background: rgba(236, 201, 127, 0.1); border-style: solid; }
.mrz__ca[disabled] { cursor: not-allowed; }
.mrz__ca code { font-family: var(--body); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: 0.16em; word-break: break-all; }
.mrz__ca code.is-masked { display: none; }
.mrz__soon { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--gold-hi); }
.mrz__hint { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.mrz__status { min-height: 1.5em; margin: 8px 0 0; font-size: 13px; color: var(--gold-hi); }
.passport__nfa { margin: 14px 0 0; font-size: 12.5px; color: var(--ivory-dim); }

/* ── Footer ──────────────────────────────────────────────────── */
.foot { padding: 20vh var(--gutter) 48px; text-align: center; }
.foot__inner { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); background: linear-gradient(180deg, rgba(4, 18, 14, 0.82), rgba(12, 8, 28, 0.9)); border: 1px solid var(--hair); }
.foot__ornament { width: 160px; height: 80px; margin: 0 auto 26px; border-radius: 160px 160px 0 0; border: 1px solid var(--gold); border-bottom: 0; background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(236, 201, 127, 0.8) 0deg 1deg, transparent 1deg 10deg); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: left; margin: 44px 0 34px; }
.foot__h { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 0 0 10px; color: var(--gold); }
.foot__cols p, .foot__list { font-size: 14px; color: var(--ivory-dim); margin: 0; }
.foot__list { list-style: none; padding: 0; }
.foot__list li { margin-bottom: 6px; overflow-wrap: anywhere; }
.foot__list a { display: inline-flex; align-items: center; min-height: 44px; }
.xlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; padding: 0 16px; border: 1px solid var(--gold); color: var(--ivory); text-decoration: none; }
.xlink svg { width: 16px; height: 16px; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.disclosure { margin: 0 0 6px; font-size: 15px; color: var(--ivory); letter-spacing: 0.02em; }
.foot__fine { margin: 0; font-size: 12.5px; color: var(--ivory-dim); }

/* 404 */
.lost { background: var(--ground); }
.lost .lost__bg { display: block; background: linear-gradient(180deg, rgba(4, 22, 17, 0.6), rgba(10, 7, 24, 0.9)), url("../media/banner.webp") center / cover no-repeat; }
.lost .chapter { position: relative; z-index: 2; min-height: 100vh; }
.lost .numeral { font-size: clamp(60px, 7vw, 100px); }

/* ── Reveal (slow drift)─────────────────────────────────────── */
.js .panel, .js .scene .plate, .js .scene .scene__text, .js .passport, .js .foot__inner { opacity: 0; transform: translateY(32px); transition: opacity 1.8s var(--ease), transform 2.2s var(--ease); }
.js .is-in .panel, .js .scene.is-in .plate, .js .scene.is-in .scene__text, .js .passport.is-in, .js .foot__inner.is-in, .js .panel.is-in { opacity: 1; transform: none; }
.js .scene.is-in .scene__text { transition-delay: .35s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .visas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .crest__name { display: none; }
  .prologue { padding-top: 84px; align-items: start; }
  .prologue__grid { grid-template-columns: 1fr; grid-template-areas: "title" "arch" "side"; gap: 22px; text-align: center; }
  .prologue__title { text-align: center; }
  .prologue__title .kicker { justify-content: center; }
  .prologue__title .display { font-size: clamp(38px, 11vw, 64px); }
  .prologue__date { margin-top: 10px; }
  .arch { width: min(72vw, 42vh, 340px); }
  .prologue__side { margin: 40px auto 0; }
  .cta-row { justify-content: center; }
  .cue { display: none; }
  .chapter, .story__head { padding: 30vh 16px 12vh; align-items: flex-end; min-height: 130vh; }
  .chapter[data-side] { justify-content: center; }
  .panel { width: 100%; }
  .panel, .scene__text { --panel: rgba(4, 18, 14, 0.88); --panel-2: rgba(12, 8, 28, 0.9); }
  .scene { padding: 30vh 16px 12vh; justify-content: flex-end; }
  .scene[data-side] { align-items: center; }
  .scene .scene__text { width: min(100%, 440px); }
  .scene .plate { width: 132px; align-self: flex-start; margin: 0 0 -1px 12px; padding: 4px; }
  .scene { padding-top: 42vh; }
  .emblem { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .passport__body { grid-template-columns: 1fr; }
  .passport__photo { width: 120px; }
  .passport__fields { grid-template-columns: 1fr; }
  .visas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visa--buy { min-height: 200px; }
  .visa__t { font-size: 17px; }
  .visa__k { letter-spacing: 0.2em; }
  .foot__cols { grid-template-columns: 1fr; }
  .rail { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 3px; }
  .rail__line { left: 0; right: 0; top: 1px; bottom: auto; width: auto; height: 1px; }
  .rail__fill { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .rail__gem { top: -3px; left: calc(var(--p, 0) * 100%); margin: 0 0 0 -4px; }
  .numeral { right: 14px; }
}
@media (max-width: 400px) {
  .btn { padding: 0 18px; letter-spacing: 0.16em; }
  .crest { padding: 12px 16px; }
  .passport { padding: 18px 14px; }
  .mrz__line { letter-spacing: 0.18em; }
}

/* ── Reduced motion: calm static version ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .panel, .js .scene .plate, .js .scene .scene__text, .js .passport, .js .foot__inner { opacity: 1; transform: none; }
  .medal--sweep { clip-path: none; }
  .passport .visa { opacity: 1; transform: none; }
  .tilt-layer { transform: none !important; }
}

/* Approved artwork keeps its full 3:1 frame; no blurred padding. */
.medal > picture { display: block; width: 100%; height: 100%; }
.brand-banner { width: 100%; margin: 1.5rem 0; border: 1px solid var(--gold-deep); }
.brand-banner picture, .brand-banner img { display: block; width: 100%; }
.brand-banner img { height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
