/* Native scroll snap; a reserved control rail never covers the artwork. */
:root{--project-rail-height:44px;--project-image-gap:0px;--reader-block-padding:5px}
.project-page{--project-nav-height:0px;--project-top:calc(var(--project-nav-height) + var(--project-rail-height) + var(--site-safe-top))}
html.has-project-snap{scroll-snap-type:y mandatory;scroll-padding-top:calc(var(--project-rail-height) + var(--site-safe-top))}
html.has-project-snap.is-compact-project-entry{scroll-snap-type:none;overflow-anchor:none}
.viewing-project .project-page{padding-top:var(--project-top)}
.project-story{position:relative;background:#000}
.project-story-step{position:relative;height:calc(100svh - var(--project-top));min-height:160px;padding-inline:var(--site-safe-inline);scroll-snap-align:start;scroll-snap-stop:always;background:#000}
.project-story-sheet{position:relative;height:100%}
.project-story-sheet>img,.project-story-step .detail-cover>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;aspect-ratio:16/9}
.project-story-step img[data-story-src]{opacity:0;transition:opacity .25s ease}
.project-story-step.is-page-ready img[data-story-src]{opacity:1}
.viewing-project .project-story .project-detail-hero,.viewing-project .project-story .detail-cover{position:relative;display:block;width:100%;height:100%;min-height:0;max-height:none;padding:0;border:0;border-radius:0;background:#000}
.project-reader-bar{position:fixed;z-index:40;left:0;right:0;top:var(--project-nav-height);height:calc(var(--project-rail-height) + var(--site-safe-top));display:flex;align-items:center;justify-content:space-between;gap:18px;padding-block:calc(var(--reader-block-padding) + var(--site-safe-top)) var(--reader-block-padding);padding-inline:max(16px,var(--site-safe-inline));background:#090a09;border-bottom:1px solid #ffffff1c}
.viewing-project .project-reader-bar>.back-work{position:static;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;margin:0;padding:5px 12px;border:1px solid #08090880;border-radius:999px;background:#ef2cde;color:#080908;font:600 12px/1.2 var(--font);letter-spacing:.01em;white-space:nowrap;transition:transform .2s ease,background-color .2s ease}
.viewing-project .project-reader-bar>.back-work:hover{background:#00ffce;transform:translateY(-1px)}
.viewing-project .project-reader-bar>.back-work:focus-visible{outline:2px solid #fff;outline-offset:3px}
.project-reader-progress{font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:14px;row-gap:4px;margin-right:0;min-width:170px;flex:none}
.project-reader-progress strong{font:600 15px/1.2 var(--mono);color:#ef2cde}
.project-reader-progress>span{font-size:12px;color:#c8cbc3}
.project-reader-progress progress{grid-column:1/-1;appearance:none;width:100%;height:3px;border:0;background:#ffffff28;color:#00ffce;border-radius:2px;overflow:hidden}
.project-reader-progress progress::-webkit-progress-bar{background:#ffffff28}
.project-reader-progress progress::-webkit-progress-value{background:#00ffce}
.project-reader-progress progress::-moz-progress-bar{background:#00ffce}
/* Keep loading announcements from changing the navigation dock width. */
.project-reader-load{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.project-nav-slot{flex:1;min-width:42px;position:relative;align-self:center}
.viewing-project .project-intro,.viewing-project .next-project,.viewing-project .studio-footer{scroll-snap-align:start}
.viewing-project .project-intro h1{font-size:clamp(30px,4vw,68px);line-height:1.15;margin:0 0 28px;letter-spacing:-.04em;font-weight:900}
.viewing-project .project-intro .detail-eyebrow{margin:0 0 20px}
.project-page-editor{list-style:none;display:grid;gap:8px;margin:15px 0 24px;padding:0;max-height:420px;overflow:auto}
.project-page-editor li{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #ffffff26;background:#090a09}
.project-page-editor img{width:96px;height:54px;object-fit:contain;background:#000;flex:none}
.project-page-editor .page-label{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px;color:#eee}
.project-page-editor .page-actions{display:flex;gap:6px;flex-wrap:wrap}
.project-page-editor button{padding:7px 10px;border:1px solid #ffffff35;background:#171917;color:#00ffce;font-size:12px;cursor:pointer}
.project-page-editor button:disabled{opacity:.3;cursor:default}
.project-page-editor button[data-page-action="remove"]{color:#ef2cde}
@media(max-width:720px){
  :root{--project-rail-height:54px;--reader-block-padding:4px}
  .project-reader-bar{display:grid;grid-template-columns:auto minmax(0,1fr) 48px;grid-template-rows:44px;column-gap:10px;padding-inline:var(--page-gutter)}
  .viewing-project .project-reader-bar>.back-work{min-height:42px}
  .project-reader-progress{min-width:0;max-width:100%;margin-left:0;justify-self:end;column-gap:6px}
  .project-reader-progress>span{overflow-wrap:anywhere}
  .project-nav-slot{min-width:0}
}
.has-inline-project-pages{--project-image-gap:12px}
html.has-inline-project-pages.has-project-snap:not(.is-compact-project-entry){scroll-snap-type:y proximity}
/* Use continuous scrolling on portrait iPad. WebKit can re-snap to a later
   sheet when mounting the reader or changing the visible viewport. */
html.is-ipad-reader.has-inline-project-pages.has-project-snap{scroll-snap-type:none;overflow-anchor:none}
.has-inline-project-pages .project-story-step{height:calc((100vw - 2 * var(--site-safe-inline)) * .5625 + 2 * var(--project-image-gap));min-height:0;scroll-snap-stop:normal}
@media(max-width:960px) and (max-height:500px) and (orientation:landscape){
  :root{--project-rail-height:48px;--reader-block-padding:4px}
  .project-reader-bar{display:flex;flex-wrap:nowrap;gap:8px;padding-inline:max(12px,var(--site-safe-inline))}
  .project-reader-progress{min-width:105px}
}
@media(max-width:600px){.project-page-editor img{width:64px;height:36px}.project-page-editor li{gap:8px}.project-page-editor button{padding:6px}.project-page-editor .page-actions{max-width:125px}}
@media(prefers-reduced-motion:reduce){.project-story-step img[data-story-src],.project-reader-bar>.back-work{transition:none}}

