/* Desktop reference uses a 64vh cover inside a .752-scale catalogue. */
/* Keep the layout viewport unchanged while route transitions lock scrolling. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
/* The supplied mark is the stationary E; the original full PNG supplies K and LVAN. */
.brand,.brand:hover,.brand.open{transform:none;transition:width .72s cubic-bezier(.45,0,.55,1);height:28px;width:29px;top:17px;overflow:visible}
.brand.open{width:356.6px}
.kelvan-logo{position:relative;display:block;width:356.6px;height:28px;pointer-events:none}
.logo-e{position:absolute;left:0;top:0;width:29px;height:28px;overflow:hidden;z-index:3;background:#fff;transition:width .72s cubic-bezier(.45,0,.55,1),height .72s cubic-bezier(.45,0,.55,1),transform .72s cubic-bezier(.45,0,.55,1)}
.logo-e img{position:absolute;max-width:none;width:123.68%;height:103.14%;left:-12.59%;top:-1.57%}
.logo-k,.logo-tail{position:absolute;top:0;height:28px;background-image:url('./assets/brand/kelvan-full.png');background-size:356.6px 28px;background-repeat:no-repeat;transition:transform .72s cubic-bezier(.45,0,.55,1),clip-path .72s cubic-bezier(.45,0,.55,1);will-change:transform;z-index:1}
.logo-k{left:0;width:31.4px;background-position:0 0;transform:translateX(38px);clip-path:inset(0 100% 0 0)}
.logo-tail{left:74.4px;width:282.2px;background-position:-74.4px 0;transform:translateX(-74.4px);clip-path:inset(0 100% 0 0)}
.brand.open .logo-e{transform:translateX(38px)}
.brand.open .logo-k,.brand.open .logo-tail{transform:translateX(0);clip-path:inset(0)}
.logo-tail{width:130px}
.logo-descriptor{position:absolute;top:0;left:215.5px;width:141.1px;height:28px;background:url('./assets/brand/kelvan-full.png') -215.5px 0/356.6px 28px no-repeat;transform:translateX(-215.5px);clip-path:inset(0 100% 0 0);transition:transform .72s cubic-bezier(.45,0,.55,1),clip-path .72s cubic-bezier(.45,0,.55,1)}
.brand.open .logo-descriptor{transform:none;clip-path:inset(0)}
#menu{width:min(416.6px,100vw);padding-top:68px}
.intro-logo .kelvan-logo{width:29px}.intro-logo{width:29px}
.project-closing{pointer-events:none;z-index:2}
.project-closing>.project-cover{overflow:visible;z-index:2;will-change:transform}
.project-closing>.project-label{transition:none}
.project-closing .project-icon{will-change:transform}
/* A fixed-height, horizontally flowing credit list, never a nested scroll area. */
.rail-end{flex:0 0 auto;max-height:none!important;overflow:visible!important;padding:0 48px 0 0;min-width:268px}
.credits-flow{width:220px;height:76vh;column-width:220px;column-gap:48px;column-fill:auto;overflow:visible}
.credit-group{margin:0 0 24px;break-inside:auto}
.credit-group h2{font-size:10px;line-height:1.3;text-transform:uppercase;color:#999;margin:0 0 8px;break-after:avoid}
.credit-group p{font-size:15px;line-height:1.6;margin:0;white-space:normal;break-inside:avoid}
@media(max-width:1024px){.credits-flow{height:65vh}}
@media(max-width:767px){.brand,.brand.open,.brand:hover{top:8px;height:28px}.credits-flow{height:60vh}.brand.open{width:356.6px}.kelvan-logo{max-width:calc(100vw - 5vw);overflow:hidden}}
@media(prefers-reduced-motion:reduce){.brand,.logo-e,.logo-k,.logo-tail{transition:none}}
@media(max-width:420px){.logo-descriptor{left:0;top:34px;transform:translateY(-34px)}.brand.open .logo-descriptor{transform:none}.brand.open{height:62px;width:204px}.brand.open .kelvan-logo{height:62px}#menu{padding-top:104px}}
@media(prefers-reduced-motion:reduce){.logo-descriptor{transition:none}}
html.lenis,html.lenis body{height:auto}.lenis.lenis-smooth{scroll-behavior:auto!important}.lenis.lenis-stopped{overflow:hidden}
.projects-scaler{min-height:80vh;transform-origin:50% 0;will-change:transform}
.project-cover{transition:none}
.project-cover:hover img{transform:none}
.project-row.expanded>.project-label{opacity:0;pointer-events:none}
.project-row.expanded .project-cover img{object-fit:cover}
.project-rail{position:relative;scroll-behavior:auto!important;overflow-anchor:none;scroll-snap-type:none!important;overscroll-behavior-x:contain}
.project-rail [data-gallery]{scroll-snap-align:none!important;opacity:1;visibility:visible}
.project-opening .project-rail{overflow-x:auto;overflow-y:hidden}
.project-opening .rail-hero{position:relative;z-index:2;will-change:transform}
.project-cover:hover img{transform:none!important}
.project-row{overflow-anchor:none}
.project-rail.dragging *{pointer-events:none}
.project-rail img{-webkit-user-drag:none;user-select:none}
@media(min-width:1025px){
 #header{background:#fff;pointer-events:none}#header>*{pointer-events:auto}
 #header.has-subcategories{height:86px}
 .catalog{padding-top:98px}
 body:has(#header.has-subcategories) .catalog{padding-top:112px}
 .category>a{position:relative}
 .category.active>a::before{content:'';position:absolute;left:-4px;top:50%;width:5px;height:5px;background:#111;transform:translateY(-50%)}
 .category .subcategories{pointer-events:none;visibility:hidden;opacity:0;transform:translateY(-4px);background:#fff;top:44px}
 .category:hover .subcategories,.category:focus-within .subcategories{pointer-events:none;visibility:hidden;opacity:0;transform:translateY(-4px)}
 .category.active .subcategories{pointer-events:auto;visibility:visible;opacity:1;transform:none}
 .subcategories .view-all{display:none}
 .subcategories .selected{position:relative}
 .subcategories .selected::before{content:'';display:inline-block;width:4px;height:4px;background:#111;margin-right:7px;vertical-align:middle}
 .project-cover{width:64vh;max-width:66.49vw;margin-left:calc(50% - 32vh)}
 .project-label{right:calc(50% + 32vh + 42.55px);width:calc(50vw - 32vh - 66px)}
 .project-label h2{font-size:18.6px}.project-label p{font-size:16px}
 .project-label .project-icon{width:50.5px;height:50.5px;margin-bottom:22.6px}
 .project-row{margin-bottom:38px}
 .project-rail{gap:64px}
 .project-rail>.rail-meta{margin-left:max(24px,calc((100vw - var(--hero-width,76vh)) / 2 - 254px));flex-basis:190px;text-align:right}
 .project-rail>.rail-meta .project-icon{margin-left:auto}
 .project-rail>.rail-hero{margin-left:0}
 .rail-hero img{object-fit:cover}
}
@media(max-width:1024px){
 .projects-scaler{will-change:transform}
 .categories .category .subcategories{display:none}
 .categories .category.sub-open .subcategories{display:flex;animation:page-in .25s ease}
 .category.sub-open>a::before{content:'− '}
 .project-row.expanded .project-cover img{object-fit:contain;background:#f8f8f8}
}
@media(prefers-reduced-motion:reduce){.projects-scaler{will-change:auto}}

/* Intro and shared route motion */
#intro{animation:intro-curtain 1.45s cubic-bezier(.76,0,.24,1) .35s forwards;will-change:clip-path,opacity}
.intro-logo{animation:intro-mark 1.35s cubic-bezier(.22,1,.36,1) .28s forwards;transform-origin:center}
@keyframes intro-curtain{0%,60%{clip-path:inset(0 0 0 0);opacity:1}99%{clip-path:inset(0 0 100% 0);opacity:1}100%{clip-path:inset(0 0 100% 0);opacity:0;visibility:hidden}}
@keyframes intro-mark{0%{transform:scale(1.2);opacity:0}18%{opacity:1}62%{transform:scale(1)}100%{transform:translate(calc(-50vw + 55px),calc(-50vh + 42px)) scale(.78);opacity:0}}
.route-transitioning{overflow:hidden}.route-transitioning body{pointer-events:none}.route-transitioning #header{pointer-events:auto}

/* Progressive scroll reveals on editorial routes. */
.motion-reveal{opacity:0;transform:translate3d(0,26px,0);transition:opacity .58s ease var(--reveal-delay,0ms),transform .72s cubic-bezier(.22,1,.36,1) var(--reveal-delay,0ms);will-change:opacity,transform}
.motion-reveal.motion-visible{opacity:1;transform:translate3d(0,0,0)}
.wide-image.motion-reveal,.news-card.motion-reveal,.sustain-item.motion-reveal{transform:translate3d(0,38px,0) scale(.992)}
.wide-image.motion-visible,.news-card.motion-visible,.sustain-item.motion-visible{transform:translate3d(0,0,0) scale(1)}

/* Menus, filter disclosure, and backdrop. */
.menu-backdrop{animation:backdrop-in .35s ease both;backdrop-filter:blur(2px)}
.menu-backdrop.leaving{animation:backdrop-out .3s ease both;pointer-events:none}
@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes backdrop-out{from{opacity:1}to{opacity:0}}
#menu.open a{animation:menu-link-in .5s cubic-bezier(.22,1,.36,1) both}
#menu.open a:nth-child(2){animation-delay:.035s}#menu.open a:nth-child(3){animation-delay:.07s}#menu.open a:nth-child(4){animation-delay:.105s}#menu.open a:nth-child(5){animation-delay:.14s}#menu.open a:nth-child(6){animation-delay:.175s}#menu.open a:nth-child(7){animation-delay:.21s}
@keyframes menu-link-in{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:translateX(0)}}
.filter-toggle span{transition:width .3s cubic-bezier(.22,1,.36,1),transform .35s ease,opacity .2s}
.categories.open+.search-trigger+.filter-toggle span:nth-child(1){width:16px;transform:translateY(5px) rotate(45deg)}
.categories.open+.search-trigger+.filter-toggle span:nth-child(2),.categories.open+.search-trigger+.filter-toggle span:nth-child(3){opacity:0;transform:scaleX(0)}
.categories.open+.search-trigger+.filter-toggle span:nth-child(4){width:16px;transform:translateY(-10px) rotate(-45deg)}
.subcategories a{transition:color .22s ease,transform .25s ease}.subcategories a:hover{transform:translateY(-2px)}

/* Project list and expanded project choreography. */
@media(min-width:1025px){.project-cover:hover img{transform:scale(1.012)}.project-label h2 a{display:inline-block;transition:transform .35s cubic-bezier(.22,1,.36,1)}.project-row:hover .project-label h2 a{transform:translateX(-4px)}}
.rail-tools{opacity:0;animation:rail-tools-in .4s ease 1.25s forwards}
@keyframes rail-tools-in{to{opacity:1}}
.rail-arrows button{transition:transform .25s ease,color .2s}.rail-arrows button:hover:first-child{transform:translateX(-5px)}.rail-arrows button:hover:last-child{transform:translateX(5px)}

.motion-details::details-content{block-size:0;opacity:0;overflow:hidden;transition:block-size .42s cubic-bezier(.22,1,.36,1),opacity .28s ease,content-visibility .42s;transition-behavior:allow-discrete}
.motion-details[open]::details-content{block-size:auto;opacity:1}
.rail-end .motion-details summary::after{content:'+';float:right;transition:transform .35s ease}.rail-end .motion-details[open] summary::after{transform:rotate(45deg)}

/* Dialogs enter and leave rather than appearing abruptly. */
dialog{opacity:0;transform:translateY(18px) scale(.985);transition:opacity .34s ease,transform .48s cubic-bezier(.22,1,.36,1),overlay .34s allow-discrete,display .34s allow-discrete}
dialog::backdrop{background:rgba(255,255,255,.88);opacity:0;backdrop-filter:blur(0);transition:opacity .34s ease,backdrop-filter .34s ease,overlay .34s allow-discrete,display .34s allow-discrete}
dialog.motion-open{opacity:1;transform:translateY(0) scale(1)}dialog.motion-open::backdrop{opacity:1;backdrop-filter:blur(7px)}
dialog.motion-closing{opacity:0;transform:translateY(10px) scale(.99)}dialog.motion-closing::backdrop{opacity:0;backdrop-filter:blur(0)}
#lightbox.motion-opening img{animation:lightbox-image-in .65s cubic-bezier(.22,1,.36,1) both}
@keyframes lightbox-image-in{from{opacity:0;transform:scale(.965)}to{opacity:1;transform:scale(1)}}
.lightbox-prev,.lightbox-next,.lightbox-close{transition:transform .25s ease}.lightbox-prev:hover{transform:translateX(-5px)}.lightbox-next:hover{transform:translateX(5px)}.lightbox-close:hover{transform:rotate(90deg)}

/* The two outside 22% zones match the reference's directional gallery cursor. */
.project-rail[data-cursor="restore"],.project-rail[data-cursor="restore"] [data-gallery],.project-rail[data-cursor="restore"] .rail-hero{cursor:zoom-in}
.project-rail[data-cursor="left"],.project-rail[data-cursor="left"] [data-gallery],.project-rail[data-cursor="left"] .rail-hero{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M29 18H7m9-10L6 18l10 10' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M29 18H7m9-10L6 18l10 10' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 18 18,w-resize}
.project-rail[data-cursor="right"],.project-rail[data-cursor="right"] [data-gallery],.project-rail[data-cursor="right"] .rail-hero{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M7 18h22M20 8l10 10-10 10' fill='none' stroke='%23000' stroke-width='4'/%3E%3Cpath d='M7 18h22M20 8l10 10-10 10' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 18 18,e-resize}
.project-rail[data-cursor="middle"],.project-rail[data-cursor="middle"] [data-gallery],.project-rail[data-cursor="middle"] .rail-hero{cursor:default}

/* The reference crops the opening project image on phones so the 60vh stage stays full-bleed. */
@media(max-width:767px){.rail-hero img{object-fit:cover}.catalog{padding-top:60px}}

@media(prefers-reduced-motion:reduce){#intro{display:none}.motion-reveal{opacity:1;transform:none}.rail-tools{opacity:1;animation:none}.menu-backdrop,.menu-backdrop.leaving{animation:none}dialog,dialog::backdrop{transition:none}.motion-details::details-content{transition:none}}

/* Photographs own their aspect ratio: no contain-box or colored side bands. */
.rail-photo{width:auto;max-width:none!important;background:transparent!important;object-fit:contain}
.rail-hero{width:calc(76vh * var(--ratio));max-width:none!important}
.rail-hero img{width:100%;height:76vh;max-width:none;object-fit:contain!important;background:transparent!important}
.rail-meta{position:relative;display:flex;flex-direction:column;min-height:76vh}
.rail-meta .share{margin-top:auto;padding-top:24px;justify-content:flex-end}
.share a,.share button{width:20px;height:20px;padding:3px}
.share svg{width:14px;height:14px;fill:currentColor}
@media(max-width:1024px){.rail-hero{width:calc(65vh * var(--ratio));flex:none}.rail-hero img{height:65vh}.rail-meta{min-height:65vh}}
@media(max-width:767px){.rail-hero{width:calc(60vh * var(--ratio));flex:none}.rail-hero img{height:60vh}.rail-meta{min-height:60vh}.rail-meta .share{justify-content:flex-start}}

/* Original 78-frame reference, not a CSS approximation of the letter animation. */
.brand,.brand.open,.brand:hover{left:30px;top:7.05px;width:208.65px;height:49.25px;transform:none;transition:none;overflow:visible}
.reference-logo{display:block;width:208.65px;height:49.25px;background:url('./assets/brand/motion/000.png') center/100% 100% no-repeat;filter:invert(1);mix-blend-mode:multiply}
#menu{width:268.65px;padding-top:76px}
.intro-logo{width:208.65px}.intro-logo .reference-logo{filter:none;mix-blend-mode:normal}
@media(max-width:767px){.brand,.brand.open,.brand:hover{left:5vw;top:-1.95px;height:49.25px;width:208.65px}#menu{padding-top:76px}}

/* Clean closed endpoint; no neighboring strokes outside the supplied E. */
.reference-logo{opacity:1}
.reference-logo[data-resting="true"]{clip-path:inset(19.52% 66.94% 22.26% 18.75%)}
.brand,.brand.open,.brand:hover{top:22px}
#menu{padding-top:96px}
html{scroll-behavior:auto}
/* A single composited stage avoids fractional image edges bleeding into copy. */
.rail-copy,.rail-meta,.rail-end{background:#fff;position:relative;isolation:isolate;border:0;outline:0}
.project-rail{isolation:isolate;backface-visibility:hidden}
.rail-photo,.rail-hero{backface-visibility:hidden;outline:1px solid transparent}
#intro{animation:none;will-change:background-color}
.intro-logo{animation:none;transform:none;will-change:transform,filter}
@media(max-width:767px){.brand,.brand.open,.brand:hover{top:10px}#menu{padding-top:96px}}
/* Requested outlined chevron, mirrored on the left; interaction zones unchanged. */
.project-rail[data-cursor="left"],.project-rail[data-cursor="left"] [data-gallery],.project-rail[data-cursor="left"] .rail-hero{cursor:url('./assets/chevron-left.svg') 18 24,w-resize}
.project-rail[data-cursor="right"],.project-rail[data-cursor="right"] [data-gallery],.project-rail[data-cursor="right"] .rail-hero{cursor:url('./assets/chevron-right.svg') 18 24,e-resize}
/* 70% of the approved canvas size, identical at both animation endpoints. */
.brand,.brand.open,.brand:hover,.reference-logo{width:146.055px;height:34.475px}
.intro-logo{width:146.055px}
#menu{width:206.055px}
#intro{background:transparent}
.intro-curtain{position:absolute;inset:0;background:#000}
.intro-logo{position:relative;z-index:1;mix-blend-mode:difference}
.intro-logo .reference-logo{filter:none;mix-blend-mode:normal}
.intro-playing .brand canvas{visibility:hidden}
/* Use the new vector caption throughout the caption portion of the motion. */
.logo-caption{position:absolute;left:0;top:25px;width:146.055px;height:12px;display:none;overflow:visible;pointer-events:none;fill:#111}
.reference-logo[data-vector-caption="true"]{clip-path:inset(0 0 var(--logo-wordmark-cutoff) 0)}
.reference-logo[data-vector-caption="true"]+.logo-caption{display:block;opacity:var(--logo-caption-opacity,0)}
.intro-logo>.logo-caption{fill:#fff}
.intro-playing .brand>.logo-caption{visibility:hidden}

/* Keep the moving frame independent of the photograph's proportions. */
.project-row > .project-photo-in-flight,
.project-rail > .project-photo-in-flight {
  position: relative;
  overflow: hidden;
  height: var(--flight-box-height);
}
.project-row .project-photo-in-flight > img {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--flight-width);
  height: var(--flight-height);
  max-width: none;
  transform-origin: 0 0;
  /* The inverse scale must track the frame on the same animation tick. */
  transition: none;
  transform: var(--flight-correction) !important;
  object-fit: cover !important;
}
