/* Model D — "Sahne". The card is the door; scrolling opens it and carries the torch down the page.
   Layering of this file: (1) a plain, fully visible page — this is what no-JS and reduced-motion visitors get;
   (2) everything under html.motion — the scroll-driven scenes, switched on by d.js only when motion is welcome. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/newsreader-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/newsreader-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0a1528;          /* unlit */
  --navy: #0f1e36;         /* the card's ground */
  --navy-2: #13233f;       /* a surface the light reaches */
  --gold: #c5a059;         /* the card's gold */
  --gold-hi: #ecd3a0;      /* gold in direct light */
  --ivory: #f2ebdd;
  --text: #c3c9d8;
  --mute: #8690a7;
  --hair: rgb(197 160 89 / .24);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(34px, 7.5vw, 120px);
  --tx: clamp(13px, 2.4vw, 38px);   /* where the torch's thread runs */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--text); font: 400 17px/1.62 var(--sans); -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 0; }
html.motion { scroll-padding-top: 84px; }   /* anchors stop below the fixed bar */
body { margin: 0; background: var(--navy); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, blockquote, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ivory); letter-spacing: -.02em; line-height: 1.02; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 5px; border-radius: 1px; }
::selection { background: var(--gold); color: var(--ink); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.bar { position: relative; z-index: 40; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 14px var(--pad); }
.bar-mark { flex: none; display: block; width: 46px; }
.bar-mark img { width: 100%; height: auto; }
.bar nav { display: flex; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; }
.bar a { text-decoration: none; font-size: .88rem; letter-spacing: .02em; color: var(--text); padding: 8px 0; }
.bar nav a:hover, .bar nav a:focus-visible { color: var(--gold-hi); }
@media (max-width: 720px) { .bar nav { display: none; } }

.thread, .lantern, .leaf, .cue, .stage-index, .arrival { display: none; }

/* ---------- scene 1: the door (plain version: the card, then the headline) ---------- */
.scene { position: relative; }
.door-stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 6vh, 70px) var(--pad) clamp(60px, 10vh, 120px); }
.rule { display: block; width: min(520px, 82%); height: 6px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); opacity: .8; }
.rule-top { order: 0; margin-bottom: 44px; }
.torch-seat { order: 1; position: relative; width: min(360px, 68vw); aspect-ratio: 684 / 507; }
.torch { position: absolute; inset: 0; }
.torch img { position: absolute; inset: 0; width: 100%; height: 100%; }
.halo { position: absolute; left: 47.5%; top: 30%; width: 120%; aspect-ratio: 1; margin: -60% 0 0 -60%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 168 64 / .30), rgb(240 140 40 / .10) 40%, transparent 70%); }
.rule-bottom { order: 4; margin-top: 44px; }
.room { order: 5; margin-top: clamp(50px, 9vh, 100px); display: flex; flex-direction: column; align-items: center; }
h1 { font-size: clamp(3rem, 10.5vw, 8.2rem); line-height: .98; letter-spacing: -.03em; }
.ln { display: block; overflow: hidden; overflow: clip; overflow-clip-margin: .08em; padding-top: .2em; margin-top: -.2em; padding-bottom: .16em; margin-bottom: -.16em; }   /* room above for the dot of İ */
.ln > span { display: block; }
.lead { margin-top: 30px; max-width: 34em; font-size: clamp(1rem, 1.25vw, 1.18rem); color: var(--text); text-wrap: pretty; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; }
.btn { display: inline-block; padding: 15px 30px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .95rem; letter-spacing: .01em; text-decoration: none; border-radius: 2px; transition: background-color .25s; }
.btn:hover { background: var(--gold-hi); }
.more { color: var(--ivory); text-decoration: none; padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; }
.more:hover { color: var(--gold-hi); }

/* ---------- scene 2: the band ---------- */
.band { overflow: hidden; overflow: clip; padding: clamp(40px, 9vh, 110px) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--ink); }
.band-row { display: flex; gap: .55em; white-space: nowrap; font-family: var(--serif); font-size: clamp(3.2rem, 12.5vw, 12.5rem); line-height: 1.04; letter-spacing: -.03em; padding-left: var(--pad); will-change: transform; }
.band-row span { flex: none; }
.band-a { color: var(--ivory); }
.band-a span + span { color: rgb(242 235 221 / .16); }
.band-b { color: var(--gold); margin-left: -34vw; }
.band-b span:nth-child(odd) { color: rgb(197 160 89 / .3); }

/* ---------- scene 3: services (plain version: four blocks, one under the other) ---------- */
.stage { background: var(--navy); }
.panel { padding: clamp(54px, 9vh, 100px) var(--pad); border-bottom: 1px solid var(--hair); }
.panel-intro h2 { font-size: clamp(2.5rem, 6.2vw, 5.4rem); max-width: 11em; }
.panel-intro p { margin-top: 26px; max-width: 32em; font-size: 1.06rem; }
.panel h3 { font-size: clamp(2.4rem, 5.6vw, 5.2rem); letter-spacing: -.028em; }
.promise { margin-top: 18px; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.75rem); color: var(--gold-hi); line-height: 1.25; }
.body { margin-top: 20px; max-width: 33em; }
.gets { margin-top: 30px; max-width: 33em; border-top: 1px solid var(--hair); }
.gets li { padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: .92rem; color: var(--ivory); }
.art { width: min(240px, 60vw); height: auto; margin-bottom: 34px; fill: none; stroke: rgb(197 160 89 / .5); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.art * { vector-effect: non-scaling-stroke; }
.art .art-lit { stroke: var(--gold-hi); stroke-width: 1.5; }
/* the sales chart: bars faintly filled, the tallest one lit, the trend line drawn in when the panel lights up */
.art .art-grid { stroke: rgb(197 160 89 / .16); stroke-dasharray: 2 7; }
.art .art-bar { fill: rgb(197 160 89 / .2); stroke: rgb(197 160 89 / .7); }
.art .art-bar-top { fill: rgb(214 170 96 / .55); stroke: var(--gold-hi); }
.art .art-dot { fill: var(--navy); }
.art .art-draw { vector-effect: none; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgb(236 196 120 / .55)); }
.art .art-head { stroke-width: 2; }
.motion article.panel .art-draw { transition: stroke-dashoffset 1.5s cubic-bezier(.2, .7, .2, 1) .4s; }
.motion article.panel:not(.lit) .art-draw { stroke-dashoffset: 1; transition: none; }
.motion article.panel .art-head, .motion article.panel .art-dot { transition: opacity .5s ease 1.5s; }
.motion article.panel:not(.lit) .art-head, .motion article.panel:not(.lit) .art-dot { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .art .art-draw { stroke-dashoffset: 0 !important; } .art .art-head, .art .art-dot { opacity: 1 !important; } }
article.panel { display: flex; flex-direction: column-reverse; align-items: flex-start; }
article.panel .art { margin: 0 0 30px; }
@media (max-width: 899px) {
  article.panel { min-height: 82svh; justify-content: center; }
}
@media (min-width: 900px) {
  article.panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 6vw; align-items: center; }
  article.panel .art { width: min(100%, 400px); margin: 0; justify-self: center; grid-column: 2; grid-row: 1; }
  .panel-text { grid-column: 1; grid-row: 1; }
}

/* ---------- scene 4: the sentence ---------- */
.creed { background: var(--ink); }
.creed-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(80px, 16vh, 170px) var(--pad); }
.creed blockquote p { font-family: var(--serif); font-size: clamp(2rem, 5.6vw, 5.4rem); line-height: 1.1; letter-spacing: -.025em; color: var(--ivory); max-width: 15em; text-wrap: balance; }
.creed-by { margin: 34px 0; color: var(--gold); letter-spacing: .14em; font-size: .9rem; }
.twin { display: block; width: min(420px, 70%); height: 6px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); opacity: .75; }
.creed .twin:first-child { margin-bottom: clamp(34px, 6vh, 64px); }

/* ---------- scene 5: the way ---------- */
.way { padding: clamp(80px, 14vh, 160px) var(--pad); background: var(--navy); }
.way-head h2 { font-size: clamp(2.5rem, 5.4vw, 5rem); max-width: 9em; }
.way-head p { margin-top: 24px; max-width: 26em; }
.steps { position: relative; margin-top: 50px; }
.steps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.steps li { position: relative; padding: clamp(26px, 5vh, 54px) 0 clamp(26px, 5vh, 54px) clamp(26px, 4vw, 60px); }
.steps li::before { content: ""; position: absolute; left: -4px; top: calc(clamp(26px, 5vh, 54px) + clamp(.85rem, 1.5vw, 1.35rem) - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.steps h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.steps p { margin-top: 12px; max-width: 28em; }
/* a small drawing beside each step; it draws itself in when the line reaches the step, then settles */
.steps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(16px, 3vw, 40px); align-items: center; }
.steps h3, .steps p { grid-column: 1; }
.step-art { grid-column: 2; grid-row: 1 / span 2; width: clamp(46px, 5.4vw, 72px); height: auto; overflow: visible; fill: none; stroke: var(--gold); stroke-width: .62; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.step-art .sa-start, .step-art .sa-t3 { fill: var(--gold); stroke: none; }
@media (min-width: 900px) {
  .way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7vw; align-items: start; }
  .way-head { position: sticky; top: 24vh; }
  .steps { margin-top: 0; }
}

/* ---------- scene 6: contact ---------- */
.contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(90px, 14vh, 150px) var(--pad) 46px; background: var(--ink); overflow: hidden; overflow: clip; }
.contact h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: var(--gold-hi); letter-spacing: 0; }
.contact-lead { margin-top: 14px; max-width: 28em; font-size: 1.06rem; }
.phone-big { display: block; width: fit-content; margin-top: clamp(26px, 6vh, 60px); font-family: var(--serif); font-size: clamp(1.7rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.01em; color: var(--ivory); text-decoration: none; white-space: nowrap; font-variant-numeric: lining-nums; transition: color .3s; }
.phone-big:hover { color: var(--gold-hi); }
.contact address { margin-top: clamp(30px, 6vh, 60px); display: flex; flex-wrap: wrap; gap: 0 clamp(24px, 4vw, 60px); border-top: 1px solid var(--hair); }
.contact address > * { padding: 16px 0; font-size: 1rem; color: var(--ivory); }
.contact address a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 calc(100% - 14px) / 100% 1px no-repeat; overflow-wrap: anywhere; }
.contact address a:hover { color: var(--gold-hi); }
.sign { margin-top: clamp(50px, 10vh, 110px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; color: var(--mute); font-size: .82rem; letter-spacing: .03em; }
.sign img { width: 40px; height: auto; }

/* =====================================================================
   MOTION — only when d.js has put .motion on <html> (JS on, motion welcome)
   ===================================================================== */
.motion { scroll-behavior: smooth; }

/* the bar waits behind the door, then stays */
.motion .bar { position: fixed; inset: 0 0 auto 0; background: linear-gradient(rgb(10 21 40 / .97), rgb(10 21 40 / .86) 52%, rgb(10 21 40 / 0)); padding-bottom: 34px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .5s, transform .5s var(--ease), visibility 0s .5s; }
.motion.past .bar { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* the thread: hairline + walked part + ember */
.motion .thread { display: block; position: fixed; z-index: 30; left: var(--tx); top: 0; bottom: 0; width: 1px; background: rgb(197 160 89 / .14); pointer-events: none; opacity: 0; transition: opacity .8s; }
.motion.opened .thread { opacity: 1; }
.thread i { position: absolute; inset: 0; background: linear-gradient(rgb(197 160 89 / .15), var(--gold) 70%, var(--gold-hi)); transform-origin: 0 0; transform: scaleY(var(--t, 0)); will-change: transform; }
.thread b { position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px 2px rgb(236 211 160 / .8), 0 0 46px 14px rgb(197 160 89 / .34); transform: translate3d(0, var(--ty, 0px), 0); will-change: transform; }

/* the lantern: the pointer carries a little of the torch's light (fine pointers only, switched on by d.js) */
.motion .lantern.on { display: block; position: fixed; z-index: 35; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgb(255 160 60 / .075), rgb(255 150 50 / .03) 45%, transparent 72%); transform: translate3d(var(--lx, -999px), var(--ly, -999px), 0); will-change: transform; }

/* sections light up from the thread's side as the ember reaches them */
.motion .scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s ease;
  background: radial-gradient(60vmax 70vh at 0% 35%, rgb(255 150 50 / .085), transparent 70%); }
.motion .scene.lit::before { opacity: 1; }
.motion .door::before, .motion .band::before { content: none; }
.motion .scene > :where(:not(.way-head)) { position: relative; }   /* the steps' heading keeps its own sticky position */

.motion .panel-intro > *, .motion .way-head > *, .motion .contact > h2, .motion .contact-lead, .motion .phone-big, .motion .contact address, .motion .sign,
.motion article.panel .panel-text > *, .motion article.panel .art {
  opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .9s ease, transform 1.1s var(--ease); }
.motion .lit .panel-intro > *, .motion .lit.panel-intro > *, .motion .way.lit .way-head > *, .motion .contact.lit > h2, .motion .contact.lit .contact-lead, .motion .contact.lit .phone-big, .motion .contact.lit address, .motion .contact.lit .sign,
.motion article.panel.lit .panel-text > *, .motion article.panel.lit .art { opacity: 1; transform: none; }
.motion .panel-text > :nth-child(2), .motion .panel-intro > :nth-child(2), .motion .way-head > :nth-child(2), .motion .contact-lead { transition-delay: .12s; }
.motion .panel-text > :nth-child(3), .motion .phone-big { transition-delay: .22s; }
.motion .panel-text > :nth-child(4), .motion .contact address { transition-delay: .32s; }
.motion article.panel .art { transition-delay: .15s; }
.motion .sign { transition-delay: .45s; }

/* ----- scene 1: the door opens ----- */
.motion .door { height: 260vh; --p: 0; }
.motion .door-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: block; padding: 0; overflow: hidden; overflow: clip; background: var(--navy);
  --o: clamp(0, calc(var(--p) / .5), 1);                 /* card dissolves, torch rises */
  --l: clamp(0, calc((var(--p) - .08) / .5), 1);         /* the two leaves part */
  --r: clamp(0, calc((var(--p) - .44) / .36), 1); }      /* the headline arrives */

.motion .room { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 31vh var(--pad) 0; padding: 31svh var(--pad) 0; justify-content: flex-start;
  background: radial-gradient(56vmax 60vh at 50% 14%, rgb(255 166 64 / .30), rgb(240 140 40 / .08) 45%, transparent 72%), var(--navy-2); }
.motion h1 { font-size: min(8.3vw, 15.2vh); font-size: min(8.3vw, 15.2svh); }
.motion .ln > span { transform: translate3d(0, calc((1 - var(--ri)) * 112%), 0); opacity: var(--ri); will-change: transform; }
.motion .ln-1 { --ri: clamp(0, calc(var(--r) * 2.2), 1); }
.motion .ln-2 { --ri: clamp(0, calc(var(--r) * 2.2 - .35), 1); }
.motion .ln-3 { --ri: clamp(0, calc(var(--r) * 2.2 - .6), 1); }
.motion .lead, .motion .actions { --ri: clamp(0, calc(var(--r) * 2.4 - 1.2), 1); opacity: var(--ri); transform: translate3d(0, calc((1 - var(--ri)) * 26px), 0); }
.motion .lead { margin-top: 3.4vh; margin-top: 3.4svh; }
.motion .actions { margin-top: 3.4vh; margin-top: 3.4svh; }
@media (min-width: 760px) {
  .motion .ln-2, .motion .ln-3 { display: inline-block; vertical-align: top; }
}
@media (max-width: 759px) {
  .motion .door { height: 230vh; }
  .motion h1 { font-size: min(15.5vw, 9.6vh); font-size: min(15.5vw, 9.6svh); }
  .motion .room { padding-top: 28vh; padding-top: 28svh; }
}

@media (max-width: 759px) and (max-height: 700px) {
  .motion .room { padding-top: 25.5vh; padding-top: 25.5svh; }
  .motion h1 { font-size: min(14.5vw, 9.2vh); font-size: min(14.5vw, 9.2svh); }
  .motion .lead { font-size: .93rem; line-height: 1.5; margin-top: 2.4vh; margin-top: 2.4svh; }
  .motion .actions { margin-top: 2.6vh; margin-top: 2.6svh; gap: 8px 30px; }
  .motion .btn { padding: 12px 26px; }
}

.motion .leaf { display: block; position: absolute; z-index: 2; top: 0; bottom: 0; width: 50.2%; background: linear-gradient(var(--navy), #0b172c); will-change: transform; }
.motion .leaf-l { left: 0; transform: translate3d(calc(var(--l) * -101%), 0, 0); }
.motion .leaf-r { right: 0; transform: translate3d(calc(var(--l) * 101%), 0, 0); }
/* light leaking through the closed door, falling into the flame */
.motion .leaf-l::after { content: ""; position: absolute; right: 0; top: 0; height: 23%; width: 1px; background: linear-gradient(var(--gold-hi), rgb(236 211 160 / .7) 60%, transparent); box-shadow: 0 0 22px 2px rgb(255 180 90 / .5); opacity: calc(1 - var(--l) * 6); }
.motion .leaf::before { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--gold-hi) 18%, var(--gold) 60%, transparent); opacity: calc(var(--l) * 5); box-shadow: 0 0 26px 3px rgb(255 170 70 / .35); }
.motion .leaf-l::before { right: 0; }
.motion .leaf-r::before { left: 0; }

.motion .rule { position: absolute; z-index: 3; left: 9vw; right: 9vw; width: auto; margin: 0; border: 0; opacity: 1; }
.motion .rule-top { top: 8.5%; }
.motion .rule-bottom { bottom: 8.5%; }
.motion .rule::before, .motion .rule::after { content: ""; position: absolute; top: 0; height: 100%; width: 50%; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: scaleX(calc(1 - var(--o))); opacity: calc(.85 - var(--o) * .5); will-change: transform; }
.motion .rule::before { left: 0; transform-origin: 0 50%; }
.motion .rule::after { right: 0; transform-origin: 100% 50%; }

.motion .torch-seat { position: absolute; z-index: 4; left: 50%; top: 42%; width: min(58vh, 76vw); width: min(58svh, 76vw); margin: 0;
  transform: translate(-47.5%, -50%) translate3d(0, calc(var(--o) * -26.5vh), 0) scale(calc(1 - var(--o) * .57)); transform: translate(-47.5%, -50%) translate3d(0, calc(var(--o) * -26.5svh), 0) scale(calc(1 - var(--o) * .57)); will-change: transform; }
.motion .halo { opacity: calc(.55 + var(--o) * .45); transform: scale(calc(1 + var(--o) * 1.5)); }
.motion .cue { display: block; position: absolute; z-index: 4; left: 0; right: 0; bottom: 2.6%; text-align: center; font-size: .78rem; letter-spacing: .12em; color: var(--gold); opacity: calc(1 - var(--o) * 5); }
.motion .cue span { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(5px); opacity: 1; } }

/* ----- scene 2: the band slides with the scroll ----- */
.motion .band-a { transform: translate3d(calc(var(--b, 0) * -34vw), 0, 0); }
.motion .band-b { transform: translate3d(calc(var(--b, 0) * 34vw), 0, 0); }

/* ----- scene 3: the frame holds, the services pass (wide screens) ----- */
@media (min-width: 900px) and (min-height: 600px) {
  .motion .stage { height: calc(100vh + 250vw); }
  .motion .stage-frame { position: sticky; top: 0; height: 100vh; overflow: hidden; overflow: clip; }
  .motion .track { display: flex; height: 100%; width: max-content; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
  .motion .panel { flex: none; width: 100vw; height: 100%; border-bottom: 0; border-right: 1px solid var(--hair); padding: 90px 9vw 110px; }
  .motion article.panel { align-content: center; }
  .motion article.panel h3 { font-size: clamp(3rem, 6.3vw, 6.2rem); }
  .motion article.panel .art { width: min(100%, 440px); }
  .motion .panel-intro { width: 66vw; display: flex; flex-direction: column; justify-content: center; padding-left: var(--pad); }
  .motion article.panel:last-child { border-right: 0; }
  .motion article.panel h3 { transform: translate3d(calc(var(--d, 0) * 70px), 0, 0); }
  .motion article.panel svg.art { transform: translate3d(calc(var(--d, 0) * -90px), 0, 0); }
  .motion article.panel:not(.lit) svg.art { transform: translate3d(0, 30px, 0); }
  .motion article.panel h3, .motion article.panel.lit svg.art { transition: opacity .9s ease; }
  .motion .stage-index { display: flex; position: absolute; left: var(--pad); right: var(--pad); bottom: 36px; border-top: 1px solid var(--hair); }
  .stage-index::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold-hi); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); box-shadow: 0 0 12px rgb(236 211 160 / .7); }
  .stage-index li { flex: 1; padding-top: 14px; font-size: .84rem; letter-spacing: .04em; color: var(--mute); opacity: .55; transition: opacity .4s, color .4s; }
  .stage-index li.on { color: var(--gold-hi); opacity: 1; }
}

/* ----- scene 4: the sentence lights word by word ----- */
.motion .creed { height: 230vh; }
.motion .creed-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 0; }
.motion .creed .w { opacity: .13; transition: opacity .45s ease; }
.motion .creed .w.on { opacity: 1; }
.motion .creed .twin { transform: scaleX(calc(.12 + var(--q, 0) * .88)); will-change: transform; }
.motion .creed-by { opacity: calc(var(--q, 0) * 4 - 3); }
@media (max-width: 759px) { .motion .creed { height: 190vh; } }

/* ----- scene 5: steps light as the line reaches them ----- */
.motion .steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--gold-hi); box-shadow: 0 0 10px rgb(236 211 160 / .6); transform-origin: 0 0; transform: scaleY(var(--s, 0)); will-change: transform; }
.motion .steps li { opacity: .24; transition: opacity .7s ease; }
.motion .steps li.on { opacity: 1; }
.motion .steps li::before { transform: scale(.4); transition: transform .6s var(--ease); }
.motion .steps li.on::before { transform: scale(1); box-shadow: 0 0 14px 3px rgb(236 211 160 / .5); }
/* the step drawings: hidden until the line arrives, then each plays its own short movement once and stays, dimmed */
.motion .steps li:not(.on) .step-art { opacity: 0; }
.motion .steps li.on .step-art { animation: sa-settle 2.6s ease-out both; }
@keyframes sa-settle { 0% { opacity: 0; } 18%, 60% { opacity: 1; stroke: var(--gold-hi); filter: drop-shadow(0 0 5px rgb(236 211 160 / .55)); } 100% { opacity: .8; stroke: var(--gold); filter: drop-shadow(0 0 0 rgb(236 211 160 / 0)); } }
.step-art g[class], .step-art .sa-flag, .step-art circle { transform-box: fill-box; transform-origin: 50% 50%; }   /* only the parts that move */
/* two hands meet, then shake twice */
.motion li.on .sa-l { animation: sa-from-left .6s var(--ease) both; }
.motion li.on .sa-r { animation: sa-from-right .6s var(--ease) both; }
.motion li.on .sa-all { animation: sa-shake 1.1s ease-in-out .6s both; }
@keyframes sa-from-left { from { transform: translate(-6px, -3px); opacity: 0; } }
@keyframes sa-from-right { from { transform: translate(6px, 3px); opacity: 0; } }
@keyframes sa-shake { 0%, 100% { transform: translateY(0) rotate(0); } 16% { transform: translateY(-1.6px) rotate(-5deg); } 36% { transform: translateY(1.4px) rotate(4deg); } 56% { transform: translateY(-1.1px) rotate(-3deg); } 78% { transform: translateY(.6px) rotate(1.5deg); } }
/* the ring closes, then the tick is drawn and lands */
.motion .sa-ring, .motion .sa-check, .motion .sa-route, .motion .sa-pole { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion li.on .sa-ring { animation: sa-draw .6s ease-in-out both; }
.motion li.on .sa-check { animation: sa-draw .4s ease-out .6s both; }
@keyframes sa-draw { to { stroke-dashoffset: 0; } }
/* the route is walked from its start to the flag; the flag opens */
.motion li.on .sa-start { animation: sa-pop .4s var(--ease) both; }
.motion li.on .sa-route { animation: sa-draw 1s ease-in-out .15s both; }
.motion li.on .sa-pole { animation: sa-draw .25s ease-out 1.1s both; }
.step-art .sa-flag { transform-origin: 0 50%; }
.motion li.on .sa-flag { animation: sa-unfurl .4s var(--ease) 1.3s both; }
@keyframes sa-pop { from { transform: scale(0); } }
@keyframes sa-unfurl { from { transform: scaleX(0); opacity: 0; } }
/* the target opens ring by ring; the arrow arrives and the rings answer */
.motion li.on .sa-t1 { animation: sa-pop .45s var(--ease) both; }
.motion li.on .sa-t2 { animation: sa-pop .45s var(--ease) .1s both; }
.motion li.on .sa-t3 { animation: sa-pop .4s var(--ease) .2s both; }
.motion li.on .sa-arrow { transform-origin: 0 100%; animation: sa-fly .4s cubic-bezier(.5, 0, .9, .4) .45s both; }
@keyframes sa-fly { from { transform: translate(9px, -9px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .step-art, .step-art * { animation: none !important; stroke-dashoffset: 0 !important; } }

/* ----- scene 6: arrival ----- */
.motion .arrival { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 80%; pointer-events: none; opacity: 0; transition: opacity 2.2s ease;
  background: radial-gradient(75vmax 70% at 8% 100%, rgb(255 160 60 / .26), rgb(240 140 40 / .06) 50%, transparent 75%); }
.motion .contact.lit .arrival { opacity: 1; }
.motion .contact::before { content: none; }

@media print { .thread, .lantern, .bar nav { display: none !important; } }

/* The torch keeps the card's own drawn flame. It is not bent or redrawn: the light around it breathes, the flame itself
   brightens and dims with it, and now and then a spark leaves its tip. */
.torch .torch-flame { animation: flame-glow 4.6s ease-in-out infinite; }
@keyframes flame-glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 5px rgb(236 196 120 / .35)); }
  38% { filter: brightness(1.22) drop-shadow(0 0 14px rgb(250 210 140 / .8)); }
  61% { filter: brightness(1.06) drop-shadow(0 0 8px rgb(236 196 120 / .5)); }
  79% { filter: brightness(1.28) drop-shadow(0 0 18px rgb(255 220 150 / .85)); }
}
.sparks { position: absolute; left: 47.1%; top: 8%; width: 0; height: 0; }
.sparks i { position: absolute; left: 0; top: 0; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #ffe2a6; box-shadow: 0 0 6px 1px rgb(255 205 120 / .8); opacity: 0; animation: spark 5.2s ease-out infinite; }
.sparks i:nth-child(2) { animation-delay: 1.3s; animation-duration: 6.1s; --sx: -16px; }
.sparks i:nth-child(3) { animation-delay: 2.7s; animation-duration: 4.7s; --sx: 12px; }
.sparks i:nth-child(4) { animation-delay: 3.6s; animation-duration: 6.6s; --sx: -7px; }
.sparks i:nth-child(5) { animation-delay: 4.4s; animation-duration: 5.6s; --sx: 20px; }
@keyframes spark {
  0% { opacity: 0; transform: translate(0, 6px) scale(1); }
  8% { opacity: 1; }
  60% { opacity: .7; }
  100% { opacity: 0; transform: translate(var(--sx, 8px), -120px) scale(.3); }
}
@media (prefers-reduced-motion: reduce) { .torch .torch-flame, .sparks i { animation: none; } }

main:focus { outline: none; }
