/* New homepage entrance only; the established interior pages retain their design. */
html.js body.has-house-entrance #home-journey{height:900svh}
html.js body.has-house-entrance #house-intro-space{height:400svh;pointer-events:none}
.has-house-entrance #house-entrance{position:fixed;inset:0;z-index:1;pointer-events:none;color:var(--porcelain)}
.entrance-visual{position:absolute;inset:0;overflow:hidden;background:#34281f;pointer-events:none}
.courtyard-photo{position:absolute;width:var(--scene-width);height:var(--scene-height);left:var(--scene-left);top:var(--scene-top);background:url('/assets/house-courtyard.webp') center/100% 100% no-repeat;transform-origin:50% 47.29%;will-change:transform}
.entrance-facade{position:absolute;width:var(--scene-width);height:var(--scene-height);left:var(--scene-left);top:var(--scene-top);transform-origin:50% 53%;perspective:1400px;transform-style:preserve-3d;will-change:transform,opacity}
.entrance-stone{position:absolute;inset:0;background:url('/assets/house-entrance.webp') center/100% 100% no-repeat;clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,33.49% 21.25%,33.49% 93.62%,65.79% 93.62%,65.79% 21.25%,33.49% 21.25%)}
.entrance-door{position:absolute;top:21.25%;height:72.37%;width:16.15%;background-image:url('/assets/house-entrance.webp');background-repeat:no-repeat;background-size:619.2% 138.18%;backface-visibility:hidden;will-change:transform}
.door-left{left:33.49%;background-position:39.94% 77%;transform-origin:0 50%}
.door-right{left:49.64%;background-position:59.2% 77%;transform-origin:100% 50%}
.entrance-door:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 2px 1px #34251d40;pointer-events:none}
.inner-portal{position:absolute;inset:0;background:url('/assets/bare-skin.webp') center/cover no-repeat;opacity:0;clip-path:inset(50%);pointer-events:none}
.courtyard-shade{position:absolute;inset:0;background:radial-gradient(ellipse 47% 57% at 50% 48%,#24170edb 0%,#291b148c 53%,#291b1400 100%);opacity:0;pointer-events:none}
.entrance-welcome,.courtyard-arrival{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:calc(var(--header) + 20px) 5vw calc(var(--bottom) + 40px);pointer-events:none}
.has-house-entrance .entrance-welcome>*{pointer-events:auto}
body #main .entrance-welcome .eyebrow{font-size:clamp(11px,1vw,14px)!important;letter-spacing:.24em;margin:0 0 20px}
.entrance-welcome h1{font-family:House Mark,Georgia,serif;font-weight:400;font-size:clamp(38px,4.1vw,68px);line-height:1.13;letter-spacing:.065em;text-transform:uppercase;max-width:680px}
.entrance-welcome h1 span{display:block}
.entrance-welcome .entrance-thesis{font-family:var(--display-face),Georgia,serif;font-size:clamp(20px,1.65vw,27px);line-height:1.3;max-width:410px;margin:25px auto 0;letter-spacing:0;text-wrap:balance}
.entrance-scroll,.courtyard-scroll{position:absolute;bottom:calc(var(--bottom) + 40px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:14px;min-width:150px;min-height:58px;font-size:13px;letter-spacing:.04em;pointer-events:auto}
.entrance-scroll:after,.courtyard-scroll:after{content:'';display:block;height:33px;width:1px;background:currentColor;opacity:.75;transform-origin:top;animation:house-scroll-cue 2.8s ease-in-out infinite}
@keyframes house-scroll-cue{0%,100%{transform:scaleY(.7);opacity:.4}50%{transform:scaleY(1);opacity:.9}}
.courtyard-arrival{visibility:hidden;opacity:0;padding-bottom:calc(var(--bottom) + 60px)}
body #main .courtyard-arrival .eyebrow{font-size:13px!important;letter-spacing:.2em;margin:0 0 22px}
.courtyard-arrival h2{font-size:clamp(42px,5.1vw,76px);line-height:1.02;letter-spacing:-.027em;max-width:920px}
.courtyard-arrival .courtyard-body{font-size:16px;line-height:1.65;max-width:510px;margin:25px 0 24px;text-wrap:pretty}
.courtyard-actions{display:flex;flex-direction:column;gap:9px;align-items:center;pointer-events:auto}
.courtyard-actions .skin-signal-primary{display:flex;gap:25px;border:1px solid #f4eee6b3;padding:14px 23px;min-height:51px;color:var(--porcelain);font-size:12px!important;background:#35251b26;transition:background .25s,color .25s}
.courtyard-actions .skin-signal-primary:hover{background:var(--porcelain);color:var(--espresso)}
.courtyard-actions .text-link{font-size:11px!important;min-height:44px}
.courtyard-scroll{bottom:calc(var(--bottom) + 16px);font-size:12px}
body.at-house-entrance{--ink:var(--porcelain)}
body.at-house-entrance .site-header{color:var(--porcelain);background:linear-gradient(#20170d7d,transparent);text-shadow:0 1px 15px #291b1480}
body.at-house-entrance .world-controls{color:var(--porcelain);background:linear-gradient(transparent,#20170d55);text-shadow:0 1px 10px #291b1480}
body.at-house-entrance .world-shade{opacity:0}
html.js body.has-house-entrance .chapter.cover{display:none}
html.js body.has-house-entrance .chapter-stage{z-index:2}
html.js body.has-house-entrance .chapter-track>#your-skin{--stop:4}
html.js body.has-house-entrance .chapter-track>#ritual{--stop:5.33}
html.js body.has-house-entrance .chapter-track>#our-science{--stop:6.5}
html.js body.has-house-entrance .chapter-track>#invitation{--stop:7.8}
html.js body.has-house-entrance .skin-chapter .chapter-copy{top:50%;max-height:calc(100svh - var(--header) - var(--bottom) - 20px);overflow:auto;scrollbar-width:thin;padding:2px 8px 6px 2px}
body.has-house-entrance .skin-chapter .chapter-copy>h2{margin-bottom:16px}
body.has-house-entrance .skin-chapter .chapter-copy>p:not(.eyebrow){max-width:450px;margin-bottom:18px}
body #main .skin-literacy-question .literacy-label{font-size:10px!important;letter-spacing:.16em;display:flex;justify-content:space-between;gap:18px;margin:0 0 10px}
.skin-literacy-question{border-top:1px solid #6f56474a;border-bottom:1px solid #6f56474a;padding:18px 0 14px;margin:19px 0 16px}
.skin-literacy-question h3{font-size:clamp(25px,2.2vw,32px);line-height:1.12;letter-spacing:-.02em;max-width:390px}
.literacy-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:9px}
.literacy-actions button{min-height:44px;font-size:11px;letter-spacing:.02em;text-align:left}
.literacy-actions button:last-child{font-size:10px;opacity:.75}
.literacy-answer{padding:4px 0 12px;animation:literacy-reveal .3s ease}
.literacy-answer p{font-size:14px;line-height:1.65;max-width:440px;margin-bottom:8px}
.literacy-answer a{display:inline-block;font-size:11px;line-height:1.6;border-bottom:1px solid #6f564760;padding:5px 0}
@keyframes literacy-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
body.has-house-entrance #main .skin-chapter .skin-intake-note{font-size:11px!important;margin:6px 0 0!important}
@media(max-width:760px){
 .entrance-welcome{padding-left:24px;padding-right:24px;padding-bottom:150px}
 .entrance-welcome h1{font-size:clamp(33px,8.9vw,60px);letter-spacing:.035em}
 .entrance-welcome .entrance-thesis{font-size:22px;max-width:290px;margin-top:25px}
 .entrance-scroll{bottom:calc(var(--bottom) + 48px)}
 .courtyard-shade{background:radial-gradient(ellipse 100% 63% at 50% 46%,#24170ee6,#291b1470 70%,#291b1400)}
 .courtyard-arrival{padding:calc(var(--header) + 24px) 26px calc(var(--bottom) + 110px)}
 .courtyard-arrival h2{font-size:clamp(38px,10.8vw,58px);line-height:1.02}
 body #main .courtyard-arrival .eyebrow{font-size:10px!important;letter-spacing:.16em;margin-bottom:22px}
 .courtyard-arrival .courtyard-body{font-size:14px;line-height:1.6;max-width:340px;margin:23px 0 20px}
 .courtyard-actions .skin-signal-primary{font-size:10px!important;padding:12px 18px;gap:20px}
 .courtyard-actions .text-link{font-size:10px!important}
 .courtyard-scroll{bottom:calc(var(--bottom) + 22px);font-size:11px}
 .entrance-facade{perspective:900px}
 .skin-literacy-question h3{font-size:29px}
 html.js body.has-house-entrance .skin-chapter .chapter-copy{max-height:calc(100svh - var(--header) - var(--bottom) - 30px);width:86vw;top:50%}
 .skin-literacy-question{margin:14px 0;padding:15px 0 9px}
}
@media(max-width:760px) and (max-height:820px){
 html.js body.has-house-entrance #home-journey{height:auto}
 html.js body.has-house-entrance .chapter-stage{position:relative;inset:auto}
 html.js body.has-house-entrance .skin-chapter .chapter-copy{position:relative;top:auto;left:auto;width:100%;max-height:none;overflow:visible;transform:none;padding:0}
 html.js body.has-house-entrance .skin-chapter{padding-top:calc(var(--header) + 30px);min-height:100svh}
 .courtyard-arrival{padding-top:calc(var(--header) + 12px);padding-bottom:calc(var(--bottom) + 95px)}
 .courtyard-arrival h2{font-size:clamp(33px,10vw,47px)}
 .courtyard-arrival .courtyard-body{font-size:13px;margin:17px 0 15px}
 body #main .courtyard-arrival .eyebrow{margin-bottom:17px}
}
@media(max-height:650px) and (min-width:761px){
 .courtyard-arrival{padding-top:90px;padding-bottom:120px}
 .courtyard-arrival h2{font-size:46px}
 .courtyard-arrival .courtyard-body{font-size:14px;margin:16px 0}
 body #main .courtyard-arrival .eyebrow{margin-bottom:15px}
 .courtyard-scroll{bottom:70px}
 .courtyard-scroll:after{height:15px}
 .entrance-welcome h1{font-size:42px}
 .entrance-welcome .entrance-thesis{font-size:22px;margin-top:17px}
}
.motion-paused .entrance-scroll:after,.motion-paused .courtyard-scroll:after{animation:none}
@media(prefers-reduced-motion:reduce){.entrance-scroll:after,.courtyard-scroll:after{animation:none}}
html:not(.js) #house-intro-space{display:none}
html:not(.js) #house-entrance{position:relative;min-height:190svh}
html:not(.js) .entrance-visual{height:100svh;background:url('/assets/house-entrance.webp') center/cover}
html:not(.js) .entrance-facade,html:not(.js) .courtyard-photo{display:none}
html:not(.js) .entrance-welcome{height:100svh}
html:not(.js) .courtyard-arrival{position:relative;top:100svh;min-height:90svh;opacity:1;visibility:visible;background:#594635}
html:not(.js) .chapter.cover{display:none}

body.has-house-entrance #main .skin-chapter p.skin-intake-note{font-size:11px!important;line-height:1.5;max-width:none;letter-spacing:.08em}
@media(max-width:760px) and (max-height:620px){
 .courtyard-arrival{justify-content:flex-start;padding:calc(var(--header) + 20px) 20px 0}
 body #main .courtyard-arrival .eyebrow{font-size:9px!important;margin-bottom:12px}
 .courtyard-arrival h2{font-size:30px;line-height:1.01}
 .courtyard-arrival .courtyard-body{font-size:12px;line-height:1.5;margin:14px 0;max-width:300px}
 .courtyard-actions{gap:4px}
 .courtyard-actions .skin-signal-primary{min-height:44px;padding:9px 16px}
 .courtyard-actions .text-link{min-height:44px}
 .courtyard-scroll{bottom:calc(var(--bottom) + 20px);min-height:48px;gap:10px}
 .courtyard-scroll:after{height:25px}
}
@media(max-width:360px){
 body.has-house-entrance .site-header .wordmark{font-size:18px}
 body.has-house-entrance .site-header .brand-descriptor{font-size:7px;letter-spacing:.12em}
 body.has-house-entrance .site-header .header-join{font-size:10px!important;letter-spacing:.05em}
}
