*{box-sizing:border-box} :root{color-scheme:dark;font-family:'Kanit','Segoe UI',sans-serif;background:#121019;color:#eee8f7}body{margin:0;min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 40%,#34203d66,transparent 65%),#121019}a{text-decoration:none;color:inherit}button{font:inherit;cursor:pointer}header{display:flex;align-items:center;justify-content:space-between;padding:28px 5%;gap:20px}.logo{font-size:26px;font-weight:700;letter-spacing:-1px;color:#8C28E6}.skip{font-size:12px;color:#b1a1bd}.skip:hover{color:#eee8f7}main{flex:1;display:grid;place-items:center;padding:28px 20px 40px}section{text-align:center;width:100%;max-width:800px;animation:enter .6s ease both}section[hidden]{display:none}.eyebrow{font-size:10px;letter-spacing:3px;font-weight:700;color:#8C28E6;margin:0 0 24px}h1{font-size:clamp(46px,7vw,84px);line-height:1.04;letter-spacing:-3px;margin:0 0 24px;font-weight:800}h1 span{color:#8C28E6}h1:focus{outline:none}.lead{font-size:18px;line-height:1.8;color:#b0a1bc;margin:0}.cast{display:flex;justify-content:center;align-items:center;gap:22px;margin:32px 0}.portrait{height:178px;width:138px;display:grid;place-items:center;border-radius:70px 70px 22px 22px;border:1px solid #77608055;overflow:hidden;background:#30213d}.first{transform:rotate(-7deg);background:#243d3e}.second{height:198px;background:#382647}.third{transform:rotate(7deg);background:#3c2c29}.toon{width:128px;height:192px;background-image:var(--sheet);background-size:512px 192px;image-rendering:pixelated;background-repeat:no-repeat;animation:sprite 1.333333s steps(4,end) infinite}.primary{display:inline-flex;align-items:center;justify-content:center;gap:30px;background:#c1a1f6;color:#23162f;border:1px solid #d7bfff;border-radius:10px;padding:16px 26px;font-weight:700;font-size:14px;transition:background .2s,transform .2s}.primary:hover{background:#d4baff;transform:translateY(-2px)}.footnote{font-size:11px;color:#86778f;margin:16px 0 0}.story{max-width:560px;margin:28px auto;color:#b7a9c2;font-size:16px;line-height:1.9}.story p{margin:0 0 18px}.details{display:flex;align-items:center;justify-content:center;gap:20px;font-size:9px;letter-spacing:2px;color:#8C28E6;margin:30px 0 40px}.details i{font-style:normal;color:#6d557c}.back{display:block;background:none;border:0;color:#a493b3;font-size:12px;padding:12px 20px;margin:14px auto 0}footer{display:flex;align-items:center;justify-content:space-between;padding:24px 5%;font-size:8px;letter-spacing:2px;color:#74647f;gap:20px}footer nav{display:flex;gap:10px}footer button{width:24px;height:6px;padding:0;border:0;border-radius:10px;background:#41334b}footer button[aria-current]{background:#c1a1f6}a:focus-visible,button:focus-visible{outline:2px solid #98e2ec;outline-offset:5px}@keyframes sprite{to{background-position:-512px 0}}@keyframes enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@media(max-width:540px){header{padding:22px 20px}.skip{font-size:10px}h1{letter-spacing:-2px}.cast{gap:12px}.portrait{width:94px;height:150px}.second{height:172px}.toon{transform:scale(.85)}.story{font-size:14px}.details{gap:12px;font-size:8px;letter-spacing:1px}footer>span:last-child{display:none}footer{letter-spacing:1px}.lead{font-size:16px}}@media(prefers-reduced-motion:reduce){section,.toon{animation:none}.primary{transition:none}}

.logo{display:inline-flex;align-items:center}.logo img{display:block;width:116px;height:auto}

/* Primary actions share the dressing-room and personality-card treatment. */
.primary{background:#25202e;color:#fff;border:2px solid #51405e;border-radius:8px;min-height:56px;padding:12px 24px;gap:12px;font-size:20px;font-weight:700;line-height:1.2;transition:background .2s ease,border-color .2s ease,transform .15s ease}
.primary:hover{background:#25202e;transform:none}
.primary svg{display:block;width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.primary:active{background:#fc2c98;border-color:#FF398F;transform:translateY(1px)}
a:focus-visible,button:focus-visible{outline-color:#FF398F}
@keyframes intro-arrow-hover{0%{transform:translateX(0);opacity:1}45%{transform:translateX(13px);opacity:0}46%{transform:translateX(0);opacity:0}68%,100%{transform:translateX(0);opacity:1}}
@media(hover:hover){.primary:hover{background:#fc2c98;border-color:#FF398F}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.primary:hover svg{animation:intro-arrow-hover 1.15s ease-out 1}}
@media(max-width:540px){.primary{font-size:18px;padding:12px 20px}.primary svg{width:22px;height:22px}}

.eyebrow{color:#77B2FF}



.footnote,.back,.skip,.skip:hover{color:#FAE65A}

.eyebrow{font-size:15px}

.story p{margin:0}

h1,h2,h3{font-weight:800}

/* Full-screen welcome with layered, animated Juveez from the trait library. */
body.welcome-view{display:block}
.welcome-view>footer{display:none}
.welcome-view main{display:block;padding:0}
#welcome{max-width:none;min-height:100svh;overflow:hidden;position:relative;animation:none;padding-top:clamp(100px,20vh,230px)}
.welcome-copy{position:relative;z-index:2;padding:0 20px;max-width:850px;margin:auto}
#welcome .eyebrow{margin-bottom:40px}
#welcome h1{font-size:clamp(48px,6vw,84px);line-height:.95;margin-bottom:42px}
#welcome .lead{font-size:18px;line-height:1.8}
#welcome .primary{margin-top:38px;width:min(390px,100%)}
#welcome .footnote{font-size:12px;margin-top:16px;color:#FAE65A}
.hero-cast{position:relative;width:100%;max-width:1040px;height:380px;margin:70px auto 0;isolation:isolate;pointer-events:none}
.hero-toon{--unit:10px;position:absolute;left:50%;width:calc(64 * var(--unit));height:calc(96 * var(--unit));top:-180px;transform:translateX(-50%)}
.hero-layer{position:absolute;inset:0;background-image:var(--sheet);background-repeat:no-repeat;background-size:calc(256 * var(--unit)) calc(96 * var(--unit));image-rendering:pixelated;animation:hero-sprite 1.333333s steps(4,end) infinite}
.hero-front{z-index:2}
.hero-left,.hero-right{--unit:8px;top:-108px;filter:blur(5px);z-index:1}
.hero-left{margin-left:-220px}
.hero-right{margin-left:220px}
@keyframes hero-sprite{to{background-position:calc(-256 * var(--unit)) 0}}
@media(max-width:700px){
 #welcome{padding-top:90px}
 #welcome .eyebrow{font-size:11px;letter-spacing:2px;margin-bottom:28px}
 #welcome h1{font-size:clamp(48px,10vw,68px);margin-bottom:28px}
 #welcome .lead{font-size:16px;max-width:440px;margin:auto}
 #welcome .primary{margin-top:30px;font-size:18px;width:min(350px,100%)}
 .hero-cast{height:290px;margin-top:62px}
 .hero-toon{--unit:6px;top:-108px}
 .hero-left,.hero-right{--unit:4.8px;top:-65px;filter:blur(3px)}
 .hero-left{margin-left:-125px}.hero-right{margin-left:125px}
}
@media(prefers-reduced-motion:reduce){.hero-layer{animation:none}}

/* Welcome is a single viewport; the cast is cropped by its bottom edge. */
body.welcome-view{height:100svh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.welcome-view>header{flex:none;position:relative;z-index:3}
.welcome-view main{flex:1;min-height:0;overflow:hidden}
#welcome{height:100%;min-height:0;padding-top:clamp(24px,8vh,100px);overflow:hidden}
.welcome-copy{z-index:2}
.hero-cast{position:absolute;bottom:0;left:0;right:0;height:clamp(300px,42vh,470px);margin:0 auto}
.hero-toon{top:-180px}
.hero-left,.hero-right{top:-108px}
.hero-front{animation:hero-arrive 1.05s cubic-bezier(.16,1,.3,1) both}
.hero-left{animation:hero-arrive 1.05s .22s cubic-bezier(.16,1,.3,1) both}
.hero-right{animation:hero-arrive 1.05s .4s cubic-bezier(.16,1,.3,1) both}
@keyframes hero-arrive{from{transform:translate(-50%,100%);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@media(max-height:850px) and (min-width:701px){
 #welcome{padding-top:18px}
 #welcome .eyebrow{margin-bottom:22px;font-size:13px}
 #welcome h1{font-size:clamp(48px,8vh,72px);margin-bottom:24px}
 #welcome .lead{font-size:16px;line-height:1.6}
 #welcome .primary{margin-top:22px}
 #welcome .footnote{margin-top:10px}
 .hero-toon{--unit:7px;top:-126px}
 .hero-left,.hero-right{--unit:5.6px;top:-76px}
 .hero-left{margin-left:-160px}.hero-right{margin-left:160px}
 .hero-cast{height:38vh}
}
@media(max-width:700px){
 .welcome-view>header{padding:18px 20px}
 #welcome{padding-top:clamp(14px,4vh,40px)}
 #welcome .eyebrow{margin-bottom:22px}
 #welcome h1{font-size:clamp(44px,8vh,64px);margin-bottom:24px}
 #welcome .lead{font-size:15px;line-height:1.6}
 #welcome .primary{margin-top:24px}
 .hero-cast{height:34vh;min-height:245px}
 .hero-toon{top:-108px}.hero-left,.hero-right{top:-65px}
}
@media(max-height:650px){
 #welcome .eyebrow{margin-bottom:14px;font-size:10px}
 #welcome h1{font-size:42px;margin-bottom:16px}
 #welcome .lead{font-size:14px}
 #welcome .primary{margin-top:14px;min-height:44px;padding:8px 16px;font-size:16px}
 #welcome .footnote{font-size:10px;margin-top:8px}
 .hero-cast{height:32vh;min-height:200px}
 .hero-toon{--unit:5px;top:-90px}
 .hero-left,.hero-right{--unit:4px;top:-54px}
 .hero-left{margin-left:-110px}.hero-right{margin-left:110px}
}
@media(prefers-reduced-motion:reduce){.hero-front,.hero-left,.hero-right{animation:none}}

/* Keep the lead character visibly larger and higher than the supporting pair. */
.hero-left,.hero-right{--unit:6.8px;top:-45px;opacity:.8;animation-name:hero-rear-arrive}
@keyframes hero-rear-arrive{from{transform:translate(-50%,100%);opacity:0}to{transform:translate(-50%,0);opacity:.8}}
@media(max-height:850px) and (min-width:701px){.hero-left,.hero-right{--unit:4.76px;top:-31px}}
@media(max-width:700px){.hero-left,.hero-right{--unit:4.08px;top:-27px}}
@media(max-height:650px){.hero-left,.hero-right{--unit:3.4px;top:-22px}}
@media(prefers-reduced-motion:reduce){.hero-left,.hero-right{animation:none;opacity:.8}}

/* Larger welcome cast, preserving the foreground/background hierarchy. */
.hero-front{--unit:12px;top:-216px}
.hero-left,.hero-right{--unit:8.16px;top:-54px}
.hero-left{margin-left:-255px}.hero-right{margin-left:255px}
@media(max-height:850px) and (min-width:701px){.hero-front{--unit:8.4px;top:-151px}.hero-left,.hero-right{--unit:5.712px;top:-37px}.hero-left{margin-left:-185px}.hero-right{margin-left:185px}}
@media(max-width:700px){.hero-front{--unit:7.2px;top:-130px}.hero-left,.hero-right{--unit:4.896px;top:-32px}.hero-left{margin-left:-145px}.hero-right{margin-left:145px}}
@media(max-height:650px){.hero-front{--unit:6px;top:-108px}.hero-left,.hero-right{--unit:4.08px;top:-26px}.hero-left{margin-left:-125px}.hero-right{margin-left:125px}}

/* Lift the cast closer to the welcome action and its footnote. */
.hero-cast{bottom:clamp(50px,9vh,110px)}
@media(max-height:850px){.hero-cast{bottom:40px}}
@media(max-width:700px){.hero-cast{bottom:35px}}
@media(max-height:650px){.hero-cast{bottom:20px}}

/* Meet uses the same fixed-screen composition, with a fresh supporting cast. */
#meet{max-width:none;height:100%;min-height:0;position:relative;overflow:hidden;padding-top:clamp(24px,8vh,100px);animation:none}
#meet .eyebrow{margin-bottom:40px}
#meet h1{font-size:clamp(44px,5.3vw,74px);line-height:1.04;margin-bottom:28px}
#meet .story{font-size:15px;line-height:1.8;margin:24px auto 28px;max-width:620px}
#meet .primary{width:min(390px,100%)}
@media(max-height:850px) and (min-width:701px){#meet{padding-top:18px}#meet .eyebrow{margin-bottom:22px;font-size:13px}#meet h1{font-size:clamp(42px,7vh,64px);margin-bottom:20px}#meet .story{font-size:13px;line-height:1.6;margin:20px auto}}
@media(max-width:700px){#meet{padding-top:clamp(14px,4vh,40px)}#meet .eyebrow{font-size:11px;margin-bottom:22px}#meet h1{font-size:clamp(36px,7vh,56px);margin-bottom:20px}#meet .story{font-size:12px;line-height:1.6;margin:18px auto}#meet .primary{font-size:18px}}
@media(max-height:650px){#meet .eyebrow{font-size:10px;margin-bottom:14px}#meet h1{font-size:36px;margin-bottom:16px}#meet .story{font-size:11px;margin:14px auto}#meet .primary{font-size:16px;min-height:44px;padding:8px 16px}#meet .back{margin-top:6px}}

#welcome .primary,#meet .primary{width:auto;max-width:100%;padding-left:20px;padding-right:20px}

.primary svg{animation:none;opacity:1;transform:translateX(0);transition:transform .4s cubic-bezier(.22,1,.36,1)}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.primary:hover svg{animation:none;opacity:1;transform:translateX(10px)}}
@media(prefers-reduced-motion:reduce){.primary svg{transition:none}}

/* Copy and cast occupy separate rows: artwork can never overlap an action. */
#welcome,#meet{display:flex;flex-direction:column;align-items:stretch;height:100%;padding-top:clamp(18px,6vh,80px)}
#welcome[hidden],#meet[hidden]{display:none}
#welcome .welcome-copy,#meet .welcome-copy{flex:none;width:100%;margin:0 auto}
#welcome .hero-cast,#meet .hero-cast{position:relative;inset:auto;flex:1;min-height:0;height:auto;width:100%;max-width:none;margin:24px auto 0;overflow:hidden;isolation:isolate}
@media(max-height:850px){#welcome,#meet{padding-top:16px}#welcome .hero-cast,#meet .hero-cast{margin-top:18px}}
@media(max-width:700px){#welcome,#meet{padding-top:16px}}
@media(max-height:500px){
 .welcome-view>header{padding:12px 20px}
 .logo img{width:100px}
 #welcome,#meet{padding-top:4px}
 #welcome .eyebrow,#meet .eyebrow{font-size:9px;margin-bottom:8px}
 #welcome h1,#meet h1{font-size:30px;line-height:1;margin-bottom:10px;letter-spacing:-1px}
 #welcome .lead,#meet .story{font-size:10px;line-height:1.4}
#welcome .lead{font-size:13px;line-height:1.4}
 #meet .story{margin:8px auto 10px}
 #welcome .primary,#meet .primary{font-size:14px;min-height:36px;padding:6px 16px;margin-top:10px}
 #meet .primary{margin-top:0}
 #welcome .footnote{margin-top:6px;font-size:9px}
 #meet .back{padding:5px 12px;margin-top:3px;font-size:10px}
 #welcome .hero-cast,#meet .hero-cast{margin-top:10px}
 .hero-front{--unit:4.5px;top:-81px}
 .hero-left,.hero-right{--unit:3.06px;top:-20px}
 .hero-left{margin-left:-95px}.hero-right{margin-left:95px}
}

/* Symmetric page gutters and centered containers on tablets in either orientation. */
@media(min-width:601px) and (max-width:1399px) and (min-height:501px){
 main{width:100%;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
 .welcome-view main{padding-left:0;padding-right:0}
 #welcome,#meet{width:100%;margin-left:auto;margin-right:auto}
 .welcome-copy{margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
 .hero-cast{margin-left:auto;margin-right:auto}
}

/* Tablet anchor is independent of visual scale and entrance transforms. */
@media(min-width:601px) and (max-width:1399px) and (min-height:501px){
 .hero-toon{left:calc(50% - 32 * var(--unit));transform:none}
 .hero-front{animation-name:tablet-hero-arrive}
 .hero-left,.hero-right{animation-name:tablet-hero-rear-arrive}
}
@keyframes tablet-hero-arrive{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes tablet-hero-rear-arrive{from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:.8}}
@media(prefers-reduced-motion:reduce){.hero-front,.hero-left,.hero-right{animation:none}}

/* Reveal a complete, decoded sprite stack before starting its entrance. */
.hero-cast:not(.is-ready) .hero-toon{opacity:0!important;animation:none!important}
.hero-cast:not(.is-ready) .hero-layer{animation:none!important}

/* Match Meet the Juveez body copy to the opening screen at every breakpoint. */
#meet .story{font-size:18px;line-height:1.8;color:#b0a1bc;font-weight:400}
#meet .story p{margin:0;color:inherit;font-size:inherit;line-height:inherit;font-weight:inherit}
@media(max-height:850px) and (min-width:701px){#meet .story{font-size:16px;line-height:1.6}}
@media(max-width:700px){#meet .story{font-size:15px;line-height:1.6}}
@media(max-height:650px){#meet .story{font-size:14px}}
@media(max-height:500px){#meet .story{font-size:13px;line-height:1.4}}
