/* Local Archive trial. All project media and copy are unchanged. */
:root{color-scheme:light}body.archive-page{background:#f5f5f5!important;color:#111!important}.ax-main{padding:70px 5vw 110px;max-width:2000px;margin:auto}.ax-heading{margin-bottom:64px}.ax-heading h1{font-size:clamp(72px,10vw,160px);font-weight:500;line-height:.95;letter-spacing:-.065em;margin:24px 0 28px}.ax-heading p{font-size:18px;color:#555}.ax-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 24px}.ax-card{appearance:none;border:0;padding:0;background:none;color:inherit;text-align:left;cursor:pointer;min-width:0}.ax-picture{display:block;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:var(--hx-r,6px);background:#ddd}.ax-picture img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .4s}.ax-open{position:absolute;bottom:16px;left:16px;padding:9px 13px;border-radius:var(--hx-r,6px);background:#f5f5f5e8;font-size:14px;opacity:0;transform:translateY(6px);transition:.25s}.ax-card:hover img,.ax-card:focus-visible img{filter:none;transform:scale(1.035)}.ax-card:hover .ax-open,.ax-card:focus-visible .ax-open{opacity:1;transform:none}.ax-caption{display:flex;gap:12px;align-items:baseline;justify-content:space-between;padding-top:15px}.ax-name{font-family:'Funnel Display',sans-serif!important;font-size:23px;font-weight:600;letter-spacing:-.035em}.ax-kind{font-size:13px;color:#666;white-space:nowrap}.ax-card:focus-visible,.ax-dialog button:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.ax-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#f5f5f5f5;color:#111;overflow:auto;overscroll-behavior:contain}.ax-dialog::backdrop{background:#1119;backdrop-filter:blur(14px)}body:has(.ax-dialog[open]){overflow:hidden}.ax-shell{max-width:1800px;padding:24px 4vw 48px;margin:auto}.ax-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}.ax-close{border:1px solid #1113;background:transparent;color:inherit;width:46px;height:46px;border-radius:50%;font-size:29px;cursor:pointer}.ax-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px, .32fr);gap:4vw;align-items:start}.ax-stage{position:relative;aspect-ratio:16/9;border-radius:var(--hx-r,6px);background:#e8e8e8;overflow:hidden;display:grid;place-items:center}.ax-stage>img,.ax-stage>video,.ax-stage>iframe{width:100%;height:100%;position:absolute;inset:0;border:0;object-fit:contain}.ax-thumbs{display:flex;gap:10px;overflow:auto;padding:16px 2px 10px}.ax-thumbs button{flex:0 0 92px;padding:0;border:0;background:#ddd;border-radius:var(--hx-r,6px);overflow:hidden;cursor:pointer;opacity:.55;aspect-ratio:16/9;position:relative}.ax-thumbs button[aria-pressed=true]{opacity:1;outline:1px solid #111;outline-offset:3px}.ax-thumbs img{height:100%;width:100%;object-fit:cover}.ax-thumbs span{position:absolute;bottom:5px;right:6px;font-size:12px;color:white;text-shadow:0 1px 3px #000}.ax-details h2{font-size:clamp(32px,3.5vw,58px);line-height:1.02;letter-spacing:-.05em;margin:2px 0 20px;font-weight:600}.ax-meta{font-size:13px;color:#666;line-height:1.5;margin-bottom:28px}.ax-description{font-size:16px;line-height:1.65;margin:0 0 24px}.ax-credit{font-size:14px;color:inherit}.ax-project-nav{display:flex;gap:16px;justify-content:space-between;border-top:1px solid #1113;margin-top:40px;padding-top:18px}.ax-project-nav button{font-size:14px;border:0;background:none;padding:4px 0;color:inherit;cursor:pointer}.ax-flying{position:fixed;z-index:2147483647;pointer-events:none;object-fit:cover;border-radius:var(--hx-r,6px);transform-origin:0 0;margin:0}
@media(min-width:1100px){.ax-dialog .ax-shell{padding-top:32px}.ax-layout{margin-top:5vh}}@media(max-width:1000px){.ax-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ax-layout{grid-template-columns:1fr}.ax-details{padding-top:20px;max-width:700px}.ax-stage{aspect-ratio:16/9}.ax-top{margin-bottom:22px}.ax-dialog .ax-shell{padding:18px 5vw 40px}}@media(max-width:600px){.ax-main{padding-top:40px}.ax-heading{margin-bottom:38px}.ax-grid{grid-template-columns:1fr;gap:34px}.ax-caption{padding-top:12px}.ax-name{font-size:24px}.ax-heading p{font-size:16px}.ax-thumbs button{flex-basis:78px}.ax-details h2{font-size:42px}.ax-top{position:sticky;top:0;background:#f5f5f5f5;z-index:2;padding:10px 0;margin-top:-10px}.ax-dialog .ax-shell{padding-top:10px}}
@media(prefers-reduced-motion:reduce){.ax-picture img,.ax-open{transition:none}.ax-card:hover img{transform:none}}

.ax-media-column,.ax-details{min-width:0}.ax-stage{width:100%}.ax-thumbs{max-width:100%;box-sizing:border-box}

/* Open projects inherit their own existing blurred artwork. */
.ax-dialog{isolation:isolate;background:#f5f5f5}
.ax-dialog::before{content:"";position:fixed;inset:-4%;z-index:-1;background-image:linear-gradient(#f5f5f5a8,#f5f5f5c2),var(--ax-atmo);background-position:center;background-size:cover;pointer-events:none}
.ax-shell{position:relative}
.ax-stage{background:#ffffff32}
.ax-project-nav{justify-content:flex-start;gap:10px}
.ax-project-nav button{display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #1114;border-radius:var(--hx-r,6px);background:#ffffff20;transition:background .2s}
.ax-project-nav button:hover{background:#ffffff80}
.ax-project-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:600px){.ax-top{background:transparent;backdrop-filter:blur(18px);border-radius:var(--hx-r,6px)}}

/* Frames fit the media itself; no translucent letterbox or detached selection ring. */
.ax-stage{background:transparent;box-shadow:none;border:0}
.ax-stage>img,.ax-stage>video,.ax-stage>iframe{border-radius:var(--hx-r,6px);box-shadow:none;border:0}
.ax-thumbs button[aria-pressed=true]{outline:none;outline-offset:0;box-shadow:none;opacity:1}
.ax-thumbs button:focus:not(:focus-visible){outline:none}
.ax-thumbs button:focus-visible{outline:2px solid #111;outline-offset:2px}
.ax-thumbs img{display:block;border-radius:inherit}
.ax-close{border-radius:var(--hx-r,6px)!important;background:#111;color:#fff;border-color:#111;box-shadow:none}
.ax-close:hover{background:#333}

/* Uniform viewer: fixed media area and right rail, with independent scrolling. */
@media(min-width:1001px){
.ax-shell{height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;padding-bottom:32px}
.ax-top{flex:0 0 46px;margin-bottom:28px}
.ax-layout{flex:1;min-height:0;margin-top:0;grid-template-columns:minmax(0,1fr) minmax(280px,.36fr);align-items:stretch}
.ax-media-column{display:flex;align-items:center;min-height:0}
.ax-stage{aspect-ratio:16/9!important;height:auto;max-height:100%;flex:1}
.ax-details{min-height:0;display:grid;grid-template-rows:112px 44px minmax(80px,1fr) 150px 64px;gap:12px;overflow:hidden;padding:0}
.ax-details h2{margin:0;font-size:clamp(32px,3vw,52px);overflow:auto}
.ax-meta{margin:0;overflow:auto}
.ax-copy-scroll{overflow:auto;min-height:0;padding-right:12px;overscroll-behavior:contain}
.ax-thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:10px;overflow:auto;padding:2px 8px 2px 2px;min-height:0;overscroll-behavior:contain}
.ax-thumbs button{width:100%;aspect-ratio:16/9;flex:none}
.ax-project-nav{margin:0;padding-top:12px;align-self:end}
}
@media(max-width:1000px){.ax-copy-scroll{max-height:24vh;overflow:auto;overscroll-behavior:contain}.ax-details{display:flex;flex-direction:column}.ax-thumbs{order:4;max-height:110px;min-height:74px}.ax-project-nav{order:5;margin-top:20px}.ax-details h2{min-height:2.04em}.ax-meta{min-height:2em}.ax-stage{aspect-ratio:16/9!important}}
/* Header arrives in the same label / title / supporting-line rhythm. */
@keyframes ax-header-in{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
.ax-heading>.label,.ax-heading>h1,.ax-heading>p{animation:ax-header-in .85s cubic-bezier(.16,.84,.24,1) both}
.ax-heading>.label{animation-delay:.08s}.ax-heading>h1{animation-delay:.18s}.ax-heading>p{animation-delay:.3s}
@media(prefers-reduced-motion:reduce){.ax-heading>.label,.ax-heading>h1,.ax-heading>p{animation:none}}

@media(min-width:1001px){.ax-thumbs{grid-auto-rows:66px}.ax-thumbs button{height:66px;aspect-ratio:auto}}

.ax-thumbs[hidden]{display:flex;visibility:hidden}
@media(min-width:1001px){.ax-thumbs[hidden]{display:grid}}

/* Cohesive viewer: common top edge, compact information, stable media canvas. */
@media(min-width:1001px){
.ax-layout{flex:1;grid-template-columns:minmax(0,1fr) minmax(300px,.36fr);align-items:start;gap:clamp(28px,4vw,64px)}
.ax-media-column{align-items:flex-start;height:100%}
.ax-stage{flex:none;width:100%;aspect-ratio:16/9!important;max-height:calc(100dvh - 150px)}
.ax-details{height:min(calc(100dvh - 150px),calc((92vw - clamp(28px,4vw,64px)) / 1.36 * .5625));grid-template-rows:94px 28px minmax(70px,1fr) 148px 58px;gap:16px}
.ax-details h2{font-size:clamp(30px,2.6vw,46px);line-height:1.05;letter-spacing:-.04em}
.ax-meta{font-size:13px;line-height:1.4}
.ax-description{font-size:16px;line-height:1.55;margin-bottom:16px}
.ax-thumbs{border-top:1px solid #1113;padding-top:14px;grid-auto-rows:58px;gap:8px;scrollbar-width:thin}
.ax-thumbs button{height:58px;background:transparent;opacity:.5}
.ax-thumbs button[aria-pressed=true]{opacity:1}
.ax-project-nav{width:100%;box-sizing:border-box;border-top:1px solid #1113;align-self:stretch;padding-top:12px}
}
.ax-stage .vp{border-radius:var(--hx-r,6px)}
.ax-stage .vp-snd,.ax-stage .vp-bar,.ax-stage .vp-big{background:#111b!important;color:white!important}

@media(min-width:1001px){.ax-details{grid-template-rows:84px 28px minmax(40px,1fr) 120px 58px;gap:12px}}

.ax-details h2:focus{outline:none}
@media(min-width:1001px){.ax-details{grid-template-rows:84px 28px minmax(40px,1fr) 120px 64px}}
/* Centre the whole project composition; navigation fills the right panel. */
@media(min-width:1001px){
.ax-layout{align-items:center}
.ax-media-column{height:auto;align-items:center}
.ax-details{overflow:visible;grid-template-rows:84px 28px minmax(40px,1fr) 120px 64px}
.ax-copy-scroll,.ax-thumbs{min-height:0}
}
.ax-project-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:64px;box-sizing:border-box;overflow:visible;padding-bottom:4px}
.ax-project-nav button{width:100%;height:46px;min-height:46px;box-sizing:border-box;min-width:0}

/* Titles fit the common slot; project copy is condensed at its source. */
.ax-details h2{overflow:visible!important;scrollbar-width:none}
.ax-copy-scroll{scrollbar-width:thin}
html:root body .ax-stage :is(.vp-big,.vp-bar,.vp-snd,.vp-play,.vp-mute,.vp-fs){border-radius:var(--hx-r,6px)!important}

.ax-start{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:64px;height:64px;padding:18px;display:grid;place-items:center;border:1px solid #ffffff66;background:#111b;color:#fff;border-radius:var(--hx-r,6px)!important;cursor:pointer;z-index:3}
.ax-start svg{width:26px;height:26px;fill:currentColor}
.ax-start:hover{background:#111}

.ax-stage>img.ax-poster-hold{z-index:2;pointer-events:none;opacity:1;transition:opacity .22s}.ax-stage>img.ax-poster-ready{opacity:0}.ax-stage>.vp{z-index:3}

.ax-dialog{background:transparent!important}
.ax-dialog::backdrop{background:transparent!important;backdrop-filter:none!important}
.ax-dialog::before{background-color:#f5f5f5}
/* Video covers are cropped to the same 16:9 shape as their card (Sesame Street's picture is 3:2). Still-image slides stay uncropped. */
.ax-stage>img.ax-cover{object-fit:cover}

/* Full screen with thumbnails */
html body .ax-dialog .ax-shell.ax-theater{position:fixed;inset:0;z-index:20;width:100%;height:100%;max-width:none;margin:0;padding:16px;box-sizing:border-box;display:flex;flex-direction:column;background:#0b0b0b;color:#fff}
html body .ax-dialog .ax-theater .ax-top{position:static;flex:0 0 46px;margin:0 0 12px;opacity:1;background:transparent;backdrop-filter:none;padding:0}
html body .ax-dialog .ax-theater .ax-close{background:#222!important;border-color:#fff4!important}
html body .ax-dialog .ax-theater .ax-layout{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0}
html body .ax-dialog .ax-theater .ax-media-column{flex:1;min-height:0;height:auto;display:flex;align-items:center;justify-content:center;container-type:size}
html body .ax-dialog .ax-theater .ax-stage{flex:none;width:min(100cqw,177.78cqh)!important;height:auto!important;max-height:none!important;aspect-ratio:16/9!important;background:#000}
html body .ax-dialog .ax-theater .ax-details{display:block!important;flex:0 0 auto;height:auto!important;max-width:none;padding:0}
html body .ax-dialog .ax-theater .ax-details>:not(.ax-thumbs){display:none!important}
html body .ax-dialog .ax-theater .ax-thumbs{display:flex!important;justify-content:safe center;gap:10px;height:auto!important;min-height:0;max-height:none;overflow-x:auto;overflow-y:hidden;border:0;padding:4px}
html body .ax-dialog .ax-theater .ax-thumbs button{flex:0 0 112px;width:112px;height:63px}

/* Opening and closing a project: the portfolio pages' timing and easing (motion.css), applied the same way on Home. */
html.ax-vt header{view-transition-name:none!important}
html.ax-vt .ax-start{visibility:hidden}
html.ax-vt::view-transition-group(proj){animation-duration:.7s!important;animation-timing-function:cubic-bezier(.22,.8,.2,1)!important}
html.ax-vt::view-transition-image-pair(proj){isolation:auto!important}
html.ax-vt::view-transition-old(proj),html.ax-vt::view-transition-new(proj){height:100%;object-fit:cover;animation:none!important;mix-blend-mode:normal!important;border-radius:6px;overflow:hidden}
html.ax-vt:not(.ax-vt-back)::view-transition-old(proj){opacity:0!important}
html.ax-vt:not(.ax-vt-back)::view-transition-new(proj){opacity:1!important}
/* closing: the large picture blends into the card's picture on the way down, so nothing blinks or jumps */
@keyframes ax-vt-out{from{opacity:1}to{opacity:0}}
@keyframes ax-vt-in{from{opacity:0}to{opacity:1}}
html.ax-vt.ax-vt-back::view-transition-image-pair(proj){isolation:isolate!important}
html.ax-vt.ax-vt-back::view-transition-old(proj){animation:ax-vt-out .55s ease both!important;mix-blend-mode:plus-lighter!important}
html.ax-vt.ax-vt-back::view-transition-new(proj){animation:ax-vt-in .55s ease both!important;mix-blend-mode:plus-lighter!important}

/* Archive grid: full, two, full (owner, 2026-11-26); a card left alone at the end goes full width */
.ax-grid .ax-card:nth-child(3n+1),.ax-grid .ax-card:nth-child(3n+2):last-child{grid-column:1/-1}

/* Fixed row height, matching Projects */
@media(min-width:601px){.ax-grid .ax-picture{aspect-ratio:auto;height:360px}}
@media(min-width:1101px){.ax-grid .ax-picture{height:480px}}

/* Row sizes and pair gap as on altcinc.com at 1440, matching Projects */
@media(min-width:601px){.ax-grid{column-gap:8px}.ax-grid .ax-picture{height:auto;aspect-ratio:16/10}.ax-grid .ax-card:nth-child(3n+1) .ax-picture,.ax-grid .ax-card:nth-child(3n+2):last-child .ax-picture{aspect-ratio:5/2}}
@media(min-width:1101px){.ax-grid .ax-picture{aspect-ratio:auto;height:419px}.ax-grid .ax-card:nth-child(3n+1) .ax-picture,.ax-grid .ax-card:nth-child(3n+2):last-child .ax-picture{aspect-ratio:auto;height:538px}}
/* with pictures only 4px apart, keep the left card's label clear of the next title */
@media(min-width:601px){.ax-grid .ax-card:nth-child(3n+2):not(:last-child) .ax-caption{padding-right:20px}}

/* the close X is a drawn icon, centred in its button (the text character sat off-centre) */
.ax-dialog .ax-close{display:grid;place-items:center;padding:0;line-height:0}
.ax-close svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* Phone/tablet viewer: natural content flow, without desktop reserved slots. */
@media(max-width:1000px){
.ax-dialog .ax-layout{gap:24px;align-items:start}
.ax-dialog .ax-details{display:flex;flex-direction:column;gap:0;width:100%;max-width:none;height:auto;min-height:0;padding:0}
.ax-dialog .ax-details h2{min-height:0;margin:0 0 12px;line-height:1.05}
.ax-dialog .ax-meta{min-height:0;margin:0 0 24px}
.ax-dialog .ax-copy-scroll{max-height:none;overflow:visible;min-height:0}
.ax-dialog .ax-description{margin:0 0 20px}
.ax-dialog .ax-credit:not([hidden]){display:inline-block;margin-bottom:20px}
.ax-dialog .ax-thumbs{min-height:0;max-height:none;padding:4px 2px 12px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap;flex-shrink:0}
.ax-dialog .ax-thumbs button{flex-shrink:0}
.ax-dialog .ax-thumbs[hidden]{display:none}
.ax-dialog .ax-project-nav{margin-top:12px;min-height:0;flex-shrink:0}
.ax-dialog .ax-shell{padding-bottom:max(28px,env(safe-area-inset-bottom))}
}

/* Keep project switching at the same viewport position, regardless of copy length. */
@media(max-width:1000px){
.ax-dialog .ax-shell{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
.ax-dialog .ax-project-nav{position:fixed;z-index:4;left:5vw;right:5vw;bottom:max(12px,env(safe-area-inset-bottom));width:auto;margin:0;padding:12px 0 0;background:transparent;backdrop-filter:none;border-radius:0}
.ax-dialog .ax-project-nav button{background:transparent;border:1px solid #1113}
}
