/* One light: the window, upper right. Every shadow on the page falls down and to the left, along --cast. */
@property --p{syntax:"<number>";inherits:true;initial-value:.62}
.hero{--cast-x:-2px;--cast-y:3px;--shade:rgba(12,22,25,.7);position:relative;margin:0 -16px;height:100vh;min-height:560px;background:var(--bg)}
.hero-pin{position:relative;height:100vh;min-height:560px;overflow:hidden;
  --s1:clamp(0,(var(--p) - .08)/.14,1);--s1t:clamp(0,(var(--p) - .2)/.16,1);
  --s2:clamp(0,(var(--p) - .36)/.1,1);--s3:clamp(0,(var(--p) - .62)/.38,1);--push:calc(var(--s3)*var(--s3))}
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 50%;
  transform-origin:18% 92%;scale:calc(1 + 7*var(--push))}
/* Blacks lifted to the page colour (lighten = per-channel max): the photo's deepest shadow IS --bg, so the push
   into the shadow lands on the exact background of the next section. Constant layer, never animated. */
.hero-tint{position:absolute;inset:0;pointer-events:none;background:var(--bg);mix-blend-mode:lighten}
/* depth: far = rain on the window, middle = the sleeper, close = the nightstand (all in the one photograph).
   The quiet area is a burn on the lower left, where the headline sits: darkens the sheets, leaves the window alone. */
.hero-burn{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 62% 58% at 18% 88%,rgba(12,22,25,.78) 0%,rgba(12,22,25,.5) 45%,rgba(12,22,25,0) 100%)}
.hero-fall{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(12,22,25,0) 0%,rgba(12,22,25,0) 30%,rgba(12,22,25,.35) 62%,var(--shade) 100%)}
.hero-nav,.hero-nav a{text-shadow:var(--cast-x) var(--cast-y) 14px rgba(12,22,25,.85)}
.hero-copy{position:absolute;left:56px;bottom:150px;max-width:min(1100px,calc(100% - 112px))}
.hero-copy h1{margin:0;font-size:clamp(46px,7.7vw,110px);font-weight:400;line-height:.98;letter-spacing:-.02em;max-width:16.5ch;
  font-variation-settings:"SOFT" 100,"opsz" 144;text-wrap:balance;text-shadow:var(--cast-x) var(--cast-y) 24px rgba(12,22,25,.6)}
.hero-copy p{margin:22px 0 0;font-size:21px;line-height:1.45;max-width:44ch;text-shadow:var(--cast-x) var(--cast-y) 12px rgba(12,22,25,.8)}
.hero-nav{border:0;position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 56px}
.hero-nav nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;font-size:15px}
.hero-nav nav a[href="/"]{display:none}
.buy{display:inline-block;padding:11px 20px;border-radius:999px;background:var(--ink);color:var(--bg)!important;text-decoration:none!important;
  font-weight:600;font-size:15px;text-shadow:none!important;box-shadow:var(--cast-x) var(--cast-y) 18px rgba(12,22,25,.55)}
.buy:hover{background:#fff}
.buy:focus-visible,.hero a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* the one detail only this app has: its Evidence Label, standing on the phone on the nightstand.
   In the push it rides the camera out of frame (same scale factor and origin as the photo). */
.label{position:absolute;right:56px;bottom:300px;width:300px;margin:0;padding:0 0 0 16px;
  font-size:15px;line-height:1.45;text-shadow:var(--cast-x) var(--cast-y) 12px rgba(12,22,25,.9);
  translate:calc(7*var(--push)*(82vw - 206px)) calc(7*var(--push)*(8vh - 350px))}
.label::before{content:"";position:absolute;left:0;top:0;bottom:-150px;width:1px;background:rgba(214,231,240,.35);
  transform-origin:50% 100%;scale:1 var(--s1)}
.label span{display:block;clip-path:inset(calc((1 - var(--s1t))*100%) 0 0 0)}
.label b{display:block;font-size:12px;letter-spacing:.2em;text-transform:uppercase;margin-bottom:6px}
.label b i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-left:8px;vertical-align:1px}
.label a{color:var(--ink);text-decoration:underline dotted;text-underline-offset:4px}
.specs{position:absolute;left:56px;right:56px;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin:0;padding:22px 0 30px;list-style:none}
.specs::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:rgba(214,231,240,.16);transform-origin:100% 50%;scale:var(--s2) 1}
.specs li{margin:0;font-size:14px;line-height:1.35;color:rgba(214,231,240,.72);
  --u:clamp(0,(var(--p) - .38 - (3 - var(--i))*.05)/.08,1);clip-path:inset(0 0 0 calc((1 - var(--u))*100%))}
.specs li:nth-child(1){--i:0}.specs li:nth-child(2){--i:1}.specs li:nth-child(3){--i:2}.specs li:nth-child(4){--i:3}
.specs b{display:block;font-size:30px;line-height:1.1;color:var(--ink);margin-bottom:4px}
@media (max-width:760px){.hero-nav{padding:18px 20px;flex-wrap:wrap}.hero-nav nav{gap:4px 14px;font-size:14px}
  .hero-copy{left:20px;right:20px;bottom:214px;max-width:none}.hero-copy p{font-size:17px}
  .label{left:20px;right:20px;width:auto;bottom:auto;top:150px;translate:0 calc(-7*var(--push)*60vh)}.label::before{bottom:0}
  .specs{left:20px;right:20px;grid-template-columns:repeat(2,1fr);gap:12px 16px;padding:16px 0 20px}.specs b{font-size:24px}}
/* The story: only where scroll-driven animation exists and motion is welcome. */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .hero{height:340vh;view-timeline:--hero block}
    .hero-pin{position:sticky;top:0;animation:hero-p linear both;animation-timeline:--hero;animation-range:contain 0% contain 100%}
  }
}
@keyframes hero-p{from{--p:0}to{--p:1}}
