/* Shared index heading rhythm: Projects, Archive, About. */
html:root body:is(.work-index-page,.about-page) main{max-width:2000px;margin-inline:auto}
html:root body .ax-main{padding:0 5vw 110px;max-width:2000px}
html:root body:is(.work-index-page,.about-page) .archive-heading,html:root body .ax-heading{padding:70px 5vw 0!important;margin:0 0 64px!important;border:0!important;box-sizing:border-box}
html:root body .ax-heading{padding-inline:0!important}
html:root body:is(.work-index-page,.about-page) .archive-heading::after{display:none!important}
html:root body :is(.archive-heading,.ax-heading)>.label{display:block;font-size:11px;line-height:1.2;margin:0;padding:0}
html:root body :is(.archive-heading,.ax-heading) h1{font-family:'Funnel Display',sans-serif!important;font-size:clamp(72px,10vw,160px)!important;font-weight:500!important;line-height:.95!important;letter-spacing:-.065em!important;margin:24px 0 28px!important;padding:0!important}
html:root body .archive-heading h1 em{font:inherit!important;letter-spacing:inherit!important}
html:root body .archive-heading>div{min-height:46px!important;display:flex;justify-content:space-between;align-items:center!important;gap:24px}
html:root body :is(.archive-heading,.ax-heading) p{font-size:18px!important;line-height:1.4!important;margin:0!important;color:#555}
html:root body .ax-heading>p{min-height:46px;display:flex;align-items:center}
html:root body.work-index-page .gallery-section{padding:0 5vw!important}
/* Projects' grid, including Safari's fallback, shares Archive's two-up geometry. */
html[data-pv=grid] body.work-index-page .work-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 24px}
html:root body.work-index-page .work-grid .work-row{display:contents!important}
html:root body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n){width:100%!important;min-width:0;margin:0!important;align-self:start!important;transition:none!important}
html:root body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image{aspect-ratio:16/9!important;width:100%;border-radius:var(--hx-r,6px)!important;transition:none!important}
html:root body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .wk-wide{opacity:1!important;object-fit:cover}
html:root body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .wk-thumb{display:none!important}
html:root body.work-index-page .work-grid .gallery-caption{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin:0;padding-top:15px;border:0}
html:root body.work-index-page .work-grid .gallery-caption h2{font-size:23px!important;line-height:1.2;font-weight:600;letter-spacing:-.035em}
html:root body.work-index-page .work-grid .gallery-caption>span{font-size:13px;color:#666}
@media(max-width:700px){html:root body:is(.work-index-page,.about-page) .archive-heading,html:root body .ax-heading{padding-top:40px!important;margin-bottom:38px!important}html:root body .archive-heading>div{flex-wrap:wrap}.archive-heading .pv-tools,.archive-heading .about-switch{margin-top:0!important}}
@media(max-width:600px){html[data-pv=grid] body.work-index-page .work-grid{grid-template-columns:1fr;gap:34px}html:root body :is(.archive-heading,.ax-heading) p{font-size:16px!important}}
@media(min-width:701px){html:root body .archive-heading>div{height:46px!important;min-height:46px!important}html:root body .archive-heading .about-switch{height:46px!important;min-height:0!important;box-sizing:border-box}html:root body .archive-heading .about-switch button{height:38px!important;min-height:0!important}}
@keyframes hx-index-enter{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
html:root body :is(.archive-heading,.ax-heading)>.label,html:root body :is(.archive-heading,.ax-heading)>h1,html:root body .archive-heading>div,html:root body .ax-heading>p{animation:hx-index-enter .85s cubic-bezier(.16,.84,.24,1) both}
html:root body :is(.archive-heading,.ax-heading)>.label{animation-delay:.08s}html:root body :is(.archive-heading,.ax-heading)>h1{animation-delay:.18s}html:root body .archive-heading>div,html:root body .ax-heading>p{animation-delay:.3s}
@media(prefers-reduced-motion:reduce){html:root body :is(.archive-heading,.ax-heading)>*{animation:none!important}}

/* Keep title compositing unchanged at the end of its entrance. */
@keyframes hx-stable-title{from{opacity:0;transform:translate3d(0,28px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
html:root body :is(.archive-heading,.ax-heading)>h1{animation-name:hx-stable-title!important;transform:translate3d(0,0,0);backface-visibility:hidden}
html:root body.work-index-page .wk-sub{display:none!important}
html:root body :is(.vp-big,.vp-bar,.vp-snd){border-radius:var(--hx-r,6px)!important}

/* One underline treatment, including home and case pages. */
html:root body header nav a{position:relative;border-bottom:0!important;text-decoration:none!important}
html:root body header nav a::after{content:""!important;display:block!important;position:absolute;left:0;right:0;bottom:1px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .45s cubic-bezier(.3,.75,.25,1)}
html:root body header nav a:is(:hover,:focus-visible,[aria-current=page])::after{transform:scaleX(1);transform-origin:left}
html:root body header nav a:hover{border-bottom-color:transparent!important}
/* Reserve scrollbar width before overlays open. */
html{scrollbar-gutter:stable}
html:root body .cf-full{box-sizing:border-box;width:auto;right:0;transform:none!important;transition:opacity .3s,visibility .3s}
html:root body .cf-full-in{box-sizing:border-box;max-width:2000px;margin:auto;padding-inline:5vw}
html:root body .cf-x{right:5vw;border-radius:var(--hx-r,6px)!important}
/* About's content begins at the same heading-to-content distance as the grids. */
html:root body.about-page .about-opening .abx{padding-top:0!important;margin-top:0!important}
html:root body.about-page .about-heading .about-switch{padding:5px!important;gap:4px!important;height:46px!important;box-sizing:border-box;align-items:stretch;flex-wrap:nowrap}
html:root body.about-page .about-heading .about-switch button{height:auto!important;min-height:0!important;line-height:1.2;padding:8px 22px!important;box-sizing:border-box}
@media(max-width:700px){html:root body.about-page .about-heading>div{height:auto!important;gap:20px}html:root body.about-page .about-heading .about-switch{width:100%!important;margin-top:0!important}html:root body.about-page .about-heading .about-switch button{flex:1;padding:8px 12px!important}}
/* About: compact content rhythm without changing the common index heading. */
html:root body.about-page .about-opening{padding-top:0!important;padding-bottom:36px!important}
html:root body.about-page .about-details{padding-bottom:40px!important}
html:root body.about-page .detail-heading{padding-top:22px!important;margin-bottom:22px!important}
html:root body.about-page .lab-notes{margin-top:24px!important}
@media(max-width:700px){html:root body.about-page .about-opening{padding-bottom:28px!important}html:root body.about-page .about-details{padding-bottom:28px!important}}

.about-brands{padding:0 5vw 40px;color:inherit}
.about-brands h2{font-family:'Funnel Display',sans-serif!important;font-size:clamp(26px,2.6vw,40px);font-weight:600;letter-spacing:-.035em;margin:0 0 24px}
.about-brands ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.about-brands li{height:96px;display:grid;place-items:center;background:#fff;color:#111;border:1px solid #1112;border-radius:var(--hx-r,6px);text-align:center;padding:0 8px;box-sizing:border-box;transition:background .25s,color .25s}
.about-brands li:hover{background:#111;color:#f5f5f5}
.about-brands b{font-family:'Funnel Display',sans-serif!important;font-size:clamp(17px,1.9vw,28px);font-weight:600;letter-spacing:-.02em}
@media(max-width:700px){.about-brands ul{grid-template-columns:repeat(2,minmax(0,1fr))}.about-brands li{height:76px}.about-brands li:last-child{grid-column:1/-1}}
/* About brands read as a quiet credit list, not another card section. */
.about-brands{padding-top:8px;padding-bottom:36px}
.about-brands h2{font-size:24px;margin-bottom:22px}
.about-brands ul{display:flex;flex-wrap:wrap;gap:14px 32px;max-width:1100px}
.about-brands li,.about-brands li:hover{display:block;height:auto;width:auto;padding:0;border:0;background:none;color:inherit;border-radius:0;transition:none}
.about-brands b{font-family:'Inter Tight',sans-serif!important;font-size:clamp(18px,1.6vw,24px);font-weight:500;letter-spacing:-.02em}
@media(max-width:700px){.about-brands ul{gap:12px 24px}.about-brands li{height:auto}.about-brands h2{font-size:22px}}

/* Selected clients sit under the Work summary; the Life and Lab sides hide them (space is kept so the page does not jump). */
.abx-clients{margin-top:4px;padding-top:14px;border-top:1px solid color-mix(in srgb,currentColor 20%,transparent);max-width:640px;transition:opacity .35s,visibility .35s}
.abx-clients h4{font:500 10px/1.3 'Inter Tight',sans-serif!important;letter-spacing:.14em;text-transform:uppercase;opacity:.65;margin:0 0 8px}
.abx-clients ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}
.abx-clients li{font:500 14px/1.4 'Inter Tight',sans-serif;letter-spacing:-.01em;white-space:nowrap}
body[data-side="1"] .abx-clients,body[data-side="2"] .abx-clients{opacity:0;visibility:hidden}
@media(max-width:700px){.abx-clients ul{gap:6px 16px}body[data-side="1"] .abx-clients,body[data-side="2"] .abx-clients{display:none}}
@media(prefers-reduced-motion:reduce){.abx-clients{transition:none}}
/* owner, 2026-11-26: Selected clients stay on one line at every width; text and spacing shrink with the column. */
.abx-clients{container-type:inline-size}
.abx-clients ul{flex-wrap:nowrap;font-size:min(14px,3.4cqw);gap:0 1.25em}
.abx-clients li{font-size:1em}
@media(max-width:700px){.abx-clients ul{font-size:min(14px,3.9cqw);gap:0 .75em}}

/* Projects grid: full, two, full */
html[data-pv=grid] body.work-index-page .work-grid .work-card.hx-full{grid-column:1/-1}

/* Fixed row height (owner, 2026-11-26): every row the same; pictures are cropped to fit. Phones keep widescreen. */
@media(min-width:601px){:root{--hx-rowh:360px}}
@media(min-width:1101px){:root{--hx-rowh:480px}}
@media(min-width:601px){
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image{aspect-ratio:auto!important;height:var(--hx-rowh)!important}
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image>:is(img,video){width:100%!important;height:100%!important;object-fit:cover!important}
}
/* Grid pages stay lined up with the logo and menu at every width (they used to stop at 2000px on very wide screens). */
html:root body:is(.work-index-page,.archive-page) main{max-width:none!important}
html:root body .ax-main{max-width:none;padding-inline:min(5vw,96px)}
html:root body.work-index-page :is(main .archive-heading,main :has(>.work-grid)){padding-left:min(5vw,96px)!important;padding-right:min(5vw,96px)!important;max-width:none!important}

/* owner, 2026-11-26: row sizes and pair gap as on altcinc.com at 1440 (full 538px, pairs 419px, 4px apart). Replaces the single row height above.
   Our fonts and 6px corners stay. Between 601 and 1100 wide the same shapes are used (2.5:1 and 16:10). */
@media(min-width:601px){
html[data-pv=grid] body.work-index-page .work-grid{column-gap:8px!important}
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image{height:auto!important;aspect-ratio:16/10!important}
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card.hx-full:nth-child(n) .gallery-image{aspect-ratio:5/2!important}
}
@media(min-width:1101px){
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image{aspect-ratio:auto!important;height:419px!important}
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card.hx-full:nth-child(n) .gallery-image{aspect-ratio:auto!important;height:538px!important}
}
@media(min-width:601px){html[data-pv=grid] body.work-index-page .work-grid .work-card:not(.hx-full):has(.gallery-caption).hx-left .gallery-caption{padding-right:20px!important}}

/* Xfinity grid thumbnail: the rotating phone fan, always playing. The wide copy carries its own background, so it fills any card shape. */
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card[href*="xfinity-holiday"]:nth-child(n) .gallery-image>video.wk-vid.ready{opacity:1!important}
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card[href*="xfinity-holiday"]:nth-child(n) .gallery-image>:is(img.wk-wide,video){object-fit:cover!important}
html:root[data-pv=grid] body.work-index-page .work-grid .work-row:nth-child(n) .work-card[href*="xfinity-holiday"]:nth-child(n) .gallery-image:has(>video.wk-vid.ready)>img.wk-wide{opacity:0!important}

/* Projects grid hover: blurred picture behind the page instead of a glow behind the card */
html body.work-index-page .work-card.glow::before{display:none!important}
.hx-atmo{position:fixed;inset:0;z-index:-1;pointer-events:none}
.hx-atmo>div{position:absolute;inset:0;opacity:0;transition:opacity 3.5s ease;background:var(--hx-page,transparent)}
/* the same three layers as a project page (.case-atmosphere): colour, blurred picture at 45%, two soft shades of the colour */
.hx-atmo>div::before,.hx-atmo>div::after{content:"";position:absolute;inset:0}
.hx-atmo>div::before{background:var(--hx-pic) center/cover no-repeat;opacity:.45}
.hx-atmo>div::after{background:linear-gradient(90deg,color-mix(in srgb,var(--hx-page) 28%,transparent),color-mix(in srgb,var(--hx-page) 65%,transparent) 80%),linear-gradient(0deg,var(--hx-page),transparent 85%)}
.hx-atmo>div.on{opacity:1}
html[data-pv=layered] .hx-atmo{display:none}
@media(prefers-reduced-motion:reduce){.hx-atmo>div{transition:none}}

/* text follows the hovered project's colour */
html:root body.work-index-page :is(header,header .site-name,header .site-name *,header nav a,.archive-heading>.label,.archive-heading h1,.archive-heading h1 *,.archive-heading p,.work-grid .gallery-caption h2,.work-grid .gallery-caption>span,.hx-filter-trigger,.pv-switch,.pv-switch button){transition:color 3.5s ease,background-color 3.5s ease,border-color 3.5s ease,opacity .3s}
html:root body.work-index-page.hx-tint :is(header .site-name,header .site-name *,header nav a,.archive-heading>.label,.archive-heading h1,.archive-heading h1 *,.archive-heading p,.work-grid .gallery-caption h2,.hx-filter-trigger,.pv-switch button){color:var(--hx-ink)!important}
html:root body.work-index-page.hx-tint .work-grid .gallery-caption>span{color:color-mix(in srgb,var(--hx-ink) 75%,transparent)!important}
/* frosted header in the page colour, so the menu stays readable while pictures scroll under it */
html:root body.work-index-page.hx-tint header{background:color-mix(in srgb,var(--hx-page) 72%,transparent)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html:root body.work-index-page.hx-tint header::before{background:transparent!important}
html:root body.work-index-page.hx-tint :is(.hx-filter-trigger,.pv-switch){background:transparent!important;border-color:color-mix(in srgb,var(--hx-ink) 30%,transparent)!important}
html:root body.work-index-page.hx-tint .pv-switch button{background:transparent!important}
html:root body.work-index-page.hx-tint .pv-switch button[aria-pressed=true]{background:var(--hx-ink)!important;color:#222!important}

/* owner, 2026-11-26: slower still (3.5s), and Say hello with the footer changes colour like the titles */
html:root body.work-index-page :is(header,.archive-heading h1,.work-grid .gallery-caption h2){transition:color 3.5s ease,background-color 3.5s ease,border-color 3.5s ease}
html:root body.work-index-page section.contact :is(.label,h2,.contact-lead,a){transition:color 3.5s ease,border-color 3.5s ease,opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
html:root body.work-index-page section.contact .say-hello{transition:color 3.5s ease,opacity .25s}
html:root body.work-index-page section.contact .say-arrow{transition:color 3.5s ease,transform .6s cubic-bezier(.45,.05,.25,1)}
html:root body.work-index-page footer,html:root body.work-index-page footer :is(span,small,a){transition:color 3.5s ease,border-color 3.5s ease,background-color 3.5s ease}
html:root body.work-index-page.hx-tint section.contact :is(h2,.say-hello,.say-arrow,a){color:var(--hx-ink)!important}
html:root body.work-index-page.hx-tint section.contact :is(.label,.contact-lead){color:color-mix(in srgb,var(--hx-ink) 75%,transparent)!important}
html:root body.work-index-page.hx-tint footer,html:root body.work-index-page.hx-tint footer :is(span,small,a){color:color-mix(in srgb,var(--hx-ink) 75%,transparent)!important;background-color:transparent!important}
html:root body.work-index-page.hx-tint footer{border-color:color-mix(in srgb,var(--hx-ink) 25%,transparent)!important}
@media(prefers-reduced-motion:reduce){html:root body.work-index-page :is(header,header *,.archive-heading *,.work-grid .gallery-caption *,section.contact *,footer,footer *){transition:none!important}}

/* Fix (owner, 2026-11-26: "EA ... its white at times"): the old grid's hover effect (tech.css) hid a card's picture and video while its
   row partner was hovered. The new grid keeps old row pairs behind the scenes, so unrelated cards went blank. In this grid the picture
   is never hidden, autoplay videos stay on, and the old square thumbnail never appears. :not(#hx) outranks the old !important rules. */
html:root[data-pv=grid] body.work-index-page:not(#hx) .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image>img.wk-wide{opacity:1!important}
html:root[data-pv=grid] body.work-index-page:not(#hx) .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image>video.wk-vid.ready[data-autoplay]{opacity:1!important}
html:root[data-pv=grid] body.work-index-page:not(#hx) .work-grid .work-row:nth-child(n) .work-card:nth-child(n) .gallery-image>img.wk-thumb{display:none!important}
html:root[data-pv=grid] body.work-index-page:not(#hx) .work-grid .work-row:nth-child(n) .work-card[href*="xfinity-holiday"]:nth-child(n) .gallery-image>video.wk-vid.ready{opacity:1!important}
html:root[data-pv=grid] body.work-index-page:not(#hx) .work-grid .work-row:nth-child(n) .work-card[href*="xfinity-holiday"]:nth-child(n) .gallery-image:has(>video.wk-vid.ready)>img.wk-wide{opacity:0!important}

/* Next project band (owner, 2026-11-26): full width and lighter, as on the live site. Edge to edge with thin lines above and below;
   a light veil over the page colour; the blurred moving clip stays, faintly, and can only lighten (screen). Text uses the page's own colour. */
html body.case-page:not(#hx) .case-next{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box;border-radius:0!important;border:0!important;border-top:1px solid color-mix(in srgb,currentColor 22%,transparent)!important;border-bottom:1px solid color-mix(in srgb,currentColor 22%,transparent)!important;background:#ffffff1a!important}
html body.case-page:not(#hx) .case-next:hover{border-color:color-mix(in srgb,currentColor 45%,transparent)!important;background:#ffffff24!important}
html body.case-page:not(#hx) .case-next>a{padding:clamp(40px,5.5vw,88px) max(var(--pad),calc((100% - var(--fw)) / 2))!important;width:100%!important;box-sizing:border-box}
html body.case-page:not(#hx) .case-next>a::before{display:none!important}
/* the clip is brightened so it cannot pull the band darker than the page */
html body.case-page:not(#hx) .case-next>.hx-nbg.on{opacity:.18;filter:blur(36px) saturate(1.15) brightness(1.7)}
/* light page (Xfinity, --cb:#eef1fa): the clip would only darken it, so it is off and the veil is whiter */
html body.case-page[style*="#eef1fa"]:not(#hx) .case-next>.hx-nbg.on{opacity:0}
html body.case-page[style*="#eef1fa"]:not(#hx) .case-next{background:#ffffffa6!important}
html body.case-page:not(#hx) .case-next .case-next-text :is(.label,h2,h2 *,.case-next-go){color:inherit!important}
html body.case-page:not(#hx) .case-next .case-next-go{border-color:color-mix(in srgb,currentColor 45%,transparent)!important}
html body.case-tint.case-page:not(#hx) .case-next a:hover .case-next-go,html body.case-tint.case-page:not(#hx) .case-next a:focus-visible .case-next-go{background:var(--inkm,#f5f5f5)!important;color:var(--bgm,#111)!important}
html body.case-page:not(#hx) .case-next a:hover .case-next-go :is(span,i,svg),html body.case-page:not(#hx) .case-next a:focus-visible .case-next-go :is(span,i,svg){color:inherit!important}
@media(max-width:700px){html body.case-page:not(#hx) .case-next>a{padding-block:32px!important}}

/* Projects cards show title and year only. tech.css forced the description back in Safari, for a card alone in its row, and on some hovers;
   :not(#hx) outranks all of those (Safari's rule is !important). */
html body.work-index-page:not(#hx) .work-card .wk-sub{display:none!important}

/* QA 2026-11-26: Contact popup subtitle and field labels were a fixed light-page grey (#616161), about 1.6:1 on dark project pages.
   They now take the popup's own text colour, softened a little. */
html:root body .cf-full:not(#hx) :is(.cf-lead,.cf-side .label,.contact-lead,.contact-form label){color:inherit!important}
html:root body .cf-full:not(#hx) :is(.cf-lead,.contact-lead){opacity:.85!important}
html:root body .cf-full:not(#hx) .contact-form :is(input,textarea){color:inherit!important;border-color:color-mix(in srgb,currentColor 45%,transparent)!important}
html:root body .cf-full:not(#hx) .contact-form :is(input,textarea)::placeholder{color:currentColor!important;opacity:.6}


/* Home: brands under the work summary, styled as on About */
html body.home .hx-ab-copy .abx-clients{margin:6px 0 28px;width:100%;max-width:640px;text-align:left}
/* even space above and below Home's about section now that the brand strip no longer follows it */
html:root body.home:not(#hx) #info.hx-about#info{padding-top:clamp(56px,7vw,101px)!important;padding-bottom:clamp(56px,7vw,101px)!important}
/* phone: the old About grid left two empty rows, adding 56px under the section */
@media(max-width:700px){html:root body.home:not(#hx) #info.hx-about#info{grid-template-rows:auto auto!important;grid-template-areas:none!important}}
