/* The Stage: see stage.js. Lives inside .hp, so it uses the same 4.0 tokens as the page behind it. */
html.st-open{scroll-behavior:auto}
.hp .st{position:fixed;inset:0;z-index:95;pointer-events:none}
.hp .st[hidden]{display:none}
.hp .st-scrim{position:absolute;inset:0;background:rgba(16,40,60,.20);opacity:0;transition:opacity .36s ease}
.hp .st.on .st-scrim{opacity:1}

/* Wide screens: docked on the right, the page beside it stays live */
.hp .st-panel{position:absolute;top:16px;right:16px;bottom:16px;width:clamp(660px,60vw,900px);display:flex;flex-direction:column;background:var(--g,#faf9f5);color:var(--ink);border-radius:14px;box-shadow:0 36px 90px rgba(16,40,60,.30),0 0 0 1px rgba(16,40,60,.07);overflow:hidden;pointer-events:auto;outline:none;will-change:transform}
.hp .st-grab{display:none}
.hp .st-views{position:relative;flex:1;min-height:0}
.hp .st-view{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.hp .st-view.st-gone{pointer-events:none}

.hp .st-x{position:absolute;top:14px;right:14px;z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 2px 10px rgba(16,40,60,.14),0 0 0 1px rgba(16,40,60,.06);cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:transform .22s cubic-bezier(.32,.72,0,1)}
.hp .st-x::before,.hp .st-x::after{content:"";position:absolute;left:12px;right:12px;top:19px;height:2px;border-radius:2px;background:var(--ink)}
.hp .st-x::before{transform:rotate(45deg)}
.hp .st-x::after{transform:rotate(-45deg)}
.hp .st-x:hover{transform:scale(1.07)}
.hp .st-x:active{transform:scale(.94)}
.hp .st-x:focus-visible{outline:2px solid var(--acc);outline-offset:3px}

.hp .st-fly{position:fixed;z-index:4;object-fit:cover;border-radius:10px;transform-origin:0 0;pointer-events:none;will-change:transform}

/* Video: the film on the left, what it is and what's next on the right */
.hp .st-video{display:grid;grid-template-columns:auto minmax(0,1fr);gap:30px;padding:16px}
.hp .st-vbox{height:calc(100vh - 64px);height:calc(100dvh - 64px);aspect-ratio:9/16;max-width:100%;border-radius:10px;overflow:hidden;background:var(--dk,#10283c) center/cover no-repeat}
.hp .st-vbox.wide{height:auto;width:100%;aspect-ratio:16/9;grid-column:1/-1}
.hp .st-vbox video{display:block;width:100%;height:100%;object-fit:cover;background:transparent}
.hp .st-side{display:flex;flex-direction:column;gap:14px;padding:44px 12px 12px 0;min-width:0}

.hp .st-eb{margin:0;color:var(--acc);line-height:1.5}
.hp .st-t{font-size:40px;line-height:.98;text-wrap:balance}
.hp .st-note{margin:0;font-size:17px;line-height:1.5;color:var(--ink2);text-wrap:pretty}
.hp .st-cta{align-self:flex-start;margin-top:6px;border:0;cursor:pointer;font-family:inherit}

/* Reading */
.hp .st-read{display:flex;flex-direction:column;gap:16px;max-width:660px;margin-inline:auto;padding:30px 40px 44px}
.hp .st-hero{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin-bottom:10px;background:var(--g2,#fff)}
.hp .st-hero.portrait{width:132px;height:132px;aspect-ratio:1;border-radius:50%;object-position:50% 20%}
.hp .st-page .st-read{padding-top:48px}
.hp .st-prose{display:flex;flex-direction:column;gap:18px;margin-top:10px;font-size:18px;line-height:1.62;color:var(--ink)}
.hp .st-prose p{margin:0}
.hp .st-prose h2,.hp .st-prose h3{margin:18px 0 0;font-size:24px;line-height:1.2;font-weight:680;letter-spacing:-.005em;text-wrap:balance}
.hp .st-prose h3{font-size:20px}
.hp .st-prose ul,.hp .st-prose ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.hp .st-prose a{color:var(--acc);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.hp .st-prose img{display:block;max-width:100%;height:auto;border-radius:10px}
.hp .st-prose figure{margin:6px 0}
.hp .st-prose figcaption{margin-top:10px;font-family:var(--f-mono);font-size:13px;line-height:1.45;color:var(--ink2)}
.hp .st-q{padding:22px 24px;background:var(--g2,#fff);border-radius:10px;box-shadow:0 0 0 1px var(--line)}
.hp .st-q blockquote{margin:0;font-size:20px;line-height:1.45;font-weight:560}
.hp .st-q blockquote p{margin:0}
.hp .st-prose .ap-glow{color:var(--acc);font-weight:680}
.hp .st-full{align-self:flex-start;margin-top:10px;font-family:var(--f-mono);font-size:14px;color:var(--acc);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.hp .st-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hp .st-stats div{padding:16px 14px;background:var(--g2,#fff);border-radius:10px;box-shadow:0 0 0 1px var(--line)}
.hp .st-stats b{display:block;font-size:26px;line-height:1;font-weight:760;font-stretch:70%;letter-spacing:.01em}
.hp .st-stats span{display:block;margin-top:7px;font-family:var(--f-mono);font-size:12px;line-height:1.35;color:var(--ink2)}

/* Skeleton while the words arrive */
.hp .st-wait{display:flex;flex-direction:column;gap:13px}
.hp .st-wait span{display:block;height:13px;border-radius:4px;background:rgba(16,40,60,.07);animation:st-pulse 1.1s ease-in-out infinite alternate}
.hp .st-wait span:nth-child(3n){width:82%}
.hp .st-wait span:nth-child(5n){width:64%}
@keyframes st-pulse{to{opacity:.45}}

/* Up next */
.hp .st-next{display:flex;flex-direction:column;gap:6px;margin-top:auto;padding-top:22px}
.hp .st-read .st-next{margin-top:18px;padding-top:24px;border-top:1px solid var(--line)}
.hp .st-next-t{margin:0 0 6px;color:var(--ink2);line-height:1.5}
.hp .st-n{display:flex;align-items:center;gap:14px;width:100%;padding:8px;margin-inline:-8px;width:calc(100% + 16px);border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;font-family:inherit;cursor:pointer;transition:background-color .18s ease,transform .22s cubic-bezier(.32,.72,0,1)}
.hp .st-n:hover{background:rgba(16,40,60,.05)}
.hp .st-n:active{transform:scale(.985)}
.hp .st-n:focus-visible{outline:2px solid var(--acc);outline-offset:1px}
.hp .st-n-pic{flex:none;width:84px;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--g2,#fff)}
.hp .st-n-pic.tall{width:44px;aspect-ratio:9/16}
.hp .st-n-pic img{display:block;width:100%;height:100%;object-fit:cover}
.hp .st-n-t{display:flex;flex-direction:column;gap:3px;min-width:0}
.hp .st-n-t small{font-family:var(--f-mono);font-size:12px;line-height:1.3;color:var(--ink2)}
.hp .st-n-t b{font-size:15.5px;font-weight:620;line-height:1.28;text-wrap:pretty}

/* A play mark any page can drop on a poster */
.hp .st-play{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(16,40,60,.28);transition:transform .26s cubic-bezier(.32,.72,0,1)}
.hp .st-play::after{content:"";position:absolute;left:25px;top:20px;border-style:solid;border-width:12px 0 12px 19px;border-color:transparent transparent transparent var(--ink)}
/* on a poster of a face: in the corner, so the mark never sits on the smile */
.hp .st-play.corner{left:auto;top:auto;right:14px;bottom:14px;margin:0;width:52px;height:52px}
.hp .st-play.corner::after{left:20px;top:15px;border-width:11px 0 11px 17px}

/* Below the dock width: a sheet */
@media (max-width:1099px){
  html.st-open,html.st-open body{overflow:hidden}
  .hp .st{pointer-events:auto}
  .hp .st-panel{top:max(10px,env(safe-area-inset-top,0px));left:0;right:0;bottom:0;width:auto;max-width:760px;margin-inline:auto;border-radius:14px 14px 0 0}
  .hp .st-grab{display:block;position:absolute;top:0;left:0;right:64px;height:36px;z-index:2;touch-action:none;cursor:grab}
  .hp .st-grab::after{content:"";position:absolute;left:calc(50% + 32px);top:8px;width:40px;height:5px;margin-left:-20px;border-radius:5px;background:rgba(16,40,60,.20)}
  .hp .st-video{display:flex;flex-direction:column;gap:20px;padding:30px 16px 28px}
  .hp .st-vbox{align-self:center;width:auto;height:min(68dvh,560px);flex:none}
  .hp .st-vbox.wide{align-self:stretch;width:100%;height:auto}
  .hp .st-side{padding:0 2px}
  .hp .st-t{font-size:34px}
  .hp .st-read{padding:30px 20px calc(36px + env(safe-area-inset-bottom,0px))}
  .hp .st-page .st-read{padding-top:44px}
  .hp .st-prose{font-size:17.5px}
}
@media (prefers-reduced-motion:reduce){
  .hp .st-scrim,.hp .st-x,.hp .st-n,.hp .st-play{transition:none}
  .hp .st-wait span{animation:none}
}
