

/* ---------- HERO: the parent of [data-hero-text] is the hero grid ---------- */
html[data-l-hero] [data-sec=hero] [data-hero-media] img{max-height:none}
html[data-l-hero=split] [data-sec=hero] :has(> [data-hero-text]),
html[data-l-hero=split-left] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);align-items:center}
html[data-l-hero=split] [data-sec=hero] [data-hero-media],
html[data-l-hero=split-left] [data-sec=hero] [data-hero-media]{width:100%;justify-self:stretch}
html[data-l-hero=split] [data-sec=hero] [data-hero-media] img,
html[data-l-hero=split-left] [data-sec=hero] [data-hero-media] img{width:100%;aspect-ratio:4/5;border-radius:var(--r-card);object-fit:cover}
html[data-l-hero=split-left] [data-sec=hero] [data-hero-media]{order:-1}

html[data-l-hero=full] [data-sec=hero]{position:relative;isolation:isolate;padding-block:clamp(4rem,11vw,10rem);background:var(--ink)}
html[data-l-hero=full] [data-sec=hero] :has(> [data-hero-text]){display:block}
html[data-l-hero=full] [data-sec=hero] [data-hero-media]{position:absolute;inset:0;z-index:-1;width:auto;max-width:none;margin:0}
html[data-l-hero=full] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none;object-fit:cover}
html[data-l-hero=full] [data-sec=hero] [data-hero-media] > :not(img){display:none}
html[data-l-hero=full] [data-sec=hero] [data-hero-text]{max-width:min(560px,100%);padding:clamp(20px,3vw,40px);border-radius:var(--r-card);background:color-mix(in srgb,var(--bg) 92%,transparent);box-shadow:0 20px 50px -20px rgb(0 0 0/.35)}

html[data-l-hero=centered] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:clamp(24px,4vw,48px)}
html[data-l-hero=centered] [data-sec=hero] [data-hero-text]{max-width:780px;justify-items:center}
html[data-l-hero=centered] [data-sec=hero] [data-hero-text] > *{margin-inline:auto}
html[data-l-hero=centered] [data-sec=hero] [data-hero-text] :is(.heroacts,[class*=act]){justify-content:center}
html[data-l-hero=centered] [data-sec=hero] [data-hero-media]{width:100%;max-width:1120px}
html[data-l-hero=centered] [data-sec=hero] [data-hero-media] img{width:100%;aspect-ratio:21/9;border-radius:var(--r-card);object-fit:cover}

html[data-l-hero=compact] [data-sec=hero]{padding-block:clamp(2rem,4vw,3.5rem)}
html[data-l-hero=compact] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,1fr) clamp(160px,22vw,260px);gap:clamp(20px,4vw,56px);align-items:center}
html[data-l-hero=compact] [data-sec=hero] [data-hero-media]{width:100%}
html[data-l-hero=compact] [data-sec=hero] [data-hero-media] img{width:100%;aspect-ratio:1;border-radius:50%;object-fit:cover}
html[data-l-hero=compact] [data-sec=hero] [data-hero-media] > :not(img){display:none}

@media (max-width:760px){
  html[data-l-hero] [data-sec=hero] :has(> [data-hero-text]){grid-template-columns:minmax(0,1fr)}
  html[data-l-hero=split-left] [data-sec=hero] [data-hero-media]{order:0}
  html[data-l-hero=compact] [data-sec=hero] [data-hero-media]{width:40%;justify-self:start}
  html[data-l-hero=centered] [data-sec=hero] [data-hero-media] img{aspect-ratio:4/3}
}

/* ---------- LIST: the page's main collection ---------- */
html[data-l-list=cards3] [data-list]{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:clamp(20px,3vw,40px)}
html[data-l-list=big2] [data-list]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,3vw,40px)}
html[data-l-list=big2] [data-item-media]{aspect-ratio:4/3}
html[data-l-list=rows] [data-list]{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
html[data-l-list=rows] [data-item]{display:grid;grid-template-columns:clamp(110px,18vw,200px) minmax(0,1fr);column-gap:clamp(16px,3vw,32px);row-gap:6px;align-content:start;padding-block:clamp(16px,2vw,24px);border-bottom:1px solid var(--line)}
html[data-l-list=rows] [data-item] > [data-item-media]{grid-row:1 / span 8;aspect-ratio:1;align-self:start}
html[data-l-list=rows] [data-item] > :not([data-item-media]){grid-column:2}
html[data-l-list=bento] [data-list]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
html[data-l-list=bento] [data-item]:first-child{grid-column:span 2;grid-row:span 2}
html[data-l-list=bento] [data-item]:first-child [data-item-media]{aspect-ratio:1}
html[data-l-list=masonry] [data-list]{display:block;columns:3 260px;column-gap:clamp(16px,2.5vw,32px)}
html[data-l-list=masonry] [data-item]{break-inside:avoid;margin-bottom:clamp(20px,3vw,36px)}
html[data-l-list=masonry] [data-item]:nth-child(3n+1) [data-item-media]{aspect-ratio:3/4}
html[data-l-list=masonry] [data-item]:nth-child(3n+2) [data-item-media]{aspect-ratio:1}
html[data-l-list=masonry] [data-item]:nth-child(3n) [data-item-media]{aspect-ratio:4/5}
@media (max-width:900px){html[data-l-list=bento] [data-list]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){
  html[data-l-list=cards3] [data-list],html[data-l-list=big2] [data-list],html[data-l-list=bento] [data-list]{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s-5) var(--s-3)}
  html[data-l-list=bento] [data-item]:first-child{grid-row:auto}
  html[data-l-list=masonry] [data-list]{columns:2}
}

/* ---------- NAV ---------- */
html[data-l-nav] [data-sec=nav]:not(:has(>h1)){height:auto}
html[data-l-nav=centered] [data-sec=nav]:not(:has(>h1)) > *{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;row-gap:10px;column-gap:16px;padding-block:14px;min-height:0}
html[data-l-nav=centered] [data-sec=nav]:not(:has(>h1)) > * > :first-child{grid-column:2;grid-row:1;font-size:1.15em;justify-self:center}
html[data-l-nav=centered] [data-sec=nav]:not(:has(>h1)) > * > :last-child:not(:first-child){grid-column:3;grid-row:1;justify-self:end}
html[data-l-nav=centered] [data-sec=nav]:not(:has(>h1)) > * > :not(:first-child):not(:last-child){grid-column:1 / -1;grid-row:2;justify-self:center}
html[data-l-nav=pill] [data-sec=nav]:not(:has(>h1)){position:sticky;top:10px;z-index:30;background:transparent;border:0;box-shadow:none;padding-inline:12px}
html[data-l-nav=pill] [data-sec=nav]:not(:has(>h1)) > *{max-width:min(1120px,100%);margin-inline:auto;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:8px 10px 8px 22px;box-shadow:0 12px 30px -18px rgb(0 0 0/.35)}
@media (max-width:760px){html[data-l-nav=pill] [data-sec=nav]:not(:has(>h1)) > *{border-radius:22px}}

/* ---------- RHYTHM: how sections follow each other ---------- */
html[data-l-rhythm=banded] [data-main] > section:not([data-sec=hero]):nth-of-type(even){background:var(--sunk-0,var(--sunk))}
html[data-l-rhythm=banded] [data-main] > section:not([data-sec=hero]):nth-of-type(odd){background:var(--bg)}
html[data-l-rhythm=divided] [data-main] > section:not([data-sec=hero]){background:var(--bg);border-block:0}
html[data-l-rhythm=divided] [data-main] > section + section{border-top:1px solid var(--line)}
html[data-l-rhythm=airy] [data-main] > section:not([data-sec=hero]):has(:is(h2,h3)){padding-block:clamp(4.5rem,9vw,8.5rem)}
html[data-l-rhythm=cards] [data-main] > section:not([data-sec=hero]){margin:clamp(10px,2vw,24px) clamp(10px,2vw,24px) 0;border:1px solid var(--line);border-radius:clamp(18px,2.5vw,32px);background:var(--surface)}

/* ---------- ORDER: CSS order on main's sections (never a DOM move) ---------- */
html[data-l-order] [data-main]{display:flex;flex-direction:column}
html[data-l-order] [data-main] > [data-sec=hero]{order:0}
html[data-l-order=o2] [data-main] > [data-sec=list]{order:1}  html[data-l-order=o2] [data-main] > [data-sec=story]{order:2}  html[data-l-order=o2] [data-main] > [data-sec=feature]{order:3}  html[data-l-order=o2] [data-main] > [data-sec=stats]{order:4}  html[data-l-order=o2] [data-main] > [data-sec=proof]{order:5}  html[data-l-order=o2] [data-main] > [data-sec=cta]{order:6}
html[data-l-order=o3] [data-main] > [data-sec=feature]{order:1} html[data-l-order=o3] [data-main] > [data-sec=list]{order:2}  html[data-l-order=o3] [data-main] > [data-sec=stats]{order:3}  html[data-l-order=o3] [data-main] > [data-sec=story]{order:4}  html[data-l-order=o3] [data-main] > [data-sec=proof]{order:5}  html[data-l-order=o3] [data-main] > [data-sec=cta]{order:6}
html[data-l-order=o4] [data-main] > [data-sec=stats]{order:1}   html[data-l-order=o4] [data-main] > [data-sec=list]{order:2}  html[data-l-order=o4] [data-main] > [data-sec=feature]{order:3} html[data-l-order=o4] [data-main] > [data-sec=story]{order:4}  html[data-l-order=o4] [data-main] > [data-sec=proof]{order:5}  html[data-l-order=o4] [data-main] > [data-sec=cta]{order:6}
html[data-l-order] [data-main] > [data-sec=other]{order:7}

/* buttons: pill (kit default) | rounded | square */
html[data-l-btn=rounded] .btn{border-radius:10px}
html[data-l-btn=square] .btn{border-radius:2px;text-transform:uppercase;letter-spacing:.09em;font-size:max(14px,.78rem);font-weight:600}
/* heading accent (the <em> in h1/h2): italic (default) | underline | colour | plain */
html[data-l-head=underline] :is(h1,h2) em{font-style:normal;text-decoration:underline;text-decoration-thickness:.07em;text-underline-offset:.14em;text-decoration-color:var(--accent);color:inherit}
html[data-l-head=colour] :is(h1,h2) em{font-style:normal;color:var(--accent)}
html[data-l-head=plain] :is(h1,h2) em{font-style:normal;color:inherit}
html[data-l-head=caps] :is(h1,h2){text-transform:uppercase;letter-spacing:.015em;line-height:1.02}
html[data-l-head=caps] h1{font-size:clamp(2rem,1.2rem + 3vw,3.6rem)}
html[data-l-head=caps] :is(h1,h2) em{font-style:normal;color:var(--accent)}
/* the announce bar [data-announce]: top (default) | none | accent */
html[data-l-bar=none] [data-announce]{display:none}
html[data-l-bar=accent] [data-announce]{background:var(--accent);color:var(--on-accent)}
/* section heads [data-sec-head]: centered (default) | left | number */
html[data-l-sechead=left] [data-sec-head]{justify-items:start;text-align:left;padding-bottom:var(--s-4);border-bottom:1px solid var(--line)}
html[data-l-sechead=number] [data-main]{counter-reset:tsec}
html[data-l-sechead=number] [data-sec-head]{justify-items:start;text-align:left}
html[data-l-sechead=number] [data-sec-head]::before{counter-increment:tsec;content:counter(tsec,decimal-leading-zero);font:600 max(14px,.85rem)/1 var(--sans);letter-spacing:.12em;color:var(--accent);padding-bottom:6px;border-bottom:2px solid var(--accent);margin-bottom:4px}
/* list item cards [data-item]: kit default | hairline | shadow | flat */
html[data-l-card=hairline] [data-item]{border:1px solid var(--line);border-radius:var(--r-card);padding:12px}
html[data-l-card=shadow] [data-item]{background:var(--surface);border-radius:var(--r-card);padding:12px;box-shadow:0 14px 34px -22px rgb(0 0 0/.4)}
html[data-l-card=flat] [data-item]{background:var(--sunk-0,var(--sunk));border-radius:6px;padding:12px}
/* nav: + split (links left, brand centre, actions right) | minimal (brand + actions only) */
html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > *{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;min-height:0;padding-block:12px}
html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > * > :first-child{grid-column:2;grid-row:1;justify-self:center}
html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > * > :not(:first-child):not(:last-child){grid-column:1;grid-row:1;justify-self:start}
html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > * > :last-child:not(:first-child){grid-column:3;grid-row:1;justify-self:end}
html[data-l-nav=minimal] [data-sec=nav]:not(:has(>h1)) > * > :not(:first-child):not(:last-child){display:none}
html[data-l-nav=minimal] [data-sec=nav]:not(:has(>h1)){border-bottom-color:transparent}

html[data-l-fs] [data-main]{display:flex;flex-direction:column}
html[data-l-fs] [data-main] > section{order:5}
html[data-l-fs] [data-main] > [data-sec=hero]{order:0}

/* 2 overlay: one full-bleed photo, the text in a panel on it */
html[data-l-fs=overlay] [data-sec=hero]{position:relative;isolation:isolate;min-height:min(86vh,820px);display:grid;align-items:end;padding-block:clamp(3rem,8vw,6rem);background:var(--ink)}
html[data-l-fs=overlay] [data-sec=hero] :has(> [data-hero-text]){display:block}
html[data-l-fs=overlay] [data-sec=hero] [data-hero-media]{position:absolute;inset:0;z-index:-1;width:auto;max-width:none;margin:0}
html[data-l-fs=overlay] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none;object-fit:cover;max-height:none}
html[data-l-fs=overlay] [data-sec=hero] [data-hero-media] > :not(img){display:none}
html[data-l-fs=overlay] [data-sec=hero] [data-hero-text]{max-width:min(600px,100%);padding:clamp(20px,3vw,40px);border-radius:var(--r-card);background:color-mix(in srgb,var(--bg) 93%,transparent)}
/* FULLBLEED (kits3 11-08, row 1164 / D131 "local businesses always get a full-bleed hero"; drawn only for local kits, theme.css --kit-local:1): the hero photo spans the whole viewport edge to edge
   (>= 70% of the screen, 60% on a phone), a dark scrim, the headline + lede + buttons light on top at the left; no photo = the same layout on the ink ground (never an empty frame) */
html[data-l-fs=fullbleed] [data-sec=hero]{position:relative;isolation:isolate;min-height:max(70svh,520px);display:grid;align-items:center;padding-block:clamp(3rem,9vh,7rem);background:var(--ink);color:#fff;--pi:#fff}
html[data-l-fs=fullbleed] [data-sec=hero] :has(> [data-hero-text]){display:block;width:100%;justify-self:stretch} /* kits3 11-09: with data-l-fbx=center the hero grid centred this wrapper, it shrank to its content and the text (max-width %) collapsed to 0 px (plumber / salon / bakery) */
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media]{position:absolute;inset:0 auto 0 calc(50% - 50vw);width:100vw;max-width:none;height:100%;max-height:none;min-height:0;z-index:-1;margin:0;border-radius:0;overflow:hidden} /* kits3 11-09: max-height:none, a writer cap (780px) left a dark band under the photo when the hours card made the hero taller */
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media] > :not(figure):not(.film){display:none}
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media] > .film{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;margin:0;border-radius:0} /* kits3 11-09 (integrator, salon fr6): a crossfade film (the build's own .film of stills) IS the hero photo: it fills the full-bleed layer, its own CSS keeps the fades */
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media] figure{position:absolute;inset:0;margin:0;border-radius:0;max-width:none;width:100%;height:100%}
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media] img{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;border-radius:0;box-shadow:none;-webkit-mask:none;mask:none}
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media]::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,rgb(0 0 0/.74),rgb(0 0 0/.44) 55%,rgb(0 0 0/.2)),linear-gradient(0deg,rgb(0 0 0/.45),transparent 50%)}
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media] :is(figcaption,.hero-credit){position:absolute;right:12px;bottom:10px;z-index:3;color:rgb(255 255 255/.8);font-size:max(14px,12px)}
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-text]{position:relative;z-index:1;max-width:min(680px,100%)}
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-text] > :is(h1,h2,p,.kicker,.lead),html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-text] > :is(h1,h2,p) *{color:#fff}
html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-text] :is(.actions,[id$=actions]) > :is(a,button):not(:first-child),html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-text] :is(.btn-secondary,.btn-ghost,.btn-outline){color:#fff!important;border-color:rgb(255 255 255/.75)!important;background:rgb(0 0 0/.22)!important}
html[data-l-fs=fullbleed][data-l-fbx=center] [data-sec=hero]{justify-items:center;text-align:center}html[data-l-fs=fullbleed][data-l-fbx=center] [data-sec=hero] [data-hero-text]{margin-inline:auto;justify-items:center}
html[data-l-fs=fullbleed][data-l-fbx=center] [data-sec=hero] [data-hero-media]::after{background:radial-gradient(ellipse at center,rgb(0 0 0/.66),rgb(0 0 0/.38) 70%)}
html[data-l-fs=fullbleed][data-l-fbx=bottom] [data-sec=hero]{align-items:end}html[data-l-fs=fullbleed][data-l-fbx=bottom] [data-sec=hero] [data-hero-media]::after{background:linear-gradient(0deg,rgb(0 0 0/.8),rgb(0 0 0/.35) 55%,rgb(0 0 0/.12))}
@media (max-width:700px){html[data-l-fs=fullbleed] [data-sec=hero]{min-height:max(60svh,460px)}html[data-l-fs=fullbleed] [data-sec=hero] [data-hero-media]::after{background:linear-gradient(0deg,rgb(0 0 0/.82),rgb(0 0 0/.42) 70%,rgb(0 0 0/.3))}}

/* 3 catalogue: no hero picture; a one-line title band, then the shop with a filter rail on the left */
html[data-l-fs=catalogue] [data-sec=hero]{padding-block:clamp(1.5rem,3vw,2.5rem);background:var(--sunk-0,var(--sunk));border-bottom:1px solid var(--line)}
html[data-l-fs=catalogue] [data-sec=hero] [data-hero-media]:not(:has(img)){display:none}
html[data-l-fs=catalogue] [data-sec=hero] :has(> [data-hero-text]){display:block}
html[data-l-fs=catalogue] [data-sec=hero] [data-hero-text]{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 32px}
html[data-l-fs=catalogue] [data-sec=hero] [data-hero-text] h1{font-size:clamp(1.8rem,1.2rem + 1.8vw,2.6rem);margin:0}
html[data-l-fs=catalogue] [data-sec=hero] [data-hero-text] > :not(h1):not(:has(.btn)){grid-column:1}
html[data-l-fs=catalogue] [data-sec=hero] [data-hero-text] > :has(.btn){grid-column:2;grid-row:1 / span 3;align-self:center}
html[data-l-fs=catalogue] [data-main] > [data-sec=list]{order:1;padding-top:clamp(1.5rem,3vw,2.5rem)}
html[data-l-fs=catalogue] [data-sec=list] [data-sec-head]{justify-items:start;text-align:left;margin-bottom:var(--s-5)}
@media (min-width:960px){
  html[data-l-fs=catalogue] [data-sec=list] :has(> [data-filters]){display:grid;grid-template-columns:230px minmax(0,1fr);column-gap:clamp(24px,3vw,48px);align-items:start}
  html[data-l-fs=catalogue] [data-sec=list] :has(> [data-filters]) > *{grid-column:2}
  html[data-l-fs=catalogue] [data-sec=list] :has(> [data-filters]) > [data-sec-head]{grid-column:1 / -1}
  html[data-l-fs=catalogue] [data-sec=list] :has(> [data-filters]) > [data-filters]{grid-column:1;grid-row:2 / span 6;position:sticky;top:16px;display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:var(--r-card);background:var(--surface)}
  html[data-l-fs=catalogue] [data-filters] > *{display:grid;justify-content:start;flex-wrap:wrap;gap:8px}
  html[data-l-fs=catalogue] [data-list]{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}
}

/* 4 type: no picture on the first screen; one very large headline, left, on a plain band */
html[data-l-fs=type] [data-sec=hero]{padding-block:clamp(4rem,10vw,8rem) clamp(2.5rem,6vw,4.5rem);background:var(--bg)}
html[data-l-fs=type] [data-sec=hero] [data-hero-media]:not(:has(img)){display:none}
html[data-l-fs=type] [data-sec=hero] :has(> [data-hero-text]){display:block}
html[data-l-fs=type] [data-sec=hero] [data-hero-text]{max-width:none}
html[data-l-fs=type] [data-sec=hero] h1{font-size:clamp(3rem,1.6rem + 6.2vw,7.2rem);line-height:.95;letter-spacing:-.025em;max-width:14ch}
html[data-l-fs=type] [data-sec=hero] [data-hero-text] > p{max-width:52ch;font-size:clamp(1.05rem,.95rem + .4vw,1.3rem)}
html[data-l-fs=type] [data-sec=hero]::after{content:"";display:block;width:min(1120px,calc(100% - 2*var(--gutter,24px)));margin:clamp(2rem,4vw,3rem) auto 0;border-top:1px solid var(--ink)}

/* 5 mosaic: four photos in a collage beside the text (variety.js fills [data-hero-media] with three more) */
html[data-l-fs=mosaic] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,4vw,56px);align-items:center}
html[data-l-fs=mosaic] [data-sec=hero] [data-hero-media]{width:100%;display:grid;grid-template-columns:1.2fr 1fr;grid-template-rows:1fr 1fr;gap:10px;height:clamp(360px,44vw,580px)}
html[data-l-fs=mosaic] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;aspect-ratio:auto;border-radius:var(--r-card);object-fit:cover;box-shadow:none;max-height:none}
html[data-l-fs=mosaic] [data-sec=hero] [data-hero-media] > img:first-of-type{grid-row:1 / span 2}
html[data-l-fs=mosaic] [data-sec=hero] [data-hero-media] > :not(img){display:none}

/* 6 tiles: the collections / occasions grid IS the first screen, under a short centred line */
html[data-l-fs=tiles] [data-sec=hero]{padding-block:clamp(2rem,4vw,3rem) .5rem;text-align:center}
html[data-l-fs=tiles] [data-sec=hero] [data-hero-media]:not(:has(img)){display:none}
html[data-l-fs=tiles] [data-sec=hero] :has(> [data-hero-text]){display:block}
html[data-l-fs=tiles] [data-sec=hero] [data-hero-text]{max-width:760px;margin-inline:auto;justify-items:center}
html[data-l-fs=tiles] [data-sec=hero] [data-hero-text] > *{margin-inline:auto}
html[data-l-fs=tiles] [data-sec=hero] :is(.heroacts,[class*=act]){justify-content:center}
html[data-l-fs=tiles] [data-main] > [data-sec=feature]{order:1;padding-top:clamp(1rem,2vw,2rem)}
html[data-l-fs=tiles] [data-sec=feature] [data-sec-head]{display:none}

/* 7 block: a solid colour panel for the text, edge-to-edge photo, 50/50, full height */
html[data-l-fs=block] [data-sec=hero]{padding:0;background:var(--bg)}
html[data-l-fs=block] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:1fr 1fr;gap:0;max-width:none;padding:0;min-height:min(84vh,780px)}
html[data-l-fs=block] [data-sec=hero] [data-hero-text]{background:var(--accent);color:var(--on-accent);padding:clamp(28px,6vw,88px);align-content:center}
html[data-l-fs=block] [data-sec=hero] [data-hero-text] :is(h1,h1 em,p):not(:is(aside,.card,[data-surface]) *){color:var(--on-accent)}
html[data-l-fs=block] [data-sec=hero] [data-hero-text] .btn-primary{background:var(--on-accent);color:var(--accent)}
html[data-l-fs=block] [data-sec=hero] [data-hero-text] .btn-secondary{border-color:var(--on-accent);color:var(--on-accent)}
html[data-l-fs=block] [data-sec=hero] [data-hero-media]{width:100%;height:100%;margin:0}
html[data-l-fs=block] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none;object-fit:cover;max-height:none}
html[data-l-fs=block] [data-sec=hero] [data-hero-media] > :not(img){display:none}

/* 8 sidebar: the nav becomes a left column for the whole page */
@media (min-width:960px){
  html[data-l-fs=sidebar] body{display:grid;grid-template-columns:250px minmax(0,1fr)}
  html[data-l-fs=sidebar] body > *{grid-column:2}
  html[data-l-fs=sidebar] [data-sec=nav]{grid-column:1;grid-row:1 / span 50;position:sticky;top:0;height:100vh;border-bottom:0;border-right:1px solid var(--line);background:var(--surface)}
  html[data-l-fs=sidebar] [data-sec=nav] > *{display:grid;align-content:start;justify-items:start;gap:28px;padding:32px 28px;height:100%;max-width:none}
  html[data-l-fs=sidebar] [data-sec=nav] > * > :not(:first-child):not(:last-child){display:grid;gap:14px}
  html[data-l-fs=sidebar] [data-sec=hero] :has(> [data-hero-text]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  html[data-l-fs=sidebar] [data-sec=hero] [data-hero-media] img{border-radius:var(--r-card);aspect-ratio:4/5}
  html[data-l-fs=sidebar] body::before{content:"";grid-column:1;grid-row:1 / span 50;background:var(--surface);border-right:1px solid var(--line);z-index:0} /* F0156: the column's own panel, full page height (the sticky nav alone stopped partway down) */
  html[data-l-fs=sidebar] [data-sec=nav]{z-index:1}
}

/* 9 story: the brand story (two photos + text) is the first screen; the hero text sits above it as a slim line */
html[data-l-fs=story] [data-sec=hero]{padding-block:clamp(1.5rem,3vw,2.5rem) 0}
html[data-l-fs=story] [data-sec=hero] [data-hero-media]:not(:has(img)){display:none}
html[data-l-fs=story] [data-sec=hero] :has(> [data-hero-text]){display:block}
html[data-l-fs=story] [data-sec=hero] [data-hero-text] h1{font-size:clamp(1.6rem,1.1rem + 1.6vw,2.4rem)}
html[data-l-fs=story] [data-sec=hero] [data-hero-text] > p:not(:first-child){display:none}
html[data-l-fs=story] [data-main] > [data-sec=story]{order:1;padding-top:clamp(1.5rem,3vw,2.5rem)}

/* 10 minimal: a big centred wordmark, one wide photo, the headline small at its foot */
html[data-l-fs=minimal] [data-sec=nav] > *{display:grid;justify-items:center;gap:10px;padding-block:28px 14px;min-height:0}
html[data-l-fs=minimal] [data-sec=nav]{height:auto;border-bottom:0}
html[data-l-fs=minimal] [data-sec=nav] > * > :first-child{font-size:clamp(2rem,1.4rem + 2.4vw,3.4rem)}
html[data-l-fs=minimal] [data-sec=hero]{padding-block:0 clamp(2rem,4vw,3rem)}
html[data-l-fs=minimal] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:1fr;gap:20px}
html[data-l-fs=minimal] [data-sec=hero] [data-hero-media]{order:-1;width:100%;margin:0}
html[data-l-fs=minimal] [data-sec=hero] [data-hero-media] img{width:100%;aspect-ratio:21/9;border-radius:0;box-shadow:none;object-fit:cover;max-height:none}
html[data-l-fs=minimal] [data-sec=hero] [data-hero-media] > :not(img){display:none}
html[data-l-fs=minimal] [data-sec=hero] [data-hero-text]{display:grid;justify-items:center;text-align:center;gap:12px;max-width:720px;margin-inline:auto}
html[data-l-fs=minimal] [data-sec=hero] [data-hero-text] :is(.heroacts,[class*=act]){justify-content:center}
html[data-l-fs=minimal] [data-sec=nav] > * > :last-child:not(:first-child){position:absolute;right:var(--gutter,24px);top:22px}
html[data-l-fs=minimal] [data-sec=nav] > *{position:relative}
html[data-l-fs=minimal] [data-sec=hero] [data-hero-text] h1{font-size:clamp(1.6rem,1.2rem + 1.4vw,2.4rem)}

@media (max-width:760px){
  html[data-l-fs] [data-sec=hero] :has(> [data-hero-text]){grid-template-columns:minmax(0,1fr)}
  html[data-l-fs=mosaic] [data-sec=hero] [data-hero-media]{height:clamp(260px,80vw,420px)}
  html[data-l-fs=block] [data-sec=hero] [data-hero-media]{min-height:300px}
  html[data-l-fs=catalogue] [data-sec=hero] [data-hero-text]{grid-template-columns:minmax(0,1fr)}
  html[data-l-fs=catalogue] [data-sec=hero] [data-hero-text] > :has(.btn){grid-column:1;grid-row:auto}
}

html[data-l-type=sans] :is(h1,h2,h3){font-family:var(--sans);font-weight:700;letter-spacing:-.035em}
html[data-l-type=sans] :is(h1,h2) em{font-style:normal}
html[data-l-type=mono] :is(h1,h2,h3){font-family:var(--mono);font-weight:600;letter-spacing:-.02em}
html[data-l-type=mono] h1{font-size:clamp(2rem,1.3rem + 2.6vw,3.6rem)}
html[data-l-type=mono] :is(.eyebrow,[data-sec-head] > p:first-child){font-family:var(--mono);letter-spacing:.06em}
html[data-l-type=mono] :is(h1,h2) em{font-style:normal;text-decoration:underline;text-decoration-thickness:.06em;text-underline-offset:.12em}
html[data-l-fs=minimal] [data-sec=nav] > * > :first-child,html[data-l-fs=minimal] [data-sec=nav] > * > :not(:first-child):not(:last-child){justify-self:center;justify-content:center;text-align:center}
html[data-theme=dark][data-l-fs] [data-sec=hero]{background:var(--bg)}

/* F0184 phone: the split nav has no room for three columns at 390 px (brand under the buttons): stack brand, then the rest */
@media (max-width:520px){html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > *{grid-template-columns:minmax(0,1fr);row-gap:8px}html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > * > *{grid-column:1;justify-self:center}html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > * > :first-child{grid-row:1}html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > * > :not(:first-child):not(:last-child){grid-row:2}html[data-l-nav=split] [data-sec=nav]:not(:has(>h1)) > * > :last-child:not(:first-child){grid-column:1;grid-row:3}} /* kits3 11-10: the last item kept grid-column:3 (line 120, higher specificity) so a phone's single column grew two implicit tracks and squeezed the brand to 44 px */

/* sidebar rail (>=960px, where the 250px rail applies): the nav stacks in ONE column whatever data-l-nav says (centered/split put logo + cart side by side and the cart covered a 2-line brand) */
@media (min-width:960px){html[data-l-fs=sidebar] [data-sec=nav] > .navin:not(#_){grid-template-columns:minmax(0,1fr)}
html[data-l-fs=sidebar] [data-sec=nav] > .navin > :is(.logo,.links,.cartbtn):not(#_){grid-column:1;grid-row:auto;justify-self:start;position:static}}
/* no sideways scroll when a layout offsets a section whose photo bleeds to the viewport edge (G4 witness LS6 tutor, a5 10-20) */
html[data-l-fs]{overflow-x:clip}

/* LOCAL CONTENT GUARD (kits3 11-09, Lucy P0: on real local builds the builder's own section markup was unstyled: full-width service icons, full-width team / listing photos, one column, 16-20k px pages).
   Local pages only (the full-bleed screen / html[data-kit-local]). Zero-specificity :where() for layout, so the kit's own rules and the page's own styled rules always win; only unstyled content is caught. */
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(svg:not([width]):not([height])):not(:where(figure svg, [class*=map] svg, [class*=chart] svg, [class*=logo] svg, [data-chart] svg)){width:auto;max-width:56px;max-height:56px}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> :is(figure, picture, img) + :is(figure, picture, img)):not(:has(> :not(figure, picture, img))){display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 320px), 1fr));gap:clamp(12px, 2vw, 24px)} /* photo pairs / rows side by side, not stacked full width (real estate walk-photos) */
html[data-l-fs=fullbleed] [data-main] > section:not([data-sec=hero]){padding-block:clamp(48px, 6vw, 80px)} /* writer .sec went to 112px x 11 sections */
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(img){max-width:100%;height:auto;max-height:min(440px, 60vh);object-fit:cover}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(ul, ol, div):has(> :nth-child(3)):has(> * > :is(img, svg, picture, figure, h3, h4)):not(:has(> :is(input, select, textarea, label, form, details, summary))){display:grid;grid-template-columns:repeat(auto-fill, minmax(min(100%, 260px), 1fr));gap:clamp(16px, 2vw, 28px);list-style:none;padding-inline-start:0}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(ul, ol, div):has(> :nth-child(3)):has(> * > :is(img, svg, picture, figure, h3, h4)) > * :where(img:not([width='16'], [width='20'], [width='24'], [width='32'])){display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover;max-height:340px}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(ul, ol, div):has(> :nth-child(3)):has(> * > :is(img, svg, picture, figure, h3, h4)) > * :where(figure, picture){margin:0;width:100%;max-width:100%} /* browser figure margin 40px squeezed card photos to half width (real estate listings) */
/* LOCAL CONTENT GUARD 2 (kits3 11-10, Design Master: the builder wrote markup for new blocks (audience chips, team track, photo strip, a one-word "door") and no app.css rules for it, so they drew as bare links and
   stray labels). Same contract as the guard above: local pages, zero-specificity :where(), the page's own rules always win; only unstyled structures are caught. */
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> a:nth-child(2)):has(> a > :is(figure, img)):not(:has(> :not(a))){display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr));gap:20px}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> a:nth-child(2)) > a:has(> :is(figure, img)){display:block;color:inherit;text-decoration:none}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> a:nth-child(2)) > a:has(> :is(figure, img)) :where(figure){margin:0 0 10px}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where([class*=track]):has(> :is(a, article):nth-child(2)){display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;padding-block:4px 10px}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where([class*=track]) > :is(a, article){display:flex;flex-direction:column;gap:6px;min-width:200px;padding:20px;border:1px solid color-mix(in srgb, currentColor 18%, transparent);border-radius:12px;color:inherit;text-decoration:none;scroll-snap-align:start}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where([class*=nav]):has(> button:nth-child(2)):not(:has(> :not(button))){display:flex;gap:8px;justify-content:flex-end;margin-bottom:10px}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> figure:nth-child(2)):has(> button):not(:has(> :not(figure, button))){display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 240px), 1fr));gap:16px}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> figure:nth-child(2)):has(> button) > :where(button){display:none}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> figure:nth-child(2)):has(> button) > figure :where(img){width:100%;height:240px;object-fit:cover}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])):is([data-sec=door]):not(:has(h1, h2, h3, h4, p, img, figure, form, ul, ol, button)){display:none}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(section[data-sec=door]):not(:has(h1, h2, h3, h4, p, img, figure, form, ul, ol, button)){display:none}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(ul, ol):has(> li:nth-child(8)):not(:has(> li > :is(img, figure, h3, h4, p, div))){columns:3 180px;column-gap:24px} /* a long list of short items (service areas, zones) runs in columns, not 12 rows */
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(ul, ol):has(> li:nth-child(3)):has(> li :is(img, figure)):not(:has(> li > :is(input, select, textarea, label, form, details))){list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 260px), 1fr));gap:20px} /* a list of photo cards (listings, rooms) is a grid, not one column with bullets */
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(ul, ol):has(> li:nth-child(3)):has(> li :is(img, figure)) > li{list-style:none;min-width:0}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(li) > :where(button, a):has(figure, img){display:block;width:100%;text-align:left;background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:none;cursor:pointer}
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> div:nth-child(2) > p:nth-child(2)):not(:has(> div > :is(img, figure, h3, h4, ul, ol, a, button, form, input))) > :where(div){display:grid;grid-template-columns:minmax(4.5rem, max-content) minmax(0, 1fr);gap:2px 16px;align-items:baseline;padding-block:12px;border-top:1px solid var(--line, color-mix(in srgb, currentColor 16%, transparent))} /* kits3 11-10 (Design Master, bakery 'What's fresh right now'): rows of 2-3 short paragraphs with no CSS (time / name / note) become a ruled two-column list */
:where(html[data-l-fs=fullbleed], html[data-kit-local]) :where([data-main] > section:not([data-sec=hero])) :where(div):has(> div:nth-child(2) > p:nth-child(2)):not(:has(> div > :is(img, figure, h3, h4, ul, ol, a, button, form, input))) > :where(div) > :where(p:nth-child(n+3)){grid-column:2}

/* shared: a type-led, picture-less hero band (strip / index) */
html:is([data-l-fs=strip],[data-l-fs=index]) [data-sec=hero]{padding-block:clamp(2rem,5vw,4rem) clamp(.75rem,2vw,1.5rem)}
html:is([data-l-fs=strip],[data-l-fs=index]) [data-sec=hero] :has(> [data-hero-text]){display:block}
html:is([data-l-fs=strip],[data-l-fs=index]) [data-sec=hero] [data-hero-media]:not(:has(img)){display:none}
html:is([data-l-fs=strip],[data-l-fs=index]) [data-sec=hero] h1{font-size:clamp(2.6rem,1.4rem + 6vw,6.5rem);line-height:.95;letter-spacing:-.03em;max-width:13ch}
html:is([data-l-fs=strip],[data-l-fs=index]) [data-main] > [data-sec=list]{order:1}

/* 1 split-fixed: the name, role and links stay fixed in a left column while the work scrolls on the right (wide screens) */
@media (min-width:900px){
  html[data-l-fs=split-fixed] [data-main]{display:grid;grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);column-gap:clamp(24px,4vw,64px);align-items:start;padding-inline:var(--gutter,24px)}
  html[data-l-fs=split-fixed] [data-main] > [data-sec=hero]{grid-column:1;grid-row:1 / span 12;position:sticky;top:72px;max-width:none;margin:0;padding-inline:0;min-height:calc(100vh - 72px);display:grid;align-content:space-between}
  html[data-l-fs=split-fixed] [data-main] > [data-sec=hero] > *{width:100%;max-width:none;margin-inline:0;padding-inline:0;justify-self:stretch} /* kits3 11-11 (design1 D607 witness): a hero wrapper with margin-inline:auto (the freelancer variant's .wrap.hero-in) shrank to ~150 px in the fixed left column, one word per line */
  html[data-l-fs=split-fixed] [data-main] > :not([data-sec=hero]){grid-column:2;max-width:none;margin-inline:0;padding-inline:0}
  html[data-l-fs=split-fixed] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(16px,2.4vw,32px)}
  html[data-l-fs=split-fixed] [data-sec=hero] h1{font-size:clamp(2.2rem,1.3rem + 2.6vw,4rem);line-height:1;letter-spacing:-.025em}
  html[data-l-fs=split-fixed] [data-sec=hero] [data-hero-media]{min-height:0;aspect-ratio:16/10;max-height:30vh;width:100%}
  html[data-l-fs=split-fixed] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;max-height:none}
}

/* 2 strip: a short title band, then the projects as ONE horizontal row of big cards the visitor swipes or scrolls sideways (native scroll + snap) */
html[data-l-fs=strip] [data-main] > [data-sec=list]{max-width:none;padding-inline:0}
html[data-l-fs=strip] [data-sec=list] [data-sec-head]{padding-inline:var(--gutter,24px)}
html[data-l-fs=strip] [data-sec=list] [data-list]:not(#_){display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(78vw,520px);gap:clamp(12px,2vw,24px);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:8px var(--gutter,24px) 20px;scroll-padding-inline:var(--gutter,24px);align-items:stretch}
html[data-l-fs=strip] [data-sec=list] [data-item]:not(#_){scroll-snap-align:start;min-width:0}
html[data-l-fs=strip] [data-sec=list] [data-item]:not(#_) :is([data-item-media],.kp-art){aspect-ratio:4/5;min-height:0;width:100%}

/* 3 type-collage: one giant headline with the picture block layered through it (text above, picture behind its right half) */
@media (min-width:701px){
  html[data-l-fs=type-collage] [data-sec=hero]{padding-block:clamp(2.5rem,5vw,4.5rem) clamp(1.5rem,3vw,2.5rem);overflow:clip}
  html[data-l-fs=type-collage] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(8px,1.4vw,20px);align-items:start;position:relative}
  html[data-l-fs=type-collage] [data-sec=hero] [data-hero-text]{display:contents}
  html[data-l-fs=type-collage] [data-sec=hero] [data-hero-text] > *{grid-column:1 / 7;grid-row:auto}
  html[data-l-fs=type-collage] [data-sec=hero] [data-hero-text] > h1{grid-column:1 / -1;grid-row:2;position:relative;z-index:2;margin:0;font-size:clamp(3.2rem,1rem + 8.4vw,9.5rem);line-height:.88;letter-spacing:-.045em;text-transform:uppercase;max-width:9ch;text-shadow:0 0 .35em color-mix(in srgb,var(--bg) 75%,transparent)}
  html[data-l-fs=type-collage] [data-sec=hero] [data-hero-text] > :is(.kicker,#kicker){grid-row:1}
  html[data-l-fs=type-collage] [data-sec=hero] [data-hero-media]{grid-column:6 / -1;grid-row:2 / span 3;z-index:1;width:100%;min-height:clamp(260px,32vw,460px);margin-top:clamp(1.5rem,4vw,3rem);transform:rotate(1.5deg)}
  html[data-l-fs=type-collage] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;min-height:inherit;aspect-ratio:auto;object-fit:cover;max-height:none}
}

/* 4 timeline: a dated story as the first screen: huge years on the left, offset picture pair beside the title, roles stepping to the right */
html[data-l-fs=timeline] [data-sec=hero]{padding-block:clamp(2rem,4vw,3.5rem) 0}
html[data-l-fs=timeline] [data-sec=hero] h1{font-size:clamp(2.4rem,1.4rem + 4.4vw,5.2rem);line-height:.98;letter-spacing:-.03em;max-width:14ch}
html[data-l-fs=timeline] [data-sec=hero] [data-hero-media]{min-height:clamp(160px,22vw,280px)}
html[data-l-fs=timeline] [data-main] > [data-sec=story]{order:1;padding-top:clamp(1.5rem,3vw,2.5rem)}
html[data-l-fs=timeline] [data-sec=story] :is(ol,ul) > li{border-left:1px solid var(--line);padding-left:clamp(16px,3vw,40px);margin-left:6px}
html[data-l-fs=timeline] [data-sec=story] :is(ol,ul) > li:nth-child(even){margin-left:clamp(6px,8vw,120px)}
html[data-l-fs=timeline] [data-sec=story] :is(ol,ul) > li > :is(.when,.num,time){font-family:var(--serif);font-weight:300;font-size:clamp(1.8rem,1rem + 3vw,3.6rem);line-height:1;letter-spacing:-.02em;color:var(--ink)}
@media (min-width:701px){
  html[data-l-fs=timeline] [data-sec=hero] [data-hero-media] > :nth-child(2){transform:translateY(clamp(12px,3vw,40px))}
}

/* 5 index: a numbered list of the projects; a picture previews on hover / keyboard focus (wide screens with a fine pointer) */
html[data-l-fs=index] [data-sec=list] [data-list]:not(#_){display:grid;grid-template-columns:minmax(0,1fr);gap:0;counter-reset:pfsi;border-top:1px solid var(--ink)}
html[data-l-fs=index] [data-sec=list] [data-item]:not(#_){position:relative;display:grid;grid-template-columns:3.2rem minmax(0,1.3fr) minmax(0,1fr) auto;column-gap:var(--s-4,16px);row-gap:2px;align-items:center;padding:clamp(14px,2vw,26px) 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;counter-increment:pfsi}
html[data-l-fs=index] [data-sec=list] [data-item]:not(#_)::before{content:counter(pfsi,decimal-leading-zero);grid-column:1;grid-row:1 / span 3;font:500 max(14px,.85rem)/1 var(--mono,var(--sans));letter-spacing:.08em;color:var(--ink-2)}
html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) > :where(:not([data-item-media]):not(.kp-art)){grid-column:2;margin:0}
html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) h3{font-size:clamp(1.4rem,1rem + 1.6vw,2.4rem);line-height:1.05;letter-spacing:-.02em;grid-row:1}
html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) > :is(.sum,p:not(.kicker):not(.metric)){grid-column:3;grid-row:1 / span 2;color:var(--ink-2)}
html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) > :is(button,.btn){grid-column:4;grid-row:1 / span 3;justify-self:end;min-height:44px}
html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) > :is([data-item-media],.kp-art){display:none}
@media (min-width:901px) and (hover:hover) and (pointer:fine){
  html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) > :is([data-item-media],.kp-art){display:block;position:absolute;right:22%;top:50%;width:clamp(140px,16vw,240px);aspect-ratio:4/3;min-height:0;margin:0;opacity:0;transform:translateY(-50%) scale(.94);pointer-events:none;z-index:3;transition:opacity .25s,transform .25s;box-shadow:0 18px 40px -18px rgb(0 0 0/.5)}
  html[data-l-fs=index] [data-sec=list] [data-item]:not(#_):is(:hover,:focus-within) > :is([data-item-media],.kp-art){opacity:1;transform:translateY(-50%) scale(1)}
}

/* 6 mosaic-dark: a black ground, the picture block as an asymmetric mosaic of unequal cells, bracketed micro links */
html[data-l-fs=mosaic-dark][data-theme=dark]{--bg:#050505;--surface:#0e0e10;--sunk-0:#121214}
html[data-l-fs=mosaic-dark] [data-sec=hero]{--ink:#f1f1ee;--ink-2:#b4b6bd;--line:rgb(255 255 255/.2);background:#050505;color:var(--ink);padding-block:clamp(2rem,5vw,4.5rem)}
html[data-l-fs=mosaic-dark] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);gap:clamp(20px,4vw,56px);align-items:end}
html[data-l-fs=mosaic-dark] [data-sec=hero] h1{font-family:var(--sans);font-weight:500;font-size:clamp(2.2rem,1.2rem + 3.4vw,4.6rem);line-height:1;letter-spacing:-.035em;text-transform:lowercase;color:var(--ink)}
html[data-l-fs=mosaic-dark] [data-sec=hero] :is(p,dt,dd,li){color:var(--ink-2)}
html[data-l-fs=mosaic-dark] [data-sec=hero] .see::before{content:"[ "}
html[data-l-fs=mosaic-dark] [data-sec=hero] .see::after{content:" ]"}
html[data-l-fs=mosaic-dark] [data-sec=hero] :is(.see,a){color:var(--ink)}
html[data-l-fs=mosaic-dark] [data-sec=hero] [data-hero-media]{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:6px;height:clamp(380px,46vw,620px);min-height:0;width:100%;background:none;border-radius:0}
html[data-l-fs=mosaic-dark] [data-sec=hero] [data-hero-media] > :nth-child(1){grid-column:1 / 4;grid-row:1 / 5}
html[data-l-fs=mosaic-dark] [data-sec=hero] [data-hero-media] > :nth-child(2){grid-column:4 / 7;grid-row:2 / 4}
html[data-l-fs=mosaic-dark] [data-sec=hero] [data-hero-media] > :nth-child(3){grid-column:4 / 6;grid-row:4 / 7}
html[data-l-fs=mosaic-dark] [data-sec=hero] [data-hero-media] > :nth-child(4):not([hidden]){grid-column:1 / 3;grid-row:5 / 7}
html[data-l-fs=mosaic-dark] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;max-height:none;border-radius:0;box-shadow:none}
html[data-l-fs=mosaic-dark] [data-sec=hero] .kv-art i{position:static;width:auto;aspect-ratio:auto;border-radius:0;opacity:1;background:color-mix(in srgb,var(--accent) 55%,#0e0e10)}
html[data-l-fs=mosaic-dark] [data-sec=hero] .kv-art i:nth-child(2){background:color-mix(in srgb,var(--accent) 22%,#0e0e10)}
html[data-l-fs=mosaic-dark] [data-sec=hero] .kv-art i:nth-child(3){background:#1a1a1d}

/* 7 glow-split: a near-black ground with a slow CSS-only colour glow and a faint grain (no images, no WebGL); the name as a giant two-word lockup (upright sans, italic serif) at the foot,
   a framed picture window above it; with scroll motion (data-m=split) the two words slide apart and the window grows. Reduced motion = static. */
html[data-l-fs=glow-split][data-theme=dark]{--bg:#07070a;--surface:#101015;--sunk-0:#14141a}
html[data-l-fs=glow-split] [data-sec=hero]{--ink:#f4f2f0;--ink-2:#bcbec8;--line:rgb(255 255 255/.2);position:relative;isolation:isolate;overflow:hidden;background:#07070a;color:var(--ink);min-height:min(calc(100svh - 64px),900px);max-width:none;margin:0;width:100%;display:grid;align-content:end;padding:clamp(2rem,4vw,3.5rem) max(var(--gutter,24px),calc((100% - 1120px) / 2)) clamp(1.25rem,2.5vw,2rem)}
html[data-l-fs=glow-split] [data-sec=hero]::before{content:"";position:absolute;inset:-25%;z-index:-2;pointer-events:none;background:radial-gradient(38% 34% at 28% 42%,color-mix(in srgb,var(--accent) 60%,transparent),transparent 72%),radial-gradient(34% 30% at 74% 64%,color-mix(in srgb,#ff3d81 42%,transparent),transparent 72%),radial-gradient(30% 28% at 56% 18%,color-mix(in srgb,var(--accent) 30%,transparent),transparent 72%);animation:pfs-glow 24s ease-in-out infinite alternate;will-change:transform}
html[data-l-fs=glow-split] [data-sec=hero]::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.09;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
@keyframes pfs-glow{from{transform:translate3d(-3%,-2%,0) scale(1)}50%{transform:translate3d(3%,2%,0) scale(1.08)}to{transform:translate3d(-1%,4%,0) scale(1.03)}}
html[data-l-fs=glow-split] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(16px,3vw,40px);justify-items:stretch}
html[data-l-fs=glow-split] [data-sec=hero] [data-hero-media]{order:-1;justify-self:center;width:min(22vw,300px);min-width:200px;aspect-ratio:4/5;min-height:0;border-radius:6px;border:1px solid var(--line);background:rgb(255 255 255/.04)}
html[data-l-fs=glow-split] [data-sec=hero] [data-hero-media] img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;max-height:none;border-radius:0;box-shadow:none}
html[data-l-fs=glow-split] [data-sec=hero] [data-hero-text]{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(16px,4vw,48px);row-gap:12px;align-items:end;min-width:0}
html[data-l-fs=glow-split] [data-sec=hero] [data-hero-text] > *{grid-column:1 / -1;min-width:0}
html[data-l-fs=glow-split] [data-sec=hero] h1{font-family:var(--serif);font-style:italic;font-weight:400;font-size:clamp(3.4rem,1.2rem + 9vw,12rem);line-height:.9;letter-spacing:-.04em;word-spacing:100vw;overflow-wrap:anywhere;margin:0;color:var(--ink);text-transform:none}
html[data-l-fs=glow-split] [data-sec=hero] h1::first-line{font-family:var(--sans);font-style:normal;font-weight:600;letter-spacing:-.05em}
html[data-l-fs=glow-split] [data-sec=hero] h1 em{font-style:inherit;color:inherit}
html[data-l-fs=glow-split] [data-sec=hero] h1 :is(.sm-s1,.sm-s2){display:block;word-spacing:normal}
html[data-l-fs=glow-split] [data-sec=hero] h1 .sm-s1{font-family:var(--sans);font-style:normal;font-weight:600;letter-spacing:-.05em}
html[data-l-fs=glow-split] [data-sec=hero] [data-hero-text] > :not(h1){padding-top:12px;border-top:1px solid var(--line)}
html[data-l-fs=glow-split] [data-sec=hero] [data-hero-text] > :is(.lede,#lede){grid-column:1}
html[data-l-fs=glow-split] [data-sec=hero] [data-hero-text] > .links{grid-column:2;justify-self:end}
html[data-l-fs=glow-split] [data-sec=hero] :is(p,dt,dd){color:var(--ink-2)}
html[data-l-fs=glow-split] [data-sec=hero] :is(a,.see,.kicker){color:var(--ink)}

/* phones: every one of the seven is a clean single column, nothing wider than the screen */
@media (max-width:700px){
  html[data-l-fs=split-fixed] [data-sec=hero] h1{font-size:clamp(2.2rem,1.6rem + 3vw,3rem)}
  html[data-l-fs=strip] [data-sec=list] [data-list]:not(#_){grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:minmax(0,1fr);overflow-x:visible;scroll-snap-type:none}
  html[data-l-fs=type-collage] [data-sec=hero] :has(> [data-hero-text]){display:grid;grid-template-columns:minmax(0,1fr)}
  html[data-l-fs=type-collage] [data-sec=hero] h1{font-size:clamp(2.8rem,14vw,4.6rem);line-height:.9;letter-spacing:-.04em;text-transform:uppercase;overflow-wrap:anywhere}
  html[data-l-fs=type-collage] [data-sec=hero] [data-hero-media]{margin-top:var(--s-4,16px);min-height:220px}
  html[data-l-fs=timeline] [data-sec=story] :is(ol,ul) > li:nth-child(even){margin-left:6px}
  html[data-l-fs=index] [data-sec=list] [data-item]:not(#_){grid-template-columns:minmax(0,1fr);row-gap:6px}
  html[data-l-fs=index] [data-sec=list] [data-item]:not(#_)::before{grid-column:1;grid-row:auto}
  html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) > *{grid-column:1 !important;grid-row:auto !important;justify-self:start !important}
  html[data-l-fs=mosaic-dark] [data-sec=hero] :has(> [data-hero-text]){grid-template-columns:minmax(0,1fr)}
  html[data-l-fs=mosaic-dark] [data-sec=hero] [data-hero-media]{height:clamp(300px,90vw,420px)}
  html[data-l-fs=glow-split] [data-sec=hero] [data-hero-text]{grid-template-columns:minmax(0,1fr)}
  html[data-l-fs=glow-split] [data-sec=hero] [data-hero-text] > .links{grid-column:1;justify-self:start}
  html[data-l-fs=glow-split] [data-sec=hero] [data-hero-media]{width:min(64vw,260px);min-width:0}
  html[data-l-fs=glow-split] [data-sec=hero] h1{font-size:clamp(3.2rem,16vw,5.2rem)}
}
@media (prefers-reduced-motion:reduce){
  html[data-l-fs=glow-split] [data-sec=hero]::before{animation:none;transform:none}
  html[data-l-fs=index] [data-sec=list] [data-item]:not(#_) > :is([data-item-media],.kp-art){transition:none}
}
/* D685/speed (Design Master 11-10): hero text is hard-coded #fff, so the hero's own backing must stay dark in dark mode. --ink flips to #EEF1F5 there = white on near-white, 1.05-1.33:1 in the worker's contrast check. */
@media (prefers-color-scheme:dark){html[data-l-fs=fullbleed]:not([data-theme=light]) [data-sec=hero],html[data-l-fs=overlay]:not([data-theme=light]) [data-sec=hero],html[data-l-hero=full]:not([data-theme=light]) [data-sec=hero]{background:#0B0E13}}
html[data-l-fs=fullbleed][data-theme=dark] [data-sec=hero],html[data-l-fs=overlay][data-theme=dark] [data-sec=hero],html[data-l-hero=full][data-theme=dark] [data-sec=hero]{background:#0B0E13}
/* D685 VARIANTS (kits3 11-11): the writer names a variant on a section (data-variant, set by the website engine); unknown = today's look. Lists / cards zero specificity (the page's own rules win); the hero variants use real specificity (they must beat the kit's hero layout); kit tokens only; AA pairs unchanged (same ink / surface / line tokens).
   items | teaser | custom : cards = bordered cards in a grid; columns = two newspaper columns; ledger = name ... price with a dotted leader.
   hero : centered = text + hours card centred; split = text left, hours card right (>= 900 px). */
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=cards] .items){display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 240px), 1fr));gap:16px;list-style:none;padding:0}
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=cards] .items > li){padding:16px;border:1px solid var(--line, color-mix(in srgb, currentColor 16%, transparent));border-radius:var(--r-card, 14px);background:var(--surface, transparent)}
/* D740 (FOUNDER 11-13 menu cards: text touching the card border): a kit's own ruled-row reset (bases-kv website app.css ':root .items>li{padding:18px 0}') zeroed the card's side padding but left its border. A bordered card always keeps inner side padding (specificity 0,2,2 beats the 0,2,1 reset). */
:where(html[data-kit-local], html[data-l-fs=fullbleed]) section[data-variant=cards] .items > li{padding-inline:max(16px, var(--card-pad-x, 18px))}
/* D742 (readback row 4831019 menu page): the hairline card look ([data-l-card=hairline] [data-item]: border + 12px) lost its side padding to the same kit reset; 0,3,2 beats it. Any family's bordered item card. */
html[data-l-card=hairline] .items > li[data-item]{padding-inline:max(16px, var(--card-pad-x, 18px))}
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=columns] .items){columns:2 260px;column-gap:32px;list-style:none;padding:0}
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=columns] .items > li){break-inside:avoid;margin-bottom:14px}
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=ledger] .items){list-style:none;padding:0;display:grid;gap:10px}
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=ledger] .items .row){display:flex;align-items:baseline;gap:8px}
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=ledger] .items .row)::after{content:"";order:1;flex:1;border-bottom:1px dotted color-mix(in srgb, currentColor 40%, transparent);margin-inline:4px;min-width:16px}
:where(html[data-kit-local], html[data-l-fs=fullbleed]) :where(section[data-variant=ledger] .items .row > .price){order:2;white-space:nowrap}
html[data-kit-local] [data-sec=hero][data-variant=centered] [data-hero-text], html[data-kit-local] [data-sec=hero][data-variant=centered] .head-main, html[data-l-fs=fullbleed] [data-sec=hero][data-variant=centered] [data-hero-text], html[data-l-fs=fullbleed] [data-sec=hero][data-variant=centered] .head-main{text-align:center;margin-inline:auto;justify-items:center}
@media (min-width:900px){html[data-kit-local] [data-sec=hero][data-variant=split] .head-main, html[data-l-fs=fullbleed] [data-sec=hero][data-variant=split] .head-main{display:grid;grid-template-columns:minmax(0, 1.1fr) minmax(260px, .9fr);column-gap:40px;align-items:start;max-width:none;width:100%;margin-inline:0}html[data-kit-local] [data-sec=hero][data-variant=split] .head-main > aside, html[data-l-fs=fullbleed] [data-sec=hero][data-variant=split] .head-main > aside{grid-column:2;grid-row:1 / span 5;justify-self:end;max-width:380px}}
/* PHONE SCRIM (kits3 11-11, design1 D607 witness: developer hero kicker 2.1:1 / name 2.6:1 over a light photo at 390; kept in layouts.css, not the portfolio app.css, because the live portfolio kit is 40,076 B and the 40,000 B cap would skip the whole shape): on a phone the text sits at 55-75% of the slide where the slideshow scrim was ~30% dark; darken the lower two thirds evenly */
@media (max-width:700px){html :is(#about.ss,:where(html:not(.ss-off):has(#stage):not(:has(.kp-pool>img.kp-spot:first-child:not([src^=h]):not([src^=i]))) #about))::after{background:linear-gradient(color-mix(in srgb,var(--bg-dk,#13120F) 70%,transparent),color-mix(in srgb,var(--bg-dk,#13120F) 25%,transparent) 22%,color-mix(in srgb,var(--bg-dk,#13120F) 62%,transparent) 48%,color-mix(in srgb,var(--bg-dk,#13120F) 84%,transparent) 70%,color-mix(in srgb,var(--bg-dk,#13120F) 88%,transparent))}}
