/* Homepage, Concept 1 One morning (26 Nov 2026). */
:root{--hd:90px}
.home-first{padding-top:var(--hd);min-height:100svh;box-sizing:border-box}
.home-stage{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(260px,1fr);gap:clamp(28px,5vw,72px);align-items:center;min-height:calc(100svh - var(--hd));padding-bottom:28px}
.home-photo{margin:0;max-width:100%;justify-self:start}
.home-photo a{display:block;line-height:0;max-width:100%}
.home-photo img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100svh - var(--hd) - 40px);object-fit:contain;background:transparent}
.home-copy{display:flex;flex-direction:column;justify-content:center;gap:28px;min-width:0;padding-block:8px}
.home-line{font-family:var(--disp);font-weight:400;font-size:clamp(28px,3.2vw,44px);line-height:1.2;color:var(--ink);margin:0;max-width:16ch}
.home-doors{list-style:none;margin:0;padding:0;position:relative}
.home-doors:after{content:"";display:block;height:1px;background:var(--warm);transform-origin:inline-start;transform:scaleX(1)}
.home-doors a{display:grid;grid-template-columns:2.4em minmax(0,1fr);gap:14px 16px;align-items:baseline;padding:16px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none;min-height:52px}
.home-doors a:last-of-type{border-bottom:0}
.home-doors .n{font:400 12px/1 var(--mono);letter-spacing:.08em;color:var(--warm);padding-top:.55em}
.home-doors .h{font-family:var(--disp);font-size:clamp(28px,3vw,42px);line-height:1;color:var(--ink)}
.home-doors .d{grid-column:2;color:var(--mute);font-size:15px;line-height:1.45;margin-top:2px;max-width:36ch}
.home-doors a:hover .h,.home-doors a:focus-visible .h{color:var(--warm)}

/* Opening light-up: finished page is the default. Animation only when html.home-intro.home-go */
html.home-intro .home-photo img{opacity:.35;transform:translate3d(0,6px,0);filter:brightness(.6)}
html.home-intro .home-doors:after{transform:scaleX(0)}
html.home-intro.home-go .home-photo img{animation:home-light .6s cubic-bezier(.2,.7,.2,1) forwards}
html.home-intro.home-go .home-doors:after{animation:home-rule .4s cubic-bezier(.2,.7,.2,1) .25s forwards}
@keyframes home-light{to{opacity:1;transform:none;filter:brightness(1)}}
@keyframes home-rule{to{transform:scaleX(1)}}

html.home-still .home-photo img,html.home-intro.home-still .home-photo img{opacity:1;transform:none;filter:none;animation:none}
html.home-still .home-doors:after,html.home-intro.home-still .home-doors:after{transform:scaleX(1);animation:none}

@media (max-width:820px){
  .home-stage{grid-template-columns:1fr;gap:14px;align-items:start;min-height:0}
  .home-photo,.home-photo a{width:100%}
  .home-photo img{width:100%;height:240px;max-height:none;object-fit:cover;object-position:center 42%}
  .home-copy{gap:12px}
  .home-line{font-size:26px;max-width:none}
  .home-doors a{min-height:48px;padding:10px 0;gap:8px 12px}
  .home-doors .h{font-size:28px}
  .home-doors .d{font-size:13px}
  /* phones: opacity and movement only, no brightness filter */
  html.home-intro .home-photo img{filter:none}
  html.home-intro.home-go .home-photo img{animation-name:home-light-phone}
  @keyframes home-light-phone{to{opacity:1;transform:none}}
}

@media (prefers-reduced-motion:reduce){
  html.home-intro .home-photo img,html.home-intro.home-go .home-photo img,
  html.home-intro .home-doors:after,html.home-intro.home-go .home-doors:after{
    animation:none;opacity:1;transform:none;filter:none
  }
}
