@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/DMSans-Regular.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/DMSans-Bold.ttf') format('truetype')}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/Poppins-Bold.ttf') format('truetype')}
:root{--text:#edf4f7;--background:#060c0e;--primary:#4b9fd2;--secondary:#1b5274;--accent:#1f73a8;--text-50:var(--background);--text-100:color-mix(in srgb,var(--text) 10%,var(--background));--text-200:color-mix(in srgb,var(--text) 20%,var(--background));--text-300:color-mix(in srgb,var(--text) 35%,var(--background));--text-400:color-mix(in srgb,var(--text) 50%,var(--background));--text-500:color-mix(in srgb,var(--text) 60%,var(--background));--text-600:color-mix(in srgb,var(--text) 75%,var(--background));--text-700:color-mix(in srgb,var(--text) 85%,var(--background));--text-800:color-mix(in srgb,var(--text) 90%,var(--background));--text-900:color-mix(in srgb,var(--text) 95%,var(--background));--text-950:var(--text);--background-50:var(--background);--background-100:color-mix(in srgb,var(--secondary) 12%,var(--background));--background-200:color-mix(in srgb,var(--secondary) 25%,var(--background));--background-300:color-mix(in srgb,var(--secondary) 50%,var(--background));--background-400:color-mix(in srgb,var(--secondary) 75%,var(--background));--background-500:var(--secondary);--background-600:color-mix(in srgb,var(--secondary) 75%,var(--background));--background-700:color-mix(in srgb,var(--secondary) 55%,var(--background));--background-800:color-mix(in srgb,var(--secondary) 35%,var(--background));--background-900:color-mix(in srgb,var(--secondary) 20%,var(--background));--background-950:color-mix(in srgb,var(--secondary) 10%,var(--background));--primary-50:color-mix(in srgb,var(--primary) 8%,var(--background));--primary-100:color-mix(in srgb,var(--primary) 18%,var(--background));--primary-200:color-mix(in srgb,var(--primary) 35%,var(--background));--primary-300:color-mix(in srgb,var(--primary) 55%,var(--background));--primary-400:color-mix(in srgb,var(--primary) 78%,var(--background));--primary-500:var(--primary);--primary-600:color-mix(in srgb,var(--primary) 90%,var(--text));--primary-700:color-mix(in srgb,var(--primary) 80%,var(--text));--primary-800:color-mix(in srgb,var(--primary) 60%,var(--text));--primary-900:color-mix(in srgb,var(--primary) 35%,var(--text));--primary-950:color-mix(in srgb,var(--primary) 20%,var(--text));--secondary-50:color-mix(in srgb,var(--secondary) 8%,var(--background));--secondary-100:color-mix(in srgb,var(--secondary) 18%,var(--background));--secondary-200:color-mix(in srgb,var(--secondary) 35%,var(--background));--secondary-300:color-mix(in srgb,var(--secondary) 55%,var(--background));--secondary-400:color-mix(in srgb,var(--secondary) 78%,var(--background));--secondary-500:var(--secondary);--secondary-600:color-mix(in srgb,var(--secondary) 90%,var(--text));--secondary-700:color-mix(in srgb,var(--secondary) 80%,var(--text));--secondary-800:color-mix(in srgb,var(--secondary) 60%,var(--text));--secondary-900:color-mix(in srgb,var(--secondary) 35%,var(--text));--secondary-950:color-mix(in srgb,var(--secondary) 20%,var(--text));--accent-50:color-mix(in srgb,var(--accent) 8%,var(--background));--accent-100:color-mix(in srgb,var(--accent) 18%,var(--background));--accent-200:color-mix(in srgb,var(--accent) 35%,var(--background));--accent-300:color-mix(in srgb,var(--accent) 55%,var(--background));--accent-400:color-mix(in srgb,var(--accent) 78%,var(--background));--accent-500:var(--accent);--accent-600:color-mix(in srgb,var(--accent) 90%,var(--text));--accent-700:color-mix(in srgb,var(--accent) 80%,var(--text));--accent-800:color-mix(in srgb,var(--accent) 60%,var(--text));--accent-900:color-mix(in srgb,var(--accent) 35%,var(--text));--accent-950:color-mix(in srgb,var(--accent) 20%,var(--text));--bg:var(--background);--muted:var(--text-700)}
:root{color-scheme:dark;--bg:var(--background-50);--muted:var(--text-600)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text-950);font-family:'DM Sans',Arial,sans-serif;font-size:15px}button{font:inherit;color:inherit;cursor:pointer;border:0}button:focus-visible,a:focus-visible{outline:2px solid var(--accent-300);outline-offset:5px}a{color:inherit;text-decoration:none}.skip-link{position:fixed;left:20px;top:-60px;z-index:10;background:var(--text-950);color:var(--background-50);padding:12px}.skip-link:focus{top:10px}aside{width:320px;position:fixed;inset:0 auto 0 0;padding:30px 26px;display:flex;flex-direction:column}.name{font-family:'Poppins',sans-serif;font-size:65px;font-weight:600;letter-spacing:-2px;line-height:1.05}.name>span{color:var(--accent)}.bio{font-size:16px;line-height:1.65;color:var(--text-700);margin:22px 0}.bio strong{font-weight:500;color:var(--text-950)}.actions{display:flex;gap:8px}.actions button{background:var(--background-100);border-radius:30px;font-size:12px;padding:12px 15px;white-space:nowrap;display:flex;gap:12px}.actions .light{background:var(--text-950);color:var(--background-50)}.actions button:hover{transform:translateY(-2px)}.elsewhere{margin-top:auto;padding-top:60px}.elsewhere>small{font-size:9px;letter-spacing:1.7px;color:var(--text-600);display:block;margin-bottom:14px}.elsewhere a{display:block;padding:6px 0;font-size:13px;color:var(--text-700)}.elsewhere a:hover{color:white}.elsewhere p{font-size:10px;line-height:1.8;color:var(--text-600);margin-top:27px}.elsewhere p span{color:var(--text-400)}main{margin-left:340px;padding-right:26px;max-width:1800px}header{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}nav{display:flex;gap:23px;align-items:center}nav button{padding:0;background:none;color:var(--text-600);font-size:12px;white-space:nowrap}nav button.active,nav button:hover{color:var(--text-950)}nav em{font-style:normal;color:var(--accent);margin-left:4px}nav button em{opacity:0;transition:opacity 220ms ease}nav button.active em{opacity:1}.gallery{columns:2;column-gap:14px}.project{display:block;break-inside:avoid;width:100%;text-align:left;margin:0 0 24px;border-radius:6px}.project[hidden]{display:none}.art{position:relative;overflow:hidden;border-radius:5px;isolation:isolate;background:var(--text-900);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}.art.cover-featured{aspect-ratio:4/4.6}.art img{width:100%;height:100%;object-fit:cover;transition:transform .6s,filter .3s}.project:hover img{transform:scale(1.025);filter:brightness(1.03)}.cover-web{background:var(--text-900)}.cover-brand{background:var(--text-950)}.cover-social{background:var(--text-900)}.cover-graphic{background:var(--text-900)}.view-project{position:absolute;right:16px;bottom:16px;border-radius:30px;padding:10px 14px;font-size:11px;background:var(--text-950);color:var(--background-50);opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}.project:hover .view-project,.project:focus-within .view-project{opacity:1;transform:none}.caption{display:flex;align-items:center;justify-content:space-between;padding:15px 2px 8px;gap:15px}.caption h2{font-size:15px;font-weight:500;line-height:1.3;margin:0 0 7px}.caption p{font-size:11px;line-height:1.6;margin:0;color:var(--text-600);max-width:470px}.type-cover{width:100%;height:100%;padding:35px;color:var(--background-100);background:var(--text-800);display:flex;flex-direction:column;justify-content:center}.type-cover>small{font-size:8px;letter-spacing:2px}.type-cover strong{font-family:'Poppins',sans-serif;font-size:clamp(40px,4vw,75px);line-height:1.05;font-weight:400;letter-spacing:-3px;position:relative;margin:20px 0}.type-cover strong span{position:absolute;right:0;top:4px;font-family:Arial;font-size:70px;color:var(--text-400)}.type-cover>p{font-size:12px}footer{padding:45px 0 35px;border-top:1px solid var(--background-100);display:flex;flex-direction:column;gap:15px;color:var(--text-700)}footer>p{font-family:'Poppins',sans-serif;font-size:32px;margin:0}footer button{background:none;text-align:left;padding:0;color:var(--text-900);font-size:13px}footer small{color:var(--text-600);font-size:10px;margin-top:32px}.back-top{font-size:11px;color:var(--text-700);align-self:start}dialog{width:min(730px,calc(100% - 32px));max-height:90dvh;overflow:auto;background:var(--background-50);color:var(--text-950);border:1px solid var(--background-200);border-radius:12px;padding:50px}dialog::backdrop{background:color-mix(in srgb, var(--background-50) 73.3%, transparent);backdrop-filter:blur(8px)}.eyebrow{font-size:10px;letter-spacing:1.3px;color:var(--text-700)}dialog h2{font-family:'Poppins',sans-serif;font-size:46px;letter-spacing:-2px;line-height:1.1;font-weight:400;margin:24px 0}dialog p{font-size:14px;line-height:1.85;color:var(--text-700)}dialog .lead{font-size:18px;line-height:1.6;color:var(--text-900)}.meta{display:flex;gap:30px;padding:20px 0;border-block:1px solid var(--background-200);margin:30px 0}.meta span{font-size:9px;color:var(--text-700)}.meta b{display:block;font-size:12px;font-weight:400;color:var(--text-800);margin-top:8px}.case-link{color:var(--text-900);display:inline-block;border-bottom:1px solid var(--text-600);padding-bottom:3px;font-size:12px}.case-link:hover{color:var(--text-950);border-color:var(--text-950)}.contact-link{display:inline-block;background:var(--text-950);color:var(--background-50);border-radius:30px;padding:15px 23px;margin:20px 0}.contact-location{font-size:11px;color:var(--text-700)}.case-study{width:min(1100px,calc(100% - 48px));padding:50px 65px}.case-heading{max-width:750px;padding:5px 0 35px}.case-heading h2{font-size:52px}.case-body>p,.case-body>h3{max-width:740px;margin-left:auto;margin-right:auto}.case-body h3{font-size:26px;font-weight:500;letter-spacing:-.5px;line-height:1.3;margin-top:45px;margin-bottom:15px}.case-body figure{margin:30px 0}.case-body img{display:block;max-width:100%;max-height:1100px;width:auto;height:auto;object-fit:cover;margin:auto;background:var(--text-950);border-radius:4px}.case-body video{display:block;width:100%;max-height:650px;background:var(--background-50);border-radius:4px}.case-body figcaption{padding:10px 0;text-align:center}.case-bottom{display:flex;gap:25px;justify-content:space-between;border-top:1px solid var(--background-200);padding-top:30px;margin-top:45px;font-size:12px}.case-bottom button{background:none;padding:0;text-align:left}.case-bottom a{color:var(--text-800);text-align:right}body:has(dialog[open]){overflow:hidden}@media(min-width:1600px){aside{width:360px;padding:36px}.bio{max-width:290px}main{margin-left:380px;padding-right:36px}.gallery{column-gap:18px}.caption h2{font-size:17px}.caption p{font-size:13px}nav button{font-size:14px}}@media(max-width:1100px){aside{width:270px;padding:28px 22px}.name{font-size:58px}.bio{font-size:14px}main{margin-left:285px;padding-right:18px}nav{gap:16px}nav button{font-size:10px}.caption h2{font-size:14px}.caption p{font-size:10px}.type-cover{padding:24px}.type-cover strong span{font-size:45px}}@media(max-width:760px){aside{position:relative;width:100%;padding:32px 22px 26px}.name{font-size:65px}.bio{max-width:470px;font-size:15px;margin:18px 0}.elsewhere{display:none}main{margin:0;padding:0 16px}header{min-height:65px;overflow-x:auto}nav{gap:22px;padding:0 6px;min-height:65px}nav button{font-size:12px}.gallery{column-gap:12px}.caption p{font-size:11px;line-height:1.6}footer{padding:38px 7px}.case-study{padding:35px 28px;width:calc(100% - 20px)}.case-heading h2{font-size:38px}.case-body h3{font-size:22px}.type-cover strong{font-size:42px}}@media(max-width:520px){.gallery{columns:1}.art.cover-featured{aspect-ratio:4/4.5}.caption{padding:15px 3px 10px}.caption p{font-size:12px}.caption h2{font-size:16px}.type-cover{padding:32px}.type-cover strong{font-size:62px}.type-cover strong span{font-size:65px}dialog{padding:35px 26px}dialog h2{font-size:37px}.meta{gap:20px}.case-bottom{font-size:11px}.case-body figure{margin:24px -10px}.case-body>p{font-size:13px}.view-project{opacity:1;transform:none;padding:8px 10px;font-size:10px}.project{margin-bottom:20px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Project covers and sidebar previews share a calm, reversible hover state. */
.project{position:relative;margin-bottom:14px;isolation:isolate}
.project .art{transform:none;clip-path:inset(0 0 0 0 round 5px);transition:clip-path 480ms cubic-bezier(.22,1,.36,1);will-change:clip-path}
.project .art img,.project:hover .art img{transform:none;filter:none;transition:none}
.project .caption{position:absolute;inset:auto 0 1px;padding:0;gap:12px;opacity:0;transform:translateY(9px);pointer-events:none;transition:opacity 260ms ease,transform 420ms cubic-bezier(.22,1,.36,1)}
.project .caption>div{min-width:0}
.project .caption h2{margin:0;font-size:13px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project .caption p{display:none}

.project:focus-within .art{clip-path:inset(0 0 32px 0 round 5px)}
.project:focus-within .caption{opacity:1;transform:translateY(0);transition-delay:70ms}
@media(hover:hover){
 .project:hover .art{clip-path:inset(0 0 32px 0 round 5px)}
 .project:hover .caption{opacity:1;transform:translateY(0);transition-delay:70ms}
}
.elsewhere{position:relative;min-height:265px;padding-top:0}
.elsewhere-default,.elsewhere-case{position:absolute;inset:auto 0 0;transition:opacity 260ms ease,transform 380ms cubic-bezier(.22,1,.36,1)}
.elsewhere-default{opacity:1;transform:translateY(0)}
.elsewhere-default>small{font-size:9px;letter-spacing:1.7px;color:var(--text-600);display:block;margin-bottom:14px}
.elsewhere-case{opacity:0;transform:translateY(12px);pointer-events:none;max-height:40vh;overflow:auto;scrollbar-width:thin}
.elsewhere.show-case .elsewhere-default{opacity:0;transform:translateY(-10px);pointer-events:none}
.elsewhere.show-case .elsewhere-case{opacity:1;transform:translateY(0)}
.elsewhere.show-case.switching-case .elsewhere-case{opacity:0;transform:translateY(7px);transition-duration:180ms}
.case-preview-meta{display:flex;align-items:baseline;justify-content:space-between;gap:14px;font-size:9px;line-height:1.6;color:var(--text-600)}
.case-preview-category{max-width:65%}
.case-preview-year{text-align:right;white-space:nowrap;color:var(--text-600)}
.case-preview-name{font-size:18px;line-height:1.35;font-weight:500;letter-spacing:-.3px;margin:12px 0}
.elsewhere .case-preview-description{font-size:12px;line-height:1.75;color:var(--text-700);margin:0}
@media(hover:none),(max-width:760px){
 .project{padding-bottom:32px;margin-bottom:16px}
 .project .caption{opacity:1;transform:none;bottom:0;inset-inline:2px}
 .project .art,.project:focus-within .art{transform:none;clip-path:inset(0 0 0 0 round 5px)}
}
@media(prefers-reduced-motion:reduce){.project .art,.project .caption,.elsewhere-default,.elsewhere-case{transition:none!important}}

/* Fade between category layouts without interrupting rapid tab changes. */
.gallery{opacity:1;transform:translateY(0);transition:opacity 200ms ease,transform 360ms cubic-bezier(.22,1,.36,1)}
.gallery.is-filtering{opacity:0;transform:translateY(8px);pointer-events:none}
nav button{transition:color 240ms ease}
nav button em{transition:opacity 240ms ease,transform 300ms cubic-bezier(.22,1,.36,1);display:inline-block;transform:scale(.65)}
nav button.active em{transform:scale(1)}
@media(prefers-reduced-motion:reduce){.gallery,nav button,nav button em{transition:none!important}}

/* Both masonry columns share a bottom edge; artwork absorbs spare height. */
.gallery{--gallery-gap:8px;display:flex;columns:auto;gap:var(--gallery-gap);align-items:stretch}
.gallery-column{container-type:inline-size;display:flex;flex:1 1 0;min-width:0;flex-direction:column;gap:var(--gallery-gap)}
.gallery-column:empty,.gallery-archive[hidden]{display:none}
.gallery-column .project{display:flex;flex-direction:column;flex:1 0 auto;min-height:0;margin:0;width:100%}
.gallery-column .project[hidden]{display:none}
.gallery-column .project .art{flex:1 0 auto;width:100%;height:auto;aspect-ratio:auto;min-height:300px;min-height:75cqw}
.gallery-column .project .art.cover-featured{aspect-ratio:auto;min-height:115cqw}
.gallery-column .project .art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.gallery-column .project .art>.type-cover{position:absolute;inset:0}
@media(min-width:1600px){.gallery{--gallery-gap:8px}}
@media(max-width:760px){.gallery{--gallery-gap:8px}}
@media(max-width:520px){
 .gallery{flex-direction:column}
 .gallery-column{flex:0 0 auto;width:100%}
 .gallery-column .project{flex:0 0 auto}
}

/* Edge-to-edge dialogs reveal from their originating card or button. */
dialog,dialog.case-study{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;min-height:100dvh;margin:0;padding:0;border:0;border-radius:0;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
dialog #detail{width:100%;min-height:100%;margin:0;padding:0}
dialog .case-heading{max-width:none;margin:0;padding:0}
dialog .case-body figure{margin:0}
dialog .case-body img,dialog .case-body video{border-radius:0}


/* Keep the introduction at least 27% wide while reserving the same space beside it. */
:root{--aside-width:max(320px,27vw);--aside-gap:20px}
aside{width:var(--aside-width);min-width:27vw}
main{margin-left:calc(var(--aside-width) + var(--aside-gap))}
@media(max-width:1100px){:root{--aside-width:max(270px,27vw);--aside-gap:15px}}
@media(max-width:760px){aside{width:100%}main{margin-left:0}}

/* On mobile, keep the complete project caption in the normal document flow. */
@media(max-width:760px){
 .gallery-column .project{padding-bottom:0}
 .gallery-column .project .art{clip-path:inset(0 0 0 0 round 5px)}
 .project .caption{position:static;inset:auto;flex:0 0 auto;opacity:1;transform:none;padding:14px 2px 10px}
 .project .caption>div{width:100%}
 .project .caption h2{font-size:16px;line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip}
 .project .caption p{display:block;font-size:12px;line-height:1.65;color:var(--text-600);margin:8px 0 0}
}

/* Keep case navigation at the top-left with the shared action-button style. */
dialog .case-actions{position:sticky;top:16px;z-index:9;width:max-content;max-width:calc(100% - 80px);margin:16px 0 24px 16px}
dialog .case-bottom{justify-content:flex-end}

/* Give the case introduction room while keeping the modal edge to edge. */
dialog .case-heading{padding:clamp(24px,4vw,56px) clamp(20px,5vw,80px)}

/* Align every case-body block to one centered, responsive content width. */
dialog .case-body{width:100%;max-width:900px;margin-inline:auto}
dialog .case-body>p,dialog .case-body>h3,dialog .case-body>figure{width:100%;max-width:none;margin-inline:0}
dialog .case-body img,dialog .case-body video{display:block;width:100%;max-width:100%;height:auto;max-height:none;margin-inline:0}

/* Editorial case metadata: narrative left, project facts and links right. */
dialog .case-metadata{--case-meta-accent:var(--primary-400);display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(36px,5vw,80px);width:100%;padding:32px 0 72px;margin:0;border-bottom:1px solid var(--background-100)}
.case-meta-overview{display:flex;flex-direction:column;gap:32px;min-width:0}
dialog .case-meta-group h3,.case-meta-details dt{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:600;line-height:1.4;letter-spacing:.4px;text-transform:uppercase;color:var(--case-meta-accent);margin:0 0 10px}
dialog .case-meta-group p{font-size:20px;line-height:1.5;letter-spacing:-.4px;color:var(--text-950);margin:0 0 14px}
dialog .case-meta-group p:last-child{margin-bottom:0}
.case-meta-details{min-width:0}
.case-meta-details dl{display:flex;flex-direction:column;gap:24px;margin:0}
.case-meta-details dt{margin-bottom:6px}
.case-meta-details dd{font-size:14px;line-height:1.65;color:var(--text-950);margin:0}
.case-meta-actions{display:flex;flex-direction:column;gap:8px;margin-top:30px}
.case-meta-actions button,.case-meta-actions a{display:flex;align-items:center;justify-content:center;min-height:40px;width:100%;border:0;border-radius:28px;padding:11px 18px;font-size:12px;font-weight:500;text-align:center;line-height:1.5;text-decoration:none;transition:background 220ms ease,transform 220ms ease}
.case-meta-actions button{background:var(--case-meta-accent);color:var(--background-50)}
.case-meta-actions a{background:var(--text-950);color:var(--background-50)}
.case-meta-actions button:hover,.case-meta-actions a:hover{transform:translateY(-2px)}
@media(max-width:640px){
 dialog .case-metadata{grid-template-columns:1fr;gap:36px;padding-block:40px 48px;margin-bottom:0}
 dialog .case-meta-group p{font-size:18px;line-height:1.55}
 .case-meta-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 .case-meta-details dl>div:last-child{grid-column:1/-1}
}

/* Crossfade artwork while retaining the bottom-edge caption reveal. */
.gallery-column .project .art>img.cover-primary,.gallery-column .project .art>img.cover-secondary{transition:opacity 520ms cubic-bezier(.4,0,.2,1);pointer-events:none}
.gallery-column .project .art>img.cover-primary{opacity:1;z-index:0}
.gallery-column .project .art>img.cover-secondary{opacity:0;z-index:1}
@media(hover:hover){
 .gallery-column .project.has-hover-cover.is-cover-ready:hover .cover-primary{opacity:0}
 .gallery-column .project.has-hover-cover.is-cover-ready:hover .cover-secondary{opacity:1}
}
.gallery-column .project.has-hover-cover.is-cover-ready:focus-within .cover-primary{opacity:0}
.gallery-column .project.has-hover-cover.is-cover-ready:focus-within .cover-secondary{opacity:1}
@media(prefers-reduced-motion:reduce){.gallery-column .project .art>img.cover-primary,.gallery-column .project .art>img.cover-secondary{transition:none}}

/* Muted hover-video previews fade over the cover without cropping portrait work. */
.gallery-column .project .art>.cover-video{position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;object-fit:cover;background:var(--preview-background,var(--text-900));opacity:0;pointer-events:none;transition:opacity 520ms cubic-bezier(.4,0,.2,1)}
.gallery-column .project.is-video-playing .art>.cover-video{opacity:1}
.gallery-column .project.is-video-playing .art>.cover-primary{opacity:0}
@media(prefers-reduced-motion:reduce){.gallery-column .project .art>.cover-video{transition:none}}

/* Match video covers to their source proportions and keep every frame visible. */
.gallery-column .project.has-video-preview .art{min-height:calc(100cqw * var(--preview-height-ratio,1.7777778));background:var(--preview-background,var(--text-900))}
.gallery-column .project.has-video-preview .art>img.cover-primary,.gallery-column .project.has-video-preview .art>.cover-video{object-fit:cover;background:var(--preview-background,var(--text-900))}
/* Fit the entire frame inside the area left by the bottom-edge title reveal. */
.gallery-column .project.has-video-preview .art>img.cover-primary,.gallery-column .project.has-video-preview .art>.cover-video{transition:opacity 520ms cubic-bezier(.4,0,.2,1),height 480ms cubic-bezier(.22,1,.36,1)}
.gallery-column .project.has-video-preview:focus-within .art>img.cover-primary,.gallery-column .project.has-video-preview:focus-within .art>.cover-video{height:100%}
@media(hover:hover) and (min-width:761px){
 .gallery-column .project.has-video-preview:hover .art>img.cover-primary,.gallery-column .project.has-video-preview:hover .art>.cover-video{height:100%}
}
@media(max-width:760px){
 .gallery-column .project.has-video-preview:focus-within .art>img.cover-primary,.gallery-column .project.has-video-preview:focus-within .art>.cover-video{height:100%}
}
@media(prefers-reduced-motion:reduce){.gallery-column .project.has-video-preview .art>img.cover-primary,.gallery-column .project.has-video-preview .art>.cover-video{transition:none}}

/* Begin zoomed in, then ease back to media filling the entire frame on hover. */
.gallery-column .project.has-video-preview .art>img.cover-primary,.gallery-column .project.has-video-preview .art>.cover-video{transform-origin:50% 50%;transition:opacity 520ms cubic-bezier(.4,0,.2,1),height 480ms cubic-bezier(.22,1,.36,1),transform 800ms cubic-bezier(.42,0,.18,1)}
@media(hover:hover) and (min-width:761px){
 .gallery-column .project.has-video-preview .art{min-height:calc(100cqw * var(--preview-height-ratio,1.7777778) + 32px)}
 .gallery-column .project.has-video-preview .art>img.cover-primary,.gallery-column .project.has-video-preview .art>.cover-video{transform:scale(var(--video-cover-zoom,1.14))}
 .gallery-column .project.has-video-preview:hover .art>img.cover-primary,.gallery-column .project.has-video-preview:hover .art>.cover-video{transform:scale(1)}
}
.gallery-column .project.has-video-preview:focus-within .art>img.cover-primary,.gallery-column .project.has-video-preview:focus-within .art>.cover-video{transform:scale(1)}
@media(prefers-reduced-motion:reduce){.gallery-column .project.has-video-preview .art>img.cover-primary,.gallery-column .project.has-video-preview .art>.cover-video{transition:none}}

/* Use the second image's native proportions as each image cover's preferred size. */
.gallery-column .project.has-hover-cover .art{aspect-ratio:1 / var(--cover-height-ratio,.75);min-height:calc(100cqw * var(--cover-height-ratio,.75))}

/* Keep the giveaway preview's media height steady; only use a subtle zoom. */
.gallery-column .project[data-slug="footlioo-x-petites-pommes-giveaway-campaign-social"]{--video-cover-zoom:1.06}
@media(hover:hover) and (min-width:761px){
 .gallery-column .project[data-slug="footlioo-x-petites-pommes-giveaway-campaign-social"] .art>img.cover-primary,
 .gallery-column .project[data-slug="footlioo-x-petites-pommes-giveaway-campaign-social"] .art>.cover-video{
  height:100%;
  transition:opacity 520ms cubic-bezier(.4,0,.2,1),transform 800ms cubic-bezier(.42,0,.18,1);
 }
}
@media(prefers-reduced-motion:reduce){
 .gallery-column .project[data-slug="footlioo-x-petites-pommes-giveaway-campaign-social"] .art>img.cover-primary,
 .gallery-column .project[data-slug="footlioo-x-petites-pommes-giveaway-campaign-social"] .art>.cover-video{transition:none}
}


/* Case media layouts follow the original case pages inside the 900px body. */
dialog .case-body figure.case-media{width:100%;margin:24px auto}
dialog .case-body figure.case-media img{width:100%;height:auto;max-height:none;object-fit:cover}
dialog .case-body .case-media figcaption{font-size:11px;color:var(--text-700);text-align:center;line-height:1.6;margin-top:10px}
.case-media-row{display:grid;grid-template-columns:repeat(var(--case-row-columns,2),minmax(0,1fr));gap:36px 28px;align-items:start;margin:40px 0}
.case-media-column{min-width:0}
.case-media-column>h3:first-child{margin-top:0}
dialog .case-body .case-media-column>figure.case-media:first-child{margin-top:0}
dialog .case-body .case-media-column p{margin:14px 0;line-height:1.8}
.case-image-grid{display:grid;grid-template-columns:repeat(var(--case-grid-columns,2),minmax(0,1fr));gap:10px;margin:30px 0}
.case-image-masonry{display:flex;gap:10px;margin:30px 0;align-items:flex-start}
.case-masonry-column{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
dialog .case-body .case-image-grid>figure.case-media,dialog .case-body .case-masonry-column>figure.case-media{margin:0;max-width:none!important}
.case-image-grid.has-fixed-ratio>figure.case-media{aspect-ratio:var(--case-image-ratio,1);overflow:hidden}
dialog .case-body .case-image-grid.has-fixed-ratio>figure.case-media>img{height:100%;object-fit:cover}
.case-image-carousel{margin:32px 0;min-width:0;max-width:100%}
.case-carousel-track{display:flex;align-items:flex-start;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--text-400) var(--background-50);max-width:100%;padding-bottom:12px}
dialog .case-body .case-carousel-track>figure.case-media{flex:0 0 auto;scroll-snap-align:start;margin:0;max-width:none!important;width:auto}
dialog .case-body .case-carousel-track>figure.case-media>img{height:var(--case-carousel-height,300px);width:auto;max-width:none;object-fit:cover;background:transparent}
.case-carousel-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:12px;font-size:10px;color:var(--text-700)}
.case-carousel-controls button{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--text-400);background:var(--background-100);border-radius:50%;font-size:17px}
.case-carousel-controls button:hover{background:var(--background-200)}
dialog .case-body figure.case-comparison{width:100%;margin:24px 0}
.case-compare-stage{position:relative;aspect-ratio:var(--comparison-ratio,1);width:100%;overflow:hidden;background:var(--text-950);isolation:isolate}
dialog .case-body .case-compare-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;max-width:none;margin:0}
.case-compare-before{z-index:1;clip-path:inset(0 calc(100% - var(--comparison-position,50%)) 0 0)}
.case-compare-divider{position:absolute;z-index:2;top:0;bottom:0;left:var(--comparison-position,50%);width:2px;background:var(--text-950);filter:drop-shadow(0 0 3px color-mix(in srgb, var(--background-50) 40.0%, transparent));pointer-events:none}
.case-compare-divider>span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--text-950);color:var(--background-50);font-size:23px}
.case-compare-range{position:absolute;z-index:3;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:ew-resize;touch-action:pan-y}
.case-compare-stage:focus-within{outline:2px solid var(--accent-300);outline-offset:4px}
.case-comparison>figcaption{display:flex;align-items:center;justify-content:space-between;font-size:10px;line-height:1.5;color:var(--text-700);margin-top:10px}
@media(max-width:767px){.case-image-grid{grid-template-columns:repeat(var(--case-tablet-columns,2),minmax(0,1fr))}}
@media(max-width:600px){
 .case-media-row{grid-template-columns:1fr;gap:24px;margin-block:30px}
 dialog .case-body .case-carousel-track>figure.case-media>img{height:min(var(--case-carousel-height,300px),400px)}
 .case-carousel-controls{justify-content:center}
}
.case-media-panel{background:var(--case-panel-background,transparent);padding:var(--case-panel-padding,0);margin:24px 0}
dialog .case-body .case-media-panel>figure.case-media{margin-block:0}
dialog .case-body .case-media-panel img{background:transparent}
.case-media-column>.case-media-panel:first-child{margin-top:0}
.case-carousel-track:focus-visible{outline:2px solid var(--accent-300);outline-offset:4px}
@media(max-width:600px){.case-media-panel{padding:20px}}

@media(max-width:767px){.case-media-row{grid-template-columns:1fr;gap:24px;margin-block:30px}.case-media-panel{padding:20px}}
@media(max-width:543px){.case-image-grid{grid-template-columns:repeat(var(--case-mobile-columns,1),minmax(0,1fr))}}

/* Brand hover covers show the authentic logo on its primary brand color. */
.gallery-column .project .art>.brand-logo-tile{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:clamp(20px,6cqw,48px);background:var(--brand-hover-color);opacity:0;pointer-events:none;transition:opacity 520ms cubic-bezier(.4,0,.2,1)}
.gallery-column .project .art>.brand-logo-tile>img{position:static;display:block;width:70%;height:70%;max-width:70%;max-height:70%;object-fit:cover;background:transparent;transform:none;filter:none}
.gallery-column .project .art>.brand-logo-tile.logo-dark>img{filter:brightness(0)}
@media(prefers-reduced-motion:reduce){.gallery-column .project .art>.brand-logo-tile{transition:none}}

/* Brand logos lead; the content artwork is revealed on hover or keyboard focus. */
.gallery-column .project .art>.brand-logo-tile.cover-primary{opacity:1;z-index:0}

/* Brand artwork remains visible and gently zooms in instead of swapping to a logo. */
.gallery-column .project.brand-zoom-cover .art{aspect-ratio:1 / var(--cover-height-ratio,.75);min-height:calc(100cqw * var(--cover-height-ratio,.75))}
.gallery-column .project.brand-zoom-cover .art>img.cover-primary{opacity:1;transform:scale(1);transition:transform 800ms cubic-bezier(.22,1,.36,1)}
@media(hover:hover){.gallery-column .project.brand-zoom-cover:hover .art>img.cover-primary{transform:scale(1.06)}}
.gallery-column .project.brand-zoom-cover:focus-within .art>img.cover-primary{transform:scale(1.06)}
@media(prefers-reduced-motion:reduce){.gallery-column .project.brand-zoom-cover .art>img.cover-primary,.gallery-column .project.brand-zoom-cover:hover .art>img.cover-primary,.gallery-column .project.brand-zoom-cover:focus-within .art>img.cover-primary{transform:none;transition:none}}

/* About shares the case-body measure, with a timeline for verified career details. */
dialog .about-content{width:100%;max-width:900px;margin-inline:auto;padding:clamp(24px,4vw,56px) 0}
.about-history{border-top:1px solid var(--background-200);margin-top:56px;padding-top:40px}
.about-history>h3{font-family:'Poppins',sans-serif;font-size:30px;line-height:1.2;font-weight:400;letter-spacing:-.8px;margin:0 0 32px}
.about-timeline{list-style:none;margin:0;padding:0}
.about-timeline>li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px}
.timeline-period{font-size:12px;line-height:1.7;color:var(--text-700);padding-top:2px}
.timeline-entry{position:relative;border-left:1px solid var(--background-200);padding:0 0 36px 28px;min-width:0}
.timeline-entry::before{content:'';position:absolute;left:-4px;top:6px;width:7px;height:7px;background:var(--accent-400);border-radius:50%}
.about-timeline>li:last-child .timeline-entry{padding-bottom:0}
.timeline-kind{display:block;font-size:10px;line-height:1.5;letter-spacing:1px;text-transform:uppercase;color:var(--accent-300);margin-bottom:8px}
.timeline-kind.education{color:var(--text-700)}
.timeline-entry h4{font-size:19px;line-height:1.35;font-weight:500;margin:0 0 6px}
dialog .timeline-organization{font-size:14px;line-height:1.6;color:var(--text-800);margin:0}
dialog .timeline-description{font-size:13px;line-height:1.75;color:var(--text-700);margin:12px 0 0}
@media(max-width:940px){dialog .about-content{padding-inline:20px}}
@media(max-width:600px){.about-timeline>li{grid-template-columns:1fr;gap:10px}.timeline-period{padding-left:28px}.about-history{margin-top:40px;padding-top:28px}}

/* Immersive opening for every case; the story retains its 900px content width. */
dialog.case-study .case-actions{position:sticky;top:0;height:0;margin:0 0 0 20px;padding:0;overflow:visible;z-index:9}
dialog.case-study .case-actions button{position:absolute;top:20px;left:0;background:color-mix(in srgb, var(--background-100) 90.2%, transparent);backdrop-filter:blur(12px);color:var(--text-950)}
dialog .case-hero{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:100%;min-height:100svh;min-height:100dvh;padding:110px clamp(24px,8vw,130px);overflow:hidden;background:var(--background-50)}
.case-hero-media,.case-hero-media::after{position:absolute;inset:0}
.case-hero-media{z-index:-1}
.case-hero-media::after{content:'';background:linear-gradient(180deg,rgba(6,12,14,.52),rgba(6,12,14,.69) 65%,rgba(6,12,14,.64));z-index:2}
dialog .case-hero-media>img,dialog .case-hero-media>video{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.case-hero-video{opacity:0;transition:opacity 700ms ease}
.case-hero-video.is-playing{opacity:1}
.case-hero-content{width:100%;max-width:1080px;text-align:center}
.case-hero-content .eyebrow{display:block;color:var(--text-950);letter-spacing:1.8px;margin-bottom:22px}
dialog .case-hero :is(h1,h2){font-family:'Poppins',sans-serif;font-size:clamp(48px,7vw,108px);font-weight:600;line-height:1;letter-spacing:-.025em;color:var(--text-950);margin:0 0 22px;text-wrap:balance}
dialog .case-hero-content p{font-family:'Poppins',sans-serif;font-size:clamp(25px,3.1vw,44px);font-weight:500;line-height:1.2;color:var(--text-950);margin:0;text-wrap:balance}
.case-hero-scroll{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);width:44px;height:44px;background:transparent;color:var(--text-950);font-size:30px;line-height:1}
.case-hero-playback{position:absolute;right:24px;bottom:28px;background:color-mix(in srgb, var(--background-50) 70.2%, transparent);color:var(--text-950);border:1px solid color-mix(in srgb, var(--text-950) 30.2%, transparent);border-radius:24px;padding:10px 14px;font-size:11px;backdrop-filter:blur(8px)}
.case-hero-playback[hidden]{display:none}
dialog.case-study .case-body{padding-top:clamp(28px,4vw,56px)}
@media(max-width:600px){dialog .case-hero{padding:100px 24px 110px}.case-hero-content .eyebrow{font-size:9px;letter-spacing:1.2px}.case-hero-playback{right:16px;bottom:24px}}
@media(prefers-reduced-motion:reduce){.case-hero-video{transition:none}}

/* Blue interface surfaces and interaction states. */
body{background:var(--background-50);color:var(--text-950)}
.actions button{background:var(--background-100);color:var(--text-950);transition:background 220ms ease,transform 220ms ease}
.actions button:hover{background:var(--primary-700)}
.actions .light{background:var(--primary-100);color:var(--text-50)}
.actions .light:hover{background:var(--primary-200)}
nav button{color:var(--text-700)}
nav button.active,nav button:hover{color:var(--text-950)}
nav em,.name>span{color:var(--accent-400)}
button:focus-visible,a:focus-visible{outline-color:var(--accent-300)}
dialog{background:var(--background-50);color:var(--text-950)}
dialog .case-metadata{--case-meta-accent:var(--primary-400)}
.case-meta-actions button{background:var(--primary-300);color:var(--text-50)}
.case-meta-actions button:hover{background:var(--primary-200)}
.case-meta-actions a{background:var(--secondary-100);color:var(--text-50)}
.case-meta-actions a:hover{background:var(--secondary-200)}
dialog.case-study .case-actions button{background:color-mix(in srgb,var(--background-100) 90%,transparent);color:var(--text-950)}
dialog.case-study .case-actions button:hover{background:var(--primary-700)}
.case-hero-playback{background:color-mix(in srgb,var(--background-50) 80%,transparent);color:var(--text-950);border-color:var(--background-300)}

/* Light theme: pale blue surfaces, navy copy and clear blue controls. */
:root{color-scheme:dark;--bg:var(--background-50);--muted:var(--text-700)}
body{background:var(--background-50);color:var(--text-950)}
dialog{background:var(--background-50);color:var(--text-950)}
.actions button,.case-meta-actions button{background:var(--primary-700);color:var(--text-50)}
.actions button:hover,.case-meta-actions button:hover{background:var(--primary-800)}
.actions .light,.case-meta-actions a{background:var(--primary-100);color:var(--text-900)}
.actions .light:hover,.case-meta-actions a:hover{background:var(--primary-200)}
nav em,.name>span{color:var(--accent-700)}
nav button{color:var(--text-700)}
nav button.active,nav button:hover{color:var(--text-950)}
button:focus-visible,a:focus-visible{outline-color:var(--accent-600)}
dialog .case-metadata{--case-meta-accent:var(--primary-700)}
.case-image-carousel button{background:var(--background-100);color:var(--text-900);border-color:var(--background-300)}
.case-image-carousel button:hover{background:var(--background-200)}
/* Keep light lettering readable over project photography and video. */
dialog .case-hero{background:var(--background-900)}
dialog .case-hero :is(h1,h2),dialog .case-hero-content p,.case-hero-scroll{color:var(--text-50)}
dialog.case-study .case-actions button{background:color-mix(in srgb,var(--background-50) 94%,transparent);color:var(--text-900)}
dialog.case-study .case-actions button:hover{background:var(--primary-100)}
.case-hero-playback{background:color-mix(in srgb,var(--background-50) 94%,transparent);color:var(--text-900);border-color:var(--background-200)}

/* The selected five-color palette. */
:root{--text:#edf4f7;--background:#060c0e;--primary:#4b9fd2;--secondary:#1b5274;--accent:#1f73a8;--bg:var(--background)}
body,dialog{background:var(--background);color:var(--text)}
.actions button,.case-meta-actions button{background:var(--primary);color:var(--text)}
.actions button:hover,.case-meta-actions button:hover{background:var(--primary-700);color:var(--background)}
.actions .light,.case-meta-actions a{background:var(--secondary);color:var(--text)}
.actions .light:hover,.case-meta-actions a:hover{background:var(--secondary-400);color:var(--text)}
nav em,.name>span{color:var(--primary)}
button:focus-visible,a:focus-visible{outline-color:var(--primary)}
.timeline-entry::before{background:var(--accent)}
dialog.case-study .case-actions button{background:color-mix(in srgb,var(--background) 94%,transparent);color:var(--text)}
dialog.case-study .case-actions button:hover{background:var(--secondary);color:var(--text)}

/* Dark theme using the selected pale text and blue palette. */
:root{color-scheme:dark}
body,dialog{background:var(--background);color:var(--text)}
.actions button,.case-meta-actions button{background:var(--primary);color:var(--background)}
.actions button:hover,.case-meta-actions button:hover{background:var(--primary-700);color:var(--background)}
.actions .light,.case-meta-actions a{background:var(--secondary);color:var(--text)}
.actions .light:hover,.case-meta-actions a:hover{background:color-mix(in srgb,var(--secondary) 85%,var(--primary));color:var(--text)}
dialog .case-hero{background:var(--background)}
dialog .case-hero :is(h1,h2),dialog .case-hero-content p,.case-hero-scroll{color:var(--text)}
dialog.case-study .case-actions button{background:color-mix(in srgb,var(--background) 92%,transparent);color:var(--text)}
dialog.case-study .case-actions button:hover{background:var(--secondary);color:var(--text)}
.case-hero-playback{background:color-mix(in srgb,var(--background) 92%,transparent);color:var(--text);border-color:var(--secondary)}

/* Poppins headings and DM Sans body copy with the selected type scale. */
html{font-size:100%}
body{font-family:'DM Sans',sans-serif;font-weight:400;font-size:1rem}
button,input,textarea,select{font-family:inherit}
h1,h2,h3,h4,h5,dialog h2,dialog .case-body h3,dialog .case-meta-group h3,.about-history>h3,.timeline-entry h4,.project .caption h2,.case-preview-name,dialog .case-hero :is(h1,h2){font-family:'Poppins',sans-serif;font-weight:700;letter-spacing:-.025em}
h1{font-size:4.210rem;line-height:1.15}
h2,dialog h2,dialog .case-hero :is(h1,h2){font-size:3.158rem;line-height:1.18}
h3,dialog .case-body h3,.about-history>h3{font-size:2.369rem;line-height:1.25}
h4,.timeline-entry h4{font-size:1.777rem;line-height:1.3}
h5{font-size:1.333rem;line-height:1.35}
small,.elsewhere-default>small,dialog .eyebrow{font-size:.750rem}
.name{font-family:'Poppins',sans-serif;font-weight:700;font-size:clamp(2rem,3.25vw,3rem);letter-spacing:-.05em;line-height:1.15}
dialog .case-hero-content p{font-family:'DM Sans',sans-serif;font-weight:400;font-size:clamp(1rem,2vw,1.5rem);line-height:1.6;max-width:850px;margin-inline:auto}
dialog p{font-size:1rem;font-weight:400}
dialog .case-meta-group p{font-size:1.25rem}
/* Compact labels use the same fonts without overwhelming project cards. */
.project .caption h2{font-size:1rem;line-height:1.35}
.case-preview-name{font-size:1.125rem;line-height:1.4}
dialog .case-meta-group h3,.case-meta-details dt{font-family:'Poppins',sans-serif;font-weight:700;font-size:.750rem;letter-spacing:.04em}
@media(max-width:760px){
 h1{font-size:clamp(2.5rem,8vw,4.210rem)}
 h2,dialog h2,dialog .case-hero :is(h1,h2){font-size:clamp(2rem,7vw,3.158rem)}
 h3,dialog .case-body h3,.about-history>h3{font-size:clamp(1.75rem,5.5vw,2.369rem)}
 h4,.timeline-entry h4{font-size:clamp(1.375rem,4.5vw,1.777rem)}
 dialog .case-meta-group h3{font-size:.750rem}
 .name{font-size:2.5rem}
}

/* Standalone graphic pieces live only in the Graphic design category. */
.gallery-column .project.artwork-card .art{aspect-ratio:1 / var(--cover-height-ratio,.75);min-height:calc(100cqw * var(--cover-height-ratio,.75));background:var(--artwork-background)}
.gallery-column .project.artwork-card.has-transparency .art>img{object-fit:contain;padding:clamp(20px,6cqw,48px);background:transparent}
dialog.artwork-lightbox .case-actions{position:sticky;top:0;height:0;margin:0 0 0 20px;z-index:9}
dialog.artwork-lightbox .case-actions button{position:absolute;top:20px;left:0;box-shadow:0 2px 18px #0004}
.artwork-viewer{min-height:100dvh;display:flex;flex-direction:column;padding:88px clamp(16px,4vw,64px) 24px;gap:20px}
.artwork-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.artwork-stage figure{display:flex;align-items:center;justify-content:center;background:var(--artwork-background);margin:0;max-width:100%;padding:clamp(12px,2vw,28px);border-radius:4px}
.artwork-stage img{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100dvh - 240px);object-fit:contain}
.artwork-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(100%,1100px);margin:0 auto}
dialog .artwork-toolbar h2{font-size:clamp(1rem,2vw,1.4rem);line-height:1.4;margin:0 0 4px}
dialog .artwork-toolbar p{font-size:.75rem;color:var(--text-700);margin:0}
.artwork-navigation{display:flex;gap:8px;flex-shrink:0}
.artwork-navigation button{width:44px;height:44px;border-radius:50%;background:var(--secondary);color:var(--text);transition:background 200ms ease;font-size:20px}
.artwork-navigation button:hover{background:var(--accent)}
@media(max-width:600px){.artwork-viewer{padding:88px 16px 20px}.artwork-stage img{max-height:calc(100svh - 230px)}.artwork-toolbar{gap:12px}}

/* Original deliverables, each in its own wrapping pill. */
.deliverable-pills{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0;max-width:100%}
.deliverable-pills>li{display:block;max-width:100%;padding:7px 12px;border:1px solid color-mix(in srgb,var(--secondary) 70%,var(--primary));border-radius:999px;background:color-mix(in srgb,var(--secondary) 35%,var(--background));color:var(--text);font-family:'DM Sans',sans-serif;font-size:.75rem;font-weight:400;line-height:1.5;overflow-wrap:anywhere}

/* Supplied SVG arrows inherit each control's text color. */
.actions .return-work{display:inline-flex;align-items:center;gap:8px}
.return-work>svg{display:block;flex:0 0 auto;width:16px;height:16px}
.case-hero-scroll{display:grid;place-items:center;padding:8px}
.case-hero-scroll>svg{display:block;width:28px;height:28px}

/* One SVG/Lottie play-pause control across preview, hero and case videos. */
.video-toggle{display:grid;place-items:center;width:44px;height:44px;padding:10px;border-radius:50%;border:1px solid color-mix(in srgb,var(--text) 25%,transparent);background:color-mix(in srgb,var(--background) 90%,transparent);color:var(--text);backdrop-filter:blur(8px);cursor:pointer;z-index:5;transition:background 200ms ease}
.video-toggle:hover{background:var(--secondary)}
.video-toggle:disabled{opacity:.4;cursor:default}
.video-toggle-icon,.video-toggle-icon>svg{display:block;width:24px;height:24px;pointer-events:none}
.gallery-column .project.has-video-preview{position:relative}
.project-open{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;border-radius:5px}
.project-open>.art{flex:1}
.cover-video-toggle{position:absolute;right:12px;top:12px;bottom:auto;left:auto}
.project .video-toggle svg{transform:none;filter:none}
.video-player{position:relative;width:100%}
.video-player>.video-toggle{position:absolute;right:16px;bottom:16px}
.video-player>video{width:100%;display:block}
.case-hero-playback.video-toggle{position:absolute;right:24px;bottom:28px;width:44px;height:44px;padding:10px;border-radius:50%;font-size:inherit}
@media(max-width:600px){.case-hero-playback.video-toggle{right:16px;bottom:24px}.video-player>.video-toggle{right:10px;bottom:10px}}

/* Smaller, softer video controls in the bottom-right of each media frame. */
.video-toggle,.case-hero-playback.video-toggle{width:32px;height:32px;padding:6px;opacity:.8;background:color-mix(in srgb,var(--background) 60%,transparent);border-color:color-mix(in srgb,var(--text) 18%,transparent);transition:background 200ms ease,opacity 200ms ease,bottom 480ms cubic-bezier(.22,1,.36,1)}
.video-toggle:hover,.video-toggle:focus-visible{opacity:1;background:color-mix(in srgb,var(--secondary) 80%,transparent)}
.video-toggle-icon,.video-toggle-icon>svg{width:18px;height:18px}
.video-toggle:disabled{opacity:.4}
.cover-video-toggle{top:auto;right:12px;bottom:12px}
.video-player>.video-toggle{right:12px;bottom:12px}
.case-hero-playback.video-toggle{right:16px;bottom:16px}
@media(hover:hover) and (min-width:761px){.project.has-video-preview:hover .cover-video-toggle{bottom:44px}}
@media(min-width:761px){.project.has-video-preview:focus-within .cover-video-toggle{bottom:44px}}
@media(max-width:760px){.cover-video-toggle{bottom:calc(var(--video-caption-height,90px) + 12px)}}

/* Reveal video controls while the media is hovered or used with a keyboard. */
@media(hover:hover) and (pointer:fine){
 .video-toggle,.case-hero-playback.video-toggle{opacity:0;pointer-events:none}
 .project.has-video-preview:is(:hover,:focus-within) .video-toggle,
 .video-player:is(:hover,:focus-within)>.video-toggle,
 .case-hero:is(:hover,:focus-within)>.video-toggle{opacity:.8;pointer-events:auto}
 :is(.project.has-video-preview,.video-player,.case-hero) .video-toggle:is(:hover,:focus-visible){opacity:1}
}

/* Keep case content comfortably inset on phones and smaller tablets. */
@media(max-width:940px){
 dialog.case-study .case-body,
 dialog.case-study .case-bottom{padding-left:max(clamp(20px,4vw,28px),env(safe-area-inset-left));padding-right:max(clamp(20px,4vw,28px),env(safe-area-inset-right))}
 dialog.case-study .case-bottom{width:100%;max-width:900px;margin-inline:auto;padding-bottom:28px}
}

/* The in-depth case opens independently over the overview from the right. */
dialog.case-story-dialog{inset:0 0 0 auto;width:min(1100px,92vw);height:100dvh;max-width:100vw;max-height:100dvh;min-height:100dvh;margin:0;padding:0;border:0;border-left:1px solid var(--background-200);border-radius:0;overflow:auto;overscroll-behavior:contain;background:var(--background);color:var(--text);box-shadow:-24px 0 80px #0005;will-change:transform}
dialog.case-story-dialog::backdrop{background:rgba(6,12,14,.56);backdrop-filter:blur(5px)}
.case-story-actions{position:sticky;top:0;z-index:5;min-height:72px;display:flex;align-items:center;margin:0;padding:16px clamp(20px,4vw,48px);background:color-mix(in srgb,var(--background) 94%,transparent);backdrop-filter:blur(12px)}
.case-story-content{width:100%;max-width:900px;margin:0 auto;padding:32px clamp(20px,4vw,48px) 80px}
dialog .case-story-content>h2{font-family:'Poppins',sans-serif;font-weight:700;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.2;margin:0 0 64px;letter-spacing:-.025em}
.case-story-section{margin:0 0 64px}
.case-story-section:last-child{margin-bottom:0}
.case-story-section>small{display:block;font-family:'DM Sans',sans-serif;font-size:.75rem;line-height:1.5;letter-spacing:.08em;text-transform:uppercase;color:var(--primary);margin-bottom:14px}
dialog .case-story-section>h3{font-family:'Poppins',sans-serif;font-weight:700;font-size:clamp(1.45rem,3vw,2.2rem);line-height:1.3;letter-spacing:-.025em;margin:0 0 24px;text-wrap:balance}
dialog .case-story-section>p{font-family:'DM Sans',sans-serif;font-size:1rem;font-weight:400;line-height:1.85;color:var(--text-800);margin:0 0 20px}
.case-story-section>figure{width:100%;margin:32px 0}
.case-story-section>figure>img{display:block;width:100%;height:auto;max-width:100%;border-radius:4px}
@media(max-width:760px){dialog.case-story-dialog{width:100vw;border-left:0}.case-story-content{padding-top:24px;padding-bottom:48px}.case-story-content>h2{margin-bottom:48px}.case-story-section{margin-bottom:48px}}
@media(prefers-reduced-motion:reduce){dialog.case-story-dialog{will-change:auto}}

/* Matching illustration frames keep both drawings legible and uncropped. */
.case-illustration-frame{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:var(--illustration-ratio,1.333333);background:var(--illustration-background);padding:clamp(20px,4vw,40px);overflow:hidden}
dialog .case-body figure.case-media .case-illustration-frame>img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;background:transparent}
.case-illustration-frame.blend-white>img{mix-blend-mode:multiply}

/* Case media shares the cover images' 5px radius and caption reveal. */
dialog .case-body figure.case-media img,dialog .case-body figure.case-media video,.case-compare-stage,.case-illustration-frame,.case-product-filter-frame{border-radius:5px}
.case-media-visual{width:100%;border-radius:5px;clip-path:inset(0 0 0 0 round 5px);transition:clip-path 480ms cubic-bezier(.22,1,.36,1)}
dialog .case-body figure.has-media-caption{position:relative}
dialog .case-body figure.has-media-caption>figcaption{text-align:left}
@media(hover:hover) and (min-width:761px){
 dialog .case-body figure.has-media-caption>figcaption{position:absolute;inset:auto 0 1px;margin:0;padding:0;opacity:0;transform:translateY(9px);pointer-events:none;transition:opacity 260ms ease,transform 420ms cubic-bezier(.22,1,.36,1)}
 figure.has-media-caption:is(:hover,:focus-within)>.case-media-visual{clip-path:inset(0 0 32px 0 round 5px)}
 dialog .case-body figure.has-media-caption:is(:hover,:focus-within)>figcaption{opacity:1;transform:translateY(0);transition-delay:70ms}
 figure.has-media-caption:is(:hover,:focus-within) .video-player>.video-toggle{bottom:44px}
}
@media(hover:none),(max-width:760px){dialog .case-body figure.has-media-caption>figcaption{position:static;opacity:1;transform:none;padding:10px 0 0;margin:0}}
dialog .case-body .case-image-grid.has-fixed-ratio>figure.has-media-caption>.case-media-visual{height:100%}
dialog .case-body .case-image-grid.has-fixed-ratio>figure.has-media-caption>.case-media-visual>img{height:100%;object-fit:cover}
dialog .case-body .case-carousel-track>figure.has-media-caption>.case-media-visual>img{height:var(--case-carousel-height,300px);width:auto;max-width:none;object-fit:cover}
@media(max-width:767px){dialog .case-body .case-carousel-track>figure.has-media-caption>.case-media-visual>img{height:min(var(--case-carousel-height,300px),400px)}}
.case-product-filter-frame{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;background:var(--illustration-background,#fff0f6);padding:clamp(20px,4vw,40px);overflow:hidden}
.case-product-filter-frame>svg{display:block;width:100%;height:100%;max-height:850px}
.jewellery-option{cursor:pointer;outline:none}
.jewellery-color{transition:fill 220ms ease}
.jewellery-line{transition:stroke 220ms ease}
.jewellery-option.is-selected>.jewellery-color{fill:#ffaedc}
.jewellery-option.is-selected>.jewellery-line{stroke:#ffaedc}
.jewellery-option:focus-visible>.jewellery-hit-area{stroke:#1f73a8;stroke-width:2;stroke-dasharray:5 4}
@media(prefers-reduced-motion:reduce){.case-media-visual,.jewellery-color,.jewellery-line,dialog .case-body figure.has-media-caption>figcaption{transition:none}}

/* One 8px rhythm between neighbouring case media, including nested layouts. */
dialog.case-study .case-body :is(figure.case-media,figure.case-comparison,.case-media-row,.case-image-grid,.case-image-masonry,.case-image-carousel,.case-media-panel){margin-block:0}
dialog.case-study .case-body :is(figure.case-media,figure.case-comparison,.case-media-row,.case-image-grid,.case-image-masonry,.case-image-carousel,.case-media-panel)+:is(figure.case-media,figure.case-comparison,.case-media-row,.case-image-grid,.case-image-masonry,.case-image-carousel,.case-media-panel){margin-top:8px}
dialog.case-study .case-body :is(.case-media-row,.case-image-grid,.case-image-masonry,.case-masonry-column,.case-carousel-track){gap:8px}
dialog.case-study .case-body :is(.case-image-grid,.case-masonry-column,.case-carousel-track)>:is(figure.case-media,figure.case-comparison){margin-block:0}

/* A self-contained category-filter demonstration, matching the shop structure. */
.product-filter-demo{width:100%;padding:20px 20px 52px;background:#fff;color:#080f13;border-radius:5px;color-scheme:light}
.product-filter-demo-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.interactive-demo-pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#ffaedc;color:#351b2a;font-size:11px;line-height:1.4}
.product-filter-reset{background:transparent;color:#70284d;font-size:12px;text-decoration:underline;text-underline-offset:3px;padding:5px 0}
.product-filter-layout{display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;align-items:start}
dialog .case-body .product-filter-sidebar{position:static;inset:auto;display:block;min-width:0;width:auto;max-width:none;padding:0;margin:0}
.product-filter-illustration{width:100%;margin-bottom:18px}
.product-filter-illustration>svg{display:block;width:100%;height:252px;max-width:100%}
.product-filter-sidebar fieldset{min-width:0;border:0;border-top:1px solid #dedde2;padding:14px 0 0;margin:0}
.product-filter-sidebar legend{float:left;width:100%;font-family:'Poppins',sans-serif;font-weight:700;font-size:12px;margin:0 0 12px;padding:0;color:#080f13}
.product-filter-sidebar label{clear:both;display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;margin-bottom:9px;cursor:pointer;color:#34313a}
.product-filter-sidebar input{width:14px;height:14px;margin:0;flex-shrink:0;accent-color:#df6ca8}
dialog .product-filter-count{font-size:11px;line-height:1.5;color:#66616b;margin:0 0 12px}
.product-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 8px;opacity:1;transform:translateY(0);transition:opacity 180ms ease,transform 220ms ease}
.product-filter-grid.is-filtering{opacity:0;transform:translateY(4px)}
.product-filter-card{min-width:0}
.product-filter-card[hidden]{display:none}
.product-filter-photo{width:100%;aspect-ratio:1;background:#f6e5f2;border-radius:5px;overflow:hidden}
dialog .case-body figure.case-media .product-filter-photo>img{display:block;width:100%;height:100%;object-fit:cover;background:transparent;border-radius:5px}
dialog .case-body figure.case-media .product-filter-photo.is-illustration>img{object-fit:contain;padding:24px}
dialog .product-filter-card>p{font-size:11px;font-weight:400;line-height:1.5;color:#34313a;margin:7px 0 0}
dialog .product-filter-empty{font-size:13px;color:#66616b;margin:24px 0}
@media(max-width:1100px) and (min-width:761px){.product-filter-layout{grid-template-columns:140px minmax(0,1fr);gap:16px}.product-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .product-filter-demo{padding:16px 14px 20px}.product-filter-layout{grid-template-columns:1fr;gap:20px}
 dialog .case-body .product-filter-sidebar{display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:center}
 .product-filter-illustration{margin-bottom:0}.product-filter-illustration>svg{height:165px}
 .product-filter-sidebar fieldset{border-top:0;padding-top:0}.product-filter-sidebar legend{font-size:11px}
 .product-filter-sidebar label{font-size:12px;margin-bottom:6px}.product-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 8px}
}
@media(prefers-reduced-motion:reduce){.product-filter-grid{transition:none;transform:none}}

/* Native Instagram posts, with a direct link retained outside each embed. */
.case-instagram-gallery{margin:0;min-width:0}
.case-instagram-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.case-instagram-post{min-width:0;max-width:100%;overflow:hidden;border-radius:5px;background:#fff;color:#080f13}
.case-instagram-embed{min-width:0;max-width:100%;overflow:hidden}
.case-instagram-embed>.instagram-media,.case-instagram-embed>iframe.instagram-media{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;border:0!important;border-radius:5px!important;box-shadow:none!important}
.case-instagram-open{display:block;padding:12px 16px;font-family:'DM Sans',sans-serif;font-size:12px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;background:#fff;color:#1b5274}
.case-instagram-open:hover{color:#080f13}
.case-instagram-open:focus-visible{outline-color:#1b5274;outline-offset:-4px}
@media(max-width:760px){.case-instagram-grid{grid-template-columns:1fr}}

/* Four equally sized native post frames; longer posts remain scrollable. */
.case-instagram-grid{--instagram-card-height:560px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.case-instagram-post{display:grid;grid-template-rows:minmax(0,1fr) auto;height:var(--instagram-card-height);min-height:0}
.case-instagram-embed{min-height:0;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c3c9ce #fff}
.case-instagram-canvas{width:var(--instagram-native-width,326px);zoom:var(--instagram-zoom,1)}
.case-instagram-canvas>.instagram-media,.case-instagram-canvas>iframe.instagram-media{display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;margin:0!important;border:0!important;border-radius:5px!important;box-shadow:none!important}
.case-instagram-open{min-height:44px;padding:10px 12px;display:flex;align-items:center;font-size:11px}
@media(max-width:940px){.case-instagram-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.case-instagram-grid{--instagram-card-height:600px;grid-template-columns:1fr}}

/* Show only Instagram's native header and the full 4:5 post image. */
.case-instagram-post{display:block;height:var(--instagram-card-height,462px)}
.case-instagram-embed{height:100%;overflow:hidden}
.case-instagram-canvas{height:var(--instagram-crop-height,462px);overflow:hidden}

/* A visual case index, with same-company projects placed first. */
.case-project-index{width:100%;max-width:900px;margin:80px auto 0;padding:40px clamp(20px,5vw,80px) 64px;border-top:1px solid var(--background-200)}
dialog .case-project-index>h2{font-family:'Poppins',sans-serif;font-size:1.777rem;font-weight:700;line-height:1.3;letter-spacing:-.025em;margin:0 0 32px}
.case-project-index>h2>span{color:var(--primary)}
.case-project-index-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:start}
.case-index-preview{display:block;position:sticky;top:88px;min-width:0}
.case-index-preview-art{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:5px;background:var(--background-100)}
.case-index-preview-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1);transition:opacity 520ms cubic-bezier(.4,0,.2,1),transform 700ms cubic-bezier(.22,1,.36,1)}
.case-index-preview-art>img.is-active{opacity:1}
.case-index-preview:hover .case-index-preview-art>img.is-active{transform:scale(1.025)}
.case-index-open{position:absolute;right:16px;bottom:16px;background:color-mix(in srgb,var(--background) 86%,transparent);color:var(--text);border-radius:24px;padding:9px 14px;font-size:11px;opacity:0;transform:translateY(6px);transition:opacity 220ms ease,transform 300ms ease}
.case-index-preview:is(:hover,:focus-visible) .case-index-open{opacity:1;transform:none}
.case-index-preview-meta{padding-top:16px}
dialog .case-index-preview-meta>h3{font-family:'Poppins',sans-serif;font-size:1.125rem;font-weight:700;line-height:1.4;margin:0 0 6px}
dialog .case-index-preview-meta>p{font-size:.75rem;line-height:1.6;color:var(--text-700);margin:0}
dialog .case-project-index-label{font-size:.75rem;line-height:1.5;text-transform:uppercase;letter-spacing:.08em;color:var(--text-700);margin:0 0 16px}
.case-project-index-list>ol{list-style:none;padding:0;margin:0}
.case-index-row{display:flex;align-items:center;gap:18px;min-height:80px;padding:16px 12px;border-bottom:1px solid var(--background-200);color:var(--text-700);transition:color 220ms ease,background 220ms ease}
.case-index-row:is(:hover,:focus-visible),.case-index-row.is-active{background:color-mix(in srgb,var(--secondary) 15%,var(--background));color:var(--text)}
.case-index-number{font-size:11px;line-height:1.5;flex:0 0 22px;color:var(--text-600)}
.case-index-row-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.case-index-name{font-family:'Poppins',sans-serif;font-weight:700;font-size:.875rem;line-height:1.4}
.case-index-row-copy>small{font-size:10px;line-height:1.5;color:var(--text-700)}
.case-index-next{flex-shrink:0;font-size:9px;line-height:1.5;text-transform:uppercase;letter-spacing:.05em;padding:6px 8px;border-radius:5px;background:var(--background-100);color:var(--text)}
@media(max-width:900px){.case-project-index-layout{grid-template-columns:1fr;gap:28px}.case-index-preview{position:static}.case-index-preview-art{aspect-ratio:16/10}.case-project-index{margin-top:56px;padding-top:32px}}
@media(max-width:520px){.case-index-row{gap:12px;padding-inline:8px}.case-index-next{font-size:8px;padding:5px 6px}.case-index-number{flex-basis:18px}.case-index-name{font-size:13px}}
@media(hover:none){.case-index-open{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.case-index-preview-art>img,.case-index-open,.case-index-row{transition:none;transform:none}}

/* Keep paired showcase artwork on one row, including smaller screens. */
dialog .case-body .case-media-row.keep-columns{grid-template-columns:repeat(var(--case-row-columns,2),minmax(0,1fr))}

/* Captions and a light reading surface for detailed case-study diagrams. */
.case-story-image{padding:clamp(16px,3vw,28px);border-radius:5px;overflow:hidden}
.case-story-image>img{display:block;width:100%;height:auto;max-width:100%}
dialog .case-story-section>figure>figcaption{padding:10px 0 0;font-family:'DM Sans',sans-serif;font-size:.75rem;line-height:1.6;text-align:left;color:var(--text-700)}

/* Detailed modal images reveal captions with the same motion as cover artwork. */
.case-story-media{position:relative}
.case-story-media>.case-media-visual{border-radius:5px;overflow:hidden}
.case-story-media>.case-media-visual>img{display:block;width:100%;height:auto;max-width:100%;border-radius:5px}
.case-story-media:focus-visible{outline:2px solid var(--primary);outline-offset:5px;border-radius:5px}
@media(hover:hover) and (min-width:761px){
 dialog .case-story-section>figure.case-story-media>figcaption{position:absolute;inset:auto 0 1px;padding:0;margin:0;opacity:0;transform:translateY(9px);pointer-events:none;transition:opacity 260ms ease,transform 420ms cubic-bezier(.22,1,.36,1)}
 .case-story-media:is(:hover,:focus-visible)>.case-media-visual{clip-path:inset(0 0 32px 0 round 5px)}
 dialog .case-story-section>figure.case-story-media:is(:hover,:focus-visible)>figcaption{opacity:1;transform:translateY(0);transition-delay:70ms}
}
@media(prefers-reduced-motion:reduce){dialog .case-story-section>figure.case-story-media>figcaption{transition:none}}

/* Preserve each format while giving paired desktop media the same height. */
@media(min-width:768px){dialog .case-body .case-media-row.has-desktop-column-ratios{grid-template-columns:var(--case-desktop-columns)}}

/* Supplied LinkedIn Lottie, with the profile as the link destination. */
a.linkedin-animated{display:inline-flex;align-items:center;gap:8px}
.linkedin-lottie{display:inline-block;width:32px;height:32px;flex:0 0 32px}
.linkedin-lottie>svg{display:block;width:100%;height:100%}
/* Keep the LinkedIn animation in sync with the site's primary colour. */
.linkedin-lottie svg [stroke]:not([stroke="none"]){stroke:var(--primary)!important}
.linkedin-lottie svg [fill]:not([fill="none"]){fill:var(--primary)!important}

/* Restored custom campaign journey from the original C-biz case. */

dialog .case-body .cbiz-journey, dialog .case-body .cbiz-journey * { box-sizing: border-box; }
  dialog .case-body .cbiz-journey {
    --cbiz-dark: #173c2b;
    --cbiz-muted: #536b5e;

    color: var(--cbiz-dark);
    background: linear-gradient(135deg, #f7f9f3, #eaf1e7);
    border-radius: 16px;
    padding: clamp(20px, 3vw, 32px);
    overflow: hidden;
    position: relative;
    isolation: isolate;
  }
  dialog .case-body .cbiz-journey::before, dialog .case-body .cbiz-journey::after {
    content: ""; position: absolute; border-radius: 50%;
    width: 330px; height: 330px; background: #d3e7d2; opacity: .35; z-index: -1;
  }
  dialog .case-body .cbiz-journey::before { right: -170px; top: -190px; }
  dialog .case-body .cbiz-journey::after { left: -220px; bottom: -230px; }
  dialog .case-body .cbiz-journey .cbiz-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .17em; color: #508466; text-transform: uppercase; }
  dialog .case-body .cbiz-journey h2 { margin: 0 0 13px; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.03em; color: var(--cbiz-dark); }
  dialog .case-body .cbiz-journey .cbiz-intro { font-size: clamp(16px, 1.7vw, 19px); color: #587164; margin: 0; }
  dialog .case-body .cbiz-journey .cbiz-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 72px; position: relative; }
  dialog .case-body .cbiz-journey .cbiz-card { position: relative; min-width: 0; background: #fff; border-radius: 20px; padding: 36px 18px 20px; box-shadow: 0 12px 32px rgba(24,59,43,.09); border-top: 8px solid var(--cbiz-accent); }
  dialog .case-body .cbiz-journey .cbiz-card:nth-child(1) { --cbiz-accent: #8dbb86; --cbiz-soft: #ddeed8; --cbiz-icon: #286b46; }
  dialog .case-body .cbiz-journey .cbiz-card:nth-child(2) { --cbiz-accent: #4c9770; --cbiz-soft: #c9e7d7; --cbiz-icon: #226a4c; }
  dialog .case-body .cbiz-journey .cbiz-card:nth-child(3) { --cbiz-accent: #1b563d; --cbiz-soft: #246647; --cbiz-icon: #fff; }
  dialog .case-body .cbiz-journey .cbiz-icon { position: absolute; width: 70px; height: 70px; left: 23px; top: -52px; display: grid; place-items: center; border-radius: 50%; background: var(--cbiz-soft); border: 6px solid #fff; color: var(--cbiz-icon); }
  dialog .case-body .cbiz-journey .cbiz-icon svg { display: block; width: 34px; height: 34px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  dialog .case-body .cbiz-journey .cbiz-label { display: block; color: #357e58; font-size: 12px; font-weight: 800; letter-spacing: .15em; margin-bottom: 13px; }
  dialog .case-body .cbiz-journey h3 { font-size: clamp(20px, 2.4vw, 26px); color: var(--cbiz-dark); line-height: 1.15; margin: 0 0 21px; }
  dialog .case-body .cbiz-journey .cbiz-purpose { color: #335947; font-size: 16px; font-weight: 700; margin: 0 0 15px; }
  dialog .case-body .cbiz-journey .cbiz-description { color: var(--cbiz-muted); font-size: 16px; line-height: 1.55; margin: 0 0 20px; }
  dialog .case-body .cbiz-journey .cbiz-pill { display: inline-block; border-radius: 30px; background: #e9f3e4; color: #366b45; font-size: 11px; font-weight: 800; letter-spacing: .035em; padding: 9px 12px; }
  dialog .case-body .cbiz-journey .cbiz-card:nth-child(2) .cbiz-pill { background: #e0f2e9; color: #226b4b; }
  dialog .case-body .cbiz-journey .cbiz-card:nth-child(3) .cbiz-pill { background: #d6eadc; color: #1b563d; }
  dialog .case-body .cbiz-journey .cbiz-footer { color: #52715d; font-size: 15px; text-align: center; margin: 42px 0 0; line-height: 1.6; }
  @media (max-width: 767px) {
    dialog .case-body .cbiz-journey .cbiz-steps { grid-template-columns: 1fr; gap: 65px; margin-top: 88px; }
    dialog .case-body .cbiz-journey .cbiz-steps::before { width: 4px; height: auto; top: -37px; bottom: -37px; left: 56px; right: auto; }
    dialog .case-body .cbiz-journey .cbiz-card { padding: 44px 24px 25px; }
    dialog .case-body .cbiz-journey .cbiz-footer { margin-top: 32px; }
  }

dialog .case-body .cbiz-journey .cbiz-icon svg{stroke:none;fill:currentColor}

/* Readable campaign phase table, scrollable on narrow screens. */
.case-story-table{max-width:100%;overflow-x:auto;margin-block:28px;border:1px solid var(--background-200);border-radius:5px}
.case-story-table table{width:100%;border-collapse:collapse;min-width:540px;font-size:1rem;line-height:1.6}
.case-story-table :is(th,td){padding:16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--background-200)}
.case-story-table thead{background:var(--background-100)}
.case-story-table th{font-weight:700}
.case-story-table tbody tr:last-child :is(th,td){border-bottom:0}
.case-story-table .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* About: personal introduction, compact experience list, and design philosophy. */
dialog .about-content{max-width:900px}
.about-intro{display:flow-root}
dialog .about-intro h2{margin:0 0 24px;font-size:clamp(2.6rem,5vw,4.21rem);line-height:1.1}
.about-intro h2>span{color:var(--primary)}
dialog .about-intro-copy p,dialog .about-philosophy p{font-size:1rem;line-height:1.7;margin:0 0 18px}
dialog .about-intro-copy .lead{font-size:1.125rem}
.about-illustration{float:right;width:55%;margin:0 0 24px 32px;background:transparent;border-radius:0;overflow:hidden;padding:0}
dialog .about-illustration>img{display:block;width:100%;height:auto;margin:0}
.about-experience{margin-top:64px;padding:28px;background:var(--background-100);border-radius:5px}
dialog .about-experience>h3,dialog .about-philosophy>h3{font-size:1.5rem;line-height:1.3;margin:0 0 24px}
.about-experience-list{list-style:none;padding:0;margin:0}
.about-experience-list>li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:center;gap:24px;padding:18px 0;border-bottom:1px solid var(--background-200)}
.about-experience-list>li:last-child{border-bottom:0;padding-bottom:0}
dialog .about-experience-list h4{font-size:1rem;line-height:1.5;margin:0;font-weight:700}
.about-experience-details{text-align:right}
dialog .about-experience-details p{font-size:.875rem;line-height:1.5;margin:0 0 5px}
.about-experience-details>span{font-size:.8125rem;line-height:1.5;color:var(--text-700)}
.about-philosophy{margin-top:64px;width:100%;max-width:900px}
dialog .about-philosophy>h4{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.3;margin:0 0 24px}
@media(max-width:700px){.about-intro{grid-template-columns:1fr;gap:28px}.about-illustration{float:none;width:100%;max-width:none;margin:0 auto 28px}.about-experience{margin-top:40px;padding:20px}.about-experience-list>li{grid-template-columns:1fr;gap:8px}.about-experience-details{text-align:left}.about-philosophy{margin-top:40px}}

/* The same language control remains available inside native modal windows. */
.language-switch{position:fixed;top:18px;right:20px;z-index:10000;display:flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--background-200);border-radius:999px;background:var(--background);box-shadow:0 3px 16px #0002}
.language-switch button{min-width:42px;min-height:34px;padding:6px 10px;border:0;border-radius:999px;background:transparent;color:var(--text);font-family:'DM Sans',sans-serif;font-size:.875rem;line-height:1.4;cursor:pointer}
.language-switch button.is-active{background:var(--primary);color:var(--background)}
.language-switch button:focus-visible{outline:2px solid var(--text);outline-offset:2px}
main>header{padding-right:138px}
dialog>.language-switch{z-index:10001}
@media(max-width:700px){.language-switch{top:12px;right:12px}main>header{padding:0}}

/* Official, unaltered App Store badges follow the selected site language. */
.case-meta-actions a.app-store-badge,.case-meta-actions a.app-store-badge:hover{display:inline-flex;align-items:center;justify-content:flex-start;width:max-content;max-width:100%;min-height:0;padding:0;border:0;border-radius:1rem;overflow:hidden;background:transparent;box-shadow:none;text-decoration:none;transform:none;transition:none}
dialog .app-store-badge>img{display:none;height:40px;width:auto;max-width:100%;margin:0}
html[lang="da"] dialog .app-store-badge>img[lang="da"],html[lang="en"] dialog .app-store-badge>img[lang="en"]{display:block}
.app-store-badge:focus-visible{outline:2px solid var(--primary);outline-offset:5px}

/* The About icon follows the button text colour in every state. */
.actions button[data-info="about"]{align-items:center;gap:8px}
.about-button-icon{display:block;width:20px;height:20px;flex:none;fill:currentColor}

/* Design values retain native keyboard and screen-reader accordion behaviour. */
.design-value{border-bottom:1px solid var(--background-200)}
.design-value:first-of-type{border-top:1px solid var(--background-200)}
.design-value>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;cursor:pointer;list-style:none}
.design-value>summary::-webkit-details-marker{display:none}
.design-value>summary::marker{content:""}
.design-value>summary:focus-visible{outline:2px solid var(--accent-300);outline-offset:5px;border-radius:4px}
.design-value>summary:hover{color:var(--primary)}
dialog .design-value>summary>h4{font-size:clamp(1.125rem,2.5vw,1.5rem);line-height:1.4;margin:0}
.design-value-chevron{display:block;position:relative;width:24px;height:24px;flex:0 0 24px;color:inherit}
.design-value-chevron-animation{position:absolute;inset:0;opacity:0}
.design-value-chevron svg{display:block;width:100%;height:100%}
.design-value-chevron-animation svg [stroke]:not([stroke="none"]){stroke:currentColor!important}
.design-value-chevron-animation svg [fill]:not([fill="none"]){fill:currentColor!important}
.design-value-chevron.is-ready .design-value-chevron-animation{opacity:1}
.design-value-chevron.is-ready>.design-value-chevron-fallback{opacity:0}
.design-value[open] .design-value-chevron-fallback{transform:rotate(180deg)}
.design-value-body{padding:0 48px 8px 0}
@media(max-width:600px){.design-value>summary{gap:16px;padding-block:18px}.design-value-body{padding-right:0}}

/* Supplied tool icons, grouped without proficiency ratings. */
.about-tools{width:100%;max-width:900px;margin-top:64px}
dialog .about-tools>h3{font-size:1.5rem;line-height:1.3;margin:0 0 28px}
.about-tools-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
dialog .about-tools-group>h4{font-size:1rem;line-height:1.5;min-height:3em;margin:0 0 24px}
.about-tools-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
.about-tools-list>li{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;min-width:0}
.about-tools-list img{display:block;width:40px;height:40px;object-fit:contain}
.about-tools-list span{font-size:.875rem;line-height:1.5;min-height:3em;color:var(--text-800);overflow-wrap:break-word}
@media(max-width:760px){.about-tools-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 24px}.about-tools-list{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}}
@media(max-width:440px){.about-tools{margin-top:40px}.about-tools-groups{grid-template-columns:1fr}.about-tools-list{grid-template-columns:repeat(3,minmax(0,1fr))}}



/* One shared caption for grouped inspiration images. */
.case-image-grid.has-last-wide>figure:last-child{grid-column:1 / -1}

/* Grid gaps supply spacing; adjacent tiles must start on the same row. */
dialog.case-study .case-body .case-image-grid>figure.case-media+figure.case-media{margin-top:0}

/* Each case keeps its own reading progress in the continuous project feed. */
.case-reading-progress{position:sticky;top:0;z-index:30;width:100%;height:4px;margin-bottom:-4px;background:var(--background-200);pointer-events:none}
.case-reading-progress>span{display:block;width:100%;height:100%;background:var(--primary);transform:scaleX(0);transform-origin:left center}
.case-reader-page{display:flow-root;position:relative;width:100%}
.case-continuation{width:100%;max-width:900px;margin:0 auto;padding:24px clamp(20px,5vw,80px) 40px;border-top:1px solid var(--background-200)}
.case-continuation>small{display:block;font-size:.875rem;line-height:1.5;color:var(--text-600);margin-bottom:8px}
dialog .case-continuation>p{font-size:1.25rem;font-weight:500;line-height:1.4;margin:0;color:var(--text-950)}

.about-connect{width:100%;max-width:900px;margin-top:64px;padding-top:32px;border-top:1px solid var(--background-200)}
dialog .about-connect>h3{font-size:1.5rem;line-height:1.3;margin:0 0 20px}
.about-connect .linkedin-animated{display:inline-flex}
@media(max-width:700px){.about-connect{margin-top:40px}}

/* A quiet blue-grey drafting grid replaces the empty black backdrop. */
:root{--background:#0e1720;--portfolio-grid-line:rgba(104,137,165,.13);--portfolio-grid-size:48px}
body,dialog{
 background-color:var(--background);
 background-image:linear-gradient(to right,var(--portfolio-grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--portfolio-grid-line) 1px,transparent 1px);
 background-size:var(--portfolio-grid-size) var(--portfolio-grid-size);
 background-position:0 0;
 background-attachment:fixed;
}
@media(forced-colors:active){body,dialog{background-image:none}}

/* Shared container treatment for experience, design values and more projects. */
.content-panel{width:100%;max-width:900px;margin-top:64px;padding:28px;background:var(--background-100);border-radius:5px}
.case-project-index.content-panel,.about-connect.content-panel{border-top:0}
@media(max-width:700px){.content-panel{margin-top:40px;padding:20px}}

/* The language changes behind the site background colour at the midpoint. */
.language-transition{position:fixed;inset:0;display:block;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--background);opacity:0;z-index:2147483647;pointer-events:auto}
.language-transition::backdrop{background:transparent}

/* A brief entrance on initial page load; routing and filters stay independent. */
@keyframes portfolio-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes portfolio-grid-reveal{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:no-preference){
 html.portfolio-entering::before{content:"";position:fixed;inset:0;z-index:2147483646;background:var(--background);pointer-events:none;animation:portfolio-grid-reveal 360ms ease-out both}
 .portfolio-entering body>aside>:is(.name,.bio,.actions,.elsewhere),
 .portfolio-entering main>header,
 .portfolio-entering .gallery-column>.project{animation:portfolio-enter 460ms cubic-bezier(.22,1,.36,1) both}
 .portfolio-entering body>aside>.name{animation-delay:60ms}
 .portfolio-entering body>aside>.bio{animation-delay:120ms}
 .portfolio-entering body>aside>.actions{animation-delay:180ms}
 .portfolio-entering body>aside>.elsewhere{animation-delay:220ms}
 .portfolio-entering main>header{animation-delay:200ms}
 .portfolio-entering .gallery-column>.project{animation-delay:260ms}
 .portfolio-entering .gallery-column>.project:nth-child(2){animation-delay:300ms}
 .portfolio-entering .gallery-column>.project:nth-child(n+3){animation-delay:340ms}
}

/* Education follows the experience panel and its responsive list layout. */
dialog .about-education>h3{font-size:1.5rem;line-height:1.3;margin:0 0 24px}

/* Phone navigation remains available while browsing projects. */
.actions>.mobile-linkedin{display:none}
@media(max-width:760px){
 .actions{align-items:center}
 .actions>.mobile-linkedin{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px;color:var(--primary)}
 main>header{position:sticky;top:0;z-index:20;padding:0;background:var(--background)}
 body>.language-switch{position:absolute}
}

/* The supplied SVG is shown at rest; its Lottie counterpart plays on interaction. */
.about-button-icon{position:relative}
.about-button-icon>svg,.about-button-icon-animation,.about-button-icon-animation>svg{display:block;width:100%;height:100%}
.about-button-icon-animation{position:absolute;inset:0;opacity:0;pointer-events:none}
.about-button-icon.is-playing>.about-button-icon-static{opacity:0}
.about-button-icon.is-playing>.about-button-icon-animation{opacity:1}
.about-button-icon-animation svg [fill]:not([fill="none"]){fill:currentColor!important}
.about-button-icon-animation svg [stroke]:not([stroke="none"]){stroke:currentColor!important}

/* Shared gradient outline and icon colours for the profile and LinkedIn controls. */
@property --interactive-gradient-start{syntax:'<color>';inherits:true;initial-value:#4b9fd2}
@property --interactive-gradient-end{syntax:'<color>';inherits:true;initial-value:#1f73a8}
.actions button[data-info="about"],a.linkedin-animated{
 --interactive-gradient-start:var(--primary);--interactive-gradient-end:var(--accent);
 transition:--interactive-gradient-start 220ms ease,--interactive-gradient-end 220ms ease,color 220ms ease,transform 220ms ease;
}
.actions button[data-info="about"]{position:relative;isolation:isolate;background:transparent;color:var(--primary)}
.actions button[data-info="about"]::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(135deg,var(--interactive-gradient-start),var(--interactive-gradient-end));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none}
.actions button[data-info="about"]:is(:hover,:focus-visible),a.linkedin-animated:is(:hover,:focus-visible){--interactive-gradient-start:color-mix(in srgb,var(--primary) 65%,var(--text));--interactive-gradient-end:color-mix(in srgb,var(--accent) 60%,var(--text));color:color-mix(in srgb,var(--primary) 65%,var(--text))}
.actions button[data-info="about"]:hover{background:transparent}
.about-button-icon svg,.linkedin-lottie svg{fill:var(--icon-gradient-paint,currentColor)}
.actions .about-button-icon svg [fill]:not([fill="none"]),a.linkedin-animated .linkedin-lottie svg [fill]:not([fill="none"]){fill:var(--icon-gradient-paint,currentColor)!important}
.actions .about-button-icon svg [stroke]:not([stroke="none"]),a.linkedin-animated .linkedin-lottie svg [stroke]:not([stroke="none"]){stroke:var(--icon-gradient-paint,currentColor)!important}
@media(forced-colors:active){.actions button[data-info="about"]{border:1px solid ButtonText}.actions button[data-info="about"]::before{display:none}.about-button-icon svg,.linkedin-lottie svg{--icon-gradient-paint:currentColor!important}}

/* Readable static case content before progressive enhancement, or without JavaScript. */
.case-route-document{max-width:900px;margin:32px auto;padding:32px 24px;background:var(--background)}
.case-route-document h1{font-size:clamp(2rem,5vw,3.2rem);line-height:1.2}.case-route-document p{font-size:1rem;line-height:1.7}
.case-route-document img,.case-route-document video{display:block;max-width:100%;height:auto;border-radius:5px}
.case-route-document figure{margin:24px 0}.case-route-document h2{font-size:1.6rem;margin-top:40px}
.case-route-document h3{font-size:1.25rem}.case-route-document dt{font-weight:700;margin-top:16px}.case-route-document dd{margin:6px 0 16px}
.case-route-document a{text-decoration:underline;text-underline-offset:3px}.case-route-document ul{line-height:1.7}
