/* A selected title leads the next chapter without moving the whole viewport. */
@view-transition{navigation:auto}
:root{--journey-ease:cubic-bezier(.22,.75,.25,1);--journey-time:420ms;--journey-rise:16px}
[data-journey-title]{view-transition-name:journey-title}
::view-transition-group(root){animation:none}
::view-transition-old(root),::view-transition-new(root){mix-blend-mode:normal}
html[data-page-motion="forward"]::view-transition-old(root){animation:journey-out 170ms ease-out both}
html[data-page-motion="forward"]::view-transition-new(root){animation:journey-reveal 320ms var(--journey-ease) 100ms both}
html[data-page-motion="forward"]::view-transition-group(journey-title){animation-duration:var(--journey-time);animation-timing-function:var(--journey-ease)}
html[data-page-motion="forward"]::view-transition-old(journey-title),
html[data-page-motion="forward"]::view-transition-new(journey-title){animation-duration:var(--journey-time)}
html[data-page-motion="back"]::view-transition-group(root),
html[data-page-motion="back"]::view-transition-old(root),
html[data-page-motion="back"]::view-transition-new(root){animation-duration:190ms}
@keyframes journey-out{to{opacity:0}}
@keyframes journey-reveal{from{opacity:0;transform:translateY(var(--journey-rise))}to{opacity:1;transform:translateY(0)}}
/* The expanded composition persists after the animation and across reload/Back.
   Only journey arrivals adopt it; standalone visits keep the editorial hero. */
html[data-journey-expanded] main :is(.project-hero-title,.consultation-hero-copy,.course-hero-copy){
 top:max(calc(var(--site-header-height,47px) + 16px),clamp(28px,7svh,80px))!important;bottom:auto!important;transform:none!important;
 text-shadow:0 1px 24px #000a;
}
html[data-journey-expanded] main :is(.project-hero,.consultation-hero,.course-hero)::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(180deg,#000b,transparent 55%);z-index:1;
}
html[data-journey-expanded] main :is(.project-hero-title,.consultation-hero-copy,.course-hero-copy){z-index:2}
html[data-page-return-ready]{overscroll-behavior-y:none}
html[data-page-leaving] .scroll-home .screen-image{animation-play-state:paused}
/* Local entry motion supplements, but never duplicates, the native handoff. */
html[data-journey-fallback] main h1{
 animation:journey-reveal var(--journey-time) var(--journey-ease) both;
}
html[data-journey-fallback] main > :not(:first-child){
 animation:journey-reveal calc(var(--journey-time) - 80ms) var(--journey-ease) 80ms both;
}
@media(max-width:700px){
 :root{--journey-time:320ms;--journey-rise:10px}
 html[data-page-motion="forward"]::view-transition-new(root){animation-duration:250ms;animation-delay:70ms}
}
@media(prefers-reduced-motion:reduce){
 ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
 html[data-journey-fallback] main h1,html[data-journey-fallback] main > :not(:first-child){animation:none!important}
}
/* The expanded landing leaves room for the start of the next section. */
html[data-journey-expanded] body main :is(.project-hero,.consultation-hero,.course-hero){
 height:min(72svh,760px)!important;min-height:320px!important;
}

/* Homepage chapter CTA: a single vertical timeline, resumed on the next document. */
:root{--chapter-time:540ms;--chapter-ease:cubic-bezier(.22,.72,.24,1);--chapter-delay:0ms}
html .scroll-home .screen[data-chapter-departure] .screen-image{
 animation:chapter-blur var(--chapter-time) var(--chapter-ease) both;
 animation-play-state:running;
}
html .scroll-home .screen[data-chapter-departure] :is(.screen-copy h2,.screen-description){
 animation:chapter-lift var(--chapter-time) var(--chapter-ease) both;
}
html .scroll-home .screen[data-chapter-departure] :is(.screen-eyebrow,.screen-link,.screen-contact-links){
 animation:chapter-exit 140ms ease-out both;
}
.chapter-handoff{
 position:relative;height:var(--chapter-rest-h);overflow:hidden;pointer-events:none;isolation:isolate;overflow-anchor:none;background:#000;
}
.chapter-handoff[data-chapter-entering]{animation:chapter-uncover 520ms var(--chapter-ease) both}
body.inner>.chapter-handoff[aria-hidden]+main{padding-top:0}
@keyframes chapter-uncover{from{height:var(--chapter-full-h)}to{height:var(--chapter-rest-h)}}
.chapter-handoff::after{content:"";position:absolute;inset:auto 0 0;height:clamp(32px,8vh,84px);background:linear-gradient(transparent,var(--paper,#111))}
.chapter-handoff[data-chapter-entering]::after{animation:chapter-edge 520ms ease both}
@keyframes chapter-edge{0%,35%{opacity:0}100%{opacity:1}}
.chapter-handoff-image,.chapter-handoff-shade,.chapter-handoff-copy{position:absolute;inset:0}
.chapter-handoff-image{width:100vw;max-width:none;transform-origin:50% 50%;filter:blur(18px)}
.chapter-handoff[data-chapter-entering] .chapter-handoff-image{animation:chapter-blur var(--chapter-time) var(--chapter-ease) var(--chapter-delay) both}
.chapter-handoff-shade{height:var(--chapter-full-h);bottom:auto;pointer-events:none}
.chapter-handoff-copy{width:100vw;transform:translateY(var(--chapter-lift))}
.chapter-handoff[data-chapter-entering] .chapter-handoff-copy{animation:chapter-masthead-lift var(--chapter-time) var(--chapter-ease) var(--chapter-delay) both}
/* One upper-photo grade; it covers the text without horizontal band edges.
   The landing resumes the exact outgoing phase instead of switching grades. */
.chapter-handoff-shade::after,
html .scroll-home .screen:is([data-chapter-departure],[data-chapter-returning])::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(to bottom,rgb(0 0 0 / .72) 0 var(--chapter-grade-floor,70%),transparent calc(var(--chapter-grade-floor,70%) + clamp(140px,28svh,280px)));
}
html .scroll-home .screen:is([data-chapter-departure],[data-chapter-returning])::before{z-index:-1}
html .scroll-home .screen[data-chapter-departure]::before{
 animation:chapter-grade var(--chapter-time) var(--chapter-ease) both;
}
.chapter-handoff[data-chapter-entering] .chapter-handoff-shade::after{
 animation:chapter-grade var(--chapter-time) var(--chapter-ease) var(--chapter-delay) both;
}
html .scroll-home .screen[data-chapter-returning]::before{
 animation:chapter-grade-back 430ms var(--chapter-ease) both;
}
@keyframes chapter-grade{0%,15%{opacity:0}82%,100%{opacity:1}}
@keyframes chapter-grade-back{from{opacity:1}to{opacity:0}}
.chapter-handoff-text{position:absolute;z-index:1;margin:0;padding:0}
/* A rotation or substantial viewport resize uses the same art and text in
   a responsive, natural-flow crop instead of frozen portrait coordinates. */
.chapter-handoff[data-chapter-responsive]{height:auto;min-height:max(300px,56svh)}
.chapter-handoff[data-chapter-responsive] :is(.chapter-handoff-image,.chapter-handoff-shade){width:100%;height:100%!important;transform:none!important}
.chapter-handoff[data-chapter-responsive] .chapter-handoff-copy{position:relative;width:100%;padding:calc(var(--site-header-height,47px) + 24px) 6vw 64px;transform:none}
.chapter-handoff[data-chapter-responsive] .chapter-handoff-shade::after{
 background:linear-gradient(to bottom,rgb(0 0 0 / .72) 0 86%,transparent 100%);
}
.chapter-handoff[data-chapter-responsive] .chapter-handoff-text{position:relative;inset:auto!important;width:auto!important}
.chapter-handoff[data-chapter-responsive] .chapter-handoff-text:first-child{font-size:clamp(32px,7vw,70px)!important;line-height:1.12!important;margin-bottom:16px}
.chapter-handoff[data-chapter-responsive] .chapter-handoff-text:last-child{font-size:clamp(14px,2.6vw,17px)!important;line-height:1.55!important}
/* Cold arrival: keep content visible, move it only a little, and never replay
   the unavailable source photo. */
html[data-chapter-landing] body>main{animation:chapter-landing 240ms var(--chapter-ease) both}
@keyframes chapter-landing{from{transform:translateY(18px)}to{transform:translateY(0)}}
/* Literal filter functions avoid browser-dependent interpolation of a
   compound filter assembled from a custom property. Masterclasses retains
   its original brightness in both documents. */
html .scroll-home .screen.screen-masterclasses[data-chapter-departure] .screen-image,
.chapter-handoff[data-chapter-entering] .chapter-handoff-image-dimmed{animation-name:chapter-blur-dimmed}
.chapter-handoff-image-dimmed{filter:brightness(.8) blur(18px)}
@keyframes chapter-blur{from{filter:blur(0px)}to{filter:blur(18px)}}
@keyframes chapter-blur-dimmed{from{filter:brightness(.8) blur(0px)}to{filter:brightness(.8) blur(18px)}}
@keyframes chapter-lift{to{transform:translateY(var(--chapter-lift))}}
@keyframes chapter-masthead-lift{from{transform:translateY(0)}to{transform:translateY(var(--chapter-lift))}}
@keyframes chapter-exit{to{opacity:0}}
@media(prefers-reduced-motion:reduce){
 html .scroll-home .screen[data-chapter-departure] :is(.screen-image,.screen-copy h2,.screen-description,.screen-eyebrow,.screen-link,.screen-contact-links),
 html:is([data-chapter-arrival],[data-chapter-landing]) body>main{animation:none!important}
 .chapter-handoff,.chapter-handoff::after,.chapter-handoff-image,.chapter-handoff-copy{animation:none!important}
}

/* iOS touch feedback belongs to the chapter motion, not a tinted text rectangle.
   Keyboard focus retains the site's existing :focus-visible treatment. */
.scroll-home .screen-link{-webkit-tap-highlight-color:transparent}


/* A homepage journey already has its visual hero. The original document
   remains intact, but its relevant content starts directly below it. */
main[data-chapter-body]:has(>h1[data-chapter-repeat-heading]){padding-block-start:clamp(22px,4vw,40px)}
main[data-chapter-body] [data-chapter-intro]{
 padding:clamp(22px,3.4vw,44px) 4.5vw 12px;border:0;min-height:0;
}
main[data-chapter-body] [data-chapter-intro] > :last-child{margin-bottom:0}
main[data-chapter-body] :is([data-chapter-intro="projects"] > .eyebrow,[data-chapter-repeat-action]){display:none}
main[data-chapter-body] [data-chapter-intro="approach"] > h1{
 font-size:clamp(16px,2.3vw,22px)!important;line-height:1.35!important;letter-spacing:normal!important;
}
main[data-chapter-body] :is([data-chapter-intro="projects"] h1,[data-chapter-repeat-heading],.consultation-hero h1,.course-hero h1){
 position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;
 padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0!important;
}
html body main[data-chapter-body] > :is(.consultation-hero,.course-hero){
 min-height:0!important;height:auto!important;max-height:none!important;
 background:var(--paper);color:var(--ink);padding:12px 4.5vw 0;
}
main[data-chapter-body] > :is(.consultation-hero,.course-hero)::after,
main[data-chapter-body] > :is(.consultation-hero,.course-hero) > :is(.consultation-slide,.course-slide,.consultation-hero-shade,.course-hero-shade,.consultation-motion,.course-motion){
 display:none;
}
html body main[data-chapter-body] :is(.consultation-hero-copy,.course-hero-copy){
 position:static;text-shadow:none!important;
}
main[data-chapter-body] :is(.consultation-hero-copy,.course-hero-copy) .eyebrow{margin:0}
html body main[data-chapter-body] :is(.consultation-hero,.course-hero) .hero-link:is(:link,:visited){
 color:var(--ink);margin-top:0;text-shadow:none;
}
html body main[data-chapter-body] :is(.consultation-hero,.course-hero) .hero-link:focus-visible{
 outline:2px solid var(--ink);outline-offset:4px;
}
@media(max-width:850px){
 main[data-chapter-body] [data-chapter-intro],
 html body main[data-chapter-body] > :is(.consultation-hero,.course-hero){padding-inline:6vw}
}
/* Back restores the real homepage panel. The photo stays in its original
   crop while its blur clears; the title and lead descend together. */
html .scroll-home .screen[data-chapter-returning] .screen-image{
 animation:chapter-back-clear 430ms var(--chapter-ease) both;
}
html .scroll-home .screen.screen-masterclasses[data-chapter-returning] .screen-image{
 animation-name:chapter-back-clear-dimmed;
}
html .scroll-home .screen[data-chapter-returning] :is(.screen-copy h2,.screen-description){
 animation:chapter-back-drop 430ms var(--chapter-ease) both;
}
@keyframes chapter-back-clear{from{filter:blur(18px)}to{filter:blur(0px)}}
@keyframes chapter-back-clear-dimmed{from{filter:brightness(.8) blur(18px)}to{filter:brightness(.8) blur(0px)}}
@keyframes chapter-back-drop{from{transform:translateY(var(--chapter-return-lift))}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
 html .scroll-home .screen[data-chapter-returning] :is(.screen-image,.screen-copy h2,.screen-description){animation:none!important}
}


/* The same readable photo treatment as the homepage while the image sits
   behind the fixed header. Normal theme returns over the page content. */
html body.scroll-home>.header,html[data-chapter-photo-header] body>.header{
 color:#fff;background:linear-gradient(#0006,transparent)!important;border-bottom:0!important;
 -webkit-backdrop-filter:none;backdrop-filter:none;
}
html[data-chapter-photo-header] body>.header :is(a.wordmark,a.account-link,button.menu-button){
 color:#fff;
}
html[data-chapter-photo-header] body>.header :is(a,button):focus-visible{outline-color:#fff}

@media(prefers-reduced-motion:reduce){
 .chapter-handoff[data-chapter-entering] .chapter-handoff-shade::after,
 html .scroll-home .screen:is([data-chapter-departure],[data-chapter-returning])::before{animation:none!important}
}


/* Safari may restore the document under its interactive history snapshot.
   Hold the first live reverse frame until the visible document can paint. */
html .scroll-home .screen[data-chapter-return-primed] :is(.screen-image,.screen-copy h2,.screen-description),
html .scroll-home .screen[data-chapter-return-primed]::before{animation-play-state:paused}
