/* v2 home-hero.css - C1, section #home ("Vom Abriss zum Rohbau" fracture reveal). Scoped under .page-home.
   Default = the finished static design (no JS, ?motion=off, reduced motion, CDN failure): poster screen with
   eyebrow, h1 and button, then the wall photo as a full-bleed band with the Rohbauarbeiten caption.
   .hero.is-fx (set by home-hero.js) = one pinned 100svh stage: wall under, video + canvas over it. */

.page-home .hero{background-color:var(--ink);color:var(--paper)}
.page-home .hero-stage{position:relative;isolation:isolate}

/* ------------------------------------------------------------ first screen */
.page-home .hero-frame{position:relative;display:flex;flex-direction:column;justify-content:flex-end;
  height:100vh;height:100svh;min-height:560px;overflow:hidden}
.page-home .hero-vid{position:absolute;inset:0;z-index:2;background-color:var(--ink)}
.page-home .hero-poster,.page-home .hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
/* the video has no source until home-hero.js gives it one; it shows once it really plays */
.page-home .hero-video{opacity:0;transition:opacity .8s var(--ease)}
.page-home .hero-video.is-playing{opacity:1}
.page-home .hero-gl{z-index:3;visibility:hidden}
/* legibility scrim for the h1 over the bright footage (functional, not decoration) */
.page-home .hero-scrim{position:absolute;inset:0;z-index:4;pointer-events:none;
  background:linear-gradient(0deg,rgba(5,14,28,.82) 0%,rgba(5,14,28,.42) 42%,rgba(5,14,28,.12) 72%,rgba(5,14,28,.22) 100%)}
@media (min-width:760px){
  .page-home .hero-scrim{background:
    linear-gradient(90deg,rgba(5,14,28,.62) 0%,rgba(5,14,28,.18) 55%,rgba(5,14,28,0) 80%),
    linear-gradient(0deg,rgba(5,14,28,.7) 0%,rgba(5,14,28,.2) 45%,rgba(5,14,28,.12) 100%)}
}

.page-home .hero-copy{z-index:5;padding-top:calc(var(--nav) + var(--s-8));padding-bottom:clamp(40px,8vh,96px)}
/* First visit (html.kcc-first, set before first paint in header.php): the consent sheet covers the bottom of the first
   screen, so the headline + button sit above it (--kcc-h = the sheet's real height from consent.js, fallback = measured
   03.12: phones 210 px, desktop 114 px + 16 px gap). After the choice the copy glides back down. 2026-12-03. */
.page-home .hero-copy{transition:padding-bottom .4s cubic-bezier(.25,.75,.3,1)}
html.kcc-first .page-home .hero-copy{padding-bottom:calc(var(--kcc-h,114px) + 16px + var(--s-6))}
.page-home .hero-kicker{color:var(--steel-lite)}
.page-home .hero-h1{max-width:10.5em;color:var(--paper)}
.page-home .hero-btns{margin-top:clamp(24px,4.4vh,40px)}

/* chapter mark: the footage is the Abbruch chapter */
.page-home .hero-chap{position:absolute;z-index:5;top:calc(var(--nav) + var(--s-5));right:var(--pad);
  display:inline-flex;align-items:baseline;gap:10px;min-height:44px;padding-top:10px;
  font-size:var(--fs-small);font-weight:600;line-height:1.3;color:var(--paper);transition:color var(--t)}
.page-home .hero-chap-n{font-family:var(--display);font-weight:800;font-size:24px;line-height:1;font-variant-numeric:tabular-nums}
.page-home .hero-chap:hover{color:var(--steel-lite)}

/* ------------------------------------------------- wall band (static state) */
.page-home .hero-wall{position:relative;margin:0;background-color:var(--ink)}
.page-home .hero-wall picture{display:block}
.page-home .hero-wall-img{width:100%;height:clamp(440px,82vh,920px);object-fit:cover;object-position:50% 50%}
/* caption = one ink block of the wall; its bottom clears the next section's toothed seam (--edge-h) */
.page-home .hero-cap{position:absolute;z-index:6;left:var(--pad);right:var(--pad);bottom:calc(var(--edge-h) + var(--s-5));
  display:block;padding:var(--s-5) var(--s-5) var(--s-6);background-color:var(--ink);color:var(--paper);border-radius:var(--r-sm)}
.page-home .hero-cap-line{display:block;overflow:hidden;padding:.06em 0 .14em;margin:-.06em 0 -.14em}
.page-home .hero-cap-line>span{display:block}
.page-home .hero-cap-n{font-family:var(--display);font-weight:800;font-size:24px;line-height:1;color:var(--steel-lite);font-variant-numeric:tabular-nums}
.page-home .hero-cap-t{margin-top:var(--s-2);font-family:var(--display);font-weight:800;font-size:clamp(40px,4.2vw,60px);line-height:.94}
.page-home .hero-cap-s{margin-top:var(--s-3);font-size:var(--fs-body);line-height:1.5;color:var(--steel-lite)}
.page-home .hero-cap-act{display:block;margin-top:var(--s-5)}
@media (min-width:760px){
  .page-home .hero-cap{left:auto;width:min(480px,calc(100% - 2 * var(--pad)));padding:var(--s-6) var(--s-6) var(--s-7)}
}

/* --------------------------------------------- motion: one pinned stage */
.page-home .hero.is-fx .hero-stage{height:100vh;height:100svh;min-height:560px;overflow:hidden}
.page-home .hero.is-fx .hero-frame{position:absolute;inset:0;height:auto;min-height:0;overflow:visible}
.page-home .hero.is-fx .hero-wall{position:absolute;inset:0;background-color:var(--ink)}
.page-home .hero.is-fx .hero-wall picture{position:absolute;inset:0;z-index:1}
.page-home .hero.is-fx .hero-wall-img{height:100%}
.page-home .hero.is-fx .hero-vid{will-change:clip-path}

@media (max-width:759px){
  .page-home .hero-frame,.page-home .hero.is-fx .hero-stage{min-height:520px}
  .page-home .hero-chap{top:calc(var(--nav) + var(--s-3))}
  /* the phones-only contact bar (.mbar, 64px) sits over the bottom of the first screen */
  .page-home.has-mbar .hero-copy{padding-bottom:calc(64px + var(--s-6) + env(safe-area-inset-bottom,0px))}
  html.kcc-first .page-home.has-mbar .hero-copy,html.kcc-first .page-home .hero-copy{padding-bottom:calc(var(--kcc-h,210px) + var(--s-5))}
  .page-home .hero-wall-img{height:clamp(420px,74vh,720px)}
}
