html,body{background:#fff;color:#080808}html{scroll-behavior:auto}body{overflow-x:clip}
html:has(.gallery-shell) .landing-header{top:2.4vw;left:1.2vw;right:1.2vw;color:#080808!important;background:transparent!important;mix-blend-mode:normal}
html:has(.gallery-shell) .landing-header a{color:#080808!important}
html:has(.gallery-shell) .landing-header .header-wordmark{font-size:clamp(24.2px,1.54vw,33px)}
html:has(.gallery-shell) .landing-header nav{gap:1.2vw}
html:has(.gallery-shell) .landing-header nav a{font-size:clamp(18px,1.4vw,30px);font-weight:700;letter-spacing:-.045em;text-transform:none}
html[data-footer-visible=true]:has(.gallery-shell) .landing-header a{color:#fff!important}
.gallery-shell{position:relative;background:#fff;color:#080808}
.gallery-shell .sequence{margin:0;padding:0;min-height:100svh}
.gallery-opening{min-height:100svh;background:#fff}
.reference-gallery{width:100%;container-type:inline-size;background:#fff;color:#080808;flex-shrink:0}
.gallery-rail{display:flex;gap:2.3cqw;padding:8.35cqw 2.5cqw 6cqw;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:none;scroll-padding-inline:2.5cqw;scrollbar-width:none;scrollbar-color:#ccc transparent}
.gallery-card{display:block;flex:0 0 calc(34.968cqw * var(--preview-ratio,1.7777778));min-width:0;text-decoration:none;color:inherit;scroll-snap-align:start;cursor:pointer}
.gallery-image{position:relative;aspect-ratio:var(--preview-ratio,1.7777778);overflow:hidden;background:#eee}
.gallery-image>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.gallery-mask{position:absolute;inset:0;background:var(--project-color);clip-path:inset(100% 0 0);transition:clip-path .65s cubic-bezier(.22,.68,.2,1);display:flex;align-items:center;justify-content:center;pointer-events:none}
.gallery-mask img{position:static;width:84%;height:84%;object-fit:contain;display:block;opacity:1}
.gallery-card h2{font-family:SpotlightWordmark,Manrope,Arial,sans-serif;font-weight:800;font-size:1.6cqw;letter-spacing:-.055em;line-height:1.05;margin:.4cqw 0 0;text-transform:uppercase}
.gallery-card:focus-visible{outline:2px solid currentColor;outline-offset:5px}.gallery-card:focus-visible .gallery-mask,.gallery-card.is-touch-preview .gallery-mask{clip-path:inset(0)}
.gallery-card:focus-visible h2{text-decoration:underline;text-underline-offset:.1em}
@media(hover:hover) and (pointer:fine){.gallery-card:hover .gallery-mask{clip-path:inset(0)}.gallery-card:hover h2{text-decoration:underline;text-underline-offset:.1em}}
.number-panel.stack-landing-tile{background:#fff!important}.stack-landing-tile .reference-gallery{position:absolute;inset:0;width:100%;height:100%;font-size:initial!important}
.stack-landing-tile .gallery-rail{overflow:hidden;height:100%;box-sizing:border-box}
.stack-landing-tile .gallery-card{pointer-events:none}
.stack-landing-tile .tile-navigation,.stack-landing-tile .tile-wordmark{color:#080808}
.gallery-shell+.footer-reveal-track{margin-top:0}
.square-intro.first-focus .square-stage{animation:gallery-first-blur 1.8s cubic-bezier(.25,.1,.2,1) both}
@keyframes gallery-first-blur{0%{filter:blur(13px)}100%{filter:blur(0)}}
@media(max-width:1000px),(max-height:540px){.gallery-rail{padding-top:120px;gap:5cqw}.gallery-card{flex-basis:calc(76.759cqw * var(--preview-ratio,1.7777778))}.gallery-card h2{font-size:5cqw;margin-top:3cqw}html:has(.gallery-shell) .landing-header{top:22px;left:4vw;right:4vw}html:has(.gallery-shell) .landing-header nav{gap:16px}html:has(.gallery-shell) .landing-header nav a{font-size:14px}html:has(.gallery-shell) .landing-header .header-wordmark{font-size:24.2px}}
@media(max-width:360px){html:has(.gallery-shell) .landing-header nav{gap:10px}html:has(.gallery-shell) .landing-header nav a{font-size:12px}}
@media(prefers-reduced-motion:reduce){.gallery-mask{transition:none}.square-intro.first-focus .square-stage{animation:none}}
.reference-gallery .gallery-image>img{position:static;opacity:1;inset:auto}
.gallery-rail::-webkit-scrollbar{display:none}
.gallery-opening{position:sticky;top:0}
.gallery-genre{font:500 max(11px,.72cqw)/1.2 ui-monospace,SFMono-Regular,monospace;letter-spacing:.08em;text-transform:uppercase;color:#777;margin:1.25cqw 0 0}
.gallery-role{font-family:SpotlightWordmark,Manrope,Arial,sans-serif;font-weight:800;font-size:1.6cqw;letter-spacing:-.055em;line-height:1.05;color:#aaa;margin:.12cqw 0 0;text-transform:uppercase}
.gallery-card:hover .gallery-role,.gallery-card:focus-visible .gallery-role{color:#080808}
@media(max-width:1000px),(max-height:540px){.gallery-genre{font-size:11px;margin-top:16px}.gallery-card h2{margin-top:6px}.gallery-role{font-size:5cqw;margin-top:3px}}
.gallery-genre,.gallery-role{color:#757575}
@media(max-height:540px) and (min-width:1001px){.gallery-rail{padding-top:80px;padding-bottom:20px;gap:2.3cqw}.gallery-card{flex-basis:min(32.8cqw,70svh)}.gallery-card h2,.gallery-role{font-size:20px}.gallery-genre{margin-top:12px}}
/* Angled, staggered project wall wipes in after the final horizontal card. */
.gallery-archive-track{display:contents}
.all-projects-reveal{position:fixed;inset:0;height:100svh;z-index:3;overflow:hidden;background:#111;clip-path:inset(0 0 0 calc((1 - var(--reveal,0))*100%));display:grid;place-items:center}
 .all-projects-grid{--wall-gap:clamp(12px,1.8vw,32px);--wall-tile:calc((116vw - 3 * var(--wall-gap))/4);position:absolute;left:-8%;right:-8%;top:50%;display:grid;grid-template-rows:repeat(5,calc(var(--wall-tile)*9/16));gap:var(--wall-gap);transform:translateY(-50%) rotate(-7deg) scale(1.04);pointer-events:none}
.archive-row{min-height:0;position:relative}
.archive-row:nth-child(even){left:calc((var(--wall-tile) + var(--wall-gap)) / -2)}
.archive-row-track{display:flex;width:max-content;height:100%;animation:archive-drift 100s linear infinite}
.archive-row:nth-child(odd) .archive-row-track{animation-direction:reverse}
.archive-row-group{display:flex;gap:var(--wall-gap);padding-right:var(--wall-gap);height:100%;flex:none}
.all-projects-grid img{display:block;flex:none;width:var(--wall-tile);height:100%;min-height:0;object-fit:contain;border-radius:2px}
@keyframes archive-drift{from{transform:translateX(-25%)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.archive-row-track{animation:none;transform:translateX(-25%)}}
.all-projects-shade{position:absolute;inset:0;background:rgba(0,0,0,.52);pointer-events:none}
html[data-archive-visible=true]:has(.gallery-shell) .landing-header a{color:white!important}
@media(max-width:700px){.all-projects-grid{--wall-gap:16px;--wall-tile:max(56vw,48svh);left:-35%;right:-35%}}
/* Hover: color dissolves while the interior image wipes upward simultaneously. */
.gallery-mask{background:transparent;clip-path:none;transition:none}
.gallery-mask::before{content:"";position:absolute;inset:0;background:var(--project-color);opacity:0;transition:opacity .65s cubic-bezier(.22,.68,.2,1)}
.gallery-mask img{position:relative;z-index:1;clip-path:inset(100% 0 0);transition:clip-path .65s cubic-bezier(.22,.68,.2,1)}
.gallery-card:focus-visible .gallery-mask::before,.gallery-card.is-touch-preview .gallery-mask::before{opacity:1}
.gallery-card:focus-visible .gallery-mask img,.gallery-card.is-touch-preview .gallery-mask img{clip-path:inset(0)}
@media(hover:hover) and (pointer:fine){.gallery-card:hover .gallery-mask::before{opacity:1}.gallery-card:hover .gallery-mask img{clip-path:inset(0)}}
@media(prefers-reduced-motion:reduce){.gallery-mask::before,.gallery-mask img{transition:none}}
.all-projects-reveal.is-footer-underlay{position:fixed;inset:0}
.gallery-shell+.footer-reveal-track{z-index:4}
.gallery-shell+.footer-reveal-track>.square-footer{position:fixed;inset:0;top:0;height:100svh;clip-path:inset(calc((1 - var(--footer-reveal,0))*100%) 0 0);pointer-events:none}
.gallery-shell+.footer-reveal-track>.square-footer .square-footer-links{pointer-events:auto}
@media(prefers-reduced-motion:reduce){.gallery-shell+.footer-reveal-track{height:125svh}}
/* Opaque project color precedes the resting image as each card enters. Hover stays independent. */
.reference-gallery .gallery-image{background:var(--rest-color,var(--project-color))}
.reference-gallery .gallery-image>img{clip-path:none}
.reference-gallery .gallery-image::after{content:"";position:absolute;inset:0;background:var(--project-color);opacity:1;transition:opacity .8s ease-out;pointer-events:none;z-index:1}
.reference-gallery .gallery-mask{z-index:2}
.reference-gallery .gallery-card.has-entered .gallery-image::after{opacity:0}
@media(prefers-reduced-motion:reduce){.reference-gallery .gallery-image::after{opacity:0}}

/* Existing project renderer, not a fabricated animation of a still. */
.gallery-live-study{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none;background:white}
@media(prefers-reduced-motion:reduce){.gallery-live-study{display:none}}

.gallery-mask:has(.gallery-live-inset)>img{display:none}
.gallery-live-inset{position:relative;inset:auto;width:84%;height:84%;z-index:1;clip-path:inset(100% 0 0);transition:clip-path .65s cubic-bezier(.22,.68,.2,1)}
.gallery-card:focus-visible .gallery-live-inset,.gallery-card.is-touch-preview .gallery-live-inset{clip-path:inset(0)}
@media(hover:hover) and (pointer:fine){.gallery-card:hover .gallery-live-inset{clip-path:inset(0)}}
.gallery-card[href="homepage-madden.html"] .gallery-live-study,.gallery-card[href="homepage-madden.html"] .gallery-mask img{background:#e5e5e5}
@media(prefers-reduced-motion:reduce){.gallery-mask:has(.gallery-live-inset)>img{display:block}.gallery-live-inset{transition:none}}

.gallery-card[href="homepage-redeye.html"],.gallery-card[href="homepage-wanted.html"],.gallery-card[href="homepage-motion-studies.html"]{--preview-ratio:1.5}
.gallery-card[href="homepage-cats.html"]{--preview-ratio:1.7962185}

/* Latest direction: one consistent 3:2 frame for every project. */
.gallery-card{--preview-ratio:1.7777777778!important}

/* The flight surface uses full viewport layout, then scales as one intact view. */
.stack-landing-tile .reference-gallery{text-align:left;letter-spacing:normal;line-height:normal;font-weight:normal}
/* Reference demo is a complete landscape composition: retain its 16:9 canvas. */
.gallery-live-inset[data-preview-src^="gallery-hover-redeye.html"]{height:auto;aspect-ratio:16/9;max-height:84%;}

/* Loading never replaces a complete fallback with an unpainted frame. */
.gallery-live-study[data-preview-state]{visibility:hidden}
.gallery-live-study[data-preview-state="ready"]{visibility:visible}
.gallery-mask:has(.gallery-live-inset[data-preview-state])>img{display:block;position:absolute;left:8%;top:8%;width:84%;height:84%}
.gallery-mask:has(.gallery-live-inset[data-preview-state="ready"])>img{visibility:hidden}
@media(prefers-reduced-motion:reduce){.gallery-mask:has(.gallery-live-inset)>img{visibility:visible}}

/* Each glyph inverts the pixels immediately beneath it, including split backgrounds. */
html:has(.gallery-shell) .landing-header{mix-blend-mode:difference!important;color:#fff!important;isolation:auto}
html:has(.gallery-shell) .landing-header a,html[data-footer-visible=true]:has(.gallery-shell) .landing-header a{color:#fff!important}
.gallery-rail{padding-inline-end:2.3cqw}
@media(max-width:1000px),(max-height:540px){.gallery-rail{padding-inline-end:5cqw}}

.gallery-card .gallery-role{text-transform:none}
/* Madden's complete preview is framed on all four sides, not cropped. */
.gallery-card[href="homepage-madden.html"] .gallery-image{border:1px solid #c5c5c5;box-sizing:border-box;background:#b8c2ae}

/* Frame both the live hover slide and its loading/reduced-motion fallback. */
.gallery-card[href="homepage-madden.html"] .gallery-live-inset,.gallery-card[href="homepage-madden.html"] .gallery-mask>img{border:1px solid #c5c5c5;box-sizing:border-box}
/* Gallery-only copy interaction: draw both underlines from their left edge. */
.reference-gallery .gallery-card h2,.reference-gallery .gallery-card .gallery-role{width:fit-content;max-width:100%;position:relative;text-decoration:none!important}
.reference-gallery .gallery-card h2{word-spacing:.12em}
.reference-gallery .gallery-card h2::after,.reference-gallery .gallery-card .gallery-role::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:2px;background:currentColor;transform:scaleX(0);transform-origin:left center;transition:transform .4s cubic-bezier(.22,.68,.2,1)}
.reference-gallery .gallery-card:focus-visible h2::after,.reference-gallery .gallery-card:focus-visible .gallery-role::after,.reference-gallery .gallery-card.is-touch-preview h2::after,.reference-gallery .gallery-card.is-touch-preview .gallery-role::after{transform:scaleX(1)}
@media(hover:hover) and (pointer:fine){.reference-gallery .gallery-card:hover h2::after,.reference-gallery .gallery-card:hover .gallery-role::after{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.reference-gallery .gallery-card h2::after,.reference-gallery .gallery-card .gallery-role::after,.reference-gallery .gallery-image::after{transition:none}}

/* First visible projects and the incoming panel remain clear, with no color veil. */
.reference-gallery .gallery-card:nth-child(-n+2) .gallery-image::after,.stack-landing-tile .reference-gallery .gallery-image::after{opacity:0;transition:none}
/* Override the old lime placeholder title on the real incoming gallery. */
.stack-landing-tile .reference-gallery.stack-tile-title,.reference-gallery .gallery-card h2{color:#080808}

/* Red Eye opens on its real prepared animation, never a mismatched still flash.
   Keep the original image available for terminal failure and reduced motion. */
@media(prefers-reduced-motion:no-preference){.gallery-card[href="homepage-redeye.html"] .gallery-image:has(>.gallery-live-study[data-preview-state="pending"])>img,.gallery-card[href="homepage-redeye.html"] .gallery-image:has(>.gallery-live-study[data-preview-state="loading"])>img{visibility:hidden}}
/* Match gallery role spacing to its title; retain the existing 10% wordmark increase. */
.reference-gallery .gallery-card .gallery-role{word-spacing:.12em}
/* The ticket hover must not briefly show the resting-logo still while its real
   flyer/details/QR prepare. Color + the existing mask remain; terminal failure
   and reduced-motion still retain their static fallback. */
@media(prefers-reduced-motion:no-preference){
 .gallery-card[href="homepage-redeye.html"] .gallery-mask:has(>.gallery-live-inset[data-preview-state="pending"])>img,
 .gallery-card[href="homepage-redeye.html"] .gallery-mask:has(>.gallery-live-inset[data-preview-state="loading"])>img{visibility:hidden!important}
}
/* Opening wordmark only: halve the former side breathing room (~3.5% → ~1.7%). */
.square-intro .square-wordmark{font-size:19.7vw}

/* Footer-only: shared header edges and independent sequential item masks. */
.square-footer{--footer-edge:1.2vw;padding-left:0;padding-right:0}
.square-footer .square-footer-links{left:var(--footer-edge-left,var(--footer-edge));right:var(--footer-edge-right,var(--footer-edge));width:auto;transform:none;clip-path:none;display:flex;justify-content:flex-end;gap:24px}
.square-footer .square-footer-links>a{flex:none;margin:0;text-align:left;clip-path:none;transform:translateY(120px);opacity:0}
.square-footer .square-footer-links>a[href^="mailto:"]{order:0;margin:0 auto 0 0}
.square-footer .square-footer-links>a[download]{order:1}
.square-footer .square-footer-links>a[href^="https://www.linkedin"]{order:2}
.square-footer .square-footer-links>.footer-top{order:3}
@media(max-width:1000px),(max-height:540px){.square-footer{--footer-edge:4vw}}
@media(max-width:600px){.square-footer .square-footer-links{gap:10px;font-size:clamp(9px,2.6vw,13px)}}
@media(prefers-reduced-motion:reduce){.square-footer .square-footer-links>a{clip-path:none!important;transform:none!important;opacity:1!important}}
html[data-motion=off] .square-footer .square-footer-links>a{clip-path:none!important;transform:none!important;opacity:1!important}

/* Eyebrows share project typography, retaining secondary size and gray. */
.reference-gallery .gallery-genre{font-family:SpotlightWordmark,Manrope,Arial,sans-serif;font-weight:400}

/* Local16:9 camera handoff: actual first gallery card anchors tile13. */
.number-panel.stack-landing-tile{overflow:visible;background:transparent!important}
.stack-landing-tile .reference-gallery{background:transparent}
.stack-landing-tile .gallery-rail{overflow:visible}
.stack-landing-tile .gallery-card:nth-child(n+3){visibility:hidden}
.stack-landing-tile .gallery-card h2,.stack-landing-tile .gallery-genre,.stack-landing-tile .gallery-role{clip-path:inset(-.25em 100% -.35em 0)}

/* Red Eye's wider resting canvas stays solid black through the side gutters. */
.gallery-card[href="homepage-redeye.html"] .gallery-image{background:#000}
.gallery-card[href="homepage-redeye.html"] .gallery-image>.gallery-live-study{background:#000}

/* Inert alone does not suppress :hover; no reveal before actual DOM landing. */
.stack-landing-tile .gallery-card .gallery-mask{clip-path:inset(100% 0 0)!important;transition:none!important}

/* Wait for the real gallery landing beat, without suppressing the resting eye. */
.reference-gallery[data-landing-beat="waiting"] .gallery-card[href="homepage-redeye.html"] .gallery-mask{clip-path:inset(100% 0 0)!important;transition:none!important}

/* Time-based wordmark keeps rendering above early panel flight for overlap. */
.square-intro[data-intro-active="true"] .square-stage{position:fixed;inset:0;z-index:2;pointer-events:none}
.reference-gallery[data-info-beat="waiting"] .gallery-card:nth-child(-n+2) :is(.gallery-genre,h2,.gallery-role){clip-path:inset(-.25em 100% -.35em 0)}

/* Keep the animating layers at rest, not just their wrapper hidden, so an
   already-hovered landing opens from the same pose as an intentional hover. */
:is(.stack-landing-tile,.reference-gallery[data-landing-beat="waiting"]) .gallery-card[href="homepage-redeye.html"] .gallery-mask::before,
.gallery-card[href="homepage-redeye.html"] .gallery-mask:has(iframe:is([data-preview-state="pending"],[data-preview-state="loading"]))::before{
 opacity:0!important;transition:none!important
}
:is(.stack-landing-tile,.reference-gallery[data-landing-beat="waiting"]) .gallery-card[href="homepage-redeye.html"] .gallery-mask :is(.gallery-live-inset,img),
.gallery-card[href="homepage-redeye.html"] .gallery-mask:has(iframe:is([data-preview-state="pending"],[data-preview-state="loading"])) :is(.gallery-live-inset,img){
 clip-path:inset(100% 0 0)!important;transition:none!important
}

/* Flight stays absent before the opening gesture, including first paint. */
.number-zoom{visibility:hidden}
/* A parked pointer cannot reveal Red Eye while its live card is landing. */


/* Sage surrounds the default sales slide; preserve the hover board artwork. */
.gallery-card[href="homepage-madden.html"] .gallery-image>.gallery-live-study{background:#b8c2ae}

/* CATS has no poster state: await its real composition against brand yellow. */
.gallery-card[href="homepage-cats.html"] .gallery-image{background:#ffee00}
@media(prefers-reduced-motion:reduce){.gallery-card[href="homepage-cats.html"] .gallery-live-study{display:block}}

/* Reveal stays crisp; exit takes a softer, slightly longer beat. CSS transitions
   reverse from their current value on rapid re-entry, without restart timers. */
@media(prefers-reduced-motion:no-preference){
 .gallery-mask::before,.gallery-mask img,.gallery-live-inset{transition-duration:.85s}
 .gallery-card:is(:focus-visible,.is-touch-preview) :is(.gallery-mask img,.gallery-live-inset),
 .gallery-card:is(:focus-visible,.is-touch-preview) .gallery-mask::before{transition-duration:.65s}
}
@media(prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine){
 .gallery-card:hover :is(.gallery-mask img,.gallery-live-inset),
 .gallery-card:hover .gallery-mask::before{transition-duration:.65s}
}

/* Flight re-parents the live gallery into a numbered panel. These real images
   must not inherit the opacity reset intended for the panel's still artwork. */
.stack-landing-tile .gallery-redeye-rest>.gallery-redeye-brand,
.stack-landing-tile .wanted-rest-art>img{opacity:1}
.stack-landing-tile .gallery-redeye-rest>.gallery-redeye-brand{inset:auto}
/* Wanted flies as art alone; settled gallery keeps its designed navigation. */
.stack-landing-tile .wanted-rest-nav,.stack-landing-tile .gallery-card[href="homepage-wanted.html"] .gallery-mask{visibility:hidden}
.stack-landing-tile .wanted-rest-art{top:0}

/* Used only after a requested opening is still waiting on its actual artwork. */
.spotlight-flight-status:not([hidden]){
 position:fixed;inset:auto auto max(24px,env(safe-area-inset-bottom)) 50%;z-index:3;
 transform:translateX(-50%);padding:8px 13px;border:1px solid #cfcfce;
 color:#171717;background:#fff;font:500 13px/1.4 Manrope,Arial,sans-serif;pointer-events:none
}

/* Keep the stable eye source visible while its separate motion layers decode. */
.gallery-redeye-eye:is([data-eye-art=pending],[data-eye-art=still]) svg .motion{display:none!important}
.gallery-redeye-eye:is([data-eye-art=pending],[data-eye-art=still]) svg .motion-static{display:inline!important}

.gallery-mask>.gallery-phone-ticket-poster{display:none!important}

/* The gallery has one set of project and navigation links. On phones the
   document owns vertical movement; the desktop rail and horizontal wall remain. */
@media(max-width:760px),(max-width:940px) and (max-height:480px) and (pointer:coarse) and (orientation:landscape){
 .gallery-opening{position:relative;top:auto}
 html[data-phone-flight-join][data-panel-sequence=running] .gallery-opening .reference-gallery{
  visibility:hidden;opacity:0;pointer-events:none
 }

 .gallery-opening .gallery-rail{
  display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(62px,15vw,112px);
  padding:clamp(88px,15svh,128px) 0 clamp(58px,14vw,100px);overflow:visible;
  overscroll-behavior:initial;scroll-padding:0;touch-action:auto!important
 }
 .gallery-opening .gallery-card{width:100%;scroll-margin-top:78px;scroll-snap-align:none}
 .gallery-opening .gallery-card:focus-visible{outline-offset:-2px}
 .gallery-opening .gallery-card :is(.gallery-genre,h2,.gallery-role){
  margin-inline:clamp(16px,5vw,32px);clip-path:none;opacity:1;text-decoration:none
 }
 .gallery-opening .gallery-card h2{font-size:clamp(22px,6.4vw,42px);margin-block-start:14px}
 .gallery-opening .gallery-card .gallery-role{font-size:clamp(14px,4vw,25px);margin-block-start:4px}
 .gallery-opening .gallery-card .gallery-genre{display:none}
 .gallery-opening .gallery-card :is(h2,.gallery-role,.gallery-image)::after{display:none}
 .gallery-opening .gallery-card .gallery-mask{display:none}
 html:has(.gallery-shell) .gallery-opening .reference-gallery .gallery-card .gallery-mask:has(>[data-phone-default]){
  display:block;clip-path:none!important;visibility:visible!important;transition:none
 }
 .gallery-opening .gallery-card:has([data-phone-default]) :is(.gallery-redeye-rest,.wanted-rest-composition){
  visibility:hidden
 }
 html:has(.gallery-shell) .gallery-opening .reference-gallery .gallery-card .gallery-mask:has(>[data-phone-default])::before{
  opacity:1!important;transition:none;background:var(--project-color)
 }
 html:has(.gallery-shell) .gallery-opening .reference-gallery .gallery-card .gallery-mask:has(>[data-phone-default])>img,
 .gallery-opening .gallery-card .gallery-mask>[data-phone-default]{
  position:absolute;inset:0;width:100%;height:100%;max-height:100%;
  clip-path:none!important;transition:none;object-fit:contain
 }
 html:has(.gallery-shell) .gallery-opening .reference-gallery .gallery-card .gallery-mask:has(>[data-phone-default])>img{
  display:block!important;visibility:visible!important
 }
 .gallery-opening .gallery-card .gallery-mask>[data-phone-default]{
  z-index:2;background:none;opacity:0;transition:opacity 200ms ease
 }
 html:has(.gallery-shell) .gallery-opening .reference-gallery .gallery-card .gallery-mask:has(>[data-phone-default^="ticket"])::before{
  background:#080b11
 }
 @media(prefers-reduced-motion:no-preference){
  html:not([data-motion=off],[data-phone-flight-join]) .gallery-opening .gallery-card .gallery-mask>[data-phone-default][data-preview-state="ready"]{opacity:1}
 }
 html[data-motion=off] .gallery-opening .gallery-card .gallery-mask>[data-phone-default]{display:none}

 .gallery-opening .gallery-card .gallery-role{color:#757575}
 .gallery-opening .all-projects-reveal{
  position:relative;inset:auto;width:100%;height:100svh;min-height:300px;
  clip-path:inset(calc((1 - var(--reveal,1))*100%) 0 0)
 }
 .gallery-opening .all-projects-reveal:focus-within{clip-path:none}
 html[data-phone-archive] .gallery-opening .gallery-archive-track{display:block;height:100svh}
 html[data-phone-archive] .gallery-opening .all-projects-reveal{
  position:fixed;inset:0;max-width:none;width:100%;height:100svh;min-height:0;
  margin:0;padding:0
 }
 html[data-phone-archive] .gallery-opening .all-projects-reveal[inert]{pointer-events:none}
 .gallery-opening .all-projects-grid{left:-30%;right:-30%}
 .gallery-opening .all-projects-reveal:not(:focus-within):not([style*="--reveal"]) .archive-row-track{animation-play-state:paused}

 @media(prefers-reduced-motion:reduce){
  .gallery-opening .all-projects-reveal{clip-path:none}
 }
}
