/* ironPaul hero, patterned on the mikebollig.com scroll walkthrough.
   Sticky stage under the site nav, intro copy fades, end card fades in.
   Video mode: #ipw-film has data-desktop-src / data-mobile-src and the
   section uses a longer scrub range (see walk/README.txt).
   Still mode (no sources): a modest scroll and a slow Ken Burns. */
:root{--navh:52px}
.ipw{position:relative;height:240vh;background:#07060a;overflow-anchor:none}
.ipw.is-video{height:660vh}
.ipw-stage{position:sticky;top:var(--navh);height:calc(100vh - var(--navh));height:calc(100svh - var(--navh));overflow:hidden;background:#07060a;overflow-anchor:none}
.ipw-film-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#07060a}
.ipw-still{position:absolute;inset:0;display:block}
.ipw-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%;display:block;background:#07060a}
.ipw-film-video[hidden]{display:none}

/* Slow subtle motion on the still. Disabled in video mode and reduced motion. */
@media (prefers-reduced-motion:no-preference){
  .ipw:not(.is-video) .ipw-still .ipw-film{
    animation:ipwKen 28s ease-in-out infinite alternate;
    transform-origin:50% 60%;
    will-change:transform;
  }
}
@keyframes ipwKen{
  from{transform:scale(1.06) translate(0,0)}
  to{transform:scale(1.16) translate(-1.6%,-1.2%)}
}

/* Opening copy sits in the night sky over the aerial opening, then fades
   as the film scrubs in. On the still, mobile copy sits above the film band. */
.ipw-intro{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;justify-content:flex-start;color:#fff;text-align:center;pointer-events:none;will-change:opacity,transform}
.ipw-intro-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.22) 28%,rgba(0,0,0,.08) 48%,rgba(0,0,0,.15) 70%,rgba(0,0,0,.55) 100%)}
.ipw-intro-copy{position:relative;padding:7vh 1.5rem 0;display:flex;flex-direction:column;align-items:center}
.wordmark{margin:0;line-height:0;filter:drop-shadow(0 2px 16px rgba(0,0,0,.55)) drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.wordmark img{display:block;width:min(72vw,480px);height:auto}
.wm-iron{display:block;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:400;font-size:clamp(1.8rem,5vw,3.2rem);letter-spacing:.04em;margin-bottom:-.08em}
.wm-paul{display:block;font-family:system-ui,"Segoe UI",Arial,sans-serif;font-weight:800;font-size:clamp(3.4rem,11vw,7.2rem);letter-spacing:-.03em;line-height:.85;text-transform:none}
.ipw-intro p,.ipw-end p{font-style:italic;font-size:1.2rem;margin:.85rem 0 1.4rem;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.ipw-intro p{font-size:clamp(1.95rem,2.35vw,2.2rem);margin:2.15rem 0 1.5rem}
.ipw-intro .btn,.ipw-end .btn{pointer-events:auto;color:#fff;background:rgba(0,0,0,.18)}
.ipw-intro.is-away .btn{pointer-events:none}
.ipw-cue{display:block;width:22px;height:36px;margin:1.6rem auto 0;border:2px solid rgba(255,255,255,.8);border-radius:12px;position:relative}
.ipw-cue span{position:absolute;left:50%;top:7px;width:4px;height:8px;margin-left:-2px;border-radius:2px;background:#fff;animation:ipwcue 1.6s ease-in-out infinite}
@keyframes ipwcue{0%{opacity:0;transform:translateY(0)}30%{opacity:1}100%{opacity:0;transform:translateY(12px)}}

/* Ending wordmark kept in CSS but hidden in JS; the release card replaced it. */
.ipw-end{--tx:-50%;--y:0px;transform:translate(var(--tx),var(--y));position:absolute;z-index:5;top:8%;left:50%;right:auto;width:clamp(260px,40vw,520px);color:#fff;text-align:center;pointer-events:none;will-change:opacity,transform}
.ipw-end-shade{position:absolute;z-index:3;inset:0;pointer-events:none;opacity:0;background:linear-gradient(180deg,rgba(4,4,10,0) 45%,rgba(4,4,10,.5) 100%)}
.ipw-end .wordmark{filter:drop-shadow(0 2px 3px rgba(0,0,0,.55)) drop-shadow(0 6px 22px rgba(0,0,0,.45))}
.ipw-end .wm-iron{font-size:clamp(1.4rem,2.4vw,2.2rem)}
.ipw-end .wm-paul{font-size:clamp(2.6rem,5.2vw,4.2rem)}
.ipw-end p{font-size:clamp(1rem,1.25vw,1.2rem);line-height:1.4;margin:1rem 0 1.1rem}
.ipw-end.is-on .btn{pointer-events:auto}
.ipw-end h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}
html.ipw-js .ipw-end{opacity:0;visibility:hidden}

/* End-of-scroll single card. Dunn walkthrough glass look and fade/slide
   timing, tied to scroll progress. Lower left (bottom on phones) so it
   does not cover Steve's face on the last frame. */
.ipw-card{
  position:absolute;z-index:6;left:1.5rem;right:auto;top:auto;bottom:7%;
  width:min(400px,calc(100% - 3rem));
  display:flex;align-items:center;gap:1rem;
  background:rgba(20,16,16,.72);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(18px) saturate(1.2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2);
  padding:18px 20px 16px;
  box-shadow:0 18px 50px rgba(0,0,0,.3);
  color:#f6f1e8;
  opacity:0;visibility:hidden;
  transform:translateY(18px);
  transition:opacity .45s ease,transform .45s ease,visibility .45s ease;
  pointer-events:none;
  text-align:left;
}
.ipw-card.is-in{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.ipw-card img{width:72px;height:72px;object-fit:cover;flex:none;background:#000}
.ipw-card-eyebrow{
  font:600 10px/1.2 system-ui,sans-serif;
  letter-spacing:.2em;text-transform:uppercase;color:#d4a06a;margin:0 0 6px;
}
.ipw-card h2{
  font-family:Georgia,"Times New Roman",serif;font-weight:500;
  font-size:1.45rem;line-height:1.15;margin:0 0 4px;color:#f6f1e8;
  letter-spacing:0;text-transform:none;text-align:left;
}
.ipw-card-artist{margin:0 0 2px;font-size:14.5px;color:#d8d8d8;font-style:normal}
.ipw-card-when{margin:0 0 12px;font:400 13px/1.4 system-ui,sans-serif;color:rgba(246,241,232,.62)}
.ipw-card .btn{padding:.55rem 1rem;letter-spacing:2px;font-size:.72rem}
@media (max-width:700px){
  .ipw-card{
    left:1.2rem;right:1.2rem;width:auto;max-width:none;
    top:auto;bottom:calc(var(--ipw-film-h) + 12px);
    transform:translateY(18px);
    padding:14px 16px 12px;gap:.85rem;
  }
  .ipw-card.is-in{transform:translateY(0)}
  .ipw.is-video .ipw-card{bottom:1.1rem}
  .ipw-card img{width:64px;height:64px}
  .ipw-card h2{font-size:1.25rem}
  .ipw-card-when{margin-bottom:10px}
}
@media (max-width:700px) and (max-height:700px){
  .ipw-card{bottom:calc(var(--ipw-film-h) + 8px);padding:12px 14px 10px}
  .ipw.is-video .ipw-card{bottom:1.1rem}
  .ipw-card h2{font-size:1.15rem}
}

/* Still-mode mobile: film sits in a bottom band. Video mode overrides below. */
@media (max-width:700px){
  .ipw{height:210vh}
  .ipw.is-video{height:570vh}
  .ipw-stage{--ipw-film-h:62%;height:calc(100svh - var(--navh));height:calc(100dvh - var(--navh));max-height:none}
  .ipw-film-wrap{align-items:flex-end}
  .ipw-still{position:relative;inset:auto;width:100%;height:var(--ipw-film-h);flex:0 0 auto;overflow:hidden;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14%);mask-image:linear-gradient(180deg,transparent 0,#000 14%)}
  .ipw-still .ipw-film,.ipw-film-video:not([hidden]){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%;flex:none;
    -webkit-mask-image:none;mask-image:none}
  .ipw-intro{justify-content:flex-start}
  .ipw-intro-shade{background:linear-gradient(180deg,rgba(0,0,0,.2) 0%,rgba(0,0,0,0) 40%,rgba(0,0,0,.35) 100%)}
  .ipw-intro-copy{box-sizing:border-box;position:absolute;left:0;right:0;top:0;bottom:var(--ipw-film-h);height:auto;padding:0 1.2rem .7rem;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
  .wm-iron{font-size:clamp(1.4rem,7vw,2rem)}
  .wm-paul{font-size:clamp(2.4rem,14vw,3.4rem)}
  .wordmark img{width:min(78vw,340px)}
  .ipw-intro p{font-size:1.7rem;margin:1.05rem 0 .85rem}
  .ipw-cue{display:none}
  .ipw-end{--tx:-50%;top:0;bottom:var(--ipw-film-h);left:50%;right:auto;width:min(84vw,340px);height:auto;box-sizing:border-box;padding:0 0 .7rem;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
  .ipw-end .wordmark{display:none}
  .ipw-end p{font-size:1rem;margin:0 0 .7rem}
  .ipw-end-shade{display:none}
}
@media (max-width:700px) and (max-height:700px){
  .ipw-end{width:min(84vw,340px);padding:0 0 .55rem}
  .ipw-end p{margin:0 0 .55rem}
  .ipw-intro-copy{padding:0 1.2rem .55rem}
  .wm-iron{font-size:clamp(1.2rem,6vw,1.7rem)}
  .wm-paul{font-size:clamp(2rem,12vw,2.8rem)}
  .wordmark img{width:min(68vw,300px)}
  .ipw-intro p{font-size:1.55rem;margin:.85rem 0 .7rem}
}

/* Video hero on phones: full-screen cover (portrait film), not the still's
   bottom band. object-position biases right so the "l" of Paul stays in
   frame through the mid-scroll; the source itself clips it in the last seconds. */
@media (max-width:700px){
  .ipw.is-video .ipw-film-wrap{align-items:center}
  .ipw.is-video .ipw-still{
    position:absolute;inset:0;width:100%;height:100%;flex:none;
    -webkit-mask-image:none;mask-image:none;
  }
  .ipw.is-video .ipw-still .ipw-film,
  .ipw.is-video .ipw-film,
  .ipw.is-video .ipw-film-video:not([hidden]){
    position:absolute;inset:0;width:100%;height:100%;
    object-fit:cover;object-position:50% 40%;
    -webkit-mask-image:none;mask-image:none;
  }
  .ipw.is-video .ipw-intro{justify-content:flex-start}
  .ipw.is-video .ipw-intro-shade{background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,.12) 40%,rgba(0,0,0,.45) 100%)}
  .ipw.is-video .ipw-intro-copy{
    position:absolute;left:0;right:0;top:0;bottom:auto;height:auto;
    padding:7vh 1.2rem 0;justify-content:flex-start;align-items:center;
  }
  .ipw.is-video .wordmark img{width:min(78vw,340px)}
  .ipw.is-video .ipw-end-shade{display:block;background:linear-gradient(180deg,rgba(4,4,10,0) 50%,rgba(4,4,10,.55) 100%)}
  .ipw.is-video .ipw-cue{display:none}
}

@media (prefers-reduced-motion:reduce){
  .ipw,.ipw.is-video{height:auto}
  .ipw-stage{position:relative;top:0}
  .ipw-cue span{animation:none}
  html.ipw-js .ipw-end{opacity:0;visibility:hidden}
  html.ipw-js .ipw-card{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
  .ipw-card{transition:none}
}

html:has(body:not(.ipw-past)){scroll-behavior:auto}
body,#single{overflow-anchor:none}
