/* Vault Research — cinematic layer: entry intro + "The Vault story" scroll sequence.
   Uses only brand colours (Black, Ivory, Pearl, Gold) and the brand fonts (Lora, Inter). */

/* =========================================================
   1. Entry intro
   ========================================================= */
.intro, .intro-skip { display: none; }
html.has-intro { overflow: hidden; }
html.has-intro[data-intro="vault"] .v-vault, html.has-intro[data-intro="reveal"] .v-reveal,
html.has-intro[data-intro="titles"] .v-titles, html.has-intro[data-intro="dial"] .v-dial, html.has-intro[data-intro="unlock"] .v-unlock,
html.has-intro .intro-skip, .intro.playing { display: block; }
.intro {
  position: fixed; inset: 0; z-index: 400; overflow: hidden;
  color: #DFD9CF; font-family: var(--sans); cursor: pointer;
  --ease: cubic-bezier(.77, 0, .18, 1);
}
.intro .door {
  position: absolute; left: 0; right: 0; height: 50.2%;
  background: radial-gradient(120% 90% at 50% 100%, #1a1816 0%, #0b0b0b 60%);
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
.intro .door.top { top: 0; }
.intro .door.bot { bottom: 0; background: radial-gradient(120% 90% at 50% 0%, #1a1816 0%, #0b0b0b 60%); }
.intro-grid {
  position: absolute; left: 50%; top: 50%; width: max(130vmax, 900px); aspect-ratio: 1; translate: -50% -50%;
  background: url(../img/mark-geometric.webp) center/cover no-repeat;
  filter: invert(1) sepia(.6) saturate(1.4) brightness(.85); mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, transparent 0 12%, #000 30% 45%, transparent 66%);
  mask-image: radial-gradient(circle, transparent 0 12%, #000 30% 45%, transparent 66%);
  opacity: 0; animation: in-grid 4.2s ease-out .3s forwards;
  transition: opacity .6s;
}
@keyframes in-grid { from { opacity: 0; transform: scale(1.18) rotate(-8deg); } to { opacity: .2; transform: scale(1) rotate(0); } }

/* The seam where the two doors meet */
.intro-seam {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px;
  background: linear-gradient(90deg, transparent, #C9AE7E 18%, #F1E3C4 50%, #C9AE7E 82%, transparent);
  transform: scaleX(0); animation: in-seam 1.4s cubic-bezier(.2,.7,.2,1) .15s forwards;
}
@keyframes in-seam { to { transform: scaleX(1); opacity: .55; } }

.intro-stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 3.2vh, 30px); padding: 24px;
  transition: opacity .8s ease, transform 1.2s cubic-bezier(.2,.7,.2,1), filter .8s;
}
.intro-mark { width: min(230px, 50vw); height: auto; overflow: visible; }
.intro-mark .m-line { stroke: #DFD9CF; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.intro-mark .m-h { transform: scaleX(0); animation: in-grow 1s cubic-bezier(.6,0,.2,1) .45s forwards; }
.intro-mark .m-v { transform: scaleY(0); animation: in-grow 1s cubic-bezier(.6,0,.2,1) .6s forwards; }
@keyframes in-grow { to { transform: none; } }
.intro-mark .m-ring { fill: none; stroke: #DFD9CF; stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-mark .m-outer { stroke-width: 3.2; animation: in-draw 1.2s cubic-bezier(.6,0,.2,1) .75s forwards; }
.intro-mark .m-inner { stroke-width: 1.3; animation: in-draw 1.1s cubic-bezier(.6,0,.2,1) .95s forwards; }
.intro-mark .m-dot { fill: #DFD9CF; opacity: 0; transform-box: fill-box; transform-origin: center; animation: in-pop .5s ease 1.4s forwards; }
.intro-mark .m-star {
  transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-135deg);
  animation: in-star 1.1s cubic-bezier(.2,1.4,.3,1) 1.5s forwards;
  filter: drop-shadow(0 0 14px rgba(201,174,126,.65));
}
.intro-mark .m-glow { opacity: 0; transform-box: fill-box; transform-origin: center; animation: in-glow 2.4s ease 1.6s forwards; }
@keyframes in-draw { to { stroke-dashoffset: 0; } }
@keyframes in-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes in-star { to { transform: scale(1) rotate(0); } }
@keyframes in-glow { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1.15); } 100% { opacity: .55; transform: scale(1); } }

.intro-word {
  width: min(250px, 58vw); height: auto;
  clip-path: inset(0 50% 0 50%); opacity: 0; letter-spacing: .3em;
  animation: in-word 1.2s cubic-bezier(.2,.7,.2,1) 2s forwards;
}
@keyframes in-word { to { clip-path: inset(0 0 0 0); opacity: 1; } }
.intro-tag {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 2.1vw, 19px);
  color: #C9AE7E; letter-spacing: .02em; text-align: center;
}
.intro-tag span { display: inline-block; opacity: 0; transform: translateY(10px); filter: blur(4px); animation: in-tag .8s ease forwards; }
.intro-tag span:nth-child(1) { animation-delay: 2.45s; }
.intro-tag span:nth-child(2) { animation-delay: 2.7s; }
.intro-tag span:nth-child(3) { animation-delay: 2.95s; }
@keyframes in-tag { to { opacity: 1; transform: none; filter: none; } }

.intro-skip {
  position: fixed; z-index: 402; right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vh, 36px); z-index: 3;
  background: none; border: 1px solid rgba(223,217,207,.28); color: #DFD9CF; cursor: pointer;
  padding: 11px 16px; font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  opacity: 0; animation: in-pop-soft .6s ease .5s forwards; transition: border-color .25s, background .25s;
}
.intro-skip:hover, .intro-skip:focus-visible { border-color: #C9AE7E; background: rgba(201,174,126,.08); outline: none; }
.intro-skip i { font-style: normal; color: #C9AE7E; margin-left: 6px; }
@keyframes in-pop-soft { to { opacity: 1; } }

/* Doors open */
.intro.open { pointer-events: none; }
.intro.open .door.top { transform: translateY(-101%); }
.intro.open .door.bot { transform: translateY(101%); }
.intro.open .intro-stage { opacity: 0; transform: scale(1.35); filter: blur(8px); }
.intro.open .intro-grid { opacity: 0 !important; transition: opacity .4s; }
.intro.open .intro-seam { animation: in-flare 1s ease forwards; }
@keyframes in-flare {
  0% { transform: scaleX(1); opacity: 1; box-shadow: 0 0 0 0 rgba(241,227,196,0); }
  30% { opacity: 1; box-shadow: 0 0 60px 18px rgba(241,227,196,.55); }
  100% { opacity: 0; transform: scaleX(1.2) scaleY(30); box-shadow: 0 0 80px 30px rgba(241,227,196,0); }
}

/* ---------- Intro style 2: "reveal" (the vial in a spotlight) ---------- */
.v-reveal { background: #0b0b0b; }
.rv-dust {
  position: absolute; inset: 0; opacity: 0; animation: in-pop-soft 2s ease .2s forwards;
  background: radial-gradient(60% 50% at 50% 42%, rgba(201,174,126,.10), transparent 70%);
}
.rv-stage { position: absolute; left: 50%; top: 42%; width: min(520px, 92vw); aspect-ratio: 1; translate: -50% -50%; }
.rv-light {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #F7F6F2 0%, #F1EDE5 28%, rgba(223,217,207,.5) 46%, rgba(223,217,207,0) 68%);
  opacity: 0; transform: translate(-38%, -30%) scale(.25);
  animation: rv-light 1.9s cubic-bezier(.2,.7,.2,1) .25s forwards;
}
@keyframes rv-light { 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.rv-vial {
  position: absolute; left: 50%; top: 50%; width: 52%; translate: -50% -50%; overflow: hidden;
  opacity: 0; transform: scale(1.22) translateY(24px); filter: blur(12px);
  animation: rv-vial 2.2s cubic-bezier(.2,.7,.2,1) .7s forwards;
}
.rv-vial img { width: 100%; mix-blend-mode: multiply; }
.rv-vial {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 75%, transparent 100%);
}
@keyframes rv-vial { to { opacity: 1; transform: none; filter: none; } }
.rv-glint {
  position: absolute; top: -20%; bottom: -20%; width: 34%; left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,250,236,.9), transparent); mix-blend-mode: overlay;
  animation: rv-glint 1.3s ease-in-out 2.3s forwards;
}
@keyframes rv-glint { to { left: 130%; } }
.rv-copy { position: absolute; left: 0; right: 0; top: calc(42% + min(250px, 44vw)); text-align: center; padding: 0 24px; }
.rv-word { width: min(190px, 46vw); margin: 0 auto 16px; opacity: 0; animation: in-word 1s ease 2.2s forwards; clip-path: inset(0 50% 0 50%); }
.rv-line {
  margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); line-height: 1.2; color: #F2EEE6;
  opacity: 0; transform: translateY(12px); filter: blur(6px); animation: in-tag 1s ease 2.6s forwards;
}
.rv-line em { color: #C9AE7E; }
.v-reveal { transition: background-color .9s ease .35s, opacity .7s ease .9s; }
.v-reveal.open { background-color: rgba(247,246,242,0); opacity: 0; }
.v-reveal.open .rv-light { animation: none; opacity: 1; transform: scale(9); transition: transform 1.1s cubic-bezier(.6,0,.2,1); }
.v-reveal.open .rv-vial, .v-reveal.open .rv-copy { opacity: 0; transition: opacity .35s; animation: none; }
.v-reveal.open .rv-dust { opacity: 0; }

/* ---------- Intro style 3: "titles" (the four brand words, cut like film titles) ---------- */
.tt-panel {
  position: absolute; inset: 0; background: #F7F6F2; color: #111111;
  transition: transform 1.1s cubic-bezier(.77,0,.18,1);
}
.tt-words p {
  position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--serif); font-size: clamp(46px, 10vw, 150px); line-height: 1; letter-spacing: -.01em;
  opacity: 0; animation: tt-cut .62s cubic-bezier(.2,.7,.2,1) both;
}
.tt-words p:nth-child(even) span { font-style: italic; }
.tt-words small { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 22px); color: #A07F4B; letter-spacing: .02em; }
.tt-words p:nth-child(1) { animation-delay: .25s; } .tt-words p:nth-child(2) { animation-delay: .87s; }
.tt-words p:nth-child(3) { animation-delay: 1.49s; } .tt-words p:nth-child(4) { animation-delay: 2.11s; }
@keyframes tt-cut {
  0% { opacity: 0; transform: scale(1.08); filter: blur(10px); letter-spacing: .06em; }
  22% { opacity: 1; transform: none; filter: none; letter-spacing: -.01em; }
  80% { opacity: 1; transform: scale(.985); filter: none; }
  100% { opacity: 0; transform: scale(.97); filter: blur(4px); }
}
.tt-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.tt-mark { width: min(84px, 20vw); opacity: 0; transform: scale(.6) rotate(-45deg); animation: tt-mark .9s cubic-bezier(.2,1.3,.3,1) 2.75s forwards; }
@keyframes tt-mark { to { opacity: 1; transform: none; } }
.tt-word { width: min(260px, 62vw); opacity: 0; clip-path: inset(0 50% 0 50%); animation: in-word 1s cubic-bezier(.2,.7,.2,1) 2.95s forwards; }
.tt-rule { display: block; width: 72px; border-top: 1px solid #A07F4B; transform: scaleX(0); animation: in-grow .9s ease 3.25s forwards; }
.tt-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #7E6237, #C9AE7E, #7E6237); opacity: 0; }
.v-titles.open .tt-panel { transform: translateY(-101%); }
.v-titles.open .tt-edge { opacity: 1; }
.v-titles.open .tt-end { opacity: 0; transform: translateY(-40px); transition: opacity .5s, transform .9s; }
.v-titles ~ .intro-skip, html[data-intro="titles"] .intro-skip { color: #111111; border-color: rgba(17,17,17,.25); }
html[data-intro="titles"] .intro-skip:hover { background: rgba(160,127,75,.1); border-color: #A07F4B; }

/* ---------- Intro style 4: "dial" (the vault dial unlocks, then an iris opens) ---------- */
.v-dial { overflow: hidden; }
.dl-iris {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; translate: -50% -50%; border-radius: 50%;
  box-shadow: 0 0 0 200vmax #0b0b0b; transition: width 1.25s cubic-bezier(.7,0,.2,1), height 1.25s cubic-bezier(.7,0,.2,1);
}
.dl-iris::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #C9AE7E; box-shadow: 0 0 40px 6px rgba(201,174,126,.45); display: none; }
.dl-stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .6s, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.dl-svg { width: min(340px, 74vw); height: auto; overflow: visible; opacity: 0; transform: scale(.92); animation: tt-mark 1s cubic-bezier(.2,.7,.2,1) .15s forwards; }
.dl-outer { fill: none; stroke: rgba(201,174,126,.35); stroke-width: 1; }
.dl-face { fill: #121110; stroke: #DFD9CF; stroke-width: 2.4; }
.dl-ticks line { stroke: #6f6b64; stroke-width: 1.2; }
.dl-ticks line.big { stroke: #DFD9CF; stroke-width: 1.6; }
.dl-nums text { fill: #B9B3A9; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-anchor: middle; dominant-baseline: middle; }
.dl-ring { transform-box: fill-box; transform-origin: center; animation: dl-spin 3s cubic-bezier(.65,0,.35,1) .45s forwards; }
@keyframes dl-spin {
  0% { transform: rotate(0); } 26% { transform: rotate(252deg); } 34% { transform: rotate(252deg); }
  60% { transform: rotate(126deg); } 68% { transform: rotate(126deg); } 92% { transform: rotate(356deg); } 100% { transform: rotate(356deg); }
}
.dl-index { fill: #C9AE7E; transform-box: fill-box; transform-origin: center; animation: dl-click 3s linear .45s forwards; }
@keyframes dl-click { 0%, 25%, 35%, 59%, 69%, 91%, 100% { transform: none; filter: none; } 28%, 62%, 94% { transform: translateY(4px) scale(1.25); filter: drop-shadow(0 0 8px #C9AE7E); } }
.dl-hub { fill: #0b0b0b; stroke: #DFD9CF; stroke-width: 1.4; }
.dl-hub2 { fill: none; stroke: rgba(223,217,207,.5); stroke-width: 1; }
.dl-cross { stroke: rgba(223,217,207,.55); stroke-width: 1; }
.dl-star {
  transform-box: fill-box; transform-origin: center; transform: rotate(45deg) scale(.82); opacity: .55;
  animation: dl-unlock 1s cubic-bezier(.2,1.4,.3,1) 3.45s forwards;
}
@keyframes dl-unlock { to { transform: none; opacity: 1; } }
.dl-code { display: flex; gap: 14px; }
.dl-code span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #C9AE7E; animation: dl-dot .3s ease forwards; }
.dl-code span:nth-child(1) { animation-delay: 1.3s; } .dl-code span:nth-child(2) { animation-delay: 2.1s; } .dl-code span:nth-child(3) { animation-delay: 2.9s; }
@keyframes dl-dot { to { background: #C9AE7E; box-shadow: 0 0 10px rgba(201,174,126,.8); } }
.dl-word { width: min(200px, 50vw); opacity: 0; clip-path: inset(0 50% 0 50%); animation: in-word 1s ease 3.5s forwards; }
.v-dial.open .dl-iris { width: 300vmax; height: 300vmax; }
.v-dial.open .dl-iris::after { display: block; }
.v-dial.open .dl-stage { opacity: 0; transform: scale(1.6); }

/* ---------- Intro style 5: "unlock" (the dial unlocks, the vial is revealed in a spotlight) ---------- */
.un-bg { position: absolute; inset: 0; background: #0b0b0b; transition: opacity .8s ease .5s; }
.v-unlock .dl-stage { justify-content: center; transform-origin: 50% 42%; }
.v-unlock .dl-stage { position: absolute; inset: 0; padding-bottom: 16vh; }
.v-unlock .dl-svg { animation-delay: .1s; }
.v-unlock .dl-ring { animation: un-spin 1.9s cubic-bezier(.65,0,.35,1) .35s forwards; }
@keyframes un-spin {
  0% { transform: rotate(0); } 30% { transform: rotate(234deg); } 38% { transform: rotate(234deg); }
  64% { transform: rotate(108deg); } 72% { transform: rotate(108deg); } 96%, 100% { transform: rotate(356deg); }
}
.v-unlock .dl-index { animation: un-click 1.9s linear .35s forwards; }
@keyframes un-click { 0%, 29%, 39%, 63%, 73%, 95%, 100% { transform: none; filter: none; } 32%, 66%, 98% { transform: translateY(4px) scale(1.25); filter: drop-shadow(0 0 8px #C9AE7E); } }
.v-unlock .dl-code span:nth-child(1) { animation-delay: .95s; } .v-unlock .dl-code span:nth-child(2) { animation-delay: 1.5s; } .v-unlock .dl-code span:nth-child(3) { animation-delay: 2.2s; }
.v-unlock .dl-star { animation: un-star .7s cubic-bezier(.2,1.4,.3,1) 2.25s forwards; }
@keyframes un-star { 60% { transform: none; opacity: 1; } 100% { transform: scale(1.35); opacity: 1; } }
/* the vault opens: the dial flies past the camera, a gold ring bursts out, the light comes up */
.v-unlock .dl-stage { animation: un-away 1s cubic-bezier(.6,0,.3,1) 2.75s forwards; }
@keyframes un-away { to { opacity: 0; transform: scale(2.4); filter: blur(6px); } }
.un-ring {
  position: absolute; left: 50%; top: 42%; width: min(240px, 52vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: 1.5px solid #E3CFA4; box-shadow: 0 0 40px 8px rgba(201,174,126,.5), inset 0 0 40px 8px rgba(201,174,126,.35);
  opacity: 0; animation: un-ring 1.3s cubic-bezier(.2,.7,.2,1) 2.8s forwards;
}
@keyframes un-ring { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(5); } }
.v-unlock .rv-light { transform: scale(0); animation: un-light 1.6s cubic-bezier(.2,.7,.2,1) 2.85s forwards; }
@keyframes un-light { 0% { opacity: 0; transform: scale(0); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.v-unlock .rv-vial { animation: rv-vial 1.8s cubic-bezier(.2,.7,.2,1) 3.05s forwards; }
.v-unlock .rv-glint { animation: rv-glint 1.2s ease-in-out 4.1s forwards; }
.v-unlock .rv-word { animation-delay: 3.9s; }
.v-unlock .rv-line { animation-delay: 4.25s; }
.v-unlock { transition: opacity .7s ease .9s; }
.v-unlock.open { opacity: 0; }
.v-unlock.open .un-bg { opacity: 0; }
.v-unlock.open .rv-light { animation: none; opacity: 1; transform: scale(9); transition: transform 1.1s cubic-bezier(.6,0,.2,1); }
.v-unlock.open .rv-vial, .v-unlock.open .rv-copy, .v-unlock.open .dl-stage { opacity: 0; transition: opacity .35s; animation: none; }

/* Hero waits for the doors, then arrives */
html.has-intro .hero-copy > * { animation-play-state: paused; }
html.arrive .hero-art { animation: vr-arrive 1.8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes vr-arrive { from { opacity: 0; transform: scale(1.08); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* Film-reel progress line across the top of the page */
.reel-progress {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transform-origin: left; transform: scaleX(var(--sp, 0));
}

/* =========================================================
   2. The Vault story
   Default (no JS / reduced motion): a calm, stacked list.
   .story.live: pinned, scroll-driven sequence.
   ========================================================= */
.story {
  background: #0b0b0b; color: #DFD9CF; position: relative;
  --gold-l: #C9AE7E; --p: 0; --ap: 0;
}
.story .eyebrow { color: var(--gold-l); }
.story h2 { color: #F2EEE6; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.08; }
.story h2 em { color: var(--gold-l); }
.story p { color: #B9B3A9; font-size: 18px; max-width: 440px; }
.story-pin { padding: var(--section) 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-copy { position: relative; }
.act { padding: 26px 0; border-top: 1px solid #262522; }
.act-num { display: block; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); margin-bottom: 16px; }
.act h2 { margin-bottom: 18px; }
.act .btn { margin-top: 10px; }
.story-rail, .story-hint { display: none; }

/* Stage */
.stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.stage > * { position: absolute; }
.st-grid {
  inset: -20%;
  background: url(../img/mark-geometric.webp) center/cover no-repeat;
  filter: invert(1) sepia(.6) saturate(1.4) brightness(.8); mix-blend-mode: screen; opacity: .1;
  -webkit-mask-image: radial-gradient(circle, transparent 0 18%, #000 32% 46%, transparent 68%);
  mask-image: radial-gradient(circle, transparent 0 18%, #000 32% 46%, transparent 68%);
  transform: rotate(calc(var(--p) * 60deg)) scale(calc(1 + var(--p) * .15));
  transition: opacity 1s;
}
.st-light {
  inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, #F7F6F2 0%, #F1EDE5 30%, rgba(223,217,207,.55) 48%, rgba(223,217,207,0) 70%);
  transform: scale(.9); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1s;
}
.st-rings { inset: 6%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1s; }
.st-rings span { position: absolute; border-radius: 50%; border: 1px solid rgba(201,174,126,.5); }
.st-rings span:nth-child(1) { inset: 0; }
.st-rings span:nth-child(2) { inset: -9%; border-color: rgba(201,174,126,.22); }
.st-rings span:nth-child(3) { inset: -18%; border-color: rgba(201,174,126,.1); border-style: dashed; animation: st-spin 60s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }

.st-vial-wrap { left: 50%; top: 50%; width: 52%; translate: -50% -50%; transform: translateY(calc((var(--p) - .5) * -40px)); }
.st-vial {
  width: 100%; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 75%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 75%, transparent 100%);
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}

/* Act i — the ruler */
.st-ruler { right: 2%; top: 18%; height: 64%; width: auto; overflow: visible; opacity: 0; transition: opacity .8s, transform .8s; transform: translateX(16px); }
.st-ruler line { stroke: rgba(201,174,126,.4); stroke-width: 1; }
.st-ruler .ticks line { stroke: var(--gold-l); }
.st-pointer { fill: var(--gold-l); transform: translate(26px, calc(400px - var(--ap) * 400px)); transition: transform .2s linear; }

/* Act ii — scan beam + purity */
.st-scan { left: 22%; right: 22%; top: 12%; bottom: 12%; opacity: 0; transition: opacity .6s; overflow: hidden; }
.st-scan i {
  position: absolute; left: 0; right: 0; height: 22%; top: -22%;
  background: linear-gradient(180deg, rgba(201,174,126,0), rgba(201,174,126,.32) 80%, rgba(241,227,196,.95) 100%);
  border-bottom: 1px solid #F1E3C4; mix-blend-mode: multiply;
}
.st-purity { left: -8%; top: 6%; opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s; }
.st-purity b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7vw, 92px); line-height: 1; color: #F2EEE6; }
.st-purity small { font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }

/* Act iii — the seal */
.st-seal { inset: -4%; width: 108%; height: 108%; overflow: visible; opacity: 0; transform: scale(1.35) rotate(-30deg); transition: opacity .9s, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.st-seal circle { fill: none; stroke: var(--gold-l); }
.st-seal .s-out { stroke-width: 1.2; }
.st-seal .s-in { stroke-width: .6; stroke-opacity: .5; }
.st-seal text { fill: var(--gold-l); font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.st-coa {
  right: 0; bottom: 10%; display: flex; align-items: center; gap: 10px;
  background: rgba(11,11,11,.94); border: 1px solid rgba(201,174,126,.5); padding: 11px 14px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #F2EEE6;
  opacity: 0; transform: translateY(14px); transition: opacity .7s .2s, transform .7s .2s;
  backdrop-filter: blur(4px);
}
.st-coa svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-l); stroke-width: 2; }

/* Act iv — the journey */
.st-routes { inset: -10%; width: 120%; height: 120%; overflow: visible; }
.st-routes path { fill: none; stroke: var(--gold-l); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.6,0,.2,1); }
.st-routes path:nth-child(2) { transition-delay: .12s; } .st-routes path:nth-child(3) { transition-delay: .24s; } .st-routes path:nth-child(4) { transition-delay: .36s; }
.st-dest {
  display: flex; flex-direction: column; gap: 2px; font-size: 11px; letter-spacing: .08em; color: #B9B3A9;
  opacity: 0; transform: scale(.9); transition: opacity .6s, transform .6s;
}
.st-dest b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: #F2EEE6; letter-spacing: .04em; }
.st-dest::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-l); box-shadow: 0 0 0 5px rgba(201,174,126,.18); margin-bottom: 6px; }
.st-dest.d1 { left: -4%; top: 4%; } .st-dest.d2 { right: -2%; top: 6%; align-items: flex-end; text-align: right; }
.st-dest.d3 { left: -3%; bottom: 3%; } .st-dest.d4 { right: -2%; bottom: 4%; align-items: flex-end; text-align: right; }
.st-dest.d2 { transition-delay: .5s; } .st-dest.d3 { transition-delay: .62s; } .st-dest.d4 { transition-delay: .74s; } .st-dest.d1 { transition-delay: .38s; }

/* Welcome — the burst */
.st-burst {
  inset: 0; border-radius: 50%; opacity: 0; transform: scale(.4); pointer-events: none;
  background: radial-gradient(circle, rgba(241,227,196,.0) 30%, rgba(241,227,196,.35) 46%, rgba(201,174,126,0) 64%);
  transition: opacity 1.2s, transform 1.6s cubic-bezier(.2,.7,.2,1);
}

/* ---------- State per act (applies in both calm and live modes) ---------- */
.story[data-act="0"] .st-ruler { opacity: 1; transform: none; }
.story[data-act="0"] .st-light { transform: scale(.72); }
.story[data-act="0"] .st-rings { transform: scale(.9); }
.story[data-act="1"] .st-scan { opacity: 1; }
.story[data-act="1"] .st-scan i { animation: st-scan 2.6s cubic-bezier(.5,0,.5,1) infinite; }
.story[data-act="1"] .st-purity { opacity: 1; transform: none; }
.story[data-act="1"] .st-light { transform: scale(.84); }
.story[data-act="2"] .st-seal { opacity: 1; transform: none; }
.story[data-act="2"] .st-seal text { animation: none; }
.story[data-act="2"] .st-coa { opacity: 1; transform: none; }
.story[data-act="2"] .st-vial { transform: scale(.92); }
.story[data-act="3"] .st-routes path { stroke-dashoffset: 0; }
.story[data-act="3"] .st-dest { opacity: 1; transform: none; }
.story[data-act="3"] .st-light { transform: scale(.62); opacity: .85; }
.story[data-act="3"] .st-vial { transform: scale(.78); }
.story[data-act="3"] .st-grid { opacity: .2; }
.story[data-act="3"] .st-rings { transform: scale(.7); opacity: .6; }
.story[data-act="4"] .st-light { transform: scale(1.12); }
.story[data-act="4"] .st-burst { opacity: 1; transform: scale(1.3); }
.story[data-act="4"] .st-rings { transform: scale(1.15); }
.story[data-act="4"] .st-vial { transform: scale(1.04); }
.story[data-act="4"] .st-grid { opacity: .16; }
@keyframes st-scan { 0% { top: -22%; } 60%, 100% { top: 100%; } }
.st-seal { transform-origin: center; }
.story[data-act="2"] .st-seal { animation: st-spin 40s linear infinite; }

/* ---------- Live: pinned scroll sequence ---------- */
.story.live { height: calc(var(--acts, 5) * 42vh + 100vh); height: calc(var(--acts, 5) * 42svh + 100svh); }
.story-skip { display: none; }
.story.live .story-skip {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 28px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #8d877d; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
.story.live .story-skip:hover, .story.live .story-skip:focus-visible { color: #C9AE7E; border-bottom-color: #C9AE7E; outline: none; }
.story.live[data-act="4"] .story-skip { opacity: 0; pointer-events: none; }
.story.live .story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: flex; align-items: center; overflow: hidden; }
.story.live .story-grid { width: 100%; }
.story.live .acts { position: relative; min-height: 340px; }
.story.live .act {
  position: absolute; left: 0; right: 0; top: 0; border-top: 0; padding: 0;
  opacity: 0; transform: translateY(40px); filter: blur(6px); pointer-events: none; visibility: hidden;
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1), filter .7s, visibility 0s .9s;
}
.story.live .act.past { transform: translateY(-40px); }
.story.live .act.on { opacity: 1; transform: none; filter: none; pointer-events: auto; visibility: visible; transition-delay: .12s, .12s, .12s, 0s; }
.story.live .act h2 em { display: inline-block; }
.story.live .story-rail {
  display: flex; gap: 0; list-style: none; margin: 0 0 44px; padding: 0; position: relative; max-width: 360px;
  counter-reset: none;
}
.story.live .story-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #2c2b29; }
.story.live .story-rail::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--gold-l);
  transform-origin: left; transform: scaleX(var(--p));
}
.story-rail li {
  flex: 1; text-align: center; position: relative; z-index: 1;
  font-family: var(--serif); font-style: italic; font-size: 14px; color: #6f6b64;
}
.story-rail li span, .story-rail li { line-height: 30px; }
.story-rail li::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; translate: -50% -50%; z-index: -1;
  background: #0b0b0b; border: 1px solid #2c2b29; border-radius: 50%; transition: border-color .4s, background .4s;
}
.story-rail li.done { color: var(--gold-l); }
.story-rail li.done::before { border-color: var(--gold-l); }
.story-rail li.on { color: #0b0b0b; }
.story-rail li.on::before { background: var(--gold-l); border-color: var(--gold-l); }
.story.live .story-hint {
  display: flex; align-items: center; gap: 12px; margin-top: 40px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: #6f6b64;
  transition: opacity .5s;
}
.story-hint i { width: 1px; height: 34px; background: linear-gradient(#C9AE7E, transparent); animation: st-hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes st-hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.story.live[data-act="4"] .story-hint { opacity: 0; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 920px) {
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .stage { max-width: 440px; width: 86%; }
  .story p { font-size: 15.5px; max-width: none; }
  .story.live .story-grid { display: flex; flex-direction: column-reverse; justify-content: center; align-items: stretch; gap: 2vh; height: 100%; padding-top: 76px; padding-bottom: 18px; }
  .story.live .stage { width: min(74vw, 40svh); flex: none; align-self: center; }
  .st-purity { left: -4%; }
  .story.live .acts { min-height: 210px; }
  .story.live h2 { font-size: clamp(28px, 7.4vw, 40px); }
  .story.live .act h2 { margin-bottom: 12px; }
  .story.live .story-rail { margin-bottom: 20px; max-width: 280px; }
  .story.live .story-hint { display: none; }
  .story .eyebrow { margin-bottom: 14px; }
  .st-purity b { font-size: clamp(40px, 12vw, 60px); }
  .st-dest b { font-size: 20px; }
  .st-dest { font-size: 9.5px; }
  .st-coa { font-size: 9px; padding: 8px 10px; }
  .st-seal text { font-size: 14px; letter-spacing: .2em; }
}
@media (max-width: 920px) and (max-height: 640px) {
  .story.live .story-copy .eyebrow { display: none; }
  .story.live .story-rail { margin-bottom: 12px; }
}

/* ---------- Reduced motion: no intro, no pinning, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .st-rings span, .st-seal, .story[data-act="2"] .st-seal, .st-scan i, .story-hint i { animation: none !important; }
  .stage *, .act { transition: none !important; }
  html.arrive .hero-art { animation: none; }
  .reel-progress { display: none; }
}

.story .btn.light { background: #DFD9CF; color: #111111; border-color: #DFD9CF; }
.story .btn.light:hover { background: #FFFFFF; border-color: #FFFFFF; }

/* Calm / no-JS list: keep the stage beside the text */
.story:not(.live) .story-grid { align-items: start; }
.story:not(.live) .stage { position: sticky; top: 140px; }
@media (max-width: 920px) { .story:not(.live) .stage { position: relative; top: 0; order: -1; } }
.stage, .stage * { pointer-events: none; }
