@font-face{font-family:'Fjalla One';src:url('./assets/fonts/FjallaOne-Latin.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:root{font-family:'Fjalla One',Arial,Helvetica,sans-serif;color:#181918;background:#f7f7f2;font-synthesis:none;letter-spacing:.04em;--paper:#f7f7f2;--ink:#181918;--accent:#fb4c25}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,.gallery:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{border:0;background:none}main{min-height:100svh;display:flex;flex-direction:column;overflow:hidden}.header{height:clamp(135px,20svh,205px);padding:30px 36px;display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start}.wordmark{font-size:clamp(24px,2.65vw,42px);font-weight:750;letter-spacing:-.03em;line-height:1;white-space:nowrap;justify-self:start}.wordmark span{font-size:12px;font-weight:500;letter-spacing:.02em;vertical-align:top;display:inline-block;margin:2px 0 0 9px}.header-right{display:flex;justify-content:flex-end;gap:28px;font-size:12px;font-weight:500;margin-top:3px}
.gallery{position:relative;width:100%;height:clamp(370px,58svh,780px);flex:1 0 auto;touch-action:pan-y;cursor:grab;outline:none;user-select:none}.gallery.dragging{cursor:grabbing}#ribbon{display:block;width:100%;height:100%}.hit-layer{position:absolute;inset:0;overflow:hidden}.project-hit{position:absolute;top:3%;height:94%;left:0;padding:0;cursor:inherit;will-change:transform}.project-hit:focus-visible{outline-offset:-8px;border-radius:1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cursor{position:absolute;pointer-events:none;left:0;top:0;padding:13px 15px;border-radius:3px;background:var(--paper);color:var(--ink);display:flex;gap:26px;font-size:11px;font-weight:600;opacity:0;transform:translate(-50%,-50%);transition:opacity .15s;z-index:2}.gallery.has-case-hover .cursor{opacity:1}.gallery.dragging .cursor{opacity:0}.footer{padding:28px 36px 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:70px;min-height:185px}h1{font-size:clamp(23px,2.25vw,36px);letter-spacing:-.015em;line-height:1.03;font-weight:500;margin:0}.navigation{width:min(450px,42%)}.project-index{display:flex;justify-content:space-between;border-bottom:1px solid #d9d9d1;position:relative}.project-index button{font-size:13px;padding:9px 0 13px;min-width:25px;position:relative;color:#8c8c84;font-variant-numeric:tabular-nums}.project-index button:after{content:'';position:absolute;bottom:-1px;height:2px;left:0;right:0;transform:scaleX(0);background:var(--lime);transition:transform .2s}.project-index button[aria-current=true]{color:var(--ink)}.project-index button[aria-current=true]:after{transform:scaleX(1)}.project-index button:hover{color:var(--ink)}
.fallback{position:absolute;inset:3% 0;overflow-x:auto;display:flex;scroll-snap-type:x mandatory}.fallback[hidden]{display:none}.fallback img{width:100%;height:100%;object-fit:cover}.fallback:not([hidden])~.cursor{display:none}
@media(min-width:1600px){.header,.footer{padding-left:50px;padding-right:50px}.footer{min-height:225px}}
@media(max-width:760px){.header{height:140px;padding:25px 22px;grid-template-columns:1fr 1fr}.wordmark{font-size:28px}.header-right{flex-direction:column;align-items:flex-end;gap:6px;font-size:10px}.gallery{height:52svh;min-height:350px;max-height:620px;flex-grow:0}.footer{padding:27px 22px 24px;gap:25px;align-items:stretch;flex-direction:column;flex:1}h1{font-size:24px;letter-spacing:0;min-width:220px}.navigation{width:100%;margin-top:8px}.project-index button{font-size:12px;min-width:26px}.cursor{display:none}}
@media(max-width:370px){.header{padding:23px 16px}.wordmark{font-size:25px}.footer{padding:25px 16px}h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Keep the full composition and navigation inside the desktop viewport. */
@media(min-width:761px){main{height:100svh;min-height:600px}.header{height:clamp(110px,19svh,205px);flex-shrink:0}.gallery{height:auto;min-height:250px;flex:1 1 auto}.footer{flex-shrink:0;min-height:180px;padding-top:20px;padding-bottom:24px}}
.cursor{font-size:12px}.project-index button{font-size:14px}
@media(max-width:760px){.header-right{font-size:12px}.project-index button{font-size:14px}}
@media(max-width:420px){h1{font-size:27px}.header-right{font-size:10px}.header{height:125px}.gallery{min-height:330px}}
/* Real project covers and accessible links. */
[hidden]{display:none!important}.project-hit{display:block;color:white;text-decoration:none}#active-project:hover{text-decoration:underline}.fallback{padding-inline:calc((100% - min(45vw,540px))/2);overflow-y:hidden}.fallback>a{position:relative;flex:0 0 min(45vw,540px);display:block;scroll-snap-align:center}.fallback img{display:block}.project-index button{min-height:40px}
@media(max-width:760px){.fallback{padding-inline:11vw}.fallback>a{flex-basis:78vw}.project-index button{min-height:44px}.header-right .selected-label{max-width:150px;text-align:right}}
/* Main navigation. */
.header-nav{display:flex;justify-content:center;align-items:flex-start;flex-wrap:wrap;gap:9px clamp(14px,1.8vw,28px);padding-top:4px}
.header-nav a{white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;letter-spacing:.055em;text-underline-offset:5px}
.header-nav a:hover,.header-nav a:focus-visible{text-decoration:underline}
@media(max-width:1100px){.header{grid-template-columns:auto minmax(0,1fr) auto;column-gap:22px}.header-nav{column-gap:18px}}
@media(max-width:760px){.header{height:174px;grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;row-gap:18px}.header-nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:0}.header-right{grid-column:2;grid-row:1}.header-nav a{font-size:11px}}
@media(max-width:420px){.header{height:178px}.header-nav{display:grid;grid-template-columns:repeat(2,max-content);justify-content:space-between;gap:10px 20px}.header-nav a{font-size:11px}}
html{scroll-behavior:smooth}
.site-details{background:var(--paper)}
.detail-section{min-height:72svh;padding:42px 36px 50px;border-top:1px solid #d9d9d1;display:grid;grid-template-columns:minmax(180px,26%) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:36px}
.detail-label{grid-column:1/-1;display:flex;justify-content:space-between;gap:20px;font-size:11px;font-weight:600;letter-spacing:.105em}
.detail-content{grid-column:2;align-self:center;width:min(100%,950px);padding:60px 0}
.detail-content h2{font-size:clamp(52px,7.3vw,118px);font-weight:500;letter-spacing:-.025em;line-height:.98;margin:0}
.about-section .detail-content p{max-width:610px;margin:48px 0 0 auto;font-size:clamp(18px,2vw,28px);line-height:1.35;letter-spacing:.015em}
.skills-section{background:#e9e9e3}
.skills-list{list-style:none;padding:0;margin:56px 0 0;border-top:1px solid #aaa9a1}
.skills-list li{display:grid;grid-template-columns:70px 1fr;align-items:baseline;gap:20px;padding:15px 0 17px;border-bottom:1px solid #aaa9a1;font-size:clamp(22px,2.6vw,42px);letter-spacing:0}
.skills-list li span{font-size:12px;letter-spacing:.04em;color:#666660}
.contact-section{background:#202320;color:var(--paper);grid-template-rows:auto 1fr auto;border-color:#202320}
.contact-section .detail-content{padding-bottom:80px}
.contact-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:52px}
.contact-links a{border:1px solid #8e948e;padding:16px 18px;min-width:150px;display:flex;justify-content:space-between;gap:24px;font-size:14px;transition:background .2s,color .2s}
.contact-links a:hover{background:var(--paper);color:#202320}
.site-signoff{grid-column:1/-1;display:flex;justify-content:space-between;border-top:1px solid #686e68;padding-top:20px;font-size:11px;letter-spacing:.1em}
.site-signoff a:hover{text-decoration:underline;text-underline-offset:4px}
@media(min-width:1600px){.detail-section{padding-left:50px;padding-right:50px}}
@media(max-width:760px){.detail-section{min-height:0;padding:28px 22px 56px;display:block}.detail-label{font-size:10px}.detail-content{padding:100px 0 35px}.detail-content h2{font-size:clamp(49px,11vw,82px)}.about-section .detail-content p{font-size:20px;margin:42px 0 0}.skills-list{margin-top:50px}.skills-list li{grid-template-columns:38px 1fr;gap:12px;font-size:25px}.skills-list li span{font-size:11px}.contact-links{margin-top:42px}.contact-links a{flex:1 1 45%;min-width:0}.site-signoff{margin-top:55px}}
@media(max-width:420px){.detail-section{padding-left:16px;padding-right:16px}.detail-content{padding-top:85px}.detail-content h2{font-size:clamp(46px,11.5vw,58px)}.skills-list li{font-size:22px}.contact-links a{flex-basis:100%}}
/* Compact carousel footer. */
.footer{justify-content:flex-end;min-height:90px}
.footer .navigation{margin-left:auto}
@media(min-width:761px){.footer{min-height:90px;padding-top:12px;padding-bottom:22px}}
@media(max-width:760px){.footer{min-height:0;flex:0 0 auto;padding-top:14px;padding-bottom:24px}.footer .navigation{width:100%;margin:0}.gallery{flex-grow:1}}
/* Keep the ribbon close to the top navigation. */
@media(min-width:761px){.header{height:clamp(96px,11svh,120px);padding-top:23px;padding-bottom:18px}}
@media(max-width:760px){.header{height:136px;padding-top:18px;padding-bottom:14px;grid-template-rows:auto auto;row-gap:12px;align-content:space-between}}
@media(max-width:420px){.header{height:146px}}
/* Base carousel dimensions before the responsive 4:3 resize runs. */
@media(min-width:761px){main{height:auto;min-height:0}.gallery{height:min(614.9px,34.816vw);min-height:0;max-height:none;flex:0 0 auto}.fallback{padding-inline:calc((100% - min(578px,32.725vw))/2)}}
@media(max-width:760px){main{min-height:0}.gallery{height:71.434vw;min-height:0;max-height:none;flex:0 0 auto}.fallback{padding-inline:16.425vw}}
.fallback{align-items:center}.fallback>a{height:94%;aspect-ratio:1;flex:0 0 auto}
/* Selected palette: white, graphite, lime and coral. */
:root{--paper:#fff;--ink:#3b3f40;--accent:#f66e5e;--lime:#bbd641;--coral:#f66e5e;--graphite:#3b3f40;background:#fff;color:var(--ink)}
body{background:#fff;color:var(--ink)}
.header-nav a{position:relative}
.header-nav a::after{content:'';position:absolute;left:0;right:0;bottom:-5px;height:2px;background:var(--coral);transform:scaleX(0);transform-origin:left;transition:transform .25s}
.header-nav a:hover,.header-nav a:focus-visible{text-decoration:none}
.header-nav a:hover::after,.header-nav a:focus-visible::after{transform:scaleX(1)}
.cursor{background:#fff;color:var(--graphite)}
.project-index{border-color:currentColor}
.project-index button{color:inherit;opacity:.6}
.project-index button[aria-current=true],.project-index button:hover{color:inherit;opacity:1}
.project-index button::after{background:var(--lime)}
#active-project{color:inherit}
.site-details{background:transparent}
.detail-section{position:relative;isolation:isolate;overflow:hidden;border-top:0;--parallax:0px;--mark-offset:0px}
.detail-label,.detail-content,.site-signoff{position:relative;z-index:1}
.about-section{background:var(--graphite);color:#fff}
.skills-section{background:var(--lime);color:var(--graphite)}
.contact-section{background:var(--graphite);color:#fff}
.skills-list,.skills-list li,.site-signoff,.contact-links a{border-color:currentColor}
.skills-list li span{color:inherit;opacity:.75}
.contact-links a{transition:background .2s,color .2s,transform .2s}
.contact-links a:hover{background:var(--graphite);color:#fff;transform:translateY(-3px)}
.section-mark{position:absolute;left:36px;top:26%;font-size:clamp(130px,18vw,280px);font-weight:500;letter-spacing:-.05em;line-height:1;color:transparent;-webkit-text-stroke:1px currentColor;pointer-events:none;user-select:none;opacity:.15;transform:translate3d(0,var(--mark-offset),0)}
.about-section .section-mark{-webkit-text-stroke-color:#fff}
.skills-section .section-mark,.contact-section .section-mark{-webkit-text-stroke-color:var(--graphite)}
.reveal-line{display:block;overflow:hidden;padding:.12em 0 .14em;margin-top:-.12em;margin-bottom:-.14em}
.reveal-line>span{display:block}
.scene-backdrop{display:none;position:fixed;inset:0;z-index:0;background:#fff;pointer-events:none}
.scene-colors .scene-backdrop{display:block}
.scene-colors main,.scene-colors .site-details{position:relative;z-index:1}
.scene-colors main{color:var(--main-ink,#3b3f40);transition:color .18s ease}
.scene-colors main #active-project{color:inherit}
.scene-colors .detail-section{background:transparent;color:var(--scene-ink,#3b3f40);min-height:calc(100svh - var(--header-height));transition:color .18s ease}
.scene-colors .section-mark{-webkit-text-stroke-color:var(--scene-ink,#3b3f40)}
.scene-colors .detail-section:not(.scene-ready) :is(.detail-label,.detail-content,.section-mark,.site-signoff){opacity:0!important;pointer-events:none}
.scroll-effects .detail-content h2{transform:translate3d(0,var(--parallax),0)}
.scroll-effects .reveal-line>span{transform:translate3d(0,115%,0);transition:transform 1s cubic-bezier(.22,1,.36,1)}
.scroll-effects .is-visible .reveal-line>span{transform:translate3d(0,0,0)}
.scroll-effects .reveal-line:nth-child(2)>span{transition-delay:.11s}
.scroll-effects [data-reveal]{opacity:0;transform:translate3d(0,30px,0);transition:opacity .65s ease,transform .8s cubic-bezier(.22,1,.36,1);transition-delay:var(--reveal-delay,0ms)}
.scroll-effects [data-reveal].is-visible,.scroll-effects [data-reveal]:focus-within{opacity:1;transform:translate3d(0,0,0)}
@media(min-width:1600px){.section-mark{left:50px}}
@media(max-width:760px){.section-mark{left:auto;right:22px;top:55px;font-size:130px;opacity:.1}}
@media(prefers-reduced-motion:reduce){.section-mark,.detail-content h2,.reveal-line>span,[data-reveal]{transform:none!important;opacity:1!important;transition:none!important}}
/* Keep the menu above every section, with space reserved in the first screen. */
:root{--header-height:clamp(96px,11svh,120px)}
.header{position:fixed;inset:0 0 auto;z-index:30;height:var(--header-height);background:transparent;color:var(--header-ink,#3b3f40);isolation:isolate;transition:color .18s ease}
main{padding-top:var(--header-height)}
#work,.detail-section{scroll-margin-top:calc(var(--header-height) + 16px)}
.header-nav a::after{background:currentColor}
.header-nav a[aria-current=location]::after{transform:scaleX(1)}
.header a:focus-visible{outline-color:currentColor}
@media(max-width:760px){:root{--header-height:136px}}
@media(max-width:420px){:root{--header-height:146px}}
/* Let the sections follow their content instead of reserving an empty viewport. */
.scene-colors .detail-section{min-height:0;grid-template-rows:auto auto;padding-top:38px;padding-bottom:38px}
.scene-colors .detail-content{align-self:start;padding:18px 0 0}
.scene-colors .about-section .detail-content p{margin-top:32px}
.scene-colors .skills-list{margin-top:38px}
.scene-colors .contact-section .detail-content{padding-bottom:0}
.scene-colors .contact-links{margin-top:36px}
.scene-colors .site-signoff{margin-top:52px}
@media(max-width:760px){.scene-colors .detail-section{padding:26px 22px 48px}.scene-colors .detail-content{padding:42px 0 0}.scene-colors .about-section .detail-content p{margin-top:28px}.scene-colors .skills-list{margin-top:30px}.scene-colors .contact-links{margin-top:30px}.scene-colors .site-signoff{margin-top:44px}}
@media(max-width:420px){.scene-colors .detail-section{padding-left:16px;padding-right:16px}}
/* Give the cover ribbon breathing room below the navigation. */
main{padding-top:calc(var(--header-height) + 64px)}
#work{scroll-margin-top:calc(var(--header-height) + 64px)}
.footer{padding-top:36px;padding-bottom:34px}
@media(max-width:760px){main{padding-top:calc(var(--header-height) + 32px)}#work{scroll-margin-top:calc(var(--header-height) + 32px)}.footer{padding-top:34px;padding-bottom:32px}}
/* One story in four editorial beats, followed by the compact career table. */
.about-story{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));row-gap:clamp(42px,5vw,70px);margin:58px 0 0;width:100%}
.story-beat{border-top:1px solid rgb(255 255 255 / .42);padding-top:13px;min-width:0}
.story-beat-lead{grid-column:3/13}.story-beat-craft{grid-column:1/9}.story-beat-clients{grid-column:4/13}.story-beat-process{grid-column:2/10}
.about-section .detail-content .story-copy,.scene-colors .about-section .detail-content .story-copy{max-width:none;margin:0;font-size:clamp(20px,1.75vw,27px);line-height:1.32;letter-spacing:.015em}
.about-section .detail-content .story-beat-lead .story-copy,.scene-colors .about-section .detail-content .story-beat-lead .story-copy{font-size:clamp(32px,3vw,48px);line-height:1.12;letter-spacing:-.01em}
.about-section .detail-content .story-beat-clients .story-copy,.scene-colors .about-section .detail-content .story-beat-clients .story-copy{font-size:clamp(22px,1.95vw,30px)}
.story-copy strong{font-weight:600}
.experience{width:min(610px,100%);margin:46px 0 0 auto}
.experience-row{display:grid;grid-template-columns:92px minmax(170px,1fr) minmax(170px,1.25fr);gap:14px;align-items:baseline;padding:15px 0;border-top:1px solid currentColor;font-size:14px;line-height:1.35}
.experience-row>span:first-child{font-size:11px;white-space:nowrap;opacity:.75}
.experience-row strong{font-weight:600}
.experience-row>span:last-child{opacity:.86}
.skills-list li>div{min-width:0}
.skills-list li small{display:block;margin-top:7px;font-size:clamp(13px,1.15vw,17px);font-weight:400;letter-spacing:.04em;line-height:1.4}
.contact-section .detail-content .contact-intro{max-width:610px;margin:38px 0 0 auto;font-size:clamp(17px,1.6vw,22px);line-height:1.4}
.contact-email{display:flex;justify-content:space-between;gap:20px;width:min(100%,700px);margin:42px 0 0 auto;padding-bottom:12px;border-bottom:1px solid currentColor;font-size:clamp(22px,3vw,42px);letter-spacing:0;overflow-wrap:anywhere}
.contact-email span{flex-shrink:0}
.contact-email:hover{text-decoration:underline;text-underline-offset:5px}
.scene-colors .contact-section .contact-links{margin-top:25px}
@media(max-width:760px){.about-story{grid-template-columns:1fr;row-gap:38px;margin-top:38px}.story-beat-lead,.story-beat-craft,.story-beat-clients,.story-beat-process{grid-column:1}.about-section .detail-content .story-copy,.scene-colors .about-section .detail-content .story-copy{font-size:19px;line-height:1.37}.about-section .detail-content .story-beat-lead .story-copy,.scene-colors .about-section .detail-content .story-beat-lead .story-copy{font-size:clamp(30px,8vw,38px);line-height:1.13}.about-section .detail-content .story-beat-clients .story-copy,.scene-colors .about-section .detail-content .story-beat-clients .story-copy{font-size:21px}.experience{margin-top:46px}.experience-row{grid-template-columns:70px 1fr;gap:3px 12px}.experience-row>span:last-child{grid-column:2;font-size:13px}.skills-list li small{font-size:12px}.contact-section .detail-content .contact-intro{margin-top:30px;font-size:18px}.contact-email{margin-top:30px;font-size:clamp(20px,5.7vw,30px)}}
.contact-section{background:var(--graphite);color:#fff}
.contact-section .contact-intro{color:var(--contact-copy-ink,#d6ed72);transition:color .18s ease}
.contact-section .detail-content h2,.contact-section .contact-email{color:inherit}
.contact-section .contact-email .arrow-icon{color:var(--story-accent,#d6ed72)}
.contact-section .contact-links a{background:#d6ed72;color:var(--graphite);border-color:#d6ed72}
.contact-section .contact-links a:hover{background:#fff;color:var(--graphite);border-color:#fff}
.project-hit{top:0;height:100%}
.fallback{inset:0}
.fallback>a{height:100%}
@media(min-width:761px){.gallery{height:min(578px,32.725vw)}}
@media(max-width:760px){.gallery{height:67.15vw}}
body{font-variant-emoji:text}
.arrow-icon{display:inline-block;width:1em;height:1em;flex:0 0 auto;background:currentColor;-webkit-mask:url('./assets/arrow-up-right.svg') center/contain no-repeat;mask:url('./assets/arrow-up-right.svg') center/contain no-repeat;vertical-align:-.12em}
.selected-label .arrow-icon{margin-left:.25em}
.contact-email .arrow-icon{width:.75em;height:.75em;align-self:center}
.contact-links .arrow-icon{width:1.1em;height:1.1em}
/* Keep the project screen complete before the About section begins. */
main{min-height:100svh}
.footer{margin-top:auto}
/* Landscape covers, with all project details beside the navigator. */
.fallback>a{aspect-ratio:4/3}
.footer{justify-content:space-between;align-items:flex-end;gap:clamp(24px,5vw,80px);min-height:145px}
.footer .navigation{margin-left:0;flex:0 1 450px;width:min(450px,42%)}
.project-info{display:flex;flex:1 1 0;min-width:0;flex-direction:column;align-items:flex-start;gap:7px}
.project-info #position{font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.1em;opacity:.7}
.project-info #active-project{display:block;max-width:100%;overflow:visible;text-overflow:clip;white-space:normal;font-size:clamp(22px,2.2vw,34px);font-weight:500;letter-spacing:-.01em;line-height:1.03}
.project-info #active-category{font-size:12px;line-height:1.3;letter-spacing:.05em;opacity:.75}
.cursor{padding:13px 16px;gap:24px;align-items:center;font-size:14px;letter-spacing:.06em;white-space:nowrap;transform:translate(10px,10px)}
@media(hover:hover) and (pointer:fine){.gallery .cursor{display:flex}}
@media(max-width:760px){
  .footer{align-items:stretch;gap:16px;min-height:0}
  .project-info{flex:0 0 auto;gap:5px}
  .project-info #active-project{font-size:clamp(21px,6vw,28px)}
  .footer .navigation{width:100%;flex:0 0 auto;margin:0}
}
/* The fixed navigation sits in the active color scene, with progressive blur below it. */
.header{inset:0;width:100%;height:var(--header-height);padding:22px 36px;grid-template-columns:1fr auto 1fr;align-items:start;isolation:auto;border-radius:0;background:transparent;box-shadow:none}
.header::before,.header::after{content:none}
.header-nav{grid-column:2;grid-row:1;align-items:center;justify-content:center;gap:clamp(18px,2vw,32px);padding-top:11px}
.header-right{grid-column:3;grid-row:1;align-items:flex-start;justify-self:end;margin:0}
.header-right .selected-label{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:0 12px;border-radius:999px;background:var(--header-ink,#3b3f40);color:rgb(var(--header-rgb,255 255 255));font-size:11px;line-height:1;white-space:nowrap;transition:background-color .18s ease,color .18s ease}
.header-right .selected-label__text{transform:translateY(.15em)}
.header-right .selected-label .arrow-icon{width:1.4em;height:1.4em;margin-left:0}
.header-right .selected-label:hover{text-decoration:none;opacity:.82}
.header-blur{position:fixed;inset:0 0 auto;height:calc((var(--header-height) + 76px) * .64);z-index:29;pointer-events:none;overflow:hidden}
.header-blur span{position:absolute;inset:0;display:block}
.header-blur span:nth-child(1){backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);mask-image:linear-gradient(#000 0%,#000 35%,transparent 100%);-webkit-mask-image:linear-gradient(#000 0%,#000 35%,transparent 100%)}
.header-blur span:nth-child(2){backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);mask-image:linear-gradient(#000 0%,#000 22%,transparent 72%);-webkit-mask-image:linear-gradient(#000 0%,#000 22%,transparent 72%)}
.header-blur span:nth-child(3){backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px);mask-image:linear-gradient(#000 0%,transparent 58%);-webkit-mask-image:linear-gradient(#000 0%,transparent 58%)}
.header-blur::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,rgb(var(--header-rgb,255 255 255) / .76),rgb(var(--header-rgb,255 255 255) / .42) 42%,transparent 100%)}
main{padding-top:calc(var(--header-height) + 38px)}
#work{scroll-margin-top:calc(var(--header-height) + 16px)}
@media(min-width:761px) and (max-width:1100px){
  .header{grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:18px 28px;row-gap:4px}
  .header-nav{grid-column:1/-1;grid-row:2;padding-top:0}
  .header-right{grid-column:2;grid-row:1}
}
@media(max-width:760px){
  .header{inset:0;width:100%;height:var(--header-height);padding:18px 22px;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-content:start;row-gap:15px;border-radius:0}
  .header-nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;gap:10px;padding-top:0}
  .header-right{grid-column:2;grid-row:1}
  .header-right .selected-label{padding:9px 12px;font-size:10px}
  main{padding-top:calc(var(--header-height) + 18px)}
  #work{scroll-margin-top:calc(var(--header-height) + 10px)}
}
@media(max-width:420px){.header{padding:18px 16px}.header-nav{display:grid;grid-template-columns:repeat(2,max-content);justify-content:space-between;gap:9px 20px}}
/* Keep the ribbon and its caption together, balancing spare space around the group. */
main{padding-top:calc(var(--header-height) + clamp(20px,3svh,40px));padding-bottom:clamp(12px,2svh,24px)}
.gallery{margin-top:auto}
/* Keep ribbon controls layered above the canvas. */
.gallery{isolation:isolate}
#ribbon{position:relative;z-index:1;pointer-events:none}
.hit-layer{z-index:2}
.gallery .cursor{z-index:3}
.fallback{z-index:1}
.footer{margin-top:0;margin-bottom:auto;min-height:0;padding-top:clamp(24px,3.4svh,40px);padding-bottom:0;flex:0 0 auto}
.footer .navigation{width:auto;flex:0 0 clamp(300px,38vw,500px);max-width:48%}
@media(max-width:760px){
  .footer{gap:18px}
  .footer .navigation{width:100%;max-width:none;flex:0 0 auto}
}
/* On narrow screens the covers form a vertical, swipeable reel. */
@media(max-width:759px){
  .gallery.vertical{height:auto;min-height:clamp(180px,35svh,340px);max-height:none;flex:1 1 0;margin-top:0;touch-action:none}
  .footer{margin-bottom:0}
  .gallery.vertical .fallback{flex-direction:column;align-items:center;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y mandatory}
  .gallery.vertical .fallback>a{width:var(--cover-width,90vw);height:auto;aspect-ratio:4/3;flex:0 0 auto;scroll-snap-align:center}
}
/* The about text reads as one story, with color inside the sentences. */
.about-story{row-gap:clamp(38px,4.5vw,66px);margin-top:clamp(54px,6vw,90px)}
.story-beat{border-top-color:rgb(255 255 255 / .3);padding-top:19px}
.story-beat-lead{grid-column:1/12}
.story-beat-craft{grid-column:2/9}
.story-beat-clients{grid-column:5/13}
.story-beat-process{grid-column:1/10}
.about-section .detail-content .story-copy,.scene-colors .about-section .detail-content .story-copy{font-size:clamp(22px,2vw,30px);line-height:1.3}
.about-section .detail-content .story-beat-lead .story-copy,.scene-colors .about-section .detail-content .story-beat-lead .story-copy{font-size:clamp(34px,3.25vw,50px);line-height:1.13}
.about-section .tone-lime{color:#d6ed72}
.experience{margin-top:clamp(72px,8vw,116px)}
.experience-row:first-child{border-top-color:rgb(255 255 255 / .65)}
/* Capabilities stay to the left of the mixed-media project board. */
.skills-section{overflow:visible}
.skills-section .skills-layout{grid-column:1/-1;display:grid;grid-template-columns:minmax(300px,31%) minmax(0,1fr);gap:clamp(28px,3.5vw,64px);align-items:start;margin-top:36px;min-width:0}
.skills-copy{position:sticky;top:calc(var(--header-height) + 26px);min-width:0}
.skills-copy h2{font-size:clamp(52px,5vw,86px);font-weight:500;letter-spacing:-.025em;line-height:.97;margin:0}
.skills-copy .skills-list{margin-top:48px;border-top-color:currentColor}
.skills-copy .skills-list li{grid-template-columns:28px minmax(0,1fr);gap:14px;padding:17px 0 19px;border-bottom-color:currentColor;font-size:clamp(18px,1.72vw,25px);line-height:1.12}
.skills-copy .skills-list li>span{font-size:11px;padding-top:3px}
.skills-copy .skills-list li small{font-size:14px;line-height:1.4;margin-top:8px}
/* Full-bleed previews with full-tile links and a cursor-following case label. */
.bento-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(7,clamp(146px,12.5vw,190px));gap:8px;min-width:0}
.bento-tile{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:18px;background:#202425;color:#fff;isolation:isolate}
.bento-media{position:relative;width:100%;height:100%;overflow:hidden}
.bento-media video{display:block;width:100%;height:100%;object-fit:cover;background:#202425}
.bento-still{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.bento-tile[data-project="se-diffuser"] .bento-still{object-position:50% 50%}
.bento-tile[data-project="operational-risks"] .bento-media{background:#fff}
.bento-tile[data-project="operational-risks"] .bento-still{object-fit:cover;object-position:18% center}
.bento-scroll{height:100%;overflow:hidden;touch-action:pan-y;scrollbar-width:none;outline:none;overflow-anchor:none}
.bento-scroll::-webkit-scrollbar{display:none}
.bento-scroll:focus-visible{outline:3px solid #d6ed72;outline-offset:-3px}
.bento-scroll img{display:block;width:100%;height:auto}
.bento-link{position:absolute;inset:0;z-index:1;display:block;border-radius:inherit;cursor:pointer;touch-action:pan-y;-webkit-user-drag:none}
.bento-link:focus-visible{outline:2px solid #d6ed72;outline-offset:-4px}
.bento-cursor{position:fixed;left:0;top:0;z-index:40;display:none;align-items:center;gap:24px;max-width:calc(100vw - 20px);padding:13px 16px;border-radius:3px;background:#fff;color:var(--graphite);font-size:14px;font-weight:600;letter-spacing:.06em;line-height:1.2;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s}
.bento-cursor>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.bento-cursor .arrow-icon{width:1em;height:1em}
@media(hover:hover) and (pointer:fine){.bento-cursor{display:flex}.bento-cursor.is-visible{opacity:1}}
.bento-tile[data-project="ineco-bank"]{grid-area:1/1/3/3}
.bento-tile[data-project="wilson-tennis"]{grid-area:6/3/8/5}
.bento-tile[data-project="operational-risks"]{grid-area:2/3/3/5}
.bento-tile[data-project="fintech-platform"]{grid-area:3/3/5/5}
.bento-tile[data-project="cosmetic-commercial"]{grid-area:3/1/4/3}
.bento-tile[data-project="geosupport"]{grid-area:4/1/5/2}
.bento-tile[data-project="se-diffuser"]{grid-area:4/2/5/3}
.bento-tile[data-project="zaymer"]{grid-area:5/1/7/3}
.bento-tile[data-project="fintech-platform-video"]{grid-area:5/3/6/5}
.bento-tile[data-project="cosmetic-commercial-2"]{grid-area:1/3/2/5}
.bento-tile[data-project="gtx-loop"]{grid-area:7/1/8/2}
.bento-tile[data-project="fantasy-book"]{grid-area:7/2/8/3}
@media(prefers-reduced-motion:reduce){.bento-cursor{transition:none}}
@media(max-width:1100px){
  .skills-section .skills-layout{grid-template-columns:1fr;gap:38px}
  .skills-copy{position:static;display:grid;grid-template-columns:minmax(220px,36%) minmax(0,1fr);gap:28px;align-items:start}
  .skills-copy .skills-list{margin-top:0}
  .bento-board{grid-template-rows:repeat(7,clamp(145px,18vw,190px))}
}
@media(max-width:760px){
  .story-beat-lead,.story-beat-craft,.story-beat-clients,.story-beat-process{grid-column:1}
  .about-story{row-gap:38px;margin-top:48px}
  .about-section .detail-content .story-copy,.scene-colors .about-section .detail-content .story-copy{font-size:20px;line-height:1.35}
  .about-section .detail-content .story-beat-lead .story-copy,.scene-colors .about-section .detail-content .story-beat-lead .story-copy{font-size:clamp(30px,8.3vw,40px)}
  .experience{margin-top:72px}
  .skills-section .skills-layout{margin-top:22px;gap:32px}
  .skills-copy{display:block}
  .skills-copy h2{font-size:clamp(48px,11vw,74px)}
  .skills-copy .skills-list{margin-top:38px}
  .skills-copy .skills-list li{font-size:21px}
  .bento-board{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:clamp(125px,38vw,180px);grid-auto-flow:row dense;gap:7px}
  .bento-tile[data-project]{grid-area:auto}
  .bento-tile[data-project="wilson-tennis"],.bento-tile[data-project="ineco-bank"],.bento-tile[data-project="fintech-platform"],.bento-tile[data-project="zaymer"],.bento-tile[data-project="cosmetic-commercial-2"],.bento-tile[data-project="se-diffuser"]{grid-column:span 2;grid-row:span 2}
  .bento-tile[data-project="fintech-platform-video"],.bento-tile[data-project="operational-risks"]{grid-column:span 2;grid-row:span 1}
}
/* Keep the primary navigation on a predictable baseline at every width. */
.menu-surface,.menu-toggle,.header-nav .mobile-contact{display:none}
@media(min-width:761px){
  .header{grid-template-columns:auto minmax(0,1fr) auto;column-gap:clamp(18px,2.4vw,38px);align-items:start}
  .header-nav{grid-column:2;grid-row:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:clamp(12px,1.5vw,24px);padding-top:11px;min-width:0}
  .header-nav a{font-size:clamp(11px,.85vw,12px)}
  .header-right{grid-column:3;grid-row:1}
}
@media(min-width:761px) and (max-width:1100px){
  .header{grid-template-rows:auto;padding:22px 28px;row-gap:0}
  .header-nav{grid-column:2;grid-row:1;padding-top:9px}
  .header-right{grid-column:3;grid-row:1}
}
@media(min-width:561px) and (max-width:760px){
  :root{--header-height:112px}
  .header{height:var(--header-height);padding:16px 22px;grid-template-columns:1fr auto;grid-template-rows:34px 20px;align-content:start;row-gap:13px}
  .header-nav{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;padding:0}
  .header-nav a{font-size:11px}
  .header-right{grid-column:2;grid-row:1}
}
@media(max-width:560px){
  :root{--header-height:76px}
  .header{--menu-edge:20px;--menu-width:min(232px,calc(100vw - 32px));--menu-height:min(196px,calc(100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 32px));--menu-top:calc((var(--header-height) - 43px + env(safe-area-inset-top,0px))/2);--menu-ease:cubic-bezier(.22,1,.36,1)}
  .header{height:var(--header-height);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
  .wordmark{font-size:clamp(24px,6.5vw,28px);transition:opacity .24s ease,transform .48s var(--menu-ease)}
  .header.is-menu-open .wordmark{opacity:0;pointer-events:none;transform:translateX(-8px)}
  .header-right{display:none}
  /* The same glass silhouette grows from the pill into the complete menu. */
  .menu-surface{display:block;position:absolute;z-index:1;top:var(--menu-top);right:var(--menu-edge);width:103px;height:43px;border-radius:24px;border:1px solid rgb(255 255 255 / .30);background:linear-gradient(135deg,rgb(255 255 255 / .10),transparent 48%,rgb(255 255 255 / .04)),rgb(var(--menu-rgb,42 47 47) / .72);-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);box-shadow:0 6px 22px rgb(21 25 24 / .10);pointer-events:none;transition:width .58s var(--menu-ease),height .58s var(--menu-ease),border-radius .58s var(--menu-ease)}
  .header.is-menu-open .menu-surface{width:var(--menu-width);height:var(--menu-height);border-radius:24px}
  .menu-toggle{display:inline-flex;position:absolute;z-index:3;top:var(--menu-top);right:var(--menu-edge);align-items:center;justify-content:space-between;gap:9px;width:103px;height:43px;padding:0 15px;border-radius:24px;background:transparent;color:rgb(var(--menu-ink-rgb,255 255 255));font-size:11px;font-weight:600;letter-spacing:.055em;transition:width .58s var(--menu-ease),top .58s var(--menu-ease)}
  .header.is-menu-open .menu-toggle{width:43px;top:calc(var(--menu-top) + 8px);padding:0 13px;justify-content:flex-end}
  .menu-toggle:focus-visible{outline:2px solid currentColor;outline-offset:4px}
  .header.is-menu-open .menu-toggle:is(:focus,:focus-visible){outline:none;box-shadow:none}
  .menu-toggle__words{position:relative;display:block;width:38px;height:1em;overflow:hidden;text-align:left}
  .menu-toggle__words span{position:absolute;left:0;top:0;display:block;transition:transform .55s cubic-bezier(.22,1,.36,1),opacity .28s ease}
  .menu-toggle__icon{position:relative;display:block;width:16px;height:16px;flex:0 0 16px}
  .menu-toggle__icon span{position:absolute;left:0;top:7px;display:block;width:16px;height:1.5px;background:currentColor;border-radius:2px;transition:transform .58s cubic-bezier(.22,1,.36,1)}
  .menu-toggle__icon span:first-child{transform:translateY(-3px)}
  .menu-toggle__icon span:last-child{transform:translateY(3px)}
  .header.is-menu-open .menu-toggle__words span:first-child{opacity:0;transform:translateY(-130%)}
  .header.is-menu-open .menu-toggle__words{position:absolute;pointer-events:none}
  .header.is-menu-open .menu-toggle__icon span:first-child{transform:rotate(45deg)}
  .header.is-menu-open .menu-toggle__icon span:last-child{transform:rotate(-45deg)}
  .header-nav{position:absolute;z-index:2;top:var(--menu-top);left:auto;right:var(--menu-edge);width:var(--menu-width);display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex-wrap:nowrap;gap:0;padding:8px 10px;border:0;border-radius:24px;background:transparent;color:rgb(var(--menu-ink-rgb,255 255 255));box-shadow:none;max-height:var(--menu-height);overflow-y:auto;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-5px);transition:opacity .12s ease,transform .3s var(--menu-ease),visibility 0s linear .12s}
  .header.is-menu-open .header-nav{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);transition:opacity .22s ease .16s,transform .4s var(--menu-ease) .16s,visibility 0s}
  .header-nav a{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 10px;border:0;border-radius:12px;font-size:14px;font-weight:500;line-height:1.3;letter-spacing:.04em;white-space:normal;opacity:0;transform:translateY(5px);transition:opacity .12s ease,transform .32s var(--menu-ease),background-color .2s ease}
  .header.is-menu-open .header-nav a{opacity:1;transform:translateY(0)}
  .header-nav a:first-child{margin-right:33px}
  .header.is-menu-open .header-nav a:nth-child(1){transition-delay:.18s}
  .header.is-menu-open .header-nav a:nth-child(2){transition-delay:.21s}
  .header.is-menu-open .header-nav a:nth-child(3){transition-delay:.24s}
  .header.is-menu-open .header-nav a:nth-child(4){transition-delay:.27s}
  .header-nav a::after{display:none}
  .header-nav a:hover,.header-nav a:focus-visible{background:rgb(var(--menu-ink-rgb,255 255 255) / .08)}
  .header-nav a[aria-current=location]{background:rgb(214 237 114 / .75);color:#3b3f40}
  .header-nav .mobile-contact{display:flex;min-height:42px;margin-top:6px;padding:10px;border:0;border-top:1px solid rgb(var(--menu-ink-rgb,255 255 255) / .18);border-radius:0 0 12px 12px;font-size:13px;font-weight:600;letter-spacing:.06em;color:inherit}
  .header-nav .mobile-contact .arrow-icon{width:16px;height:16px}
  main{padding-top:calc(var(--header-height) + 24px)}
  #work,.detail-section{scroll-margin-top:calc(var(--header-height) + 10px)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  @media(max-width:560px){.menu-surface{background:rgb(var(--menu-rgb,42 47 47))}}
}
@media(max-width:380px){
  :root{--header-height:70px}
  .header{padding:13px 16px;--menu-edge:16px}
  .wordmark{font-size:24px}
}
@media(prefers-reduced-motion:reduce){
  .menu-surface,.menu-toggle,.menu-toggle__words span,.menu-toggle__icon span,.header-nav,.header-nav a{transition:none!important}
}
/* The same film continues into the gallery until its lime scene takes over. */
.story-stage{position:relative;isolation:isolate;overflow:clip;background:rgb(var(--story-rgb,59 63 64))}
.story-chapter{position:relative;z-index:1}
.story-chapter .detail-section{position:relative;z-index:1;background:transparent}
.skills-section,.scene-colors .skills-section{position:relative;overflow:hidden}
.skills-section{color:#fff}
.scene-colors .skills-section{min-height:100svh;grid-template-rows:auto 1fr;color:var(--scene-ink,#3b3f40)}
.story-film{position:sticky;top:0;z-index:0;height:100svh;margin-bottom:-100svh;overflow:hidden;pointer-events:none;opacity:var(--story-film-opacity,1);mask-image:linear-gradient(to bottom,transparent 0%,#000 17%,#000 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 17%,#000 100%)}
.story-film::before,.story-film::after{content:'';position:absolute;inset:0;display:block}
.story-film::before{inset:-10%;z-index:0;background:url('./assets/videos/tennis-ball-1.webp') center/cover no-repeat;filter:blur(26px);transform:scale(1.1)}
.story-film-video{position:absolute;inset:-10%;z-index:1;display:block;width:120%;height:120%;object-fit:cover;object-position:center;filter:blur(clamp(20px,2.4vw,34px)) saturate(.83);transform:scale(1.06)}
.story-film::after{z-index:2;background:radial-gradient(ellipse 60% 60% at center,rgb(var(--story-rgb,59 63 64) / var(--story-alpha-center,.25)) 0%,rgb(var(--story-rgb,59 63 64) / var(--story-alpha-mid,.481)) 40%,rgb(var(--story-rgb,59 63 64) / var(--story-alpha-outer,.792)) 68%,rgb(var(--story-rgb,59 63 64)) 84%);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.skills-section .detail-label,.skills-section .skills-layout{position:relative;z-index:1}
.story-chapter .section-mark{-webkit-text-stroke-color:currentColor}
.skills-section .skills-layout{grid-column:1/-1;display:block;align-self:center;width:100%;margin:clamp(58px,7svh,100px) 0;padding:0}
.skills-copy{position:relative;top:auto;display:grid;grid-template-columns:minmax(240px,43%) minmax(0,1fr);align-items:start;gap:clamp(32px,6vw,110px)}
.skills-copy h2{max-width:620px;font-size:clamp(54px,6vw,94px)}
.skills-copy .skills-list{margin-top:0;border-top-color:color-mix(in srgb,currentColor 55%,transparent)}
.skills-copy .skills-list li{border-bottom-color:color-mix(in srgb,currentColor 55%,transparent)}
/* The project mosaic is its own bright chapter after the skills story. */
.bento-section{background:var(--lime);color:var(--graphite)}
.scene-colors .bento-section{background:transparent;color:var(--scene-ink,#3b3f40)}
.bento-section{grid-template-rows:auto auto auto;align-content:start}
/* Half the space at chapter boundaries; retain the work-to-contact spacing. */
.scene-colors :is(.about-section,.skills-section,.bento-section){padding-top:19px}
.scene-colors :is(.about-section,.skills-section){padding-bottom:19px}
.bento-intro{grid-column:1/-1;position:relative;z-index:1;margin:clamp(70px,9vw,138px) 0 clamp(28px,4vw,58px)}
.bento-intro h2{margin:0;font-size:clamp(54px,8vw,132px);font-weight:500;letter-spacing:-.03em;line-height:.92}
.bento-section .bento-board{grid-column:1/-1;position:relative;z-index:1;width:100%}
@media(max-width:1100px){
  .skills-copy{grid-template-columns:minmax(230px,38%) minmax(0,1fr);gap:clamp(28px,4vw,60px)}
  .skills-copy .skills-list{margin-top:0}
}
@media(max-width:760px){
  .scene-colors :is(.about-section,.skills-section,.bento-section){padding-top:13px}
  .scene-colors :is(.about-section,.skills-section){padding-bottom:24px}
  .scene-colors .skills-section{min-height:100svh}
  .skills-section .skills-layout{margin:clamp(54px,8svh,88px) 0}
  .skills-copy{display:block}
  .skills-copy h2{max-width:560px;font-size:clamp(48px,11vw,74px)}
  .skills-copy .skills-list{margin-top:clamp(44px,7svh,70px)}
  .bento-intro{margin:72px 0 32px}
  .bento-intro h2{font-size:clamp(50px,11vw,78px)}
}
@media(prefers-reduced-motion:reduce){.story-film-video{display:none}}
/* Keep the document background painted beneath Safari's translucent controls. */
html.scene-colors,html.scene-colors body{background:rgb(var(--scene-rgb,255 255 255))}
@media(max-width:760px){
  .header-blur{top:env(safe-area-inset-top,0px);height:max(0px,calc((var(--header-height) + 76px) * .64 - env(safe-area-inset-top,0px)))}
  :root{--header-height:calc(136px + env(safe-area-inset-top,0px))}
  .header{padding-top:calc(18px + env(safe-area-inset-top,0px))}
  main{padding-bottom:calc(clamp(12px,2svh,24px) + env(safe-area-inset-bottom,0px))}
}
@media(min-width:561px) and (max-width:760px){
  :root{--header-height:calc(112px + env(safe-area-inset-top,0px))}
  .header{padding-top:calc(16px + env(safe-area-inset-top,0px))}
}
@media(max-width:560px){
  :root{--header-height:calc(76px + env(safe-area-inset-top,0px))}
  .header{padding-top:calc(16px + env(safe-area-inset-top,0px))}
}
@media(max-width:380px){
  :root{--header-height:calc(70px + env(safe-area-inset-top,0px))}
  .header{padding-top:calc(13px + env(safe-area-inset-top,0px))}
}
/* Equal space above and below the horizontal ribbon keeps its own center fixed. */
@media(min-width:760px){
  main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);height:100svh;min-height:100svh;padding:0}
  .gallery{grid-row:2;margin-top:0}
  .footer{grid-row:3;align-self:start;margin-bottom:0}
}
/* Figma loading artwork shares slide zero with the project ribbon. */
.intro-overlay{display:none;position:fixed;inset:0;z-index:1000;flex-direction:column;overflow:hidden;padding:calc(27px + env(safe-area-inset-top,0px)) max(30px,env(safe-area-inset-right,0px)) calc(29px + env(safe-area-inset-bottom,0px)) max(30px,env(safe-area-inset-left,0px));background:#3b3f40;color:#3b3f40;touch-action:none;user-select:none}
html.intro-pending .intro-overlay{display:flex}
html.intro-pending{overflow:hidden}
html.intro-pending:not(.intro-moving),html.intro-pending:not(.intro-moving) body{background:#3b3f40}
html.intro-pending .header,html.intro-pending .footer{opacity:var(--intro-reveal,0)}
html.intro-surface #ribbon{position:fixed;inset:0;width:100vw;height:100dvh;z-index:998;pointer-events:none}
html.intro-surface .intro-overlay{background:transparent}
html.intro-pending .header-blur{opacity:var(--intro-reveal,0)}
html.intro-pending .hit-layer,html.intro-pending .cursor{visibility:hidden}
.intro-artwork{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#3b3f40}
.intro-artboard{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;background:#3b3f40}
.intro-paper,.intro-ink{position:absolute;left:-100%;top:0;width:100%;height:100%;animation-duration:3s;animation-fill-mode:both;animation-play-state:paused;animation-delay:var(--intro-animation-time,0ms);animation-timing-function:linear}
.intro-paper,.intro-ink{animation-name:kf_262_663_translate_0}
.intro-paper{background:#fff}
.intro-ink{background:#3b3f40}
@keyframes kf_262_663_translate_0{0%{animation-timing-function:ease-in-out;translate:-100% 0}100%{translate:100% 0}}
.intro-type{position:absolute;left:var(--type-x);top:var(--type-y);max-width:none;transform-origin:top left}
.intro-type-mask{position:absolute;inset:0;-webkit-mask-image:url('./assets/intro/type.svg');mask-image:url('./assets/intro/type.svg');-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:var(--type-x) var(--type-y);mask-position:var(--type-x) var(--type-y);-webkit-mask-size:var(--type-width) var(--type-height);mask-size:var(--type-width) var(--type-height)}
html.intro-surface.intro-moving .intro-artwork{visibility:hidden}
.intro-artwork-fallback{display:none;position:absolute;inset:35% 4% auto;font-size:180px;color:#fff;line-height:1;font-weight:500}
.intro-artwork-unavailable .intro-artwork-fallback{display:block}
/* Return from a case to its original tile, clear of the fixed header. */
.bento-tile{scroll-margin-top:calc(var(--header-height) + 24px)}
