/* Clean architectural screen transitions: opaque paper, crisp edges, no haze. */
.ink-transition{position:fixed;inset:0;z-index:180;overflow:hidden;pointer-events:none;visibility:hidden;opacity:0;contain:paint}
.shoji-panel{position:absolute;top:0;bottom:0;width:calc(50% + 1px);background-color:#ece5d8;background-image:repeating-linear-gradient(90deg,transparent 0,transparent 119px,#61544008 120px,transparent 121px);will-change:transform}
.shoji-left{left:0;border-right:1px solid #bd8956;transform:translateX(-102%)}.shoji-right{right:0;border-left:1px solid #ddc7a8;transform:translateX(102%);background-color:#e8dfd0}
.shoji-sign{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:15px;color:#29271f;opacity:0}
.shoji-sign img{height:52px;width:52px;object-fit:contain;transform:scale(1.3)}.shoji-sign span{font:400 clamp(24px,3vw,38px)/1 var(--body);letter-spacing:.2em}
.shoji-rule{position:absolute;left:0;right:0;top:0;height:3px;background:#b87948;transform:scaleX(0);transform-origin:left center}
html[data-ink-state=leaving] .ink-transition,html[data-ink-state=entering] .ink-transition{visibility:visible;opacity:1}
html[data-ink-state=leaving] .shoji-left{animation:shoji-close-left .44s cubic-bezier(.5,0,.2,1) both}html[data-ink-state=leaving] .shoji-right{animation:shoji-close-right .44s cubic-bezier(.5,0,.2,1) both}
html[data-ink-state=leaving] .shoji-sign{animation:shoji-sign-in .2s .23s ease both}html[data-ink-state=leaving] .shoji-rule{animation:shoji-rule-in .44s ease both}
html[data-ink-state=entering] .shoji-left{animation:shoji-open-left .78s cubic-bezier(.2,.7,.2,1) both}html[data-ink-state=entering] .shoji-right{animation:shoji-open-right .78s cubic-bezier(.2,.7,.2,1) both}
html[data-ink-state=entering] .shoji-sign{animation:shoji-sign-out .24s ease both}html[data-ink-state=entering] .shoji-rule{animation:shoji-rule-out .7s ease both}
html[data-ink-kind=language] .shoji-panel{left:0;right:0;width:100%;height:calc(50% + 1px);bottom:auto;border-left:0;border-right:0}
html[data-ink-kind=language] .shoji-left{top:0;border-bottom:1px solid #bd8956}html[data-ink-kind=language] .shoji-right{top:auto;bottom:0;border-top:1px solid #ddc7a8}
html[data-ink-kind=language][data-ink-state=leaving] .shoji-left{animation-name:shoji-close-top}html[data-ink-kind=language][data-ink-state=leaving] .shoji-right{animation-name:shoji-close-bottom}
html[data-ink-kind=language][data-ink-state=entering] .shoji-left{animation-name:shoji-open-top}html[data-ink-kind=language][data-ink-state=entering] .shoji-right{animation-name:shoji-open-bottom}
html[data-ink-state=entering] .page-head h1,html[data-ink-state=entering] .hero h1{animation:shoji-title-reveal .7s .15s cubic-bezier(.2,.7,.2,1) both}
body[data-motion=on] .finish-card,body[data-motion=on] .single-lab{animation:material-switch-in .6s ease both}
/* Retain mineral/paper textures but retire the smoke-like ink overlay. */
.ink-atmosphere,.hero .hero-copy:after{display:none}
@keyframes shoji-close-left{from{transform:translateX(-102%)}to{transform:translateX(0)}}@keyframes shoji-close-right{from{transform:translateX(102%)}to{transform:translateX(0)}}
@keyframes shoji-open-left{from{transform:translateX(0)}to{transform:translateX(-102%)}}@keyframes shoji-open-right{from{transform:translateX(0)}to{transform:translateX(102%)}}
@keyframes shoji-close-top{from{transform:translateY(-102%)}to{transform:translateY(0)}}@keyframes shoji-close-bottom{from{transform:translateY(102%)}to{transform:translateY(0)}}
@keyframes shoji-open-top{from{transform:translateY(0)}to{transform:translateY(-102%)}}@keyframes shoji-open-bottom{from{transform:translateY(0)}to{transform:translateY(102%)}}
@keyframes shoji-sign-in{from{opacity:0}to{opacity:1}}@keyframes shoji-sign-out{from{opacity:1}to{opacity:0}}
@keyframes shoji-rule-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes shoji-rule-out{from{transform:scaleX(1);transform-origin:right}to{transform:scaleX(0);transform-origin:right}}
@keyframes shoji-title-reveal{from{opacity:.4;transform:translateY(14px);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:none;clip-path:inset(0)}}
@keyframes material-switch-in{from{opacity:.45;transform:translateY(15px)}to{opacity:1;transform:none}}
@media(max-width:560px){.shoji-panel{background-size:auto}.shoji-sign{gap:11px}.shoji-sign img{width:43px;height:43px}.shoji-sign span{font-size:25px}.shoji-rule{height:2px}}
html[data-page-motion=off] .ink-transition,body[data-motion=off] .ink-transition{display:none!important}body[data-motion=off] *,body[data-motion=off] *:before,body[data-motion=off] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.ink-transition{display:none!important}.page-head h1,.hero h1{animation:none!important;opacity:1!important;transform:none!important;clip-path:none!important}}

/* The homepage material artwork becomes one continuous, folding mineral painting. */
.ink-transition{container-type:size}
.shoji-panel{overflow:hidden;background:#e8ddc8;background-image:none;border-color:#b1895c}
.shoji-panel:before{content:'';position:absolute;top:0;left:0;width:100vw;height:100vh;background:linear-gradient(120deg,#f2e7d315,transparent 57%,#1717110a),url('/assets/art-screen-v12.webp') 50% 62%/cover no-repeat;pointer-events:none}
.shoji-right:before{left:auto;right:0}
@supports(width:100cqw){.shoji-panel:before{width:100cqw;height:100cqh}}
.shoji-panel:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 32.8%,#e8d3ab24 33%,#28251e18 33.15%,transparent 33.4%,transparent 66.1%,#e8d3ab24 66.3%,#28251e18 66.45%,transparent 66.7%);box-shadow:inset -1px 0 #e4c89935;pointer-events:none}
.shoji-sign{color:#30281f;text-shadow:0 1px 0 #f6ecd75c}
.shoji-rule{background:#b87c45}
html[data-ink-kind=language] .shoji-panel:before{left:0;right:auto;top:0;bottom:auto}
html[data-ink-kind=language] .shoji-right:before{top:auto;bottom:0}
html[data-ink-kind=language] .shoji-panel:after{background:linear-gradient(90deg,transparent 24.7%,#e8d3ab24 25%,#28251e18 25.15%,transparent 25.4%,transparent 49.7%,#e8d3ab24 50%,#28251e18 50.15%,transparent 50.4%,transparent 74.7%,#e8d3ab24 75%,#28251e18 75.15%,transparent 75.4%)}
@media(max-width:560px){.shoji-panel:before{background-position:57% 58%}.shoji-panel:after{background:linear-gradient(90deg,transparent 49.7%,#e8d3ab25 50%,#28251e1c 50.3%,transparent 50.6%)}}

/* L: a larger untouched symbol plus an independent, expressive display title.
   Header/footer identities are unchanged. The mineral artwork and screen motion
   above are deliberately retained, not re-timed or redrawn. */
.shoji-sign{width:min(76vw,640px);flex-direction:column;gap:0;text-align:center;text-shadow:none}
.shoji-sign img{width:clamp(144px,17vw,218px);height:clamp(144px,17vw,218px);transform:none;flex:none;object-fit:contain;margin:0 0 -12px}
.shoji-sign span{display:block;max-width:100%;font-family:'Cormorant Garamond',Georgia,'Times New Roman',serif;font-size:clamp(68px,8.6vw,116px);font-style:italic;font-weight:500;line-height:.95;letter-spacing:.13em;padding-left:.13em;color:#382c21;text-shadow:0 1px 0 #fff2d955}
html[data-ink-state=entering] .shoji-sign{animation:shoji-brand-open .66s cubic-bezier(.25,.6,.25,1) both}
@keyframes shoji-brand-open{0%,16%{opacity:1;transform:translate(-50%,-50%)}100%{opacity:0;transform:translate(-50%,calc(-50% - 8px))}}
@media(max-width:560px){.shoji-sign{width:86vw;gap:0}.shoji-sign img{width:150px;height:150px;margin-bottom:-7px}.shoji-sign span{font-size:clamp(53px,15vw,76px);letter-spacing:.1em;padding-left:.1em}}
@media(max-height:450px){.shoji-sign img{width:132px;height:132px;margin-bottom:-6px}.shoji-sign span{font-size:60px}}
/* A fine charcoal keyline keeps the warm-paper lettering legible across
   both strata. This treatment applies only to the separate display title. */
.shoji-sign span{color:#f3e2bf;-webkit-text-stroke:.65px #493829;paint-order:stroke fill;text-shadow:0 1px 1px #30241c55}

/* M: upright, brush-drawn display lettering; logo size and screen mechanics
   remain exactly as approved. This is not the official wordmark. */
@font-face{font-family:'SHINKA Brush Display';src:url('/assets/fonts/yuji-syuku-shinka.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.shoji-sign span{font-family:'SHINKA Brush Display','Yuji Syuku',serif;font-style:normal;font-weight:400;letter-spacing:.085em;padding-left:.085em;line-height:.95;color:#d8c29c;-webkit-text-stroke:.5px #493b29;text-shadow:0 1px 0 #3b302356;}
@supports(background-clip:text){.shoji-sign span{background-color:#d8c29c;background-image:linear-gradient(115deg,#f0dbb7e8,#c5a979e0 46%,#ead2a9ed),url('/assets/art-screen-v12.webp');background-size:100% 100%,420% auto;background-position:center,36% 31%;background-clip:text;-webkit-background-clip:text;color:transparent;}}
/* Keep the approved optical word width despite the wider brush glyphs. */
.shoji-sign span{transform:scaleX(.86);transform-origin:50% 50%}

/* N: an actual hand-lettered calligraphic face, not a serif interpretation.
   Approved emblem dimensions, painting, panel motion and layout are retained. */
@font-face{font-family:'SHINKA Handwritten';src:url('/assets/fonts/kaushan-script-shinka.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.shoji-sign span{font-family:'SHINKA Handwritten',cursive;font-style:normal;font-weight:400;letter-spacing:.06em;padding-left:.06em;transform:none;font-synthesis:none;-webkit-text-stroke:.35px #493b29}

/* O: genuine black handwritten display text on a small, crisp washi reserve.
   The surrounding approved painting and official symbol are untouched. */
.shoji-sign span{position:relative;isolation:isolate;z-index:0;color:#151515;-webkit-text-fill-color:#151515;background:none;-webkit-text-stroke:0;text-shadow:none;}
.shoji-sign span::before{content:'';position:absolute;z-index:-1;inset:-.18em -.34em -.12em;background-color:#eee5d2;background-image:linear-gradient(#eee5d2df,#eee5d2df),url('/assets/art-screen-v12.webp');background-size:100% 100%,230% auto;background-position:center,12% 8%;clip-path:polygon(1% 9%,8% 6%,18% 8%,29% 4%,43% 6%,57% 3%,70% 6%,83% 4%,98% 8%,99% 26%,98% 48%,100% 73%,98% 93%,87% 96%,74% 94%,62% 98%,48% 95%,35% 98%,22% 95%,9% 97%,0 92%,1% 69%,0 46%,2% 26%);pointer-events:none;}

/* P: transparent East-Asian ink-brush artwork, not a Western script font.
   The original trademark and screen painting remain untouched. The composition
   sits in the painting's existing pale field, with no label/paper backing. */
.shoji-sign{top:28%;}
.shoji-sign span{display:block;width:clamp(290px,36.9vw,498px);height:auto;aspect-ratio:4.1;max-width:none;padding:0;line-height:0;font-size:0;letter-spacing:0;color:transparent;-webkit-text-fill-color:transparent;background:transparent url('/assets/shinka-brush-display-v17.png') 50% 57%/105.2% auto no-repeat;background-clip:border-box;-webkit-background-clip:border-box;-webkit-text-stroke:0;text-shadow:none;transform:none;}
.shoji-sign span::before,.shoji-sign span::after{content:none;display:none;background:none;}
@media(max-width:560px){.shoji-sign{top:34%;}.shoji-sign span{width:clamp(228px,71.25vw,320px);}}
@media(max-height:450px){.shoji-sign{top:26%;left:48%;}.shoji-sign img{width:132px;height:132px;}.shoji-sign span{width:260px;}}

/* Q: only the untouched official symbol, centered on the retained screens. */
.shoji-sign{top:50%;left:50%;gap:0;}
.shoji-sign img{margin:0;}
.shoji-sign span{display:none;}
