/* Two spaces, one Nagame identity. Existing portfolio compositions stay intact. */
:root{--entry-pad:clamp(22px,3.5vw,68px);--entry-step:24px;--entry-ease:cubic-bezier(.23,1,.32,1);--entry-sky:#10131f;--entry-star:#cbaaff;--entry-heading-size:clamp(62px,7.4vw,148px);--entry-copy-space:calc(var(--entry-heading-size) * 1.07 + clamp(16px,1.35vw,22px) * 3 + 46px);--entry-studio-cut:polygon(0 0,72% 0%,72% 5%,69.8% 5%,69.8% 10%,67.6% 10%,67.6% 15%,65.4% 15%,65.4% 20%,63.2% 20%,63.2% 25%,61% 25%,61% 30%,58.8% 30%,58.8% 35%,56.6% 35%,56.6% 40%,54.4% 40%,54.4% 45%,52.2% 45%,52.2% 50%,50% 50%,50% 55%,47.8% 55%,47.8% 60%,45.6% 60%,45.6% 65%,43.4% 65%,43.4% 70%,41.2% 70%,41.2% 75%,39% 75%,39% 80%,36.8% 80%,36.8% 85%,34.6% 85%,34.6% 90%,32.4% 90%,32.4% 95%,30.2% 95%,30.2% 100%,28% 100%,0 100%);--entry-portfolio-cut:polygon(72% 0%,100% 0%,100% 100%,28% 100%,30.2% 100%,30.2% 95%,32.4% 95%,32.4% 90%,34.6% 90%,34.6% 85%,36.8% 85%,36.8% 80%,39% 80%,39% 75%,41.2% 75%,41.2% 70%,43.4% 70%,43.4% 65%,45.6% 65%,45.6% 60%,47.8% 60%,47.8% 55%,50% 55%,50% 50%,52.2% 50%,52.2% 45%,54.4% 45%,54.4% 40%,56.6% 40%,56.6% 35%,58.8% 35%,58.8% 30%,61% 30%,61% 25%,63.2% 25%,63.2% 20%,65.4% 20%,65.4% 15%,67.6% 15%,67.6% 10%,69.8% 10%,69.8% 5%,72% 5%,72% 0%)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.entry-page{min-height:100svh;display:flex;flex-direction:column;background:var(--ink);color:var(--shell)}
.entry-header{padding:24px var(--entry-pad);display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:106px}
.entry-header>a{display:block;flex:none}.entry-header img{display:block;width:190px;height:auto}.entry-header>p{font-size:15px;line-height:1.4;text-align:right;margin:0}
.entry-page #main{display:flex;flex:1}.entry-choices{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr;width:100%;min-height:max(540px,calc(100svh - 166px))}
.entry-choice{grid-area:1/1;position:relative;display:block;min-height:540px;text-decoration:none;min-width:0;isolation:isolate}
.entry-choice:focus-visible{outline:4px solid var(--violet);outline-offset:-8px;z-index:3}.entry-choice:active .entry-arrow{transform:translate(2px,-2px)}
.entry-studio{z-index:2;background:var(--green);color:var(--ink);clip-path:var(--entry-studio-cut)}
.entry-portfolio{z-index:1;color:var(--shell);background:var(--ink);clip-path:var(--entry-portfolio-cut)}
.entry-copy{position:absolute;width:44%}.entry-studio .entry-copy{left:var(--entry-pad);top:32px}.entry-portfolio .entry-copy{right:var(--entry-pad);bottom:92px;width:46%}
.entry-choice-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.entry-choice h2{font:400 var(--entry-heading-size)/1.07 var(--display);letter-spacing:-.03em;margin:0}.entry-arrow{width:36px;height:36px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform 220ms var(--entry-ease)}
.entry-copy>p{font-size:clamp(16px,1.35vw,22px);line-height:1.5;max-width:38ch;margin:18px 0 28px}
.entry-art{position:absolute;overflow:hidden;clip-path:polygon(0 20px,20px 20px,20px 0,calc(100% - 40px) 0,calc(100% - 40px) 20px,100% 20px,100% calc(100% - 20px),calc(100% - 20px) calc(100% - 20px),calc(100% - 20px) 100%,40px 100%,40px calc(100% - 20px),0 calc(100% - 20px))}
.entry-art-studio{left:var(--entry-pad);top:max(clamp(220px,29vh,340px),calc(32px + var(--entry-copy-space)));bottom:104px;width:44%}.entry-art-portfolio{top:0;right:0;width:64%;height:calc(100% - var(--entry-copy-space) - 92px);clip-path:polygon(0 0,calc(100% - 20px) 0,calc(100% - 20px) 20px,100% 20px,100% calc(100% - 40px),calc(100% - 20px) calc(100% - 40px),calc(100% - 20px) 100%,20px 100%,20px calc(100% - 20px),0 calc(100% - 20px))}.entry-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 500ms var(--entry-ease)}
.entry-sky{position:absolute;inset:0;background:var(--entry-sky);color:#eeeddb;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:28px;gap:16px}
.entry-sky::before,.world-hikai-art::before{content:'';position:absolute;inset:16px;background-image:url("../hikai/star.08be2ea8521d.svg");background-size:12px;background-position:12% 18%;background-repeat:no-repeat;opacity:.5;pointer-events:none}
.entry-sky::after,.world-hikai-art::after{content:'';position:absolute;inset:18px;background:url("../hikai/star.08be2ea8521d.svg") 90% 70%/8px no-repeat;opacity:.6;pointer-events:none}
.entry-hikai-name{font:400 clamp(30px,3vw,52px)/1 HikaiEditUndo,monospace}.entry-hikai-star{width:24px;height:24px;image-rendering:pixelated}
.entry-hikai-perch{position:relative;width:160px;height:74px;flex:none;margin:10px auto 0;isolation:isolate}.entry-hikai-perch img:first-child{position:absolute;left:48px;bottom:16px;width:64px;height:64px;image-rendering:pixelated;transition:transform 350ms var(--entry-ease)}.entry-hikai-perch img:last-child{position:absolute;bottom:0;left:0;width:160px;height:16px;image-rendering:pixelated}
.entry-action{position:absolute;bottom:32px;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;padding-top:20px;font-size:15px}.entry-studio .entry-action{left:var(--entry-pad);width:22%}.entry-portfolio .entry-action{right:var(--entry-pad);width:46%}.entry-choice:focus-visible .entry-action{outline:2px solid currentColor;outline-offset:6px}
.entry-action .arrow{width:23px;height:23px}.entry-art-type{font:400 clamp(38px,5vw,90px)/1.1 var(--display)}
.entry-footer{padding:20px var(--entry-pad);display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px}.entry-footer>div{display:flex;gap:24px}.entry-footer a{text-underline-offset:4px}
.entry-loader{position:fixed;inset:0;z-index:1000;background:var(--ink);display:grid;place-items:center;pointer-events:none;animation:entry-loader-safety 1.5s step-end forwards}.entry-loader[hidden]{display:none}.entry-loader-mark{position:relative;width:144px;height:144px;background:var(--green);display:grid;place-items:center;overflow:hidden;animation:entry-logo-reveal 550ms steps(6,end) both}.entry-loader-mark img{height:112px;width:auto}.entry-loader.is-leaving{opacity:0;transition:opacity 140ms ease-out}
@keyframes entry-logo-reveal{0%{clip-path:polygon(0 100%,0 100%,0 100%,0 100%)}30%{clip-path:polygon(0 66%,34% 66%,34% 84%,66% 84%,66% 50%,100% 50%,100% 100%,0 100%)}65%{clip-path:polygon(0 34%,34% 34%,34% 0,66% 0,66% 17%,100% 17%,100% 100%,0 100%)}100%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}}
@keyframes entry-loader-safety{to{visibility:hidden;opacity:0}}
.studio-space-intro{padding-block:55px 90px}.studio-space-intro h1{font:400 clamp(68px,9vw,150px)/1.04 var(--display);letter-spacing:-.03em;margin:45px 0 28px}.studio-space-intro>p{font-size:clamp(19px,2vw,28px);max-width:42ch;line-height:1.5}
.studio-worlds{margin-bottom:80px}.studio-world{position:relative;margin-block:36px;padding:70px var(--gutter);background:var(--green);color:var(--ink);clip-path:polygon(0 24px,24px 24px,24px 0,62% 0,62% 24px,calc(62% + 24px) 24px,calc(62% + 24px) 0,100% 0,100% calc(100% - 24px),calc(100% - 48px) calc(100% - 24px),calc(100% - 48px) 100%,24px 100%,24px calc(100% - 24px),0 calc(100% - 24px))}.studio-world-link{display:grid;grid-template-columns:.9fr 1.1fr;gap:8%;align-items:center;text-decoration:none}.studio-world-copy h2{font:400 clamp(50px,6vw,100px)/1.1 var(--display);letter-spacing:-.03em;margin:0 0 28px}.studio-world-copy>p{font-size:20px;line-height:1.6;max-width:40ch;margin-bottom:35px}.studio-world-copy .text-link{color:inherit}.studio-world-art{min-width:0}.studio-world-art .universe-cover{aspect-ratio:1.2}.studio-world-hikai{background:var(--hikai-night);color:var(--hikai-ink)}.studio-world-hikai h2{font-family:HikaiEditUndo,monospace;font-size:clamp(36px,5vw,80px)}.studio-world-hikai .text-link{color:var(--hikai-lime)}.studio-world-violet{background:var(--violet);color:white}.studio-world-graphite{background:#242729;color:var(--shell)}
.world-hikai-art{position:relative;isolation:isolate;min-height:350px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px;text-align:center}.world-hikai-art>img{width:32px;height:32px;image-rendering:pixelated}.world-hikai-art>span{font:400 clamp(20px,2.5vw,38px)/1.6 HikaiEditUndo,monospace;color:var(--hikai-purple)}
.space-crosslink{padding-block:50px 100px;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:24px}.space-crosslink>p{font-size:22px;max-width:32ch}.space-crosslink>a:first-of-type{font:400 clamp(30px,4vw,60px)/1.2 var(--display);letter-spacing:-.02em}.space-crosslink a{color:var(--green)}.space-crosslink .arrow{width:35px;height:35px;vertical-align:middle}
.studio-empty{padding-block:60px 110px}.studio-empty h2{font:400 clamp(40px,6vw,80px)/1.1 var(--display)}.studio-empty p{margin:30px 0}
.universe-hero{position:relative;text-align:center;padding:40px var(--gutter) 90px;background:var(--green);color:var(--ink);overflow:hidden;isolation:isolate;margin:0;clip-path:polygon(0 0,100% 0,100% calc(100% - 24px),80% calc(100% - 24px),80% 100%,calc(60% + 24px) 100%,calc(60% + 24px) calc(100% - 48px),60% calc(100% - 48px),60% calc(100% - 24px),20% calc(100% - 24px),20% 100%,0 100%)}.universe-back{display:flex;width:fit-content;margin-bottom:50px;color:inherit}.universe-hero h1{font:400 clamp(74px,12vw,180px)/1.06 var(--display);letter-spacing:-.03em;margin:25px 0}.universe-hero>p{font-size:23px;line-height:1.6;max-width:44ch;margin:25px auto 35px}.universe-hikai .universe-hero{background:var(--hikai-night);color:var(--hikai-ink);padding-bottom:75px}.universe-hikai .universe-hero h1{font-family:HikaiEditUndo,monospace;font-size:clamp(56px,8vw,120px);letter-spacing:0}.universe-hikai .universe-hero>p{color:var(--hikai-muted)}.universe-star{width:40px;height:40px;image-rendering:pixelated}.universe-violet .universe-hero{background:var(--violet);color:white}.universe-graphite .universe-hero{background:#242729;color:var(--shell)}.universe-cover-wrap{padding-top:70px;max-width:1440px}.universe-cover-wrap .case-aperture{aspect-ratio:1.65}.universe-reading{padding-block:70px;max-width:1050px}.universe-reading .project-body{max-width:100%}.universe-reading .project-body>p{font-size:22px;line-height:1.65;max-width:65ch}
@media(hover:hover) and (pointer:fine){.entry-choice:hover .entry-arrow{transform:translate(4px,-4px)}.entry-choice:hover .entry-art>img{transform:scale(1.025)}.entry-choice:hover .entry-hikai-perch img:first-child{transform:translateY(-9px)}.entry-choice:hover .entry-action{text-decoration:underline;text-underline-offset:6px}.studio-world-link:hover .text-link{text-decoration:underline;text-underline-offset:6px}}
@media(max-width:1000px) and (min-width:761px){.entry-copy{width:44%}.entry-choice h2{font-size:7.3vw}.entry-arrow{width:26px;height:26px}.entry-copy>p{font-size:16px}.entry-header img{width:170px}.header nav{gap:17px}.header nav a{font-size:13px}.studio-world-link{gap:5%}}
@media(max-width:760px){.entry-header{min-height:82px;padding-block:18px}.entry-header img{width:145px}.entry-header>p{font-size:12px}.entry-choices{grid-template-columns:1fr;grid-template-rows:1fr 1fr;min-height:calc(100svh - 148px)}.entry-choice{grid-area:auto;min-height:270px;padding:20px var(--entry-pad) 10px;display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:auto 1fr auto;column-gap:16px;min-height:270px}.entry-copy,.entry-portfolio .entry-copy{display:contents;position:static;width:auto}.entry-choice-top{grid-column:1/-1}.entry-choice h2{font-size:clamp(46px,15.8vw,80px)}.entry-copy>p{font-size:14px;line-height:1.5;margin:14px 0;grid-column:1;align-self:center}.entry-arrow{width:26px;height:26px}.entry-art,.entry-art-studio,.entry-art-portfolio{position:relative;inset:auto;width:auto;align-self:center;grid-column:2;grid-row:2;min-height:105px;height:100%;max-height:112px;clip-path:polygon(0 14px,14px 14px,14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) calc(100% - 14px),calc(100% - 14px) 100%,0 100%)}.entry-sky{padding:14px;gap:8px}.entry-hikai-name{font-size:24px}.entry-hikai-star{width:14px;height:14px}.entry-sky .entry-hikai-perch{display:none}.entry-action,.entry-studio .entry-action,.entry-portfolio .entry-action{position:static;width:auto;grid-column:1/-1;min-height:44px;padding-top:10px;font-size:13px}.entry-studio{padding-bottom:84px;clip-path:polygon(0 0,100% 0,100% calc(100% - 72px),90% calc(100% - 72px),90% calc(100% - 60px),72% calc(100% - 60px),72% calc(100% - 48px),60% calc(100% - 48px),60% calc(100% - 36px),42% calc(100% - 36px),42% calc(100% - 24px),24% calc(100% - 24px),24% calc(100% - 12px),12% calc(100% - 12px),12% 100%,0 100%)}.entry-portfolio{clip-path:none}.entry-footer{font-size:11px;padding-block:16px;align-items:flex-start}.entry-footer>span{max-width:18ch}.entry-footer>div{gap:14px}.entry-loader-mark{width:112px;height:112px}.entry-loader-mark img{height:88px}.studio-space-intro{padding-block:25px 50px}.studio-space-intro h1{font-size:clamp(58px,15vw,96px);margin:34px 0 26px}.studio-space-intro>p{font-size:19px}.studio-world{padding:55px var(--gutter)}.studio-world-link{grid-template-columns:1fr;gap:25px}.studio-world-copy>p{font-size:17px}.world-hikai-art{min-height:230px}.space-crosslink{padding-block:25px 75px}.space-crosslink>p{font-size:19px}.universe-hero{padding-top:25px;padding-bottom:60px}.universe-hero>p{font-size:18px}.universe-back{margin-bottom:40px}.universe-cover-wrap{padding-top:45px}.universe-cover-wrap .case-aperture{aspect-ratio:1.25}.universe-reading{padding-block:45px}.universe-reading .project-body>p{font-size:18px}}
@media(prefers-reduced-motion:reduce){.entry-loader{display:none!important}.entry-choice *, .studio-world-link *{animation:none!important;transition:none!important;transform:none!important}}.motion-reduced .entry-loader{display:none!important}

/* Keep the first Studio world within reach of the opening. */
.studio-space-intro{padding-block:30px 45px}.studio-space-intro h1{font-size:clamp(60px,7vw,110px);margin-top:28px}.studio-space-intro>p{font-size:clamp(19px,1.8vw,25px)}.universe-star{margin-inline:auto}

@media(min-width:761px) and (max-height:800px){.entry-sky{padding:12px;gap:10px}.entry-sky>.entry-hikai-star{display:none}.entry-hikai-name{font-size:clamp(26px,2.8vw,36px)}.entry-sky .entry-hikai-perch{margin-top:0}}
