/* A personal brand film, one statement at a time. */
#shade{transition:backdrop-filter 1.2s,background 1.2s}
body:not(.entered):not(.journey-view):not(.speaking-view):not(.content-view) #shade{z-index:2;background:radial-gradient(ellipse at center,#32243f66,#211b33bb);backdrop-filter:blur(4px)}
.hero{inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:80px 6%;transition:opacity .85s,transform 1.2s}
.hero h1{margin:0;max-width:1100px;font:400 clamp(38px,5vw,80px)/1.1 Georgia,serif;letter-spacing:-.035em;color:var(--cream);text-shadow:0 2px 35px #281e4166}
.film-line{display:block;text-wrap:balance;animation:film-arrive 1.3s cubic-bezier(.2,.65,.2,1) both}
.film-line.leaving{animation:film-depart .8s ease-in both}
.hero .explore{position:absolute;bottom:12%;left:50%;transform:translateX(-50%);margin:0;padding:12px 8px;background:none;border:0;border-radius:0;box-shadow:none;color:#ead7e6;font-size:10px;letter-spacing:.16em;opacity:.75;white-space:nowrap;transition:opacity .3s}
.hero .explore span{display:block;margin:14px 0 0;font-size:19px}.hero .explore:hover{transform:translateX(-50%);box-shadow:none;opacity:1}
.entered .hero{opacity:0;transform:translateY(-25px);pointer-events:none}
body:not(.entered):not(.journey-view):not(.speaking-view):not(.content-view) :is(.spot,#mobileNav,footer,.orb,#guideTrail){visibility:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes film-arrive{from{opacity:0;filter:blur(6px);transform:translateY(16px) scale(.98)}to{opacity:1;filter:blur(0);transform:none}}
@keyframes film-depart{from{opacity:1;filter:blur(0);transform:none}to{opacity:0;filter:blur(5px);transform:translateY(-12px) scale(1.02)}}
@media(max-width:650px){.hero{inset:0;padding:80px 8%}.hero h1{font-size:clamp(36px,7.5vw,48px)}.hero .explore{bottom:13%}}
@media(prefers-reduced-motion:reduce){.film-line{animation:none!important}.hero,.entered .hero{transform:none}}

.film-line.role-beat{animation-duration:.45s}
.film-line.leaving{animation-duration:.55s}
.film-line.role-beat.leaving{animation-duration:.22s}
/* Layered arches and perspective form the entrance's dimensional stage. */
.hero{isolation:isolate;perspective:1000px;overflow:hidden}
.hero h1{position:relative;z-index:2;width:100%;max-width:1200px}
.entry-depth{position:absolute;inset:0;z-index:-1;perspective:900px;pointer-events:none;opacity:.85;transition:opacity 1.4s}
.portal-camera{position:absolute;inset:0;transform-style:preserve-3d;transform:translateZ(-160px);transition:transform 3.2s cubic-bezier(.22,.7,.2,1)}
.entry-portal{position:absolute;left:50%;top:50%;width:min(48vw,530px);height:min(70vh,670px);border-radius:50% 50% 3% 3%;border:2px solid #ffe1cc9c;transform:translate(-50%,-50%);background:linear-gradient(135deg,#ffe0c908,transparent 55%,#bc9fea12);box-shadow:0 0 9px #ffe0c94d,inset 0 0 13px #e7b6eb33,0 0 80px #d5a0e31a;}
.portal-near{transform:translate(-50%,-50%) translateZ(110px);border-width:3px}
.portal-mid{transform:translate(-50%,-50%) translateZ(-170px);border-color:#e6c6ef99}
.portal-far{transform:translate(-50%,-50%) translateZ(-470px);border-color:#cbbcf399;box-shadow:0 0 100px #d7aff533,inset 0 0 100px #d6a5e11a}
.portal-floor{position:absolute;left:50%;top:81%;width:min(75vw,850px);height:240px;transform:translateX(-50%) rotateX(78deg);border-radius:50%;background:radial-gradient(ellipse,#f3c7d522,#baa3e511 35%,transparent 70%);border:1px solid #f9d9e12b;box-shadow:0 0 70px #e6b5d322}
.portal-spark{position:absolute;left:29%;top:40%;width:4px;height:4px;background:#ffe5ca;border-radius:50%;box-shadow:0 0 12px 3px #ffdab988;animation:portal-drift 6s ease-in-out infinite alternate}
.spark-two{left:73%;top:64%;animation-delay:-2s}.spark-three{left:64%;top:23%;animation-delay:-4s;width:2px;height:2px}
.hero[data-frame="0"] .film-line{font-size:clamp(32px,4vw,62px);font-style:italic;letter-spacing:-.03em}
.hero[data-frame="1"] .portal-camera{transform:translateZ(440px)}
.hero[data-frame="1"] .film-line{animation:world-emerge 2.4s cubic-bezier(.16,.65,.2,1) both}
.world-prefix{display:block;font-size:clamp(23px,3.4vw,48px);line-height:1.3;letter-spacing:-.03em}
.world-name{display:block;font-size:clamp(110px,19vw,255px);line-height:.95;letter-spacing:-.06em;color:#fae9e5;text-shadow:0 1px 0 #fff7ec,0 7px 35px #be85a844}
.hero:is([data-frame="2"],[data-frame="3"],[data-frame="4"]) .portal-camera{transform:translateZ(560px) rotateZ(-5deg)}
.hero:is([data-frame="2"],[data-frame="3"],[data-frame="4"]) .entry-depth{opacity:.35}
.hero[data-frame="2"] .film-line{font-size:clamp(46px,8.5vw,130px);letter-spacing:-.05em}
.hero[data-frame="3"] .film-line{font-size:clamp(72px,13vw,190px);font-style:italic;color:#f2cddd;letter-spacing:-.055em}
.hero[data-frame="4"] .film-line{font-size:clamp(60px,10vw,155px);letter-spacing:-.045em;color:#e4d9f6}
.hero .film-line.leaving{animation:film-depart .55s ease-in both}
.hero .film-line.role-beat.leaving{animation-duration:.22s}
.entered .hero{transform:scale(1.4);opacity:0;transition:transform 1.3s cubic-bezier(.2,.7,.2,1),opacity .9s}
.entered .portal-camera{transform:translateZ(800px)!important}
@keyframes world-emerge{from{opacity:0;filter:blur(9px);transform:translateZ(-200px) scale(.65)}35%{opacity:1;filter:blur(0)}to{opacity:1;filter:blur(0);transform:translateZ(0) scale(1)}}
@keyframes portal-drift{to{transform:translate3d(16px,-35px,50px);opacity:.3}}
@media(max-width:650px){.entry-portal{width:70vw;height:58vh}.world-name{font-size:clamp(110px,31vw,185px)}.hero .explore{bottom:9%}}
@media(prefers-reduced-motion:reduce){.portal-camera{transform:none!important;transition:none!important}.portal-spark{animation:none!important}.entered .hero{transform:none!important}.hero[data-frame="1"] .film-line{animation:none!important}}
/* The supplied island portal becomes the physical entrance to Pri's world. */
.entry-depth{z-index:0;opacity:1;perspective:none;transition:opacity 1.8s ease;overflow:hidden}
.portal-camera{inset:0;transform-style:flat;transform:scale(1);transform-origin:64% 49%;transition:transform 3.2s cubic-bezier(.3,.05,.2,1)}
.portal-landscape{position:absolute;inset:0;background:url('assets/entry-portal-reference.png') 64% 50% / cover no-repeat}
.portal-landscape::after{content:'';position:absolute;inset:0;background:linear-gradient(#211b334d,transparent 25%,#211b331a 60%,#211b3377)}
.portal-light{position:absolute;left:64%;top:48%;width:37vw;height:65vh;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,transparent 45%,#ffdab417 66%,transparent 72%);mix-blend-mode:screen;animation:portal-breathe 4s ease-in-out infinite alternate}
.portal-guide{position:absolute;left:54.5%;top:64%;width:clamp(15px,3.8vw,58px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 40% 35%,#fffce8,#ffeeb4 50%,#ffc47f);border:1px solid #fff6cf;box-shadow:0 0 18px 7px #ffdfb488,0 0 55px 20px #ffc58755;transition:transform 2.8s ease,opacity 1.4s;animation:guide-breathe 3s ease-in-out infinite alternate}
.hero h1{z-index:2;transition:opacity .4s;text-shadow:0 2px 22px #291b44,0 1px 5px #291b4480}
.hero[data-frame="0"] h1,.hero[data-frame="1"] h1{position:absolute;left:64%;top:48%;width:44%;transform:translate(-50%,-50%)}
.hero[data-frame="0"] .film-line{font-size:clamp(30px,3.5vw,58px)}
.hero[data-frame="1"] .portal-camera{transform:scale(1.12)}
.hero[data-frame="1"] .world-prefix{font-size:clamp(24px,2.7vw,43px)}
.hero[data-frame="1"] .world-name{font-size:clamp(100px,13vw,210px)}
.hero[data-frame="1"] .portal-guide{transform:translate(80px,-30px) scale(.6);opacity:.8}
.hero:is([data-frame="2"],[data-frame="3"],[data-frame="4"]) .portal-camera{transform:scale(3.8)}
.hero:is([data-frame="2"],[data-frame="3"],[data-frame="4"]) .entry-depth{opacity:0}
.hero:is([data-frame="2"],[data-frame="3"],[data-frame="4"]) .portal-guide{transform:translate(150px,-90px) scale(.1);opacity:0}
.hero .explore{z-index:3;color:#fff0e6;text-shadow:0 2px 8px #291b44}
.entered .portal-camera{transform:scale(4.5)!important}
@keyframes portal-breathe{to{opacity:.35;filter:brightness(1.35)}}
@keyframes guide-breathe{to{filter:brightness(1.2);box-shadow:0 0 24px 9px #ffdfb499,0 0 70px 24px #ffc58766}}
@media(max-aspect-ratio: 3/2){.portal-camera{transform-origin:50% 49%}.hero[data-frame="0"] h1,.hero[data-frame="1"] h1{left:50%;width:85%}.portal-guide{left:32%;width:35px}.portal-light{left:50%;width:85vw}.hero[data-frame="1"] .world-name{font-size:clamp(105px,25vw,185px)}}
@media(prefers-reduced-motion:reduce){.portal-camera{transform:none!important}.portal-guide,.portal-light{animation:none!important;transition:none!important}}
/* Align the supplied scene's focal point on narrower viewports. */
.portal-guide{transform:translate(-50%,-50%);background:radial-gradient(circle,#fff4d133,transparent 65%);border:0;box-shadow:none;width:90px;mix-blend-mode:screen;animation:portal-breathe 3s ease-in-out infinite alternate}
.hero[data-frame="1"] .portal-guide{transform:translate(-50%,-50%);opacity:1}
@media(max-aspect-ratio:3/2){.portal-landscape{background-position:calc(50% - 28.7vh) center}.portal-guide{left:calc(50% - 19.5vh);width:90px}}
/* A sharp, quiet twilight world; the orb is independent of the artwork. */
.portal-landscape{background-image:url('assets/entry-portal-twilight.png');background-position:center;background-size:cover}
.portal-landscape::after{background:linear-gradient(#19142620,transparent 30%,#19142620)}
.portal-camera{transform-origin:50% 43%;transition-duration:2.3s}
.hero[data-frame="0"] h1,.hero[data-frame="1"] h1{left:50%;top:43%;width:80%}
.hero[data-frame="1"] .portal-camera{transform:scale(1.025)}
.hero[data-frame="1"] .world-name{font-size:clamp(100px,11vw,170px)}
.hero[data-frame="1"] .world-prefix{font-size:clamp(23px,2.5vw,39px)}
.portal-light{left:50%;top:43%;width:50vh;height:50vh;opacity:.3}
.portal-guide{left:50%;top:68%;width:26px;height:26px;background:radial-gradient(circle at 35% 30%,#fff9e8 0%,#ffe0ae 40%,#e99c72 85%);border:1px solid #ffecd2;mix-blend-mode:normal;box-shadow:0 0 14px #ffd3a788,0 0 35px #fcb88b33;animation:orb-arrival 2s cubic-bezier(.22,.65,.2,1) both;transition:transform 1.8s ease,opacity 1s}
.portal-guide::after{content:'';position:absolute;top:140%;left:-50%;width:200%;height:12px;border-radius:50%;background:radial-gradient(ellipse,#edb18b55,transparent 70%);filter:blur(3px)}
.hero[data-frame="1"] .portal-guide{animation:orb-hover 2s ease-in-out infinite alternate;transform:translate(-50%,-50%)}
.hero:is([data-frame="2"],[data-frame="3"],[data-frame="4"]) .portal-guide{animation:orb-through 1.5s ease-in both}
.hero:is([data-frame="2"],[data-frame="3"],[data-frame="4"]) .portal-camera{transform:scale(2.1)}
@keyframes orb-arrival{from{transform:translate(-40vw,17vh) scale(1.2)}to{transform:translate(-50%,-50%)}}
@keyframes orb-hover{from{transform:translate(-50%,-50%)}to{transform:translate(-50%,-90%)}}
@keyframes orb-through{from{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-22vh) scale(.12);opacity:0}}
@media(max-aspect-ratio:3/2){.portal-landscape{background-position:center}.portal-guide{left:50%;width:24px}.hero[data-frame="1"] .world-name{font-size:clamp(100px,24vw,160px)}}
@media(prefers-reduced-motion:reduce){.portal-guide{animation:none!important;transform:translate(-50%,-50%)!important}}
