:root {
  --black: #0b0b0b;
  --white: #fff;
  --grey-light: #ededed;
  --line: rgba(11, 11, 11, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --muted: #6b6b6b;
  --muted-dark: #b3b3b3;
  --accent: #0b0b0b;
  --radius: 12px;
  --gap: clamp(10px, 1.1vw, 16px);
  --pad: clamp(14px, 2vw, 32px);
  --max: 1440px;
  --header-h: 67px;
  --edge: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Display face for titles, hooks and big numerals only (Zodiak, Fontshare). */
  --font-display: "Zodiak", Georgia, "Times New Roman", serif;
  --text: #0b0b0b;
  --fs-display: clamp(32px, 4.2vw, 64px);
  --fs-h1: clamp(48px, 8vw, 120px);
  --fs-title: clamp(56px, 7vw, 112px);
  --fs-hook: clamp(26px, 2.6vw, 36px);
  --fs-h2: clamp(28px, 3vw, 44px);
  --fs-body: 17px;
  --fs-label: 12px;
  /* Long-form reading: about 60 to 72 characters a line at every size (measure is set in em). */
  --ink-2: #2b2b2b;
  --fs-read: clamp(17px, 0.5vw + 12.5px, 19px);
  --fs-lede: clamp(19px, 0.75vw + 13px, 23px);
  --lh-read: 1.65;
  --measure: 34em;
  --cs-cols: minmax(0, 5fr) minmax(0, 7fr);
  --cs-gap: 20px clamp(32px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--white); color: var(--black); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--black); color: var(--white); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.site-header :focus-visible, .mobile-menu :focus-visible, body.dark :focus-visible, .site-footer :focus-visible, .cs-hero :focus-visible, .cs-next :focus-visible, .lightbox :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 5px var(--black); }
.cs-next__link:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; box-shadow: none; }
body.light-top .site-header:not(.is-solid) :focus-visible, .site-header.is-solid :focus-visible { outline-color: var(--black); box-shadow: none; }
body.dark .site-header.is-solid :focus-visible { outline-color: var(--white); }
.nobr { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--white); color: var(--black); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { display: block; font-size: var(--fs-label); line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
a.label { display: inline-flex; align-items: center; min-height: 44px; color: var(--black); transition: opacity .2s; }
a.label:hover { opacity: .6; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-family: inherit; min-height: 34px; height: 34px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 14px; transition: transform .25s var(--ease), opacity .25s; }
.pill:hover { transform: translateY(-1px); }
.pill--accent, .pill--black { background: var(--black); color: var(--white); }
.pill--white { background: var(--white); color: var(--black); }
.pill--outline { border: 1px solid currentColor; background: transparent; }
.noscript-msg { padding: 90px var(--pad) 24px; }
.noscript-msg a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 10; color: var(--white); transition: background-color .35s var(--ease), color .35s var(--ease); }
.site-header .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.28); transition: border-color .35s; }
.site-header nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; transition: opacity .2s; }
.site-header nav a:hover { opacity: .6; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-header .brand { font-size: 17px; font-weight: 500; letter-spacing: -.01em; display: inline-flex; align-items: center; min-height: 44px; }
.site-header .right { justify-self: end; display: flex; gap: 8px; }
.site-header .menu-btn { display: none; }
.site-header .menu-btn, .mobile-menu .close-btn { min-height: 44px; height: 44px; min-width: 44px; padding: 0 18px; }
body:not(.light-top):not(.dark) .site-header:not(.is-solid) .menu-btn { background: var(--white); color: var(--black); box-shadow: 0 1px 8px rgba(0,0,0,.18); }
.site-header .pill { background: var(--white); color: var(--black); }
.site-header.is-solid { background: var(--white); color: var(--black); }
.site-header.is-solid .wrap { border-color: var(--line); }
.site-header.is-solid .pill { background: var(--black); color: var(--white); }
body.dark .site-header, body.dark .site-header.is-solid { background: var(--black); color: var(--white); }
body.dark .site-header.is-solid .wrap { border-color: var(--line-dark); }
body.dark .site-header .pill { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.6); }
body.light-top .site-header:not(.is-solid) { color: var(--black); }
body.light-top .site-header:not(.is-solid) .wrap { border-color: var(--line); }
body.light-top .site-header:not(.is-solid) .pill { background: var(--black); color: var(--white); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 20; background: rgba(14,14,14,.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); color: var(--white); display: flex; flex-direction: column; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s linear .3s; }
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.mobile-menu .top a { display: inline-flex; align-items: center; min-height: 44px; }
.mobile-menu .top { position: absolute; top: 12px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 17px; }
.mobile-menu ol { list-style: none; counter-reset: m; }
.mobile-menu li { counter-increment: m; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.2); padding: 6px 0; }
.mobile-menu li a { font-size: 44px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.mobile-menu li::after { content: "0" counter(m); font-size: 12px; color: var(--muted-dark); }
.mobile-menu__foot { position: absolute; left: 20px; right: 20px; bottom: 24px; font-size: 15px; color: var(--muted-dark); }
.mobile-menu__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.mobile-menu__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mobile-menu__mail a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Home hero ---------- */
.hero { height: 160vh; position: relative; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--white); }
/* Scrolled: the reel settles into a framed card under the header, with generous side margins. */
.hero__media { --side: clamp(16px, 5vw, 88px); position: absolute; inset: 0; overflow: hidden; background: #111; clip-path: inset(calc(var(--t, 0) * (var(--header-h) + 12px)) calc(var(--t, 0) * var(--side)) calc(var(--t, 0) * var(--side)) round calc(var(--t, 0) * 24px)); will-change: clip-path; }
.hero__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 55%), linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 20%); }
.hero__media > video, .hero__media > img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { transform: scale(calc(1.08 - var(--t, 0) * .08)); transform-origin: center; will-change: transform; }
.hero__text { position: absolute; left: var(--edge); right: var(--pad); bottom: clamp(32px, 6vh, 72px); z-index: 2; max-width: none; color: var(--white); opacity: calc(1 - var(--t, 0) * 1.6); transform: translateY(calc(var(--t, 0) * -32px)); }
.hero__eyebrow { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-bottom: 14px; }
.hero__title, .hero__text h1 { font-size: var(--fs-display); line-height: 1.04; font-weight: 500; letter-spacing: -.02em; max-width: 23ch; }
.hero__scroll, .hero__text small { display: block; font-size: 13px; font-weight: 500; margin-top: 18px; opacity: .8; }

/* ---------- Project cards ---------- */
/* Every card: the work on top, a caption row underneath (title, then brand, role and year).
   Only the home lead card carries its title over the image, on a clean photo with a tall scrim. */
.cards { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); padding-top: var(--gap); }
.row { display: flex; gap: var(--gap); --media-h: clamp(300px, 34vw, 560px); }
.row--single { --media-h: clamp(360px, 46vw, 680px); }
.card { display: flex; flex-direction: column; position: relative; flex: 1 1 0; min-width: 0; color: var(--black); isolation: isolate; transition: flex-grow .7s var(--ease); }
@media (hover: hover) {
  .row:hover .card { flex-grow: .88; }
  .row:hover .card:hover { flex-grow: 1.18; }
}
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--grey-light); aspect-ratio: 4 / 3; }
.row .card__media { aspect-ratio: auto; height: var(--media-h); }
.card__media > video, .card__media > img { position: absolute; inset: 0; transition: transform 1.2s var(--ease), opacity .4s var(--ease); }
.card:hover .card__media > video, .card:hover .card__media > img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding-top: 14px; }
.card__title { font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; }
.card__meta { margin-top: 5px; display: flex; flex-wrap: wrap; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--muted); }
.card__meta span { white-space: nowrap; }
.card__meta span:not(:last-child)::after { content: "\00b7"; margin: 0 .5em; }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card__cta { margin-top: 12px; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; opacity: 0; transform: translateY(4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.card:hover .card__cta, .card:focus-visible .card__cta { opacity: 1; transform: none; }
@media (hover: none) { .card__cta { opacity: 1; transform: none; } }
/* Home lead: title over the clean photo, on a bottom scrim at least 35% of the card tall (here 50%). */
.card--overlay { color: var(--white); }
.card--overlay .card__media { height: clamp(440px, 52vw, 780px); }
.card--overlay .card__media::after { content: ""; position: absolute; inset: 50% 0 0 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.66), rgba(0,0,0,.28) 55%, rgba(0,0,0,0)); }
.card--overlay .card__body { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; padding: 0; }
.card--overlay .card__title { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.02em; }
.card--overlay .card__meta { color: rgba(255,255,255,.86); }
.card--overlay:hover .card__title { text-decoration: none; }
.card:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; box-shadow: none; }
.card--overlay:focus-visible { outline-offset: 4px; }

/* ---------- Work page ---------- */
.page-head { padding: calc(var(--header-h) + 56px) 0 32px; }
.page-title { font-size: var(--fs-h1); font-weight: 500; letter-spacing: -.03em; line-height: .95; }
.page-title sup { font-size: clamp(13px, 1.3vw, 18px); letter-spacing: 0; font-weight: 500; vertical-align: top; position: relative; top: .5em; margin-left: .25em; color: var(--muted); }
.page-lede { margin-top: 20px; max-width: 52ch; font-size: var(--fs-body); color: var(--muted); }
/* Filter row: format chips on the left, the grid/list toggle docked at the right end. */
.filter-bar { display: flex; align-items: center; gap: 16px; padding: 0 0 clamp(20px, 2.4vw, 32px); }
.filters { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--black); font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.chip:hover { border-color: rgba(11,11,11,.4); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.chip__n { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.chip[aria-pressed="true"] .chip__n { color: var(--muted-dark); }
.toggle { flex: none; margin-left: auto; display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: var(--grey-light); }
.toggle button { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: #595959; }
.toggle button[aria-pressed="true"] { background: var(--white); color: var(--black); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.filter-pill { display: flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; margin: -8px 0 clamp(20px, 2.4vw, 28px); padding: 0 4px 0 14px; min-height: 36px; border-radius: 999px; background: var(--grey-light); font-size: 14px; font-weight: 500; }
.filter-pill__clear { display: inline-grid; place-items: center; border: 0; background: transparent; font: inherit; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; min-width: 36px; min-height: 36px; padding: 0 8px; border-radius: 999px; }
.filter-pill__clear:hover { background: rgba(11,11,11,.08); }
.filter-pill__clear:hover { color: var(--black); }
.card--in { animation: card-in .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.work-group:not([hidden]) ~ .work-group:not([hidden]) { margin-top: clamp(56px, 7vw, 104px); }
.work-group__title { margin-bottom: clamp(16px, 2vw, 24px); padding-top: 16px; border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 48px) var(--gap); }
.work-grid .card.w-full { grid-column: 1 / -1; }
.work-grid .card.w-full .card__media { aspect-ratio: auto; height: clamp(360px, 44vw, 640px); }
/* Performance systems: three across from 1000px, two from 600px, one below; every row stays full. */
.work-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
.work-grid--compact .card__media { aspect-ratio: 4 / 3; }
@media (min-width: 600px) and (max-width: 999px) { .work-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work-grid--compact .card__title { font-size: 17px; }
.earlier { list-style: none; border-top: 1px solid var(--line); }
.earlier li { border-bottom: 1px solid var(--line); }
.er-row { display: grid; grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) 120px; gap: 16px 20px; align-items: center; min-height: 56px; padding: 12px 0; transition: opacity .2s; }
.er-thumb { position: relative; display: block; width: 96px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--grey-light); }
.er-thumb img { position: absolute; inset: 0; }
.er-row:hover { opacity: .6; }
.er-title { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.er-brand, .er-year { font-size: 14px; font-weight: 500; color: var(--muted); }
.er-year { text-align: right; font-variant-numeric: tabular-nums; }
.work-list { padding-top: 0; border-top: 1px solid var(--line); }
.wl-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .5fr); align-items: center; gap: 24px; min-height: 76px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: color .3s; }
.wl-client { font-size: 26px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; }
.wl-role { display: none; }
.wl-year { text-align: right; }
.wl-disc, .wl-brand, .wl-year { font-size: 14px; font-weight: 500; color: var(--muted); }
.wl-brand { color: var(--black); }
.wl-year { font-variant-numeric: tabular-nums; }
.wl-thumb { position: absolute; top: 50%; right: calc(12% + 24px); margin-top: -45px; width: 120px; aspect-ratio: 4 / 3; pointer-events: none; border-radius: 8px; overflow: hidden; background: var(--grey-light); opacity: 0; transform: scale(.94); transition: opacity .35s var(--ease), transform .35s var(--ease); }
/* The hover thumbnail is for mouse and trackpad only; touch screens never see a half-state. */
@media (hover: none), (pointer: coarse) { .wl-thumb { display: none; } }
@media (hover: hover) and (pointer: fine) {
  .work-list:hover .wl-row { color: rgba(11,11,11,.4); }
  .work-list:hover .wl-row:hover { color: var(--black); }
  .wl-row:hover .wl-thumb, .wl-row:focus-visible .wl-thumb { opacity: 1; transform: none; }
}

/* ---------- Home sections ---------- */
section.block { padding: clamp(72px, 9vw, 136px) 0 0; }
section.block > .label:first-child { margin-bottom: clamp(24px, 3vw, 40px); }
.intro p { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.24; font-weight: 500; letter-spacing: -.015em; max-width: 30em; }
.intro p + p { margin-top: .8em; color: var(--muted); }
.intro .more-link { color: var(--black); }
.more-link { display: inline-block; padding: 10px 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: opacity .2s; }
.more-link:hover { opacity: .6; }

.disciplines { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); }
.disc { padding: 24px 0 32px; border-top: 1px solid var(--line); }
.disc__title { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.disc__text { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--text); max-width: none; }
.disc__links { margin-top: 12px; max-width: none; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 13px; font-weight: 500; }
.disc__links a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(11,11,11,.3); transition: text-decoration-color .2s; }
.disc__links a:hover { text-decoration-color: currentColor; }

/* Logo wall: even tiles, last row centered. JS measures each mark and sets --lr (aspect of the
   inked area) and --lw (sqrt of that, density-corrected), so every logo carries the same visual weight. */
.brands { --cols: 7; --k: clamp(36px, 3vw, 46px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); padding-bottom: clamp(24px, 3vw, 48px); }
.brand-tile { position: relative; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: var(--radius); background: #f3f3f3; color: var(--black); overflow: hidden; transition: background-color .3s var(--ease); }
.brand-tile:hover, .brand-tile:focus-visible { background: var(--grey-light); }
.brand-tile__logo { position: relative; display: block; width: min(calc(var(--k) * var(--lw, 2.2) * var(--logo-scale, 1)), 78%); aspect-ratio: var(--lr, 4.8); max-height: 58%; overflow: hidden; opacity: 0; transition: opacity .4s var(--ease); }
.brand-tile__logo.is-fit { opacity: 1; }
.brand-tile__logo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; filter: brightness(0); opacity: .86; transition: opacity .25s; }
.brand-tile:hover .brand-tile__logo img, .brand-tile:focus-visible .brand-tile__logo img { opacity: 1; }
.brand-tile__name { padding: 0 12%; font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; text-align: center; text-wrap: balance; opacity: .86; }
.brand-tile__count { position: absolute; left: 14px; bottom: 10px; font-size: 12px; font-weight: 500; color: var(--muted); opacity: 0; transform: translateY(3px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.brand-tile:hover .brand-tile__count, .brand-tile:focus-visible .brand-tile__count { opacity: 1; transform: none; }
@media (max-width: 999px) { .brands { --cols: 4; --k: clamp(36px, 5vw, 48px); } .brand-tile--drop-small { display: none; } }
@media (max-width: 599px) { .brands { --cols: 3; --gap: 8px; --k: 28px; } .brand-tile { aspect-ratio: 4 / 3; } .brand-tile__count { display: none; } }

/* ---------- Case study ---------- */
.cs-hero { height: 100vh; height: 100svh; min-height: 520px; position: relative; overflow: hidden; color: var(--white); background: #111; }
.cs-hero > video, .cs-hero > img { position: absolute; inset: 0; z-index: 0; }
.cs-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 55%), linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0) 22%); }
/* Pale footage (hero_tone: "light"): deeper scrims so the white header and title stay legible. */
.cs-hero--light::after { background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.2) 60%, rgba(0,0,0,0) 80%), linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,0) 30%), rgba(0,0,0,.14); }
.cs-hero__text { position: absolute; left: var(--edge); right: var(--pad); bottom: 48px; z-index: 2; text-align: left; }
.cs-hero .label { color: rgba(255,255,255,.85); }
.cs-eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cs-brand { display: inline-flex; align-items: center; min-height: 32px; font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.01em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.4); transition: text-decoration-color .2s; }
a.cs-brand:hover { text-decoration-color: currentColor; }
span.cs-brand { text-decoration: none; }
.cs-disc { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.8); }
.cs-title { margin-top: 10px; font-size: clamp(40px, 6.4vw, 100px); letter-spacing: -.03em; line-height: .98; font-weight: 500; max-width: 16ch; }
/* Opening: the hook runs wide, the note on my role sits in the reading column. */
.cs-intro { display: grid; grid-template-columns: var(--cs-cols); gap: clamp(24px, 3vw, 40px) clamp(32px, 6vw, 96px); padding: clamp(64px, 9vw, 144px) 0 clamp(48px, 6vw, 96px); }
.cs-hook { grid-column: 1 / -1; font-size: clamp(30px, 3.7vw, 56px); line-height: 1.1; font-weight: 500; letter-spacing: -.025em; max-width: 24ch; }
.cs-rolenote { grid-column: 2; font-size: var(--fs-read); line-height: var(--lh-read); color: var(--muted); max-width: var(--measure); }
.cs-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 32px; padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-meta__item--list { grid-column: span 2; }
.cs-meta dt { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cs-meta dd { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.cs-meta dd ul { list-style: none; }
.cs-meta dd li + li { margin-top: 3px; }
.cs-meta dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Story: numbered chapters. The heading holds its place while the chapter scrolls by. */
.cs-chapter { display: grid; grid-template-columns: var(--cs-cols); gap: var(--cs-gap); padding: clamp(64px, 8vw, 128px) 0; }
.cs-chapter + .cs-chapter, .cs-media[hidden] + .cs-chapter { border-top: 1px solid var(--line); }
.cs-chapter__head { align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.cs-chapter__num { display: block; margin-bottom: 14px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-chapter__title { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; max-width: 14ch; }
.prose p { font-size: var(--fs-read); line-height: var(--lh-read); color: var(--ink-2); max-width: var(--measure); hanging-punctuation: first; }
.prose p + p { margin-top: 1.15em; }
.prose > p:first-child { font-size: var(--fs-lede); line-height: 1.5; color: var(--black); letter-spacing: -.005em; }
.prose > p:first-child + p { margin-top: 1em; }
.cs-media { padding: 0 0 clamp(16px, 3vw, 40px); }
.cs-media:not([hidden]) + .cs-chapter { padding-top: clamp(56px, 7vw, 112px); }
.cs-missing-wrap { padding: calc(var(--header-h) + 80px) 0 80px; }
.cs-missing { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -.02em; }
.cs-missing-wrap p { margin-top: 12px; }

/* Gallery rows: wide pieces alone, upright pieces in pairs (or three tall verticals).
   Each item's flex-grow is its aspect ratio, so a row shares one height; a row that would
   grow taller than the cap narrows and centers instead. */
.gallery { padding-bottom: clamp(24px, 3vw, 48px); }
.gallery:empty { display: none; }
.gallery, .cs-media { --g-maxh: min(88vh, 880px); }
.g-row { display: flex; gap: var(--gap); margin: 0 auto clamp(20px, 2.4vw, 36px); align-items: flex-start; max-width: calc(var(--sum, 2.4) * var(--g-maxh) + (var(--n, 1) - 1) * var(--gap)); }
.g-row:last-child { margin-bottom: 0; }
.g-item { min-width: 0; margin: 0; }
.g-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grey-light); }
.g-media > img, .g-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-media.g-contain > img, .g-media.g-contain > video { object-fit: contain; }
.g-media > video { cursor: pointer; }
.g-media > video:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; box-shadow: inset 0 0 0 5px var(--black); }
.g-cap { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 52ch; }

.cs-outro { display: grid; grid-template-columns: var(--cs-cols); gap: var(--cs-gap); padding: clamp(56px, 7vw, 112px) 0; border-top: 1px solid var(--line); }
.cs-outro__title { font-size: var(--fs-label); line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.cs-credits { max-width: var(--measure); font-size: var(--fs-read); }
.cs-credits div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cs-credits div:first-child { padding-top: 0; }
.cs-credits dt { color: var(--muted); }
.cs-credits dd { font-weight: 500; text-align: right; }

.cs-related { padding-top: clamp(8px, 1vw, 16px); padding-bottom: clamp(56px, 7vw, 112px); }
.cs-related__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-bottom: clamp(20px, 2.4vw, 32px); padding-top: clamp(20px, 2.4vw, 32px); border-top: 1px solid var(--line); }
.cs-related__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.cs-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
/* Related cards share the caption layout; a steady 4:3 frame. */
.cs-related__grid .card__title { font-size: clamp(18px, 1.4vw, 22px); }
.cs-next { display: block; }
/* Next project: title on a dark field, the cover on the right at no more than half the row and
   never wider than its own pixels (--nw), so nothing is upscaled. */
.cs-next__link { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 7vw, 112px) var(--edge); color: var(--white); background: #0f0f0f; }
.cs-next__text { flex: 1 1 auto; min-width: 0; }
.cs-next__media { flex: 0 1 auto; display: block; width: min(50%, var(--nw, 9999px), calc(min(70vh, 680px) * var(--r, 1.5))); max-width: min(50%, var(--nw, 9999px)); border-radius: var(--radius); overflow: hidden; background: #1a1a1a; }
.cs-next__media > img, .cs-next__media > video { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.cs-next__link:hover .cs-next__media > img { transform: scale(1.03); }
.cs-next__go { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cs-next__text .label { color: rgba(255,255,255,.85); }
.cs-next__title { display: block; margin-top: 12px; max-width: 18ch; font-size: clamp(36px, 5.6vw, 88px); font-weight: 500; letter-spacing: -.03em; line-height: .95; }
.cs-more { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.cs-more a.label:only-child { margin-left: auto; }
.cs-prev__k { color: var(--muted); margin-right: .5em; }

/* ---------- Contact ---------- */
body.dark { background: var(--black); color: var(--white); }
body.dark .label { color: var(--muted-dark); }
.contact-head { padding: calc(var(--header-h) + clamp(64px, 10vw, 140px)) 0 32px; }
.contact-head h1 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; max-width: 22ch; color: var(--white); }
.contact-line { margin-top: 14px; max-width: 58ch; font-size: 17px; line-height: 1.55; color: var(--muted-dark); }
.contact-line a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-head .mail { display: inline-block; margin-top: clamp(28px, 4vw, 48px); font-size: clamp(32px, 6vw, 88px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; color: var(--white); text-decoration: none; overflow-wrap: anywhere; transition: opacity .2s; }
.contact-head .mail:hover { opacity: .75; }
.contact-head .copy-email { vertical-align: middle; margin-left: 16px; }
.contact-head .where { margin-top: 28px; color: var(--muted-dark); font-size: 15px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px 0 96px; margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-dark); }
.contact-form h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.contact-form form { display: grid; gap: 10px; }
.contact-form input, .contact-form textarea, .contact-form button { font: inherit; font-size: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 12px 14px; min-height: 48px; background: #1c1c1c; color: var(--white); transition: border-color .2s; }
.contact-form input:hover, .contact-form textarea:hover { border-color: rgba(255,255,255,.25); }
.contact-form ::placeholder { color: #9a9a9a; opacity: 1; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { cursor: pointer; font-weight: 500; background: var(--white); color: var(--black); border-color: var(--white); border-radius: 999px; justify-self: start; padding: 0 24px; }
.contact-form button:hover { opacity: .85; }
.contact-form .status { font-size: 13px; color: var(--muted-dark); }
.hp { position: absolute; left: -9999px; }

.copy-email { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 76px; padding: 0 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0; cursor: pointer; opacity: .8; transition: opacity .2s, background-color .2s, color .2s; }
.copy-email:hover { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); }
.site-footer .cta { padding: clamp(88px, 12vw, 168px) 0 clamp(56px, 8vw, 104px); }
.cta__title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.cta__line { margin-top: 12px; max-width: 46ch; color: var(--muted-dark); font-size: 16px; }
.cta__actions { margin-top: 28px; }
.cta__mail { margin-top: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.footer-mail { font-size: clamp(28px, 5vw, 64px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; overflow-wrap: anywhere; transition: opacity .2s; }
.footer-mail:hover { opacity: .75; }
.footer-where { margin-top: 20px; font-size: 13px; font-weight: 500; color: var(--muted-dark); }
.footer-where .local-time { margin-left: .5em; font-variant-numeric: tabular-nums; }
.footer-where .local-time:empty { display: none; }
.site-footer .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--muted-dark); }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-footer .bar a, .motion-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.bar-actions { display: flex; gap: 16px; align-items: center; }
.motion-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .bar a:hover, .motion-btn:hover { color: var(--white); }

/* ---------- About ---------- */
.about { padding-top: calc(var(--header-h) + 56px); }
.about-top { display: grid; grid-template-columns: 174px 1fr; gap: 32px; }
.bio p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.42; font-weight: 500; letter-spacing: -.01em; max-width: 31em; }
.bio p + p { margin-top: .9em; }
.bio .actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.elsewhere { margin-top: 20px; font-size: 14px !important; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.elsewhere .links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.elsewhere .links a { text-decoration: underline; text-underline-offset: 4px; }
.timeline { list-style: none; margin-top: 8px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 174px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 14px; font-weight: 500; padding-top: 4px; }
.timeline h3 { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.timeline .what > .muted, .timeline .what__role { margin-top: 2px; font-size: 15px; color: var(--muted); }
.timeline .what__line { margin-top: 10px; font-size: 16px; line-height: 1.55; max-width: 60ch; color: var(--ink-2); }
.timeline ul { list-style: none; margin-top: 12px; max-width: 64ch; }
.timeline ul li { display: block; border: 0; padding: 3px 0; font-size: 16px; line-height: 1.45; }
.edu { padding-left: 206px; }
.edu h3 { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.edu > .muted { margin-top: 2px; }
.client-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.client-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: rgba(11,11,11,.25); transition: text-decoration-color .2s; }
.client-links a:hover { text-decoration-color: currentColor; }
main.about > section.block:last-child { padding-bottom: clamp(72px, 9vw, 136px); }
.nf { padding: calc(var(--header-h) + 100px) var(--pad) 120px; }
.nf h1 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -.02em; }
.nf p { margin-top: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__video { transform: none; }
  .card--in { animation: none; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 899px) {
  .cs-intro, .cs-chapter, .cs-outro { grid-template-columns: minmax(0, 1fr); }
  .cs-rolenote { grid-column: auto; }
  .cs-chapter__head { position: static; }
  .cs-chapter__title { max-width: 20ch; }
  .cs-chapter { padding: clamp(48px, 12vw, 80px) 0; }
  .wl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; min-height: 0; padding: 16px 0; }
  .wl-client { grid-column: 1; }
  .wl-brand { grid-column: 1; grid-row: 2; }
  .wl-year { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .wl-disc, .wl-thumb { display: none; }
  .wl-role { display: inline; }
  .wl-brand > span { white-space: nowrap; }
  .wl-brand > span:not(:last-child)::after { content: "\00b7"; margin: 0 .5em; }
}
@media (max-width: 809px) {
  .site-header nav, .site-header .right .pill:not(.menu-btn) { display: none; }
  .site-header .wrap { grid-template-columns: 1fr auto; border-bottom: 0; }
  .site-header .brand { grid-column: 1; }
  .site-header .right .menu-btn { display: inline-flex; }
  .pill { height: 44px; min-height: 44px; }
  .disciplines { grid-template-columns: minmax(0, 1fr); }
  .about-top, .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .edu { padding-left: 0; }
  .mobile-menu li a { display: block; padding: 4px 0; font-size: 40px; }
  .contact-form { grid-template-columns: 1fr; gap: 24px; }
  .contact-head .copy-email { margin-left: 0; margin-top: 16px; display: flex; }
  .cs-hero__text { bottom: 32px; }
}
@media (max-width: 699px) {
  .row, .row--single { flex-direction: column; --media-h: auto; }
  .row .card { flex: none; }
  .row .card__media, .work-grid .card.w-full .card__media { height: auto; aspect-ratio: 4 / 3; }
  .card--overlay .card__media { height: auto; aspect-ratio: 4 / 5; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .work-grid--compact .card__meta { font-size: 12px; }
  .work-grid--compact .card__title { font-size: 15px; }
  .card--overlay .card__body { left: 20px; right: 20px; bottom: 20px; }
  .er-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .er-brand { grid-row: 2; }
  .er-year { grid-row: 1 / span 2; align-self: center; }
  .wl-client { font-size: 22px; }
  .filter-bar { gap: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: 8px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters { padding-right: var(--pad); }
  .chip { min-height: 44px; flex: none; }
  .toggle button { width: 44px; height: 44px; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 24px 0; }
  .cs-intro { padding: 48px 0 36px; }
  .g-row { margin-bottom: 20px; }
  .cs-next__link { flex-direction: column; align-items: flex-start; }
  .cs-next__media { width: min(100%, var(--nw, 9999px)); max-width: 100%; }
  .cs-credits dd { text-align: left; }
  .cs-related__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Case-study hero: vertical films and stills ---------- */
/* A vertical or square film plays in a centered player on a dark field, the title beside it.
   A still sits in the same slot at no more than its native width; neither is ever cropped full-bleed. */
.cs-hero--split { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px clamp(32px, 5vw, 88px); padding: calc(var(--header-h) + clamp(24px, 4vh, 48px)) var(--edge) clamp(32px, 5vh, 56px); background: #0f0f0f; }
.cs-hero--split::after { display: none; }
.cs-hero--split .cs-hero__text { position: static; grid-column: 1; grid-row: 1; align-self: center; }
.cs-hero__player { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: var(--r, .5625); width: min(520px, var(--nw, 520px), 42vw, calc((100svh - var(--header-h) - 120px) * var(--r, .5625))); border-radius: var(--radius); overflow: hidden; background: #000; }
.cs-hero__player--still { width: min(640px, var(--nw, 640px), 46vw, calc((100svh - var(--header-h) - 120px) * var(--r, 1))); background: #1a1a1a; }
.cs-hero__player > video, .cs-hero__player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero__actions { margin-top: 24px; }
.cs-hero__player .cs-hero__actions { position: absolute; left: 12px; bottom: 12px; z-index: 2; margin: 0; }
@media (max-width: 899px) {
  .cs-hero--split { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: calc(var(--header-h) + 20px); }
  .cs-hero--split .cs-hero__text { grid-row: 2; }
  .cs-hero__player, .cs-hero__player--still { grid-column: 1; grid-row: 1; justify-self: center; width: min(100%, 440px, var(--nw, 440px), calc(64svh * var(--r, .5625))); }
}

/* ---------- Play with sound and the film lightbox ---------- */
.play-sound { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; background: var(--white); color: var(--black); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.22); transition: transform .25s var(--ease); }
.play-sound:hover { transform: translateY(-1px); }
.play-sound__icon { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.g-media .play-sound { position: absolute; left: 10px; bottom: 10px; z-index: 2; min-height: 40px; font-size: 13px; padding: 0 14px 0 12px; }
.g-item--vertical .g-media > video { cursor: zoom-in; }
html.has-lightbox { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 12px var(--pad) 24px; border: 0; background: rgba(8,8,8,.97); color: var(--white); display: none; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(0,0,0,.7); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.lightbox__title { min-width: 0; font-size: 14px; font-weight: 500; color: var(--muted-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__frame { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; }
.lightbox__frame video { width: min(100%, calc((100vh - 112px) * var(--ratio, 1.7778))); width: min(100%, calc((100dvh - 112px) * var(--ratio, 1.7778))); height: auto; aspect-ratio: var(--ratio, 1.7778); object-fit: contain; background: #000; border-radius: 8px; }

/* ---------- Gallery: native size, tiles, filmstrip ---------- */
/* A row never grows taller than its shortest piece at native size, so nothing is upscaled. */
.g-row { max-width: calc(var(--sum, 2.4) * min(var(--g-maxh), var(--hmax, 9999px)) + (var(--n, 1) - 1) * var(--gap)); }
/* White-ground media sits on the same grey tile, with the same radius, as everything else. */
.g-media--tile { background: var(--grey-light); }
.g-media--tile > video, .g-media--tile > img { inset: 6%; width: 88%; height: 88%; object-fit: contain; border-radius: calc(var(--radius) - 4px); }
.g-row--strip { max-width: min(100%, calc(var(--frames, 8) * var(--fw, 720px))); }
.g-strip__track { display: grid; grid-template-columns: repeat(var(--frames, 8), minmax(0, 1fr)); gap: 4px; border-radius: var(--radius); overflow: hidden; background: #000; }
.g-strip__track img { width: 100%; height: auto; aspect-ratio: 720 / 1366; object-fit: cover; }
@media (max-width: 767px) {
  .g-strip__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding-inline: var(--pad); border-radius: 0; background: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .g-strip__track::-webkit-scrollbar { display: none; }
  .g-strip__track img { flex: 0 0 60vw; width: 60vw; scroll-snap-align: start; border-radius: var(--radius); }
}

/* ---------- About: portrait slot, at a glance, how I work ---------- */
.about-portrait { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--grey-light); aspect-ratio: 4 / 5; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.glance__list { list-style: none; border-top: 1px solid var(--line); }
.glance__list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.how__body p { font-size: var(--fs-read); line-height: var(--lh-read); color: var(--ink-2); max-width: var(--measure); }
.how__body p + p { margin-top: 1em; }
.about-more .label { margin-bottom: 16px; }
.about-more > [data-fill] + [data-fill] { margin-top: 40px; }
@media (min-width: 1024px) {
  .about-top.has-portrait { grid-template-columns: 174px minmax(0, 1fr) minmax(240px, 28%); }
  .about-portrait { align-self: start; }
  section.about-more { padding-left: 206px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(40px, 5vw, 80px); align-items: start; }
  .about-more > [data-fill] + [data-fill] { margin-top: 0; }
}
@media (max-width: 1023px) { .about-portrait { max-width: 420px; } }
/* Every date cell, including a word like "Freelance", reads the same. */
.timeline .when, .timeline .when * { font-size: 14px; font-weight: 500; color: var(--muted); font-style: normal; }

/* ---------- Contact ---------- */
.contact-social { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; }
.contact-social a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 809px) { .timeline .when:empty { display: none; } }

/* ---------- Cards: hover clip ---------- */
/* The still always shows; a card clip fades in only once it is actually playing (hover or focus). */
.card__media > .card__clip { opacity: 0; transition: opacity .35s var(--ease), transform 1.2s var(--ease); }
.card.is-playing .card__media > .card__clip { opacity: 1; }
@media (max-width: 599px) {
  .work-grid--compact { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work-grid--compact .card__media { aspect-ratio: 4 / 3; }
  .work-grid--compact .card__title { font-size: 19px; }
  .work-grid--compact .card__meta { font-size: 13px; }
}

/* ---------- Case-study hero: credit line, contained wide films ---------- */
.cs-role { margin-top: 18px; max-width: 46em; font-size: clamp(18px, 0.35vw + 14px, 20px); line-height: 1.45; font-weight: 500; letter-spacing: -.005em; color: var(--white); text-wrap: pretty; }
.cs-hero--split .cs-role { max-width: 34em; }
.cs-hero--contained, .cs-hero--split { height: auto; min-height: 0; }
/* A wide film under 1080 pixels tall: title first, then the film in a centered player at no more than
   its native width (max 1280px). On phones the portrait cut plays instead, directly above the title. */
.cs-hero--contained { display: flex; flex-direction: column; gap: clamp(24px, 3.4vh, 40px); padding: calc(var(--header-h) + clamp(24px, 4vh, 48px)) var(--edge) clamp(32px, 5vh, 56px); background: #0f0f0f; }
.cs-hero--contained::after { display: none; }
.cs-hero--contained .cs-hero__text { position: static; }
.cs-hero--contained .cs-title { font-size: clamp(36px, 4.6vw, 72px); max-width: 22ch; }
.cs-hero__player--wide { grid-column: auto; grid-row: auto; align-self: center; width: min(100%, 1280px, var(--nw, 1280px)); aspect-ratio: var(--r, 1.7778); }
@media (max-width: 899px) {
  .cs-hero__player--wide { width: min(100%, 1280px, var(--nw, 1280px)); }
}
@media (max-width: 767px) {
  .cs-hero--contained { flex-direction: column-reverse; justify-content: flex-end; padding-top: calc(var(--header-h) + 16px); }
  .cs-hero__player--wide.has-mobile { aspect-ratio: var(--rm, .5625); width: min(100%, 440px, calc(64svh * var(--rm, .5625))); }
  .cs-hero--split { padding-top: calc(var(--header-h) + 16px); gap: 24px; }
}

/* ---------- Chapter variants ---------- */
/* Statement: the chapter's first sentence in large type, no media after it. */
.cs-chapter--statement { grid-template-columns: minmax(0, 1fr); gap: 0; padding: clamp(72px, 10vw, 160px) 0; }
.cs-chapter--statement .cs-chapter__head { position: static; display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(20px, 2.4vw, 32px); }
.cs-chapter--statement .cs-chapter__num { margin: 0; }
.cs-chapter--statement .cs-chapter__title { max-width: none; font-size: var(--fs-label); line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cs-chapter--statement .cs-chapter__body { display: grid; grid-template-columns: var(--cs-cols); column-gap: clamp(32px, 6vw, 96px); }
.cs-statement { grid-column: 1 / -1; max-width: 22ch; font-size: clamp(32px, 4.6vw, 72px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; text-wrap: balance; }
.cs-chapter--statement .prose { grid-column: 2; margin-top: clamp(28px, 3.4vw, 48px); }
/* Break: one piece of media across the full width (never past its native width), caption over it. */
main { overflow-x: clip; }
.cs-break { position: relative; width: min(100vw, var(--nw, 100vw)); margin: 0 0 clamp(20px, 3vw, 48px) calc(50% - min(50vw, calc(var(--nw, 100vw) / 2))); background: #0f0f0f; box-shadow: 0 0 0 100vmax #0f0f0f; clip-path: inset(0 -100vmax); }
.cs-break__media { position: relative; aspect-ratio: var(--r, 1.7778); overflow: hidden; }
.cs-break__media > img, .cs-break__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-break__cap { position: absolute; left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); bottom: clamp(14px, 2vw, 28px); max-width: min(52ch, calc(100% - 2 * var(--pad))); padding: 8px 12px; border-radius: 8px; background: rgba(11,11,11,.72); color: var(--white); font-size: 13px; line-height: 1.45; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cs-break + .cs-chapter, .cs-break + .cs-media + .cs-chapter { border-top: 0; }
/* Sticky: the text column holds while the chapter's media scrolls past beside it. */
.cs-chapter--sticky { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
.cs-sticky__text { position: sticky; top: calc(var(--header-h) + 32px); }
.cs-sticky__text .cs-chapter__head { position: static; margin-bottom: clamp(20px, 2.4vw, 32px); }
.cs-chapter--sticky > .cs-media { padding: 0; }
.cs-chapter--sticky > .cs-media .g-row { margin-left: 0; margin-right: 0; }
.cs-chapter--sticky:has(> .cs-media[hidden]) { grid-template-columns: minmax(0, 1fr); }
.cs-chapter--sticky:has(> .cs-media[hidden]) .cs-sticky__text { position: static; display: grid; grid-template-columns: var(--cs-cols); gap: var(--cs-gap); }
@media (max-width: 899px) {
  .cs-chapter--sticky { grid-template-columns: minmax(0, 1fr); }
  .cs-sticky__text { position: static; }
  .cs-chapter--statement .cs-chapter__body { grid-template-columns: minmax(0, 1fr); }
  .cs-chapter--statement .prose { grid-column: 1; }
}
@media (max-width: 599px) {
  .cs-break__cap { position: static; max-width: none; margin: 0; padding: 10px var(--pad); border-radius: 0; background: #0f0f0f; color: var(--muted-dark); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Another company's spot shown for context: a quieter play button. */
.play-sound--quiet { background: rgba(11,11,11,.66); color: var(--white); box-shadow: none; }
.g-media .play-sound--quiet { min-height: 36px; font-size: 12px; }

/* ---------- Work page: phone header row ---------- */
@media (max-width: 599px) {
  body[data-page="work"] main { position: relative; }
  body[data-page="work"] .filter-bar .toggle { position: absolute; top: calc(var(--header-h) + 52px); right: var(--pad); }
  body[data-page="work"] .page-title { padding-right: 104px; }
}

/* ---------- About heading ---------- */
.about-head { grid-column: 1 / -1; display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 32px; align-items: baseline; margin-bottom: clamp(4px, 1.4vw, 16px); }
.about-title { font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.about-top > .bio { grid-column: 2; }
@media (max-width: 809px) {
  .about-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .about-top > .bio { grid-column: 1; }
}
/* A pale piece (a system sheet with its own labels) keeps its caption underneath instead of over it. */
.cs-break--light { background: #efefef; box-shadow: 0 0 0 100vmax #efefef; }
.cs-break--light .cs-break__cap { position: static; max-width: none; margin: 0; padding: 0 max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) clamp(14px, 2vw, 24px); border-radius: 0; background: none; color: var(--muted); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* =====================================================================
   Final round: type, logo wall, work list, and the three case-study layouts
   ===================================================================== */

/* ---------- Display type: titles, hooks and statements ---------- */
.hero__title, .hero__text h1, .page-title, .cs-title, .cs-hook, .cs-statement, .cs-chapter__title:not(.cs-chapter--statement .cs-chapter__title), .cs-related__title,
.cs-next__title, .cta__title, .about-title, .contact-head h1, .cs-missing { font-family: var(--font-display); font-weight: 500; }
.hero__title, .hero__text h1 { font-size: var(--fs-title); line-height: .98; letter-spacing: -.025em; max-width: 21ch; }
.cs-title { font-size: var(--fs-title); line-height: .96; letter-spacing: -.025em; max-width: 16ch; }
.cs-hero--contained .cs-title { font-size: var(--fs-title); }
.cs-hook { font-size: var(--fs-hook); line-height: 1.22; letter-spacing: -.01em; max-width: 34ch; }
.cs-chapter__title { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.015em; }
.cs-statement { letter-spacing: -.02em; }
@media (max-width: 699px) { .hero__title, .hero__text h1 { font-size: clamp(40px, 11vw, 56px); } }
/* Home hero: room under the descenders of the last line, then the subline in the body face. */
.hero__title, .hero__text h1 { line-height: 1.03; padding-bottom: .06em; }
.hero__sub { margin-top: clamp(14px, 1.5vw, 24px); max-width: 40ch; font-family: var(--font); font-size: clamp(17px, .55vw + 13px, 21px); font-weight: 500; line-height: 1.4; letter-spacing: -.005em; text-wrap: pretty; opacity: .92; }
.hero__sub + .hero__scroll { margin-top: clamp(14px, 1.4vw, 22px); }

/* ---------- Home expertise: three blocks ---------- */
.disciplines--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .disciplines--three { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Logo wall: single-color marks on the page, hairline dividers, no tiles ---------- */
.brands { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0; overflow: hidden; }
.brand-tile { flex: none; border-radius: 0; background: transparent; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-left: -1px; }
.brand-tile:hover, .brand-tile:focus-visible { background: transparent; }
.brand-tile:hover .brand-tile__logo img { opacity: 1; }

/* ---------- Work page ---------- */
@media (max-width: 1024px) {
  .wl-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .5fr); }
  .wl-disc { display: none; }
  .wl-role { display: inline; }
  .wl-brand > span { white-space: nowrap; }
  .wl-brand > span:not(:last-child)::after { content: "\00b7"; margin: 0 .5em; }
}
@media (max-width: 599px) {
  .wl-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wl-year { grid-column: 1; grid-row: 3; text-align: left; align-self: start; }
  .wl-year:empty { display: none; }
}
.er-year:empty::after { content: ""; }
@media (max-width: 699px) {
  .er-row { grid-template-columns: 72px minmax(0, 1fr); gap: 2px 14px; }
  .er-thumb { width: 72px; grid-row: 1 / span 3; align-self: center; }
  .er-title, .er-brand, .er-year { grid-column: 2; }
  .er-brand { grid-row: 2; }
  .er-year { grid-row: 3; text-align: left; align-self: start; }
  .er-year:empty { display: none; }
}

/* ---------- Career links (resume, LinkedIn): render only once set ---------- */
.career-links { display: inline-flex; flex-wrap: wrap; gap: 0 18px; font-size: 15px; font-weight: 500; }
.career-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bio .actions .career-links { margin-left: 8px; }
.contact-career { display: flex; margin-top: 16px; }

/* ---------- About: still in the portrait slot ---------- */
.about-portrait { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
.about-portrait img { aspect-ratio: 4 / 5; height: auto; border-radius: var(--radius); background: var(--grey-light); }
.about-portrait__cap { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.about-portrait__cap a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.glance__list a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(11,11,11,.3); }
.glance__list a:hover { text-decoration-color: currentColor; }

/* ---------- Gallery: dark plate for a blank frame, system grid ---------- */
.g-media--plate-dark { background: #161616; }
.g-media--plate-dark > img { inset: 8%; width: 84%; height: 84%; object-fit: contain; outline: 1px dashed rgba(255,255,255,.35); outline-offset: -1px; }
.g-row--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); max-width: none; }
.g-row--grid .g-item { flex: none; }
.g-row--grid .g-media { aspect-ratio: 1; background: #ececec; }
.g-row--grid .g-media > img, .g-row--grid .g-media > video { inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.g-row--grid .g-media--plate-dark { background: #161616; }
.g-row--grid .g-media--plate-dark > img { inset: 8%; width: 84%; height: 84%; }
.g-ratio { display: inline-block; margin-right: 8px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--black); font-variant-numeric: tabular-nums; }
@media (max-width: 699px) { .g-row--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; } .g-row--grid .g-cap { font-size: 12px; } }

/* ---------- FILM: a dark page, the clip first ---------- */
body.cs--film { background: #0f0f0f; color: #f2f2f2; --line: rgba(255,255,255,.14); --muted: #9c9c9c; --ink-2: #d2d2d2; --grey-light: #1b1b1b; --text: #f2f2f2; }
body.cs--film .site-header:not(.is-solid) { background: transparent; }
body.cs--film .card, body.cs--film a.label, body.cs--film .prose > p:first-child, body.cs--film .g-ratio { color: #f2f2f2; }
body.cs--film .card__meta { color: #a8a8a8; }
body.cs--film ::selection { background: #f2f2f2; color: #0b0b0b; }
.cs--film .cs-hero { background: #0f0f0f; }
.cs--film .cs-hero::after { background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.55) 22%, rgba(0,0,0,0) 40%), linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 20%); }
.cs--film .cs-hero--split::after { display: none; }
.cs-hero--film-tall .cs-hero__tall { position: absolute; z-index: 0; left: 50%; top: calc(var(--header-h) + 16px); bottom: 16px; transform: translateX(-50%); aspect-ratio: var(--r, .5625); max-width: calc(100% - 2 * var(--pad)); border-radius: var(--radius); overflow: hidden; background: #000; }
.cs-hero--film-tall .cs-hero__tall > video, .cs-hero--film-tall .cs-hero__tall > img { position: absolute; inset: 0; }
.cs--film .cs-hero__text { bottom: clamp(32px, 6vh, 64px); }
.cs--film .cs-title { max-width: 14ch; }
.cs--film .cs-intro { grid-template-columns: minmax(0, 1fr); }
.cs--film .cs-hook { font-size: clamp(32px, 4.4vw, 68px); line-height: 1.08; max-width: 20ch; letter-spacing: -.02em; }
.cs--film .cs-chapter, .cs--film .cs-chapter--statement { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 62ch; margin: 0 auto; font-size: var(--fs-read); }
.cs--film .cs-chapter__head { position: static; margin-bottom: clamp(18px, 2vw, 28px); }
.cs--film .cs-chapter__title { max-width: none; }
.cs--film .cs-chapter--statement .cs-chapter__body { grid-template-columns: minmax(0, 1fr); }
.cs--film .cs-chapter--statement .prose { grid-column: 1; }
.cs--film .cs-chapter + .cs-chapter, .cs--film .cs-media[hidden] + .cs-chapter { border-top: 0; }
.cs--film .prose p { max-width: none; }
.cs--film .cs-story > .cs-meta { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: clamp(8px, 2vw, 24px) 0 clamp(48px, 6vw, 96px); }
.cs--film .cs-story > .cs-meta .cs-meta__item { flex: 1 1 140px; min-width: 0; }
.cs--film .cs-story > .cs-meta .cs-meta__item--list { flex: 2 1 220px; }
.cs--film .cs-hero__actions .play-sound { box-shadow: none; }
@media (max-width: 699px) {
  .cs-hero--film-tall .cs-hero__tall { bottom: auto; width: calc(100% - 2 * var(--pad)); max-height: calc(100% - var(--header-h) - 32px); }
  .cs--film .cs-story > .cs-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- EDITORIAL: a light page, title first, then a full-bleed lead still ---------- */
.cs-hero--editorial { height: auto; min-height: 0; overflow: visible; background: var(--white); color: var(--black); padding-top: calc(var(--header-h) + clamp(40px, 7vw, 112px)); }
.cs-hero--editorial::after, .cs-hero--editorial.cs-hero--light::after { display: none; }
.cs-hero--editorial .cs-hero__text { position: static; padding: 0 var(--edge) clamp(32px, 4vw, 64px); }
.cs-hero--editorial .cs-brand { text-decoration-color: rgba(11,11,11,.3); }
.cs-hero--editorial .cs-role { color: var(--ink-2); max-width: 40em; }
.cs-hero--editorial :focus-visible { outline-color: var(--black); box-shadow: none; }
.cs-lead { position: relative; aspect-ratio: 3 / 2; max-height: 92svh; width: 100%; overflow: hidden; background: var(--grey-light); }
.cs-lead__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-lead .cs-hero__actions { position: absolute; left: var(--edge); bottom: 24px; z-index: 2; margin: 0; }
@media (max-width: 699px) { .cs-lead { aspect-ratio: 4 / 5; max-height: none; } }
.cs-chapter--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cs-chapter--flip > .cs-chapter__head { order: 2; }
.cs-chapter--flip > .cs-chapter__body { order: 1; }
.cs--editorial .cs-chapter__body.prose > p { margin-left: 0; }
.cs--editorial .cs-media { padding: clamp(16px, 3vw, 48px) 0 clamp(40px, 6vw, 96px); }
.cs--editorial .g-row { margin-bottom: clamp(40px, 6vw, 96px); }
.cs--editorial .g-row--solo, .cs--editorial .g-row--full { --g-maxh: min(84vh, 820px); }
.g-row--offset { gap: clamp(24px, 5vw, 96px); max-width: calc(var(--sum, 2) * min(var(--g-maxh), var(--hmax, 9999px)) + clamp(24px, 5vw, 96px)); }
.g-row--offset > .g-item:nth-child(2) { margin-top: clamp(48px, 9vw, 160px); }
@media (max-width: 899px) {
  .cs-chapter--flip { grid-template-columns: minmax(0, 1fr); }
  .cs-chapter--flip > .cs-chapter__head { order: 0; }
  .cs-chapter--flip > .cs-chapter__body { order: 0; }
}

/* ---------- SYSTEM: the board on a dark plate, facts in a sticky sidebar, a dense grid ---------- */
.cs-hero--system { height: auto; min-height: 0; background: #111; padding-top: var(--header-h); }
.cs-hero__board { position: relative; width: min(100%, var(--nw, 2400px), calc((100svh - var(--header-h)) * var(--r, 2))); aspect-ratio: var(--r, 2); margin: 0 auto; }
.cs-hero__board > img, .cs-hero__board > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cs-hero--system::after { z-index: 1; background: linear-gradient(to top, rgba(10,10,10,.94), rgba(10,10,10,.78) 26%, rgba(10,10,10,.35) 46%, rgba(10,10,10,0) 60%); }
.cs-hero--system.cs-hero--light::after { background: linear-gradient(to top, rgba(10,10,10,.96), rgba(10,10,10,.84) 30%, rgba(10,10,10,.4) 50%, rgba(10,10,10,0) 64%); }
.cs-hero--system .cs-hero__text { bottom: clamp(24px, 4vw, 48px); }
.cs-hero--system .cs-title { font-size: clamp(36px, 4.2vw, 64px); max-width: 22ch; }
.cs-hook--hero { margin-top: 14px; color: var(--white); max-width: 36ch; font-size: var(--fs-hook); }
.cs-rolenote--lead { grid-column: 1 / -1; font-size: var(--fs-lede); line-height: 1.45; color: var(--black); max-width: 40em; }
@media (max-width: 699px) {
  .cs-hero--system::after { display: none; }
  .cs-hero--system .cs-hero__text { position: static; padding: 20px var(--pad) 28px; }
  .cs-hero__board { width: 100%; }
}
@media (min-width: 1100px) {
  .cs--system .cs-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(40px, 4vw, 72px); align-items: start; }
  .cs--system .cs-body > * { grid-column: 2; min-width: 0; }
  .cs--system .cs-body > .cs-meta { grid-column: 1; grid-row: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 20px; margin-top: clamp(64px, 9vw, 144px); padding: 20px 0 0; border-bottom: 0; }
  .cs--system .cs-body > .cs-outro { grid-column: 1 / -1; }
  .cs--system .cs-chapter, .cs--system .cs-intro { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
/* Film, tall clip: pale footage gets a deeper scrim; on phones the title sits under the player. */
.cs--film .cs-hero--film-tall.cs-hero--light::after { background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.72) 26%, rgba(0,0,0,.2) 46%, rgba(0,0,0,0) 56%); }
@media (max-width: 699px) {
  .cs-hero--film-tall { height: auto; min-height: 0; padding: calc(var(--header-h) + 12px) var(--pad) 0; }
  .cs-hero--film-tall::after, .cs--film .cs-hero--film-tall.cs-hero--light::after { display: none; }
  .cs-hero--film-tall .cs-hero__tall { position: relative; left: auto; top: auto; transform: none; width: min(100%, calc(70svh * var(--r, .5625))); max-width: 100%; max-height: none; margin: 0 auto; }
  .cs-hero--film-tall .cs-hero__text { position: static; padding: 24px 0 32px; }
}
/* Film, tall clip on wide screens: the player holds the right side at full height so the large title on
   the left never sits on burned-in captions or a pale frame. */
@media (min-width: 900px) {
  .cs-hero--film-tall .cs-hero__tall { left: auto; right: var(--edge); transform: none; max-width: 52%; }
  .cs-hero--film-tall .cs-hero__text { right: auto; max-width: calc(48% - var(--edge) - 32px); }
  .cs-hero--film-tall::after { background: linear-gradient(to right, rgba(15,15,15,.9), rgba(15,15,15,0) 55%); }
  .cs--film .cs-hero--film-tall.cs-hero--light::after { background: linear-gradient(to right, rgba(15,15,15,.9), rgba(15,15,15,0) 55%); }
}

/* ---------- Logo wall on phones: two columns, and wide wordmarks keep a readable cap height ---------- */
@media (max-width: 599px) {
  .brands { --cols: 2; --k: 30px; --logo-minh: 14px; }
  .brand-tile { aspect-ratio: 2 / 1; }
  .brand-tile__logo { width: min(max(calc(var(--k) * var(--lw, 2.2) * var(--logo-scale, 1)), calc(var(--logo-minh) * var(--lr, 4.8))), 86%); }
}

/* ---------- System pages: the hook stays short and sits low, so the board stays visible ---------- */
.cs-hero--system .cs-hook--hero { max-width: 40ch; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.3; }

/* =====================================================================
   Motion: reveals, drift and floating frames. Transform and opacity only,
   driven by IntersectionObserver plus one requestAnimationFrame loop (main.js).
   html.motion is set only when the visitor has not asked for reduced motion.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 36px, 0); } }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes frame-in { from { opacity: 0; transform: translate3d(0, 56px, 0) scale(.9); } }
@keyframes media-in { from { transform: scale(.955); } }

/* Blocks fade up; rows and chapters hold still while their pieces follow one another. */
.reveal { transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.in { transform: none; }
html.motion .row.reveal, html.motion .g-row.reveal, html.motion .cs-chapter.reveal { opacity: 1; transform: none; transition: none; }
html.motion .row.reveal:not(.in) > .card,
html.motion .g-row.reveal:not(.in) > .g-item,
html.motion .cs-chapter.reveal:not(.in) > .cs-chapter__head,
html.motion .cs-chapter.reveal:not(.in) > .cs-chapter__body,
html.motion .cs-chapter.reveal:not(.in) > .cs-sticky__text { opacity: 0; }
html.motion .row.reveal.in > .card,
html.motion .g-row.reveal.in > .g-item,
html.motion .cs-chapter.reveal.in > .cs-chapter__head,
html.motion .cs-chapter.reveal.in > .cs-chapter__body,
html.motion .cs-chapter.reveal.in > .cs-sticky__text { animation: rise 1.05s var(--ease-out) backwards; }
html.motion .row.reveal.in > :nth-child(2), html.motion .g-row.reveal.in > :nth-child(2), html.motion .cs-chapter.reveal.in > .cs-chapter__body { animation-delay: .1s; }
html.motion .g-row.reveal.in > :nth-child(3) { animation-delay: .2s; }
html.motion .g-row.reveal.in > :nth-child(n+4) { animation-delay: .28s; }
html.motion .row.reveal.in > .card .card__media, html.motion .g-row.reveal.in > .g-item > .g-media { animation: media-in 1.4s var(--ease-out) backwards; animation-delay: inherit; }

/* Single pieces (cards, logos, timeline rows, frames) rise in reading order; main.js sets --d. */
html.motion .rise:not(.in) { opacity: 0; }
html.motion .rise.in { animation: rise 1s var(--ease-out) var(--d, 0ms) backwards; }

/* Case-study hero: the title block waits for the media, then rises line by line; the media settles. */
.cs-hero:not(.is-ready) .cs-hero__text, .cs-hero:not(.is-ready) ~ .cs-body { visibility: hidden; }
html.motion .cs-hero.is-ready .cs-hero__text > * { animation: rise 1.1s var(--ease-out) backwards; }
html.motion .cs-hero.is-ready .cs-hero__text > :nth-child(2) { animation-delay: .08s; }
html.motion .cs-hero.is-ready .cs-hero__text > :nth-child(3) { animation-delay: .16s; }
html.motion .cs-hero.is-ready .cs-hero__text > :nth-child(n+4) { animation-delay: .24s; }
html.motion .cs-hero.is-ready .cs-hero__media { animation: settle 1.8s var(--ease-out) backwards; }

/* Drift: stills and clips move a little inside their frames (main.js writes `translate`). */
html.motion [data-drift] { scale: 1.1; }
html.motion .cs-lead__media[data-drift], html.motion .cs-hero > .cs-hero__media[data-drift] { scale: 1.13; }
html.motion .is-drifting > [data-drift], html.motion .is-drifting > [data-drift-px] { will-change: translate; }

/* Floating frames: small stills from the work, with a soft shadow so they sit above the page. */
.float-frame { position: relative; display: block; aspect-ratio: var(--r, .8); }
.float-frame__in { position: absolute; inset: 0; display: block; border-radius: var(--radius); overflow: hidden; background: var(--grey-light); box-shadow: 0 34px 60px -34px rgba(11,11,11,.5), 0 10px 22px -14px rgba(11,11,11,.28); }
.float-frame__in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.float-frame:hover .float-frame__in > img { transform: scale(1.05); }
html.motion .float-frame.rise.in { animation-name: frame-in; animation-duration: 1.35s; }
body.dark .float-frame__in, .cs--film .float-frame__in { background: #1a1a1a; box-shadow: 0 34px 70px -30px rgba(0,0,0,.9); }

/* Home: a staggered strip of stills beside the introduction. */
.intro__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 10px; margin-top: clamp(28px, 6vw, 44px); height: calc((min(100vw, var(--max)) - 2 * var(--pad) - 20px) * .41667); }
.intro__frame--4 { display: none; }
.intro__frame--2 { top: 22px; }
.intro__frame--3 { top: 8px; }
@media (min-width: 900px) {
  .intro { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 23vw, 340px); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .intro__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 6px; height: auto; }
  .intro__frame--4 { display: block; }
  .intro__frame--2, .intro__frame--4 { top: 72px; }
  .intro__frame--3 { top: 0; }
}

/* Work: three stills beside the page title, clear of the filter row. */
.page-head { position: relative; }
.head-frames { display: none; }
@media (min-width: 1100px) {
  .head-frames { position: absolute; right: 0; top: calc(var(--header-h) + 28px); display: flex; align-items: flex-start; gap: 16px; }
  .head-frame { width: 128px; }
  .head-frame--1 { top: 34px; }
  .head-frame--2 { width: 164px; }
  .head-frame--3 { top: 52px; }
}

/* About: stills beside the roles that have work on the site, in the open space right of the timeline. */
.tl-frame { display: none; }
@media (min-width: 1100px) {
  .timeline > li { position: relative; }
  .tl-frame { display: block; position: absolute; z-index: 1; top: 18px; right: 0; width: clamp(150px, 14vw, 200px); }
  .tl-frame--in { right: clamp(0px, calc(100% - 980px), 220px); }
}
/* About: the headshot drifts gently inside its frame. */
.about-portrait__frame { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--grey-light); }
.about-portrait .about-portrait__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; background: none; }

/* Case studies: a small still under the chapter heading, beside the text. */
.cs-frame { display: none; }
@media (min-width: 900px) {
  .cs-frame { display: block; width: min(78%, 280px, calc(300px * var(--r))); margin-top: clamp(32px, 3.4vw, 52px); }
  .cs-frame--b { margin-left: min(30%, calc(100% - 280px)); }
}
/* Film pages run one centered column, so the frame floats in the margin, alternating sides. */
.cs--film .cs-frame { display: none; }
@media (min-width: 1280px) {
  .cs--film .cs-chapter__head { position: relative; top: auto; }
  .cs--film .cs-frame { display: block; position: absolute; top: 8px; margin: 0; width: min(210px, calc(280px * var(--r))); }
  .cs--film .cs-frame--a { right: calc(100% + clamp(48px, 5vw, 96px)); }
  .cs--film .cs-frame--b { left: calc(100% + clamp(48px, 5vw, 96px)); }
}

/* Until the data has rendered, the footer (and the Work page's lower groups) stay unpainted, so they
   never jump down the page as the cards arrive. */
body:not(.is-ready) .site-footer, body[data-page="work"]:not(.is-ready) .work-group:not(:first-child) { visibility: hidden; }

/* ---------- Case-study facts: Production always runs the full row ---------- */
.cs-meta__item--wide { grid-column: 1 / -1; }
.cs-meta__item--wide dd ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px clamp(24px, 3vw, 48px); }
.cs-meta__item--wide dd li + li { margin-top: 0; }
.cs--film .cs-story > .cs-meta .cs-meta__item--wide { flex: 1 1 100%; }

/* ---------- Footer: channel icons ---------- */
.site-footer .social { align-items: center; gap: 0 2px; margin-left: -10px; }
.site-footer .bar a.social-icon { justify-content: center; min-width: 44px; min-height: 44px; padding: 0; color: var(--muted-dark); transition: color .25s var(--ease), transform .35s var(--ease-out); }
.site-footer .bar a.social-icon:hover, .site-footer .bar a.social-icon:focus-visible { color: var(--white); transform: translateY(-2px); }
.social-icon svg { display: block; width: 20px; height: 20px; }
.site-footer .social a:not(.social-icon) { margin-left: 10px; }

@media (prefers-reduced-motion: reduce) {
  [data-drift], [data-drift-px] { translate: none !important; scale: none !important; }
  .rise, .float-frame, .cs-hero__text > * { opacity: 1 !important; animation: none !important; }
}

/* ---------- Final pass (2026-11-05) ---------- */
/* Footer secondary lines at about 70% white. */
.site-footer .cta__line, .site-footer .footer-where, .site-footer .bar { color: rgba(255,255,255,.72); }
/* Film, wide clip full bleed: a left and bottom scrim so the title and role never sit on a bright frame. */
.cs--film .cs-hero--film-wide::after { background:
  linear-gradient(to right, rgba(0,0,0,.78), rgba(0,0,0,.5) 34%, rgba(0,0,0,0) 62%),
  linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,.5) 26%, rgba(0,0,0,0) 48%),
  linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 20%); }
.cs--film .cs-hero--film-wide .cs-title, .cs--film .cs-hero--film-wide .cs-role { text-shadow: 0 1px 24px rgba(0,0,0,.35); }
/* Brand accent (set per study): warm glow behind the hero, accent chapter numbers and brand link. */
body.has-accent.cs--film .cs-hero { background: radial-gradient(90% 80% at 78% 45%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%), #120f0d; }
body.has-accent.cs--film { background: #120f0d; }
body.has-accent .cs-chapter__num, body.has-accent .cs-meta dt { color: var(--accent); }
body.has-accent .cs-brand { text-decoration-color: var(--accent); }
body.has-accent .cs-hero__tall { box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 55%, transparent); }
/* Performance systems: a row of three that would end short opens with wide cards. */
@media (min-width: 1000px) {
  .work-grid--compact { grid-auto-flow: row dense; }
  .work-grid--compact .card--wide { grid-column: span 2; }
  .work-grid--compact .card--wide .card__media { aspect-ratio: 8 / 3; }
}
/* About on phones and tablets: the portrait comes right after the heading, before the bio. */
@media (max-width: 809px) {
  .about-top > .about-head { order: 0; }
  .about-top > .about-portrait { order: 1; width: 100%; max-width: 480px; margin: 8px 0 16px; }
  .about-top > .bio { order: 2; }
}

/* =====================================================================
   Brand layers: case pages only (main.js, data/brand-layers.json).
   Decorative pieces placed in open space beside the work, behind it in the stack
   (z-index -1), never under the pointer. Transform and opacity only, except the
   one-time stroke draws. Idle loops run only while their section is near the screen.
   ===================================================================== */
.bl-anchor { position: relative; }
.bl-layer { position: absolute; top: 0; height: 100%; pointer-events: none; user-select: none; }
.bl-i { position: absolute; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease-out) var(--d, 0ms); }
.cs-hero > .bl-layer .bl-i { z-index: 2; }
.bl-layer.in .bl-i { opacity: var(--o, 1); }
.bl-layer.bl-instant .bl-i, .bl-layer.bl-instant .bl-e, .bl-layer.bl-instant .bl-draw-el { transition: none !important; animation-duration: 0s !important; }
.bl-m, .bl-e, .bl-c { display: block; width: 100%; height: 100%; }
.bl-c { object-fit: contain; }
.bl-svg > svg, .bl-ripple__base > svg, .bl-ripple__in > svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Smoke and glints: black drops out against the dark film pages; the clip's edges are feathered. */
.bl-screen { mix-blend-mode: screen; }
.bl-screen video.bl-c, .bl-screen img.bl-c { -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.bl-soft .bl-c { filter: blur(5px); }

/* Entrances (when the section first comes into view). */
.bl-layer:not(.in) .bl-e--in { transform: translate3d(0, 34px, 0) scale(.94); }
.bl-e--in { transition: transform 1.8s var(--ease-out) var(--d, 0ms); }
.bl-layer.in .bl-e--splat { animation: bl-splat 1s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0ms) backwards; }
.bl-layer.in .bl-e--roll { animation: bl-roll 2.4s cubic-bezier(.2, .7, .25, 1) var(--d, 0ms) backwards; }
@keyframes bl-splat { from { transform: scale(.55); } }
@keyframes bl-roll { from { transform: translate3d(var(--roll-x, -240px), 0, 0) rotate(var(--roll-r, -280deg)); } }

/* Stroke draws: once, as the section enters. */
.bl-draw-el { stroke-dasharray: var(--len, 1); stroke-dashoffset: var(--len, 1); transition: stroke-dashoffset var(--dur, 1600ms) cubic-bezier(.55, 0, .25, 1) calc(var(--d, 0ms) + var(--del, 0ms)); }
.bl-layer.in .bl-draw-el { stroke-dashoffset: 0; }
.bl-scrub-el { stroke-dasharray: var(--len, 1); stroke-dashoffset: var(--len, 1); }
.bl-ball { opacity: 0; transition: opacity .3s; }
.bl-ball.is-on { opacity: 1; }

/* Idle loops: paused while the section is far from the screen. */
.bl-m { animation: none 12s ease-in-out infinite both; }
.bl-layer:not(.is-live) .bl-m, .bl-layer:not(.is-live) .bl-ripple__ring, .bl-layer:not(.is-live) .bl-ripple__in { animation-play-state: paused !important; }
.bl-m--float { animation-name: bl-float; }
.bl-m--float2 { animation-name: bl-float2; }
.bl-m--bob { animation-name: bl-bob; }
.bl-m--spin { animation-name: bl-spin; animation-timing-function: linear; }
.bl-m--sway { animation-name: bl-sway; transform-origin: 50% 0; }
.bl-m--twinkle { animation-name: bl-twinkle; }
.bl-m--rise { animation-name: bl-rise; animation-timing-function: linear; }
.bl-m--fall { animation-name: bl-fall; animation-timing-function: cubic-bezier(.5, 0, .7, 1); }
.bl-m--smoke { animation-name: bl-smoke; }
@keyframes bl-float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); } 50% { transform: translate3d(0, -14px, 0) rotate(4deg); } }
@keyframes bl-float2 { 0%, 100% { transform: translate3d(0, -6px, 0) rotate(3deg); } 50% { transform: translate3d(4px, 8px, 0) rotate(-5deg); } }
@keyframes bl-bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.5deg); } 50% { transform: translate3d(0, -12px, 0) rotate(1.5deg); } }
@keyframes bl-spin { to { transform: rotate(360deg); } }
@keyframes bl-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes bl-twinkle { 0%, 40%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 52% { opacity: 1; transform: scale(1) rotate(45deg); } 66% { opacity: 0; transform: scale(.5) rotate(90deg); } }
@keyframes bl-rise { 0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, -42px, 0) scale(1.06); } }
@keyframes bl-fall { 0% { opacity: 0; transform: translate3d(0, -24px, 0); } 18%, 78% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, 56px, 0); } }
@keyframes bl-smoke { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, -4%, 0) scale(1.04); } }

/* Omorpho: a faint raised-dot field with a darker ring of dots widening through it. */
.bl-ripple { position: relative; -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent); mask-image: radial-gradient(closest-side, #000 35%, transparent); }
.bl-ripple__base, .bl-ripple__ring, .bl-ripple__in { position: absolute; inset: 0; display: block; }
.bl-ripple__base { opacity: .45; }
.bl-ripple__ring { -webkit-mask-image: radial-gradient(closest-side, transparent 52%, #000 70%, transparent 88%); mask-image: radial-gradient(closest-side, transparent 52%, #000 70%, transparent 88%); animation: bl-ring 6.5s linear infinite; }
.bl-ripple__in { animation: bl-ring-in 6.5s linear infinite; }
@keyframes bl-ring { 0% { transform: scale(.35); opacity: 0; } 8% { opacity: 1; } 20% { transform: scale(.65); } 40% { transform: scale(.95); } 60% { transform: scale(1.25); opacity: .55; } 72%, 100% { transform: scale(1.49); opacity: 0; } }
@keyframes bl-ring-in { 0% { transform: scale(2.857); } 20% { transform: scale(1.538); } 40% { transform: scale(1.053); } 60% { transform: scale(.8); } 72%, 100% { transform: scale(.671); } }

/* Phones get none of it, and neither does anyone who asked for less motion. */
@media (max-width: 699px) { .bl-layer { display: none; } }
@media (prefers-reduced-motion: reduce) { .bl-layer { display: none !important; } }

/* ---------- Case-study summary: the idea, then Role, Service, Year and Credits ---------- */
.cs-summary { display: grid; grid-template-columns: var(--cs-cols); gap: 28px clamp(32px, 6vw, 96px); padding: clamp(48px, 6vw, 96px) 0 clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.cs-summary__idea .label { margin-bottom: 14px; }
.cs-summary__text { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-lede); line-height: 1.38; max-width: 30ch; }
.cs-summary__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; align-content: start; }
.cs-summary__facts dt { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cs-summary__facts dd { margin-top: 8px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.cs-summary__credits { grid-column: 1 / -1; }
.cs-summary__credits ul { list-style: none; }
.cs-summary__credits li + li { margin-top: 4px; }
.cs-summary__role { color: var(--muted); font-weight: 400; }
.cs-summary + .cs-intro { padding-top: clamp(48px, 6vw, 96px); }
@media (min-width: 1100px) {
  .cs--system .cs-body > .cs-summary { grid-column: 1 / -1; grid-row: 1; }
  .cs--system.has-summary .cs-body > .cs-meta { grid-row: 2 / span 4; margin-top: clamp(48px, 6vw, 96px); }
}
@media (max-width: 899px) { .cs-summary { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) {
  .cs-summary { gap: 24px; padding: 40px 0 28px; }
  .cs-summary__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .cs-summary + .cs-intro { padding-top: 40px; }
}

/* ---------- Brand view note (?view=brand) ---------- */
.view-flag { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 9; display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 4px 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #0b0b0b; box-shadow: 0 0 0 1px rgba(11, 11, 11, .08), 0 6px 20px rgba(0, 0, 0, .1); font-size: 12px; font-weight: 500; line-height: 1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.view-flag__k { text-transform: uppercase; letter-spacing: .08em; color: #6b6b6b; white-space: nowrap; }
.view-flag a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #0b0b0b; color: #fff; white-space: nowrap; transition: background-color .2s; }
.view-flag a:hover { background: #333; }
.view-flag a:focus-visible { outline: 2px solid #0b0b0b; outline-offset: 2px; }
body.is-brand-view .site-footer .bar { padding-bottom: 60px; }
@media (max-width: 699px) { .view-flag a { min-height: 36px; } }
@media print { .view-flag { display: none; } }

/* ---------- About: point of view ---------- */
.about-pov > .label { margin-bottom: clamp(20px, 2.4vw, 32px); }
.pov__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); }
.pov__n { display: block; margin-bottom: 12px; font-size: var(--fs-label); font-weight: 500; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.pov__lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.5vw, 23px); line-height: 1.28; max-width: 22ch; }
.pov__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.pov__interests { margin-top: clamp(24px, 3vw, 36px); font-size: 15px; line-height: 1.55; }
.pov__interests .label { display: inline; margin-right: .9em; }
@media (min-width: 1024px) { section.about-pov { padding-left: 206px; } }
@media (max-width: 1023px) { .pov__list { grid-template-columns: minmax(0, 1fr); } .pov__list li + li { padding-top: 24px; border-top: 1px solid var(--line); } }
section.about-pov + section.about-more { padding-top: clamp(56px, 6vw, 96px); }

/* =====================================================================
   Design round 1 (panel 7): hero framing, credits grid, logo wall, side plates, mobile header
   ===================================================================== */
:root { --bg: #fff; }
body.dark, body.cs--film { --bg: #0f0f0f; }
body.has-accent.cs--film { --bg: #120f0d; }

/* Home hero: a top scrim under the nav, a left scrim behind the text, a fixed film grain. */
.hero__media::after { background:
  linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 140px),
  linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%),
  linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 55%); }
.hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px; }
.hero__eyebrow { opacity: 1; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero__sub, .hero__scroll { text-shadow: 0 1px 14px rgba(0,0,0,.35); }
/* The headline waits for the picture (main.js adds .is-in about 1s after the reel first plays). */
.hero__title.is-waiting { transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
.hero__title.is-waiting:not(.is-in) { opacity: 0; transform: translate3d(0, 22px, 0); }
@media (min-width: 1024px) { .hero__video { object-position: 30% 50%; } }

/* Header: "Ethan Zingalis, Creative Director" from 1024px, the name alone below. */
.brand__role { display: none; }
@media (min-width: 1024px) { .site-header .brand__role { display: inline; } }
/* Phones: past 40px the header frosts on every theme. */
@media (max-width: 809px) {
  html body .site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .3s var(--ease); }
  body:not(.dark):not(.cs--film) .site-header.is-scrolled { color: var(--black); }
  body:not(.dark):not(.cs--film) .site-header.is-scrolled .menu-btn { background: var(--black); color: var(--white); box-shadow: none; }
  body.dark .site-header.is-scrolled, body.cs--film .site-header.is-scrolled { color: var(--white); }
}

/* Brand-view note: clear of the safe area; on phones it waits until the opening has scrolled by. */
.view-flag { bottom: calc(16px + env(safe-area-inset-bottom)); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.view-flag:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; }

/* Case header: the hook is the one sub line under the title. */
.cs-role.cs-role--hook { max-width: 40em; font-size: clamp(18px, .45vw + 14px, 22px); line-height: 1.42; }
.cs-hero--editorial .cs-role.cs-role--hook { color: var(--ink-2); }

/* Credits and production: one 12-column grid; every cell four columns wide (eight for role and credits). */
.cs-outro { display: block; }
.cs-outro__title { margin-bottom: clamp(20px, 2.4vw, 32px); }
.cs-cr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px clamp(20px, 2.6vw, 40px); }
.cs-cr__cell { grid-column: span 4; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.cs-cr__cell--8 { grid-column: span 8; }
.cs-cr dt { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cs-cr dd { margin-top: 8px; font-size: 15px; line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.cs-cr dd ul { list-style: none; }
.cs-cr dd li + li { margin-top: 4px; }
.cs-cr dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cs-cr__credits li { font-weight: 500; }
.cs-cr__role { color: var(--muted); font-weight: 400; }
.cs-cr__role::after { content: ":"; }
body.has-accent .cs-cr dt { color: var(--accent); }
@media (max-width: 899px) { .cs-cr__cell { grid-column: span 6; } .cs-cr__cell--8 { grid-column: 1 / -1; } }
@media (max-width: 599px) { .cs-cr { gap: 20px; } .cs-cr__cell, .cs-cr__cell--8 { grid-column: 1 / -1; } }
/* System pages: no facts sidebar any more; the story runs the full column. */
@media (min-width: 1100px) { .cs--system .cs-body { display: block; } }

/* Chapters: number and heading always top-left, first in reading order; no flipped columns. */
.cs-chapter--flip { grid-template-columns: var(--cs-cols); }
.cs-chapter--flip > .cs-chapter__head, .cs-chapter--flip > .cs-chapter__body { order: 0; }

/* Side frames: small, flat plates (no shadow) pulled from the films. */
.cs-frame .float-frame__in, .cs--film .cs-frame .float-frame__in { box-shadow: none; border-radius: 8px; }
@media (min-width: 900px) { .cs-frame { width: min(62%, 210px, calc(230px * var(--r))); } .cs-frame--b { margin-left: min(24%, calc(100% - 210px)); } }
@media (min-width: 1280px) { .cs--film .cs-frame { width: min(168px, calc(200px * var(--r))); } }

/* Brand-layer photo plates (personal channel): rounded, flat. Pieces marked to wait hold until the first scroll. */
.bl-round .bl-c { border-radius: 10px; object-fit: cover; }
html:not(.has-scrolled) .bl-i.bl-wait { opacity: 0 !important; }

/* Gallery captions on dark pages: at least 4.5:1 on the darkest plate. */
body.cs--film .g-cap, body.dark .g-cap, body.cs--film .cs-cr__role { color: #a6a6a6; }
body.cs--film .g-ratio { border-color: rgba(255,255,255,.3); }

/* Logo wall: 1px gaps drawn in the rule colour, seven across from 1024px (13 marks: rows of 7 and 6),
   four from 768px, three below;
   a short last row is centred, so no empty cell is ever drawn. */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; padding: 1px 1px clamp(24px, 3vw, 48px); overflow: visible; --cols: 7; }
.brand-tile { flex: 0 0 calc((100% - 2px - (var(--cols) - 1) * 1px) / var(--cols)); margin: 0; border: 0; background: var(--white); box-shadow: 0 0 0 1px var(--line); aspect-ratio: 16 / 10; }
.brand-tile:hover, .brand-tile:focus-visible { background: #fafafa; }
@media (max-width: 1023px) { .brands { --cols: 4; } }
@media (max-width: 767px) { .brands { --cols: 3; --k: 28px; } .brand-tile { aspect-ratio: 4 / 3; } .brand-tile__count { display: none; } }
@media (max-width: 599px) { .brands { --cols: 3; } .brand-tile { aspect-ratio: 4 / 3; } }

/* Work: the two system studies as a wide pair, the tests as rows under them. */
.work-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-grid--pair .card--wide { grid-column: auto; }
.work-grid--pair .card--wide .card__media { aspect-ratio: 16 / 10; }
@media (max-width: 699px) { .work-grid--pair { grid-template-columns: minmax(0, 1fr); } }
.earlier--perf { margin-top: clamp(28px, 3vw, 40px); }
/* Work list mode: section rows, no decorative frames, and room for the brand-view note. */
.work-list { padding-bottom: calc(40px + 16px + env(safe-area-inset-bottom)); }
.wl-section { padding: clamp(28px, 3vw, 44px) 0 12px; border-bottom: 1px solid var(--line); }
body.is-list .head-frames { display: none; }
/* Work header frames fade in once decoded; no grey placeholder. */
.head-frame .float-frame__in { background: transparent; }
.head-frame { transition: opacity .7s var(--ease-out); }
.head-frame.is-decoding { opacity: 0 !important; animation: none !important; }

/* About Experience frames: fade from 0 to 1 as the row enters, then stay at full opacity. */
html.motion .tl-frame.rise:not(.in) { opacity: 0; }
html.motion .tl-frame.rise.in { animation: none; opacity: 1; transition: opacity 1s var(--ease-out); }

/* 404: display serif title, a looping brand clip beside it. */
.nf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(86svh, 820px); }
.nf__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-title); line-height: .96; letter-spacing: -.025em; }
.nf__text p { margin-top: 18px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nf__clip { margin: 0; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #000; }
@media (max-width: 767px) { .nf { grid-template-columns: minmax(0, 1fr); align-items: start; } .nf__clip { max-width: 320px; } }
@media (prefers-reduced-motion: reduce) { .hero__title.is-waiting { opacity: 1 !important; transform: none !important; } }

/* =====================================================================
   Design round 2 (design fixer, 2026-11-05)
   ===================================================================== */
/* Header brand: one inline run, so screen readers and innerText read "Ethan Zingalis, Creative Director". */
.site-header .brand__name { display: inline; }

/* Footer: one call to action, the heading and the large email. */
.site-footer .cta__mail { margin-top: clamp(24px, 3vw, 40px); }

/* Compact rows: brand and role on the second line, as on the cards. */
.er-brand > span:not(.sr-only):not(:last-child)::after { content: "\00b7"; margin: 0 .5em; }
.earlier--perf-only { margin-top: 0; }

/* Work list at phone width: the brand and role wrap instead of running off the edge. */
@media (max-width: 599px) {
  .wl-brand { display: flex; flex-wrap: wrap; row-gap: 2px; min-width: 0; }
  .wl-brand > span { white-space: normal; }
  .wl-brand > span:not(.wl-role) { white-space: nowrap; }
}

/* Case summary: proof (results, scale or reach) on one line across the facts column. */
.cs-summary__facts .cs-summary__proof { grid-column: 1 / -1; min-width: 0; }
.cs-summary__proof dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* System hero: the standard order. Brand, title and hook on the dark plate, then the board with nothing over it. */
.cs-hero--system::after, .cs-hero--system.cs-hero--light::after { display: none; }
.cs-hero--system .cs-hero__text { position: static; padding: clamp(40px, 7vw, 112px) var(--edge) clamp(32px, 4vw, 64px); }
.cs-hero--system .cs-title { font-size: var(--fs-title); max-width: 16ch; }
@media (max-width: 699px) { .cs-hero--system .cs-hero__text { padding: 28px var(--pad) 28px; } }

/* Side frames: a fixed 4:5 plate about two grid columns wide (only beside chapters with no gallery row under them). */
@media (min-width: 900px) {
  .cs-frame { --r: .8; width: clamp(176px, 15vw, 224px); }
  .cs-frame--b { margin-left: min(24%, calc(100% - 224px)); }
}
@media (min-width: 1280px) { .cs--film .cs-frame { width: clamp(176px, 14vw, 216px); } }

/* Gallery rhythm: gaps between rows capped, editorial rows no taller than the screen allows. */
.cs--editorial .g-row, .g-row { margin-bottom: clamp(48px, 6vw, 96px); }
@media (max-width: 699px) { .g-row, .cs--editorial .g-row { margin-bottom: 28px; } }
.cs--editorial .cs-media { padding: 0 0 clamp(16px, 2vw, 32px); }

/* Film rows: never wider than 1280px (no 720p clip upscaled past native), centred, and pairs share the
   same column as the full-width spot above them. */
.g-row.g-row--film { max-width: min(1280px, calc(var(--sum, 2.4) * min(var(--g-maxh), var(--hmax, 9999px)) + (var(--n, 1) - 1) * var(--gap))); margin-left: auto; margin-right: auto; }
.g-row:last-child, .cs--editorial .g-row:last-child { margin-bottom: 0; }

/* Long cases: tighter vertical rhythm. Rows are capped lower, chapters breathe less, and the lead
   still runs at 16:9 at most, so Red Kap, Omorpho, Sunday Swagger and 6Peat stay near 9,000px at 1440. */
.gallery, .cs-media, .cs--editorial .g-row--solo, .cs--editorial .g-row--full { --g-maxh: min(74vh, 660px); }
.cs-chapter { padding: clamp(48px, 6vw, 88px) 0; }
.cs-media:not([hidden]) + .cs-chapter { padding-top: clamp(48px, 6vw, 88px); }
.cs-chapter--statement { padding: clamp(56px, 7vw, 112px) 0; }
.cs-media { padding-bottom: clamp(8px, 1.6vw, 24px); }
.cs-lead { aspect-ratio: 16 / 9; max-height: 80svh; }
@media (max-width: 699px) { .cs-lead { aspect-ratio: 4 / 5; max-height: none; } }
.cs-outro { padding: clamp(48px, 6vw, 88px) 0; }
.gallery, .cs-media, .cs--editorial .g-row--solo, .cs--editorial .g-row--full { --g-maxh: min(68vh, 600px); }
.cs-lead { max-height: 72svh; }
.cs-hero--editorial { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 80px)); }
.cs-hero--editorial .cs-hero__text { padding-bottom: clamp(28px, 3vw, 48px); }
.cs-next__link { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); }
.cs-summary { padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 3.4vw, 48px); }
.gallery, .cs-media, .cs--editorial .g-row--solo, .cs--editorial .g-row--full { --g-maxh: min(62vh, 560px); }
.g-row, .cs--editorial .g-row { margin-bottom: clamp(40px, 4.4vw, 64px); }
.cs-lead { max-height: 66svh; }
.cs-chapter--statement { padding: clamp(48px, 6vw, 88px) 0; }
.cs-next__media { width: min(50%, var(--nw, 9999px), calc(min(46vh, 420px) * var(--r, 1.5))); }
@media (max-width: 699px) { .cs-next__media { width: min(100%, var(--nw, 9999px)); } }
@media (min-width: 1200px) { .cs-cr__cell { grid-column: span 3; } .cs-cr__cell--8 { grid-column: span 6; } }
.gallery, .cs-media, .cs--editorial .g-row--solo, .cs--editorial .g-row--full { --g-maxh: min(58vh, 520px); }
.cs-lead { max-height: 62svh; }
.cs-related__grid .card__media { aspect-ratio: 16 / 10; }
.cs--film .cs-chapter, .cs--film .cs-chapter--statement { max-width: 68ch; }
.gallery, .cs-media, .cs--editorial .g-row--solo, .cs--editorial .g-row--full { --g-maxh: min(62vh, 560px); }
.cs--film .gallery, .cs--film .cs-media { --g-maxh: min(54vh, 480px); }
.cs--film .cs-chapter, .cs--film .cs-chapter--statement { padding: clamp(40px, 5vw, 72px) 0; }
.cs--film .cs-media:not([hidden]) + .cs-chapter { padding-top: clamp(40px, 5vw, 72px); }

/* Lead still with a phone crop: the picture fills the frame like the still did. */
.cs-lead__pic { position: absolute; inset: 0; display: block; }
/* Omorpho lead: the square frame sits high, so the head and the raised dots both stay in the 16:9 crop. */
body[data-slug="omorpho-gravity-sportswear"] .cs-lead__media { object-position: 50% 24%; }

/* Logo wall: each mark's optical size (--s, about 0.8 to 1.3), applied as a transform so tiles keep their grid. */
.brand-tile__logo { transform: scale(var(--s, 1)); }

/* Work header frames: full opacity once decoded. */
.head-frame:not(.is-decoding) { opacity: 1; }
html.motion .head-frame.rise.in:not(.is-decoding) { opacity: 1; }

/* Home reel: a little more grain and a deeper bottom scrim, so 720p compression reads less. As the reel
   collapses into the cards the frame moves to 50% 30%, keeping faces in the inset. */
.hero__media::before { opacity: .06; }
.hero__media::after { background:
  linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 140px),
  linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%),
  linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,.28) 34%, rgba(0,0,0,0) 62%); }
.hero__video { object-position: 50% calc(50% - var(--t, 0) * 20%); }
@media (min-width: 1024px) { .hero__video { object-position: calc(30% + var(--t, 0) * 20%) calc(50% - var(--t, 0) * 20%); } }
@media (max-width: 767px) {
  .hero__media::after { background:
    linear-gradient(to bottom, rgba(0,0,0,.4), rgba(0,0,0,0) 120px),
    linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 55%); }
}
/* A wide film alone on its row runs at its native width up to 1280px, so it lines up with the film pair
   under it (Sam's Club Store over Office and Laundry) and no 720p clip is drawn past native size. */
.g-row.g-row--film.g-row--full { max-width: min(1280px, calc(var(--sum, 1.78) * var(--hmax, 720px))); }

/* 6Peat smoke: more contrast and a firmer edge, so the plume reads as an object beside the text. */
.bl-contrast .bl-c { filter: contrast(1.35) brightness(1.15) saturate(1.2); }
.bl-screen.bl-contrast video.bl-c, .bl-screen.bl-contrast img.bl-c { -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent); mask-image: radial-gradient(closest-side, #000 74%, transparent); }

/* ---------- Design fix, round 3 ---------- */
/* Case kicker: "Brand · card title" above the hook H1. */
.cs-kicker__dot { opacity: .5; font-size: clamp(17px, 1.5vw, 22px); }
.cs-kicker { display: inline-flex; align-items: center; min-height: 32px; font-size: clamp(17px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.01em; opacity: .72; }
.cs-eyebrow { gap: 4px 10px; }

/* Vertical films: the first runs as a hero tile, the alternate cut (or the next Shorts) smaller beside it. */
@media (min-width: 1024px) {
  .g-row.g-row--lead { max-width: none; justify-content: center; align-items: flex-end; }
  .g-row--lead > .g-item { flex: none !important; }
  .g-row--lead > .g-item:first-child { width: min(29vw, 460px, calc(76vh * var(--r, .5625))); }
  .g-row--lead > .g-item + .g-item { width: calc(min(29vw, 460px, calc(76vh * var(--r, .5625))) * .62); }
}
@media (max-width: 767px) {
  .g-row.g-row--lead:not(.g-row--lead-n) > .g-item { flex: 1 1 100% !important; width: 100%; }
  .g-row.g-row--lead-n { max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .g-row.g-row--lead-n::-webkit-scrollbar { display: none; }
  .g-row.g-row--lead-n > .g-item { flex: 0 0 78% !important; scroll-snap-align: start; }
}
/* "Play with sound": a speaker and "Sound" on phones. */
.play-sound__icon.play-sound__icon--speaker { width: auto; height: auto; border: 0; display: inline-flex; }
.play-sound__short { display: none; }
@media (max-width: 767px) {
  .play-sound--sound { gap: 7px; }
  .play-sound--sound .play-sound__long { display: none; }
  .play-sound--sound .play-sound__short { display: inline; }
}

/* More from the brand, one card: a compact row, not a part-empty three-column grid. */
.cs-related__grid.cs-related__grid--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.card.card--row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0 clamp(16px, 2.4vw, 32px); align-items: center; }
.card--row .card__media { aspect-ratio: 3 / 2; }
.card--row .card__body { padding-top: 0; }
@media (max-width: 599px) { .card.card--row { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); } }

/* Home intro links read as links. */
.intro p a:not(.more-link) { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; transition: opacity .2s; }
.intro p a:not(.more-link):hover { opacity: .6; }

/* Light pages on phones: the scrolled header is opaque, as on desktop, so nothing shows through. */
@media (max-width: 809px) {
  body:not(.dark):not(.cs--film) .site-header.is-scrolled { background: var(--bg, #fff); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Work chips on phones: both edges fade only when there is more to scroll that way. */
@media (max-width: 767px) {
  .filters { --fl: 0px; --fr: 24px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
  .filters.is-scrolled-start { --fl: 24px; }
  .filters.is-scrolled-end { --fr: 0px; }
}
/* Work header frames after a filter change: the whole set fades in together and ends fully opaque. */
.head-frames.is-refresh .head-frame:not(.is-decoding) { opacity: 1 !important; }
html.motion .head-frames.is-refresh { animation: hf-set-in .5s var(--ease-out) both; }
@keyframes hf-set-in { from { opacity: 0; } to { opacity: 1; } }
/* 6Peat smoke: softer contrast and a wide radial feather, so the outer edge dissolves into the black. */
.bl-i.bl-feather video.bl-c, .bl-i.bl-feather img.bl-c { filter: contrast(1.06) brightness(1.02) saturate(.92); -webkit-mask-image: radial-gradient(closest-side, #000 18%, rgba(0,0,0,.55) 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 18%, rgba(0,0,0,.55) 55%, transparent 100%); }
/* Side frames (1200px and up, not film pages): beside the chapter heading instead of under it, so a short
   chapter is no taller than its frame. The heading wraps to the left of the frame. */
@media (min-width: 1200px) {
  body:not(.cs--film) .cs-chapter__head:has(> .cs-frame) { padding-right: calc(min(210px, 184px) + clamp(28px, 3vw, 48px)); min-height: 290px; }
  body:not(.cs--film) .cs-chapter__head > .cs-frame { position: absolute; top: 4px; right: 0; margin: 0; width: min(210px, calc(230px * var(--r))); }
  body:not(.cs--film) .cs-chapter__head > .cs-frame--b { margin: 0; top: 40px; }
  body:not(.cs--film) .cs-chapter__head:has(> .cs-frame) { position: sticky; }
}
/* Film rows run no wider than 1120px, so a 16:9 spot alone on its row and the pair under it stay one
   column and a long page stays near 9,000px at 1440. */
.g-row.g-row--film { max-width: min(1120px, calc(var(--sum, 2.4) * min(var(--g-maxh), var(--hmax, 9999px)) + (var(--n, 1) - 1) * var(--gap))); }
.g-row.g-row--film.g-row--full { max-width: min(1120px, calc(var(--sum, 1.78) * var(--hmax, 720px))); }
/* A run of five or more statics on a system page scrolls sideways in one row on wide screens. */
@media (min-width: 700px) {
  .g-row--grid.g-row--scroll { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3.25); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 10px; overscroll-behavior-x: contain; }
  .g-row--grid.g-row--scroll > .g-item { scroll-snap-align: start; }
}
/* Four statics in a run sit four across on wide screens (one row, not three and one). */
@media (min-width: 1000px) { .g-row--grid.g-row--grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Film pages: a frame-by-frame strip keeps to the same 1120px column as the films. */
.cs--film .g-row.g-row--strip { max-width: min(1120px, calc(var(--frames, 8) * var(--fw, 720px))); }

/* ---------- Design fix, round 5 ---------- */
/* Home expertise: the named projects link inside the sentence. */
.disc__text a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(11,11,11,.3); transition: text-decoration-color .2s; }
.disc__text a:hover { text-decoration-color: currentColor; }
/* Case kicker: the dot belongs to the title, so on phones brand and title stack and the dot goes. */
.cs-kicker__dot { margin-right: .3em; }
@media (max-width: 599px) {
  .cs-eyebrow { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cs-kicker__dot { display: none; }
}
/* Statement chapters: the heading is a label like IDEA and CREDITS AND PRODUCTION, not display type. */
.cs-chapter--statement .cs-chapter__title { font-family: var(--font); font-size: var(--fs-label); line-height: 1.4; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
/* Work, brand view: the way back to all work at the top of the grid (same words as the fixed note). */
.filter-pill--view { gap: 10px; padding: 4px 4px 4px 14px; margin-top: 0; }
.filter-pill--view .view-flag__k { font-size: 12px; }
.filter-pill--view a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #0b0b0b; color: #fff; font-size: 12px; white-space: nowrap; transition: background-color .2s; }
.filter-pill--view a:hover { background: #333; }
/* System grid rows of one or two pieces: centered at the column width, not left with an empty half. */
@media (min-width: 700px) {
  .g-row--grid.g-row--few { grid-template-columns: repeat(var(--n, 1), calc((100% - 2 * var(--gap)) / 3)); justify-content: center; }
}
/* Two films at one size (gallery items marked layout "full"), each at least 360px wide on desktop. */
@media (min-width: 1024px) {
  .g-row--lead.g-row--lead-eq > .g-item:first-child, .g-row--lead.g-row--lead-eq > .g-item + .g-item { width: min(29vw, 460px, max(360px, calc(76vh * var(--r, .5625)))); }
  .g-row--lead.g-row--lead-eq { align-items: flex-start; }
}
/* Red Kap lead on wide screens: sit higher and drift with less zoom, so the whole OUTERWEAR wordmark
   stays in frame. The phone crop (Spring Sale) is untouched. */
@media (min-width: 700px) {
  body[data-slug="red-kap-workwear"] .cs-lead__media { object-position: 50% 26%; }
  html.motion body[data-slug="red-kap-workwear"] .cs-lead__media[data-drift] { scale: 1.04; }
}
@media (max-width: 699px) {
  .g-row--grid.g-row--few:has(> .g-item:only-child) { grid-template-columns: calc((100% - 10px) / 2); justify-content: center; }
}

/* ---------- Watch the reel (home hero and About) ---------- */
.hero__reel { margin-top: clamp(16px, 1.6vw, 24px); }
.hero__reel .reel-btn { box-shadow: 0 2px 12px rgba(0,0,0,.22); }
.reel-btn { gap: 9px; white-space: nowrap; }
.reel-btn__icon { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.reel-btn__time { opacity: .62; font-variant-numeric: tabular-nums; }
.reel-slot:not([hidden]) { display: inline-flex; }
@media (prefers-reduced-motion: reduce) { .reel-btn, .reel-btn:hover { transition: none; transform: none; } }
/* With the reel button beside Get in touch, the actions row may use the full bio column. */
.bio .actions { max-width: none; }

/* Previous and All work inside the dark Next band (main.js moves .cs-more there). */
.cs-next, .cs-next .cs-next__link { background: var(--black); }
.cs-next .cs-more { max-width: none; padding: 14px var(--edge) 18px; border-top: 1px solid var(--line-dark); }
.cs-next .cs-more > a:last-child { flex: none; white-space: nowrap; }
.cs-next .cs-prev { min-width: 0; }
/* The footer follows the dark Next band directly, so its call to action needs less air above it. */
main:has(.cs-next) + .site-footer .cta, main:has(.cs-next) ~ .site-footer .cta { padding-top: clamp(48px, 6vw, 88px); }
.cs-next .cs-more .label { color: rgba(255,255,255,.85); }
.cs-next .cs-more a.label { display: inline-flex; align-items: center; min-height: 44px; }
.cs-next .cs-more a.label:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.cs-next .cs-prev__k { color: var(--muted-dark); }

/* Page outlines on the landing page studies (main.js outlineRow). */
.g-row--outline { display: flex; justify-content: center; }
.g-item--outline { flex: none; }
.g-outline { position: relative; display: block; max-height: 900px; overflow: hidden; border-radius: var(--radius); background: #ececec; }
.g-outline > img { display: block; width: 100%; height: auto; }
.g-outline:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(236,236,236,0), #ececec); pointer-events: none; }
.g-outline.is-open { max-height: none; }
.g-outline__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; background: none; border: 0; color: var(--black); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.g-outline__more[hidden] { display: none; }
@media (max-width: 699px) { .g-outline { max-height: 130vw; } }
