/* Design (light). The prototype's own screens run live in one phone that rises in the hero, then travels with
   you through seven acts. Ends on five principles with their screens, one feeling, and the splash as the page. */

/* ---------- a phone slot: the 296 × 642 screen kit, scaled to the slot's height ---------- */
.pslot { position: relative; height: var(--ph, min(76vh, 720px)); aspect-ratio: 296 / 642; border-radius: 14.86% / 6.85%; }
.pfall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; box-shadow: var(--frame), 0 50px 80px -40px rgba(31,32,37,.38); }
.phost { position: absolute; left: 0; top: 0; width: 296px; height: 642px; transform-origin: 0 0; transform: scale(var(--ps, 1)); }
.phost.is-live ~ .pfall, .pslot:has(.phost.is-live) .pfall { visibility: hidden; }

/* ---------- hero: the phone rises, the splash plays ---------- */
.d-hero { background: radial-gradient(60% 50% at 50% 60%, #F1EEFF 0%, rgba(241,238,255,0) 70%), var(--bg); }
.d-hero .scene__stick { flex-direction: column; justify-content: flex-start; align-items: center; padding-top: clamp(110px, 16vh, 150px); }
.d-hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; transform: translateY(calc(var(--p, 0) * -8vh)); opacity: calc(1 - var(--p, 0) * 1.8); }
.d-hero__phone { position: absolute; left: 50%; top: 50%; translate: -50% 0; transform-origin: 50% 0; transform: translateY(calc(-50% + (1 - var(--p, 0)) * 52vh)) scale(calc(.7 + var(--p, 0) * .3)); }
.pslot--hero { --ph: min(74vh, 700px); }
.d-hero__meet { position: absolute; left: 50%; top: 50%; translate: calc(min(74vh, 700px) * .23 + 60px) -50%; max-width: 280px; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.d-hero__k { font: 500 clamp(36px, 4vw, 56px)/1 var(--font-sans); letter-spacing: -0.035em; margin-bottom: 12px; }
.d-hero__s { font-size: 17px; color: var(--ink-2); }
.motion .d-hero .d-hero__meet { opacity: 0; transform: translateX(-20px); }
.motion .d-hero.s2 .d-hero__meet { opacity: 1; transform: none; }
@media (max-width: 900px) { .d-hero__meet { left: 50%; top: auto; bottom: 5vh; translate: -50% 0; text-align: center; background: rgba(255,255,255,.88); padding: 14px 18px; border-radius: 18px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } .pslot--hero { --ph: min(64vh, 560px); } }
@media (prefers-reduced-motion: reduce) { .d-hero__phone { position: relative; left: auto; top: auto; translate: none; transform: none; margin-top: 40px; } .d-hero__meet { position: static; translate: none; margin-top: 20px; } }

/* ---------- acts ---------- */
.act { padding-top: clamp(100px, 13vw, 180px); }
.act__intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding-bottom: clamp(40px, 6vw, 80px); }
.act__k { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.act__k span { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; }
.act__h { font: 500 clamp(44px, 6.6vw, 104px)/.98 var(--font-sans); letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance; }
.act__h .w { opacity: var(--o, 1); transition: opacity .25s linear; }
.act__s { max-width: 46ch; text-align: center; }
.act-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); }
.act--right .stage { order: 2; }
.stage { position: sticky; top: calc(50vh - min(38vh, 360px) - 18px); height: calc(min(76vh, 720px) + 40px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stage .pslot { --ph: min(76vh, 720px); }
.stage__count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stage__count b { color: var(--ink); font-weight: 500; }
.steps { display: flex; flex-direction: column; padding-block: 8vh 14vh; }
.sp { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 470px; opacity: .2; transition: opacity .25s linear; }
.sp.is-on { opacity: 1; }
.sp__n { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); }
.sp__n b { font-weight: 500; font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.sp__t { font: 500 clamp(32px, 3.6vw, 52px)/1.04 var(--font-sans); letter-spacing: -0.035em; text-wrap: balance; }
.sp__d { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.sp__dec { margin-top: 8px; padding: 16px 18px; border-radius: 18px; background: #F1EEFF; font-size: 15.5px; line-height: 1.45; }
.sp__dec span { display: block; font-size: 12.5px; color: var(--accent); margin-bottom: 4px; font-weight: 500; }
/* phones: the phone sits at the top, steps read beneath it */
@media (max-width: 900px) {
  .act-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .act--right .stage { order: 0; }
  .stage { top: calc(64px + env(safe-area-inset-top, 0px)); height: auto; z-index: 3; padding: 6px 0 10px; background: linear-gradient(var(--bg) 88%, rgba(255,255,255,0)); }
  .stage .pslot { --ph: min(50vh, 440px); }
  .steps { padding-block: 2vh 30vh; }
  .sp { min-height: 46vh; max-width: none; justify-content: flex-start; padding-top: 2vh; }
  .sp__t { font-size: clamp(26px, 7vw, 34px); }
  .sp__d { font-size: 16px; }
}

/* ---------- five principles, each with its screen ---------- */
.d-pr { padding-block: clamp(110px, 14vw, 190px) clamp(60px, 8vw, 110px); }
.d-pr__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: clamp(48px, 6vw, 80px); }
.d-pr__h { font: 500 clamp(48px, 7vw, 112px)/.96 var(--font-sans); letter-spacing: -0.048em; }
.d-pr__h span { color: var(--accent); }
.prcs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.prc { display: flex; flex-direction: column; gap: 10px; }
.prc__ph { width: 100%; margin-bottom: 14px; }
.prc__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prc__n { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.prc__t { font: 500 clamp(20px, 1.7vw, 24px)/1.15 var(--font-sans); letter-spacing: -0.02em; }
.prc__d { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.feel { text-align: center; margin-top: clamp(64px, 8vw, 110px); font: 500 clamp(32px, 4.4vw, 64px)/1.05 var(--font-sans); letter-spacing: -0.035em; }
.feel em { font-style: normal; color: var(--accent); }
@media (max-width: 1000px) { .prcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the finale: the splash, alive, as the page ---------- */
.finale { position: relative; height: 112vh; min-height: 720px; overflow: hidden; background: radial-gradient(70% 55% at 50% 42%, #F4F7FF 0%, #FFFFFF 70%); }
.finale__bg { position: absolute; inset: 0; pointer-events: none; }
.fo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.fo1 { width: 520px; height: 520px; left: -120px; top: 10%; background: #E2DBFF; }
.fo2 { width: 480px; height: 480px; right: -120px; top: 20%; background: #FFE3D3; }
.fo3 { width: 420px; height: 420px; left: 40%; bottom: -160px; background: #DDF4E3; }
.fx { position: absolute; left: 50%; top: 0; width: 393px; height: 852px; transform-origin: 50% 0; transform: translateX(-50%) scale(var(--fx, 1)); }
.fx__stage { position: absolute; inset: 0; }
.finale__copy { position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 110px); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-inline: 16px; }
.finale__t { font: 500 clamp(44px, 6.4vw, 100px)/.96 var(--font-sans); letter-spacing: -0.045em; }
.finale__s { font-size: 15px; color: var(--ink-2); }

/* the splash, scoped (from the prototype: ring rises, trail of morning colour, crew bursts out and gathers back) */
.fx { --P: 8.4s; }
.fx .sp-stage { position: absolute; inset: 0; transform: translateY(70px); }
.fx .sp-cap { position: absolute; z-index: 3; left: 121.5px; top: 190px; width: 150px; height: 234px; border-radius: 75px; overflow: visible; }
.fx .sp-trail { position: absolute; inset: 0; border-radius: 75px; display: block; background: linear-gradient(180deg, #415eee 0%, #7c78f4 26%, #b9a6ff 47%, #d9cfff 62%, #ffd2c2 84%, rgba(255,230,218,0) 100%); box-shadow: 0 30px 50px -28px rgba(65,94,238,.5), inset 0 1.5px 0 rgba(255,255,255,.55); }
.fx .sp-ring { position: absolute; z-index: 2; left: 12px; top: 12px; width: 126px; height: 126px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 2px 6px rgba(20,30,90,.18); }
.fx .sp-disc { position: absolute; inset: 13px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #fff, #f6f7fb); display: grid; place-items: center; color: #111113; box-shadow: 0 8px 18px -8px rgba(20,30,90,.45), inset 0 -2px 4px rgba(20,30,90,.06); }
.fx .sp-disc .hopmark { width: 56px; height: auto; }
.fx .sp-coin { position: absolute; z-index: 2; }
.fx .sp-bob { width: 100%; height: 100%; animation: spBob var(--d) ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.9s); }
.fx .sp-face { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 26%, #fff 0, var(--c1) 38%, var(--c2) 100%); box-shadow: 0 14px 24px -14px rgba(31,32,37,.35), inset 0 1.5px 0 rgba(255,255,255,.9), inset 0 -6px 12px -6px rgba(31,32,37,.12); }
.fx .sp-face .bl { position: absolute; left: 4%; top: 16%; width: 92%; height: auto; }
.fx .sp-face img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.fx .sp-star { position: absolute; z-index: 4; display: block; }
.fx .sp-star svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 4px rgba(255,170,0,.35)); }
.fx .sp-glow { position: absolute; left: 46px; top: 150px; width: 300px; height: 320px; border-radius: 50%; display: block; z-index: 1; pointer-events: none; background: radial-gradient(closest-side, rgba(185,166,255,.55), rgba(210,229,255,.35) 45%, rgba(255,210,194,0) 100%); filter: blur(10px); }
.fx .sp-wave { position: absolute; left: 126.5px; top: 195px; width: 140px; height: 140px; border-radius: 50%; display: block; z-index: 2; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1.5px rgba(185,166,255,.7), 0 0 24px rgba(185,166,255,.45), inset 0 0 18px rgba(255,210,194,.5); }
.fx .hopmark { display: block; overflow: visible; color: #111113; }
.fx:not(.is-on) .sp-coin, .fx:not(.is-on) .sp-star { opacity: 0; }
.fx.is-on .sp-trail { animation: spTrail var(--P) infinite .25s both; }
.fx.is-on .sp-ring { animation: spRing var(--P) infinite .25s both; }
.fx.is-on .sp-disc { animation: spDisc var(--P) infinite .25s both; }
.fx.is-on .sp-disc .hopmark { animation: spMark var(--P) infinite .25s both; }
.fx.is-on .sp-glow { animation: spGlow var(--P) infinite .25s both; }
.fx.is-on .sp-coin { animation: spCrew var(--P) infinite both; animation-delay: calc(var(--k) * 55ms + .25s); }
.fx.is-on .sp-star { animation: spSpark var(--P) infinite both; animation-delay: calc(var(--k) * 90ms + .25s); }
.fx.is-on .sp-wave { animation: spWave var(--P) infinite .25s both; }
.fx.is-on .sp-wave.w2 { animation-name: spWave2; }
@keyframes spBob { from { transform: translateY(-3px) rotate(-1.5deg); } to { transform: translateY(4px) rotate(1.5deg); } }
@keyframes spRing { 0% { transform: translateY(108px) scale(.94); opacity: 0; filter: blur(14px); animation-timing-function: cubic-bezier(.4,0,.2,1); } 7% { transform: translateY(108px) scale(1); opacity: 1; filter: blur(0); animation-timing-function: cubic-bezier(.65,0,.15,1); } 18%, 80% { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); animation-timing-function: cubic-bezier(.6,0,.4,1); } 91% { transform: translateY(108px) scale(.97); opacity: 1; filter: blur(0); animation-timing-function: cubic-bezier(.4,0,.2,1); } 98%, 100% { transform: translateY(108px) scale(.96); opacity: 0; filter: blur(14px); } }
@keyframes spTrail { 0% { clip-path: inset(108px 0 0 0 round 75px); opacity: 0; } 5% { clip-path: inset(108px 0 0 0 round 75px); opacity: 0; animation-timing-function: cubic-bezier(.65,0,.15,1); } 9% { opacity: 1; } 18%, 80% { clip-path: inset(0 0 0 0 round 75px); opacity: 1; animation-timing-function: cubic-bezier(.6,0,.4,1); } 88% { opacity: 1; } 92%, 100% { clip-path: inset(108px 0 0 0 round 75px); opacity: 0; } }
@keyframes spMark { 0%, 7% { opacity: 0; transform: scale(.3) rotate(-50deg); animation-timing-function: cubic-bezier(.3,1.5,.5,1); } 17%, 84% { opacity: 1; transform: none; } 91%, 100% { opacity: 0; transform: scale(.3) rotate(40deg); } }
@keyframes spDisc { 0%, 66% { transform: scale(1); } 73% { transform: scale(1.09); animation-timing-function: cubic-bezier(.3,1.6,.5,1); } 80%, 100% { transform: scale(1); } }
@keyframes spGlow { 0%, 6% { opacity: 0; transform: scale(.6); } 22%, 76% { opacity: 1; transform: scale(1); } 73% { opacity: 1; transform: scale(1.12); } 94%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes spCrew { 0%, 15% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); animation-timing-function: cubic-bezier(.25,1.45,.45,1); } 29%, 61% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.55,0,.85,.35); } 72%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.18); } }
@keyframes spSpark { 0%, 22% { opacity: 0; transform: scale(0) rotate(-90deg); animation-timing-function: cubic-bezier(.3,1.6,.5,1); } 30% { opacity: 1; transform: scale(1.15) rotate(0); } 40% { transform: scale(.8) rotate(30deg); } 50% { transform: scale(1) rotate(0); } 60% { opacity: 1; transform: scale(.85) rotate(-20deg); } 68%, 100% { opacity: 0; transform: scale(0) rotate(90deg); } }
@keyframes spWave { 0%, 16% { opacity: 0; transform: scale(.6); } 18% { opacity: .9; transform: scale(.7); } 34%, 100% { opacity: 0; transform: scale(2.9); } }
@keyframes spWave2 { 0%, 70% { opacity: 0; transform: scale(2.4); } 74% { opacity: .7; transform: scale(1.25); } 80%, 100% { opacity: 0; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .fx .sp-coin, .fx .sp-star { opacity: 1 !important; } }
