/* The same fixed viewport and bidirectional page deck as framesbykat.com. */
html:has(body.deck-ready){height:100%;overflow:hidden;scrollbar-gutter:auto;scroll-behavior:auto}
body.deck-ready{height:100%;overflow:hidden}
/* Native fragment navigation must not scroll the outer page deck. */
.deck-ready .portfolio-deck{position:fixed;inset:0;height:100dvh;overflow:hidden;overflow:clip;isolation:isolate}
.deck-ready .portfolio-page{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--ink);pointer-events:none;visibility:hidden;min-width:0}
.deck-ready .portfolio-page.is-active{pointer-events:auto;visibility:visible}
.deck-ready .page-scroller{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#555c52 transparent;scroll-padding-top:158px}
.page-scroller:focus{outline:none}
.using-keyboard .page-scroller:focus{outline:2px solid var(--accent);outline-offset:-4px}
.deck-ready .page-scroller>.project{padding-top:178px;padding-bottom:32px}
.deck-ready .page-scroller>.about{margin-top:0;padding-top:178px;min-height:100dvh}
.deck-ready .page-scroller>.experience{padding-top:178px;min-height:100dvh}
.deck-ready .page-scroller>.contact{padding-top:178px;min-height:calc(100dvh - 80px)}
/* Wheel, drag, touch and keyboard share one continuous filmstrip. */
.filmstrip{scroll-snap-type:none;scroll-behavior:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;position:relative}
.filmstrip:focus-visible{outline:1px solid var(--accent);outline-offset:8px}
.filmstrip.is-dragging>figure{transform:none}
.gallery-tools{gap:0}.strip-arrows{display:none}
.fashion-contact-sheet.filmstrip{display:flex;gap:24px;margin-top:40px}
.fashion-contact-sheet.filmstrip>figure{flex:0 0 46%;padding-top:0}
.fashion-contact-sheet.filmstrip .photo{aspect-ratio:3/2}
.fashion-contact-sheet.filmstrip>figure:nth-child(even){padding-top:0}
/* A compact chapter ending, held briefly at the bottom of the viewport. */
.project-transition{position:relative;margin-top:65px}
.project-transition .next-project{position:relative;display:flex;align-items:center;gap:25px;margin:0;padding:27px 0;border-block:1px solid var(--rule);text-decoration:none;color:var(--paper);min-height:134px}
.project-transition .next-project>img{width:104px;height:70px;object-fit:cover;flex-shrink:0}
.project-transition .next-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.project-transition .next-copy>small{font-size:11px;line-height:1.4;color:var(--muted)}
.project-transition .next-copy>strong{font-family:Manrope,Arial,sans-serif;font-weight:500;font-size:clamp(22px,2.3vw,34px);letter-spacing:-.04em;line-height:1.17;text-wrap:balance}
.project-transition .next-copy .title-line{display:inline}
.project-transition .next-copy .title-line+.title-line:before{content:' '}
.project-transition .next-hint{font-size:10px;line-height:1.5;min-height:15px;color:var(--muted);transition:color .2s}
.project-transition .next-arrow{margin-left:auto;flex-shrink:0;font-size:31px;line-height:1;font-weight:300;transition:transform .25s}
.project-transition .next-project:hover .next-arrow{transform:translateX(5px)}
.project-transition .next-progress{position:absolute;inset:auto 0 -1px;height:2px;overflow:hidden;pointer-events:none}
.project-transition .next-progress:after{content:'';display:block;width:100%;height:100%;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:none}
.project-transition.is-held .next-progress:after{transform:scaleX(1);transition:transform .14s linear}
.project-transition.is-held .next-hint,.project-transition.is-ready .next-hint{color:var(--accent)}
.project-transition.is-ready .next-arrow{transform:translateX(5px)}
.project-transition .next-project:focus-visible{outline-offset:6px}
html.portfolio-smooth-ready,html.project-turning{scroll-behavior:auto!important}
@media(max-width:700px){
  .deck-ready .page-scroller{scroll-padding-top:190px}
  .deck-ready .page-scroller>.project,.deck-ready .page-scroller>.about,.deck-ready .page-scroller>.experience,.deck-ready .page-scroller>.contact{padding-top:195px}
  .fashion-contact-sheet.filmstrip>figure{flex-basis:88%}
  .project-transition{margin-top:45px}
  .project-transition .next-project{gap:15px;padding:22px 0;min-height:130px}
  .project-transition .next-project>img{width:66px;height:57px}
  .project-transition .next-copy>small{font-size:9px}
  .project-transition .next-copy>strong{font-size:clamp(17px,4.8vw,24px);line-height:1.2;letter-spacing:-.035em}
  .project-transition .next-hint{font-size:9px}
  .project-transition .next-arrow{font-size:24px}
}
@media(prefers-reduced-motion:reduce){.filmstrip>figure{transform:none!important;transition:none}.project-transition .next-progress:after{transition:none}}
.motion-off .filmstrip>figure{transform:none!important}
