:root{--page-bg:#f7f6f2;--surface:#efeee9;--artboard:#f2f1ed;--text:#222;--body-text:#444;--muted:#666;--subtle:#777;--line:#e4e2dc;--strong-line:#aaa;--hover:#ebebeb;color-scheme:light}
:root[data-theme="dark"]{--page-bg:#181818;--surface:#232323;--artboard:#202020;--text:#eeede9;--body-text:#d0cfcb;--muted:#b8b7b2;--subtle:#aaa9a4;--line:#373737;--strong-line:#777671;--hover:#303030;color-scheme:dark}
:root,body{background:var(--page-bg);color:var(--text)}
.header,.skip{background:var(--header-bg,var(--page-bg))}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:25px;justify-self:end}
.navigation a:after{background:var(--text)}
.theme-toggle{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;padding:10px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text);transition:background .2s,border-color .2s}
.theme-toggle:hover{background:var(--hover);border-color:var(--strong-line)}
.theme-toggle svg{display:block;width:20px;height:20px;pointer-events:none}
.theme-toggle:focus-visible{outline:2px solid var(--text);outline-offset:4px}
:root[data-theme="dark"] .brand img{filter:brightness(0) invert(.94)}
footer,.eyebrow,.filmography small,.project-intro p,.legal-updated{color:var(--muted)}
:root:not([data-theme="dark"]) footer{color:#858585}
:root:not([data-theme="dark"]) footer a{transition:color .2s ease}
:root:not([data-theme="dark"]) footer a:hover{color:#555}
:root[data-theme="dark"] footer{color:#898989}
:root[data-theme="dark"] footer a{transition:color .2s ease}
:root[data-theme="dark"] footer a:hover{color:#d0d0d0}
.filmography li{border-color:var(--line)}
.contact-page .email,.contact-links a,.project-actions a,.project-bottom a{border-color:var(--strong-line)}
.artwork,.project-card{background:var(--artboard)}
.legal-page .legal-note{background:var(--surface);border-color:var(--subtle)}
.case-back,.case-role dt,.case-pagination span{color:var(--subtle)}
.case-description p,.case-story p{color:var(--body-text)}
.case-film{border-color:var(--strong-line)}
.case-lead .artwork{background:var(--surface)}
.case-grid .artwork,.case-grid-awards .artwork{background:var(--artboard)}
.case-section-heading,.case-pagination{border-color:var(--line)}
@media(max-width:850px){.header-actions{gap:14px}.header-actions .socials{gap:9px}}
@media(max-width:560px){.header-actions{grid-column:2;grid-row:1;gap:12px}.header-actions .socials{display:flex;gap:8px}.theme-toggle{width:42px;height:42px}.header-actions .socials a{padding:3px}}

/* Keep the opening layout stable while the fixed navigation contracts. */
:root{--header-space:160px;--header-bg:#f7f7f7;--header-glass:rgba(247,247,247,.84)}
:root[data-theme="dark"]{--header-bg:#181818;--header-glass:rgba(24,24,24,.84)}
body{padding-top:var(--header-space)}
html{scroll-padding-top:100px}
.header{position:fixed;inset:0 0 auto;z-index:20;height:var(--header-space);border-bottom:1px solid transparent;transition:height .28s ease,background-color .28s ease,border-color .28s ease,box-shadow .28s ease}
.header .brand img{transition:width .28s ease,height .28s ease}
.header.is-scrolled{height:80px;background:var(--header-bg);border-bottom-color:var(--line);box-shadow:0 4px 20px #00000006}
.header.is-scrolled .brand img{width:34px;height:54px}
.skip{position:fixed;z-index:30}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .header.is-scrolled{background:var(--header-glass);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  :root:not([data-theme="dark"]) .header.is-scrolled{backdrop-filter:blur(16px) grayscale(1);-webkit-backdrop-filter:blur(16px) grayscale(1)}
}
@media(max-width:850px){:root{--header-space:120px}}
@media(max-width:560px){
  :root{--header-space:136px}
  html{scroll-padding-top:124px}
  .header{transition:height .28s ease,grid-template-rows .28s ease,background-color .28s ease,border-color .28s ease}
  .header.is-scrolled{height:108px;grid-template-rows:62px 46px}
  .header.is-scrolled .brand img{width:28px;height:46px}
  .header.is-scrolled .navigation{padding-top:2px}
}

.socials a{transition:opacity .22s ease}
@media(hover:hover){.socials a:hover{opacity:.5}}
.socials a:focus-visible{opacity:.5}
.header .socials a{width:34px;height:34px;padding:5px;align-items:center;justify-content:center;flex-shrink:0}
.header .socials a[aria-label="LinkedIn"] svg{width:21px;height:21px}
.header .socials a[aria-label="Instagram"] svg{width:24px;height:24px}
.header .socials a[aria-label="ArtStation"] svg{width:19px;height:19px}

/* Two small signature dots above the navigation underline. */
.navigation a:before{content:'';position:absolute;bottom:6px;left:calc(50% - 4px);width:2px;height:2px;border-radius:50%;background:currentColor;box-shadow:6px 0 0 currentColor;opacity:0;transform:translateY(2px);transition:opacity .2s ease,transform .2s ease;pointer-events:none}
.navigation a:hover:before,.navigation a:focus-visible:before,.navigation a[aria-current="page"]:before{opacity:1;transform:translateY(0)}
.navigation a:focus-visible:after{width:100%}
.navigation a.is-smiling:before{opacity:1;transform:translateY(0)}
.navigation a.is-smiling:after{opacity:0}
.nav-smile{position:absolute;left:0;bottom:-4px;width:100%;height:10px;opacity:0;pointer-events:none}
.nav-smile svg{display:block;width:100%;height:100%;overflow:visible}
.navigation a.is-smiling .nav-smile{opacity:1}

/* On the work page, the opening film sits behind the navigation. */
body:has(.hero,.project-hero){padding-top:0}
body:has(.hero) .hero{height:calc(clamp(470px,37vw,760px) + var(--header-space))}
body:has(.hero,.project-hero) .header:not(.is-scrolled){background:transparent;color:#fff;border-bottom-color:transparent;box-shadow:none}
body:has(.hero,.project-hero) .header:not(.is-scrolled) .brand img{filter:brightness(0) invert(1)}
body:has(.hero,.project-hero) .header:not(.is-scrolled) .navigation a:after{background:#fff}
body:has(.hero,.project-hero) .header:not(.is-scrolled) .theme-toggle{color:#fff;border-color:#ffffff60}
body:has(.hero,.project-hero) .header:not(.is-scrolled) .theme-toggle:hover{background:#ffffff18;border-color:#ffffffa0}
body:has(.hero,.project-hero) .header:not(.is-scrolled) :focus-visible{outline-color:#fff}
@media(min-width:1600px){body:has(.hero) .hero{height:calc(clamp(590px,37vw,800px) + var(--header-space))}}
@media(max-width:850px){body:has(.hero) .hero{height:calc(62vw + var(--header-space));min-height:calc(420px + var(--header-space))}}
@media(max-width:560px){body:has(.hero) .hero{height:calc(70svh + var(--header-space));min-height:calc(450px + var(--header-space));max-height:calc(680px + var(--header-space))}}

.reveal-item{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.65,.3,1)}
.reveal-item.is-revealed{opacity:1;transform:none}
.reveal-item.reveal-instant{transition:none}
.header.has-project-cover{isolation:isolate;overflow:hidden}
.header.has-project-cover:before{content:'';position:absolute;inset:-28px;z-index:-1;pointer-events:none;background-image:var(--project-header-image);background-position:center 40%;background-size:cover;filter:blur(22px);opacity:.24}
:root:not([data-theme="dark"]) .header.has-project-cover:before{filter:blur(22px) grayscale(1)}
:root[data-theme="dark"] .header.has-project-cover:before{opacity:.3}
@media(prefers-reduced-motion:reduce){.reveal-item{opacity:1;transform:none}}


body:has(.project-hero) .header:not(.is-scrolled):before{opacity:0}
body:has(.collection-grid img[src="assets/thumb-012.jpg"]) .header{background:rgba(31,30,36,.95);color:#f5f4f0;border-bottom-color:#ffffff14}
body:has(.collection-grid img[src="assets/thumb-012.jpg"]) .header.has-project-cover:before{opacity:.16}
body:has(.collection-grid img[src="assets/thumb-012.jpg"]) .header .brand img{filter:brightness(0) invert(.96)}
body:has(.collection-grid img[src="assets/thumb-012.jpg"]) .header .navigation a:after{background:currentColor}
body:has(.collection-grid img[src="assets/thumb-012.jpg"]) .header .theme-toggle{color:inherit;border-color:#ffffff40}
body:has(.collection-grid img[src="assets/thumb-012.jpg"]) .header .theme-toggle:hover{background:#ffffff14;border-color:#ffffff80}
body:has(.collection-grid img[src="assets/thumb-012.jpg"]) .header :focus-visible{outline-color:#fff}

