/* The opening is one complete scene; longer discoveries remain scrollable. */
html.home-scene,html.home-scene body{height:100%;overflow:hidden;overscroll-behavior:none}
html.home-scene body.watercolor{height:100svh;min-height:0;display:flex;flex-direction:column}
.home-scene body>.site-header{flex:none}
.home-scene .watercolor .wc-home{flex:1;min-height:0;height:auto;max-height:none;width:100%;overflow:hidden}
@media(min-width:601px){
 .home-scene .wc-date{top:10%}
 .home-scene .wc-title{top:27%}
 .home-scene .wc-title>.wc-fragment>span{font-size:clamp(42px,min(7vw,9svh),112px)}
 .home-scene .wc-title>.wc-not-difficult{margin-top:8px}
 .home-scene .wc-title>.wc-not-difficult>span{font-size:clamp(25px,4.6svh,46px)}
 .home-scene .wc-remark{bottom:17%;max-width:55vw}
 .home-scene .wc-remark>span{font-size:clamp(19px,3.8svh,36px)}
 .home-scene .wc-small-evidence{bottom:6%;gap:clamp(25px,5vw,65px)}
 .home-scene .wc-folio{bottom:18px}
}
@media(min-width:601px) and (max-height:680px){
 .home-scene .wc-fragment>small{margin-top:5px}
 .home-scene .wc-date{top:5%}
 .home-scene .wc-title{top:23%}
 .home-scene .wc-remark{bottom:20%;max-width:55vw}
 .home-scene .wc-small-evidence{bottom:4%;right:5vw}
 .home-scene .wc-folio{bottom:12px}
}
@media(max-width:600px){
 .home-scene .watercolor .wc-home{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;padding:clamp(12px,2svh,24px) 24px 26px;gap:clamp(7px,1.5svh,16px)}
 .home-scene .wc-date,.home-scene .wc-title,.home-scene .wc-remark,.home-scene .wc-small-evidence{position:relative;inset:auto;margin:0;padding:0;max-width:none}
 .home-scene .wc-date{grid-row:1;align-self:start;justify-self:start}
 .home-scene .wc-date small{margin-top:5px;font-size:8px;max-width:170px}
 .home-scene .wc-title{grid-row:2;align-self:center}
 .home-scene .wc-title>.wc-fragment{padding:0}
 .home-scene .wc-title>.wc-fragment>span{font-size:clamp(32px,6.5svh,60px);line-height:.95}
 .home-scene .wc-title>.wc-fragment>small{display:none}
 .home-scene .wc-title>.wc-not-difficult{margin-top:clamp(8px,2svh,22px)}
 .home-scene .wc-title>.wc-not-difficult>span{font-size:clamp(23px,4svh,34px)}
 .home-scene .wc-remark{grid-row:3;align-self:end;max-width:100%;background:radial-gradient(ellipse,#f6f5f1d9,transparent 80%)}
 .home-scene .wc-remark>span{font-size:clamp(18px,2.8svh,25px);line-height:1.14}
 .home-scene .wc-remark>small{margin-top:6px;font-size:8px}
 .home-scene .wc-small-evidence{grid-row:4;display:flex;justify-content:space-between;align-items:start;gap:18px}
 .home-scene .wc-small-evidence .wc-fragment{padding:7px 0 0;max-width:50%;background:none}
 .home-scene .wc-small-evidence .wc-fragment>span{font-size:clamp(14px,2svh,18px)}
 .home-scene .wc-small-evidence .wc-fragment>small{font-size:7px;margin-top:4px}
 .home-scene .wc-folio{bottom:7px;left:24px;font-size:7px}
 .home-scene .wc-portrait-clue{top:15%;right:0;height:42%;width:35%}
}

@media(min-width:601px){.home-scene .wc-title>.wc-fragment>small{position:absolute;top:100%;left:0;margin-top:0;white-space:nowrap}.home-scene .wc-title>.wc-not-difficult>small{top:auto;bottom:-14px}}

.home-scene .wc-remark,.home-scene .wc-small-evidence{isolation:isolate}.home-scene .wc-remark:before,.home-scene .wc-small-evidence:before{content:"";position:absolute;inset:-35px -65px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#f6f5f1f5 42%,#f6f5f1d9 63%,transparent 78%);filter:blur(9px)}

/* Portrait tablets need face-aware framing rather than a landscape cover crop. */
@media(min-width:601px) and (max-width:1100px) and (orientation:portrait){
 .home-scene .watercolor .watercolor-art{
  inset:0;
  background-size:100% 100%,var(--mobile-art-width,1800px) var(--mobile-art-height,1013px);
  background-position:0 0,var(--mobile-art-left,-650px) var(--mobile-art-top,120px);
  background-repeat:no-repeat;
  mask-image:url("assets/tablet-portrait-mask.svg?v=3");
  mask-size:100% 100%;
  mask-repeat:no-repeat;
  animation:none;
  transform:none;
 }
 .home-scene .wc-portrait-clue{right:9%;top:12%;width:32%;height:51%}
}
