/* Project colours are shared by the reel, cards, detail pages and agency work. */
[data-project-surface]{--project-art:var(--project-bg);--project-line:color-mix(in srgb,var(--project-ink) 23%,transparent)}
.reel .project-scene[data-project-surface]{background:var(--project-bg)!important;color:var(--project-ink);--hero-ink:var(--project-ink);--hero-muted:var(--project-muted)}
.project-scene .scene-copy :is(.coordinate,.scene-sub){color:var(--project-muted)}
.project-scene .scene-copy :is(h2,.folio,.underlink){color:var(--project-ink)}
.project-scene .underlink{border-color:var(--project-line)}
.site-header.on-reel.is-scrolled{background:var(--header)}
.interior:has(.personal-project,.case-brand-stage) .site-header,.interior .site-header.is-scrolled{background:var(--bg);border-bottom:1px solid var(--line)}
.reel:not(.showing-opener) .reel-stage>.reel-foot{color:var(--reel-ink,var(--hero-ink));--hero-ink:var(--reel-ink,var(--ink));--hero-muted:var(--reel-muted,var(--hero-ink));background:var(--reel-bg)}
.reel:not(.showing-opener) .reel-stage>.reel-foot .reel-thumb{color:var(--hero-muted)}
.reel:not(.showing-opener) .reel-stage>.reel-foot .reel-thumb[aria-current=true]{color:var(--reel-bg);background:var(--hero-ink);border-color:transparent}
.reel:not(.showing-opener) .reel-stage>.reel-foot :is(.reel-next,.reel-count b){color:var(--hero-ink)}
.reel:not(.showing-opener) .reel-stage>.reel-foot .reel-count{color:var(--hero-muted)}
.reel:not(.showing-opener) .reel-thumb .reel-tab-number{color:inherit}
.case-brand-stage .case-record-type{border-color:currentColor}
.case-brand-stage{background:var(--project-bg);color:var(--project-ink);padding-bottom:clamp(12px,2vw,28px)}
.case-brand-stage :is(.case-kicker,.case-facts dt,.case-breadcrumb,.case-record-type,figcaption){color:var(--project-muted)}
.case-brand-stage :is(h1,.case-facts dd,.case-breadcrumb a){color:var(--project-ink)}
.case-brand-stage .case-deck{color:var(--project-ink)}
.case-brand-stage .case-facts{border-color:var(--project-line)}
.project-case[data-project-surface] .case-artboard{background:var(--project-art)!important;border-color:var(--project-line)}
.project-case[data-project-surface] .case-visual-section{background:var(--project-bg);color:var(--project-ink);border-radius:16px;padding:clamp(24px,4vw,48px);margin-block:16px 40px}
.project-case[data-project-surface] .case-visual-section :is(.label,figcaption){color:var(--project-muted)}
.case-brand-stage .case-media-item figcaption{margin-top:14px}
.project-card[data-project-surface]>a,.interior .project-card[data-project-surface]>a{background:var(--project-bg);border-color:var(--project-line)}
.project-card[data-project-surface] .project-card-meta{border-top:1px solid var(--project-line);background:var(--project-bg);color:var(--project-ink)}
.project-card[data-project-surface] .project-card-meta :is(h3,.project-card-action){color:var(--project-ink)}
.project-card[data-project-surface] .project-card-meta>div>span{color:var(--project-muted)}
.agency-brand-section[data-project-surface],.interior .agency-brand-section[data-project-surface]{background:var(--project-bg);color:var(--project-ink);padding:clamp(20px,3vw,42px);border-radius:16px;margin-bottom:24px}
.agency-brand-section[data-project-surface] .agency-brand-heading{border:0;padding-top:0;color:var(--project-ink)}
.agency-brand-section[data-project-surface] .agency-brand-heading>span{color:var(--project-muted)}
.agency-brand-section[data-project-surface] .agency-design{border-color:var(--project-line);background:var(--project-bg)}
.chapter-art-inner[data-project-surface]{background:var(--project-art)!important}
.studio-community[data-project-surface]{background:var(--project-bg);color:var(--project-ink);--community-ink:var(--project-ink);--community-muted:var(--project-muted)}
.studio-community[data-project-surface] :is(p,.label,.community-stat span){color:var(--project-muted)}
.personal-card[data-project-surface],.interior .personal-card[data-project-surface]{background:var(--project-bg);color:var(--project-ink);border-color:var(--project-line)}
.personal-card[data-project-surface] :is(p,.work-type){color:var(--project-muted)}
.personal-project[data-project-surface]>.collection-header{background:var(--project-bg);color:var(--project-ink);max-width:none;padding-inline:max(5vw,calc((100vw - 1560px)/2));}
.personal-project[data-project-surface]>.collection-header :is(p,.work-type,nav){color:var(--project-muted)}
@media(max-width:700px){.agency-brand-section[data-project-surface],.interior .agency-brand-section[data-project-surface]{padding:20px 14px;border-radius:12px;margin-bottom:20px}.case-brand-stage{padding-bottom:6px}}

/* Grafix titles use the white display colour over its original red. */
.project-scene[data-project-surface="grafix"] .scene-copy h2,
.project-case[data-project-surface="grafix"] .case-brand-stage h1{color:#fff}

.collaborations .brand-agency-groups {
 display:grid;
 grid-template-columns:repeat(5,minmax(0,1fr));
 gap:12px 14px;
}
.collaborations .brand-agency-group {
 display:grid;
 grid-row:span 2;
 grid-template-rows:subgrid;
 align-items:stretch;
}
.collaborations .brand-agency-group:has(li:nth-child(2)){grid-column:span 2}
.collaborations .brand-agency-group:has(li:nth-child(4)){grid-column:1/-1}
.collaborations .brand-agency-group>h3 {
 align-self:end;
 display:block;
 min-height:0;
 padding:0;
 margin:16px 0 0;
}
.collaborations .brand-agency-group>h3 a{padding:0}
.collaborations .brand-agency-group .brand-grid {
 margin:0;
 gap:8px;
 border:0;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,168px),1fr));
 align-content:start;
}
.collaborations .brand-agency-group .brand-grid li[data-project-surface] {
 display:grid;
 grid-template-columns:minmax(0,1fr);
 align-items:stretch;
 justify-content:stretch;
 min-height:78px;
 padding:0;
 background:var(--project-bg);
 color:var(--project-ink);
 border:1px solid var(--project-line);
 border-radius:12px;
 overflow:hidden;
}
.collaborations .brand-agency-group .brand-grid li::after{display:none}
.brand-agency-group .wall-entry {
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 align-items:center;
 justify-items:start;
 gap:8px;
 width:100%;
 min-width:0;
 padding:12px;
 text-align:start;
}
.brand-agency-group .wall-name{font-size:.9375rem;line-height:1.3;font-weight:600;letter-spacing:-.025em;overflow-wrap:break-word}
.brand-agency-group .wall-entry:focus-visible{outline:3px solid currentColor;outline-offset:-5px}
:root[data-theme=light] .brand-agency-group .brand-grid li[data-project-surface],
:root[data-theme=light] .agency-items .agency-row li[data-project-surface] {
 background:#fbfcff;
 color:var(--ink);
 border:1px solid var(--line);
}
:root[data-theme=dark] .brand-agency-group li[data-project-surface=grafix] .wall-name{color:#231018}
:root {
 --brand-mark-size:68px;
 --brand-chip-mark-size:46px;
}
@media(max-width:1099px){
 :root{--brand-mark-size:54px;--brand-chip-mark-size:38px}
}
@media(max-width:700px){
 :root{--brand-mark-size:46px;--brand-chip-mark-size:34px}
}
.mini-mark {
 --mark-size:var(--brand-mark-size);
 position:relative;
 display:inline-grid;
 place-items:center;
 box-sizing:border-box;
 flex:0 0 var(--mark-size);
 width:var(--mark-size);
 height:var(--mark-size);
 padding:5px;
 border:1px solid var(--mark-edge);
 border-radius:8px;
 background:var(--mark-paper);
}
.mini-mark img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center;filter:none}
.grafix-light-mark{display:none}
:root[data-theme=light] .mini-mark[data-mark=grafix]{background:#fff;border-color:var(--line)}
:root[data-theme=light] .mini-mark[data-mark=grafix] img{display:none}
:root[data-theme=light] .grafix-light-mark{
 display:block;
 width:100%;
 height:100%;
 background:#ef3c56;
 mask-position:center;
 mask-size:contain;
 mask-repeat:no-repeat;
}
.wall-entry .mini-mark{justify-self:end}
.project-scene .scene-copy>.mini-mark{margin-bottom:12px;vertical-align:top}
:root[data-theme=dark] .brand-agency-group .brand-grid li[data-project-surface=trt]{background:#a71531;color:white}
.brand-chip,.project-card-end{display:inline-flex;align-items:center;justify-content:space-between;gap:9px}
.brand-chip .mini-mark{--mark-size:var(--brand-chip-mark-size);padding:4px;border-radius:6px}
@media(min-width:1000px){
 .collaborations.home-collaborations .brand-agency-groups{grid-template-columns:repeat(6,minmax(0,1fr));column-gap:8px}
 .home-collaborations .brand-agency-group:has(li:nth-child(4)){grid-column:span 5}
 .home-collaborations .brand-agency-group:first-child .brand-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .home-collaborations .brand-agency-group .wall-entry{padding:10px;gap:5px}
}
@media(min-width:1200px){
 .collaborations:not(.home-collaborations) .brand-agency-groups{grid-template-columns:repeat(6,minmax(0,1fr));column-gap:8px}
 .collaborations:not(.home-collaborations) .brand-agency-group:has(li:nth-child(4)) .brand-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
 .collaborations .brand-agency-group:has(li:nth-child(2)):not(:has(li:nth-child(3))) .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.brand-roster-label{display:grid;gap:2px;min-width:0}
.brand-roster .mini-mark{margin-inline-start:auto}
@media(min-width:701px) and (max-width:1199px){
 .collaborations .brand-agency-groups{grid-template-columns:repeat(3,minmax(0,1fr))}
 .collaborations:not(.home-collaborations) .brand-agency-group:has(li:nth-child(4)) .brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 .collaborations .brand-agency-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .collaborations .brand-agency-group:has(li:nth-child(2)) .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .collaborations .brand-agency-group:nth-child(even):has(+ section:last-child li:nth-child(2)){grid-column:1/-1}
 .collaborations .brand-agency-group>h3{font-size:1rem}
 .collaborations .brand-agency-group .brand-grid li[data-project-surface]{min-height:64px}
 .brand-agency-group .wall-entry{padding:9px;gap:5px}
 .brand-agency-group .mini-mark{padding:4px}
 .brand-agency-group .wall-name{font-size:.875rem}
}
.reel.reel-live:has(.project-scene[data-project-surface=grafix]:not([inert])) .reel-stage>.reel-foot .reel-thumb[aria-current=true]{background:#a81e36;color:#fff}

.agency-items .agency-row[data-project-surface]{border-inline-start:5px solid var(--project-bg)!important}
.agency-items .agency-row[data-project-surface][open] summary{background:var(--project-bg);color:var(--project-ink);margin-bottom:14px}
.agency-items .agency-row[open] summary :is(.agency-name,.agency-kind,.agency-count),.agency-items .agency-row[open] summary::after{color:inherit}
.agency-items .agency-row li[data-project-surface]{background:var(--project-bg);color:var(--project-ink);border-color:transparent;border-radius:6px}
.agency-items .agency-row li[data-project-surface] a{color:inherit}
.agency-project-tile[data-project-surface] .agency-tile-caption{background:var(--project-bg);color:var(--project-ink)}
.agency-project-tile[data-project-surface] .agency-tile-caption :is(span,strong){color:inherit}
.interior .agency-brand-directory .brand-roster li[data-brand-entry]>:is(a,span){background:var(--surface);color:var(--ink);border-inline-start:3px solid var(--project-bg)}
.interior .agency-brand-directory .brand-roster li[data-brand-entry]>a:hover{border-color:var(--control-border);border-inline-start-color:var(--project-bg)}
.interior .agency-brand-directory li[data-brand-entry] small{color:var(--muted)}
.interior .agency-brand-section[id]{scroll-margin-top:calc(var(--header-height) + 16px)}

@media(max-width:999px){
 .home-collaborations .brand-agency-group{grid-column:1/-1}
 .home-collaborations .brand-agency-group .brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 .home-collaborations .brand-agency-group .brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .project-scene .scene-copy>.mini-mark{margin-bottom:7px}
}
@media(max-width:700px) and (max-height:620px){
 .reel-live .tone-emlak .reel-frame{gap:12px}
 .reel-live .tone-emlak .reel-post-grid{grid-template-columns:repeat(4,clamp(44px,calc(20svh - 48px),76px));padding-block:12px 13px}
}
.service-overview-heading,.archive-heading{display:flex;align-items:end;justify-content:space-between;gap:24px}
.service-overview-heading h2,.archive-heading h2{font-size:clamp(1.9rem,3.2vw,3rem);line-height:1.12;letter-spacing:-.045em;font-weight:570}
.service-overview-heading .label{margin:0 0 12px}
.service-overview-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,3vw,48px);margin-top:clamp(28px,4vw,52px)}
.service-overview-list article{border-top:1px solid var(--control-border);padding-top:20px;display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:14px}
.service-overview-list h3{font-size:clamp(1.15rem,2vw,1.55rem);font-weight:580;line-height:1.25;letter-spacing:-.03em}
.service-overview-list h3 a:hover,.directory-link:hover{text-decoration:underline;text-underline-offset:.2em}
.service-overview-list p{font-size:1rem;line-height:1.6;letter-spacing:normal;color:var(--ink);max-width:46ch}
.service-overview-list ul{display:flex;flex-wrap:wrap;align-content:start;gap:5px 12px;font-size:.875rem;line-height:1.55;color:var(--muted)}
.service-overview-list li{padding-inline-start:9px;border-inline-start:1px solid var(--control-border)}
.collab-archive{margin-top:clamp(40px,7vw,96px);scroll-margin-top:calc(var(--header-height) + 12px)}
.archive-heading{margin-bottom:24px}
.archive-heading p,.directory-kind,.directory-count{font-size:.875rem;line-height:1.5;color:var(--muted)}
.directory-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.directory-search{flex:1 1 220px}
.directory-search input{display:block;min-width:0;width:100%;background:var(--bg);border:1px solid var(--control-border);border-radius:8px;padding:10px 14px;min-height:44px;font:inherit;color:var(--ink)}
.directory-search input::placeholder{color:var(--muted)}
.directory-filters,.directory-pages{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.directory-filters button,.directory-pages button{font:inherit;font-size:.875rem;font-weight:540;line-height:1.25;border:1px solid var(--line);border-radius:8px;min-height:40px;padding:8px 14px;background:var(--bg);color:var(--ink);cursor:pointer}
.directory-filters button[aria-pressed=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.collab-archive .archive-status{margin:12px 0;font-size:.875rem;line-height:1.5;color:var(--muted)}
.directory-entries{border:1px solid var(--line);border-radius:14px;overflow:clip;background:var(--bg)}
.directory-entries:not(:has(details:not([hidden]))){display:none}
.directory-entry{border-bottom:1px solid var(--line)}
.directory-entry:last-of-type{border:0}
.directory-entry summary{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) minmax(105px,.28fr) 78px 26px;gap:16px;min-height:64px;padding:14px 20px;cursor:pointer;list-style:none}
.directory-entry summary::-webkit-details-marker{display:none}
.directory-entry summary::after{content:"";justify-self:center;width:8px;height:8px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.directory-entry[open] summary::after{transform:rotate(225deg)}
.directory-entry summary:hover,.directory-entry[open] summary{background:var(--surface)}
.directory-entry summary:focus-visible{outline-offset:-3px}
.directory-name{font-size:clamp(1rem,1.65vw,1.3rem);font-weight:570;line-height:1.3;letter-spacing:-.025em}
.directory-count{text-align:end;font-variant-numeric:tabular-nums}
.directory-content{padding:18px 20px 22px}
.directory-content ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));grid-auto-rows:1fr;gap:8px;margin-bottom:16px}
.directory-content li{display:grid;min-width:0}
.directory-content .brand-chip{align-self:stretch;min-height:44px;padding:6px 10px;width:100%;border:1px solid var(--line);border-radius:7px;font-size:.875rem;line-height:1.4}
.directory-content a{color:var(--ink);text-underline-offset:3px}
.directory-content .directory-link{font-size:.875rem;font-weight:570;text-decoration:underline}
.directory-pages{justify-content:end;margin-top:16px}
.directory-pages button:disabled{opacity:.45;cursor:default}
.directory-entry[hidden],.directory-pages[hidden]{display:none}
@media(max-width:700px){
 .service-overview-heading,.archive-heading{align-items:start;flex-direction:column;gap:14px}
 .service-overview-list{grid-template-columns:1fr;gap:22px}
 .service-overview-list article{grid-row:auto;grid-template-rows:auto;gap:10px;padding-top:16px}
 .directory-tools{padding:10px}
 .directory-search{flex-basis:100%}
 .directory-entry summary{grid-template-columns:minmax(0,1fr) auto 18px;gap:3px 8px;padding:12px}
 .directory-kind{grid-row:2;grid-column:1;font-size:.8125rem}
 .directory-count,.directory-entry summary::after{grid-row:1/3}
 .directory-count{grid-column:2}
 .directory-entry summary::after{grid-column:3}
 .directory-content{padding:12px}
}
