/* EXF site fixes (Nov 2026) */

/* Homepage: shorter scroll between sections so it never sits on a black screen.
   Was 75vh / 50vh of empty scroll. Change the numbers here to tune the pace. */
.section-group > .section-spacer.is-medium { padding-top: 20vh !important; }
.section-group > .section-spacer.tablet-small { padding-top: 12vh !important; }
@media screen and (max-width: 991px) {
  .section-group > .section-spacer.tablet-small { padding-top: 40px !important; }
}

/* Work page canvas: 3 extra rows (1 top, 2 bottom) to fit the McLaren, Almost Home,
   Puma, Audi and Facebook tiles without overlapping. Was 15 rows / 200% height. */
.work-collection-main { height: 240% !important; }
.canvas-grid-list { grid-template-rows: repeat(18, minmax(0, 1fr)) !important; }

/* Case study stats row (big numbers) */
.exf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 30px; padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,.2); }
.exf-stat-num { font-size: clamp(3rem, 6vw, 6rem); font-weight: 700; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; margin: 0 0 .75rem; }
.exf-stat-label { opacity: .7; }
.exf-note { opacity: .5; margin-top: 1rem; }
@media screen and (max-width: 991px) { .exf-stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }

/* Episode grid: click a still to play the episode inline (js/yt-lite.js) */
.exf-eps-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.exf-eps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1rem; }
.exf-ep { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.exf-ep-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.exf-ep-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s ease; }
.exf-ep:hover .exf-ep-media img { transform: scale(1.03); }
.exf-ep-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.exf-ep.is-playing .exf-ep-media img, .exf-ep.is-playing .exf-ep-play { opacity: 0; }
.exf-ep-play { position: absolute; left: 1rem; bottom: 1rem; }
.exf-ep-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
.exf-ep-views { font-size: 2.25rem; font-weight: 700; line-height: .9; letter-spacing: -.04em; margin-top: .5rem; }
.exf-ep-line { opacity: .7; margin-top: .5rem; }
@media screen and (max-width: 991px) { .exf-eps { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 600px) { .exf-eps { grid-template-columns: 1fr; } }
.exf-ep-line { text-align: left; text-transform: none; letter-spacing: 0; }

/* ASCII world map (tools/mapgen/asciimap.mjs): land in dots, featured countries in E/X/F */
.exf-map-wrap { padding: 3rem 0 1rem; }
.exf-map { margin: 0; font-family: "Courier New", Courier, monospace; line-height: 1; letter-spacing: 0;
  font-size: min(calc((100vw - 60px - 17px) / (var(--cols, 200) * 0.6)), 19px); color: rgba(225,222,220,.42); white-space: pre; overflow: hidden; }
@media screen and (max-width: 991px) { .exf-map { font-size: calc((100vw - 2rem - 4px) / (var(--cols, 200) * 0.6)); } }
.exf-map b { color: #fff; font-weight: 700; text-shadow: 0 0 4px rgba(255,255,255,.5); animation: exf-glow 2.4s ease-in-out infinite alternate; }
@keyframes exf-glow { from { opacity: .75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .exf-map b { animation: none; } }
.exf-map-legend { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.5rem; }
.exf-map-legend span::before { content: "■ "; }

/* Roll call: big list of names (sellers, talent) */
.exf-roll { display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem 30px; padding: 45px 0; }
.exf-roll-item { font-size: clamp(1.6rem, 3.4vw, 3.4rem); font-weight: 700; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; }
.exf-roll-item sup { font-family: "Courier New", monospace; font-size: .8rem; font-weight: 400; letter-spacing: 0; margin-left: .25rem; opacity: .6; vertical-align: top; }
.exf-roll-item:nth-child(3n+2) { opacity: .55; }

/* Pull quote */
.exf-quote { padding: 4rem 0; max-width: 60rem; }
.exf-quote p { font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.exf-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }

/* case study timeline */
.exf-tl{display:flex;flex-direction:column;border-top:1px solid rgba(255,255,255,.18)}
.exf-tl-row{display:grid;grid-template-columns:minmax(9rem,16%) 1fr;gap:1.5rem;align-items:baseline;padding:1.1rem 0;border-bottom:1px solid rgba(255,255,255,.18)}
.exf-tl-date{opacity:.55}
.exf-tl-name{font-size:clamp(1.25rem,2.4vw,2.25rem);line-height:1.1;text-transform:uppercase;letter-spacing:-.01em}
@media (max-width:767px){.exf-tl-row{grid-template-columns:1fr;gap:.35rem}}
.exf-pair{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.exf-pair img{width:100%;height:100%;aspect-ratio:3/2;object-fit:cover;display:block}
@media (max-width:767px){.exf-pair{grid-template-columns:1fr}}
.exf-xlink{display:inline-block;padding:1rem 0;opacity:.8;border-bottom:1px solid rgba(255,255,255,.3)}.exf-xlink:hover{opacity:1}

/* ---------- the collective ---------- */
.exf-col-top { padding-top: 9rem; }
.exf-col-head { display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 2rem; }
.exf-col-head a { color: inherit; text-decoration: none; }
.exf-col-h1 { margin: 0; line-height: .85; text-transform: uppercase; word-break: break-word; }
.exf-col-headrow { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-end; }
.exf-col-sub { max-width: 34rem; text-transform: none; letter-spacing: 0; line-height: 1.45; opacity: .8; }
.exf-col-right { text-align: right; }
.exf-roster { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.18); }
.exf-roster-row { display: grid; grid-template-columns: 5rem 1fr minmax(12rem, 22rem) 2rem; align-items: center; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.18); color: inherit; text-decoration: none; transition: opacity .3s ease; }
.exf-roster-name { font-size: clamp(2.4rem, 7vw, 7.2rem); line-height: .9; text-transform: uppercase; letter-spacing: -.04em; font-weight: 700; transition: transform .35s ease; }
.exf-roster-role { opacity: .6; line-height: 1.5; }
.exf-roster-arrow { font-size: 1.6rem; opacity: 0; transform: translateX(-8px); transition: all .3s ease; }
.exf-roster:hover .exf-roster-row { opacity: .3; }
.exf-roster .exf-roster-row:hover { opacity: 1; }
.exf-roster-row:hover .exf-roster-name { transform: translateX(.6rem); }
.exf-roster-row:hover .exf-roster-arrow { opacity: 1; transform: none; }
.exf-roster-row[aria-current="page"] { opacity: .3; pointer-events: none; }
.exf-roster.is-compact .exf-roster-name { font-size: clamp(1.6rem, 3.6vw, 3.4rem); }
.exf-roster-preview { position: fixed; left: 0; top: 0; width: 22rem; aspect-ratio: 16 / 10; object-fit: cover; pointer-events: none; z-index: 50;
  opacity: 0; transition: opacity .25s ease; border-radius: 2px; }
.exf-roster-preview.is-on { opacity: 1; }
.exf-col-card { display: flex; flex-direction: column; gap: .5rem; }
.exf-col-who { color: inherit; text-decoration: none; opacity: .6; }
.exf-col-who:hover { opacity: 1; }
.exf-col-title { font-size: 1.15rem; }
.exf-eps.exf-col-feature { grid-template-columns: 1fr; }
.exf-col-join { display: flex; flex-direction: column; gap: 1rem; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.exf-col-join h2 { margin: 0; }
.exf-col-pn { display: flex; gap: 2rem; }
.exf-col-pn a { color: inherit; text-decoration: none; }
a.exf-tl-row { color: inherit; text-decoration: none; }
a.exf-tl-row:hover .exf-tl-name { transform: translateX(.5rem); }
.exf-tl-name { transition: transform .3s ease; }
.exf-home-collective .exf-xlink { margin-top: 1.5rem; }
@media (max-width: 767px) {
  .exf-col-top { padding-top: 7rem; }
  .exf-col-headrow { flex-direction: column; align-items: flex-start; }
  .exf-col-right { text-align: left; }
  .exf-roster-row { grid-template-columns: 2.6rem 1fr; gap: .4rem 1rem; }
  .exf-roster-role { grid-column: 2; }
  .exf-roster-arrow { display: none; }
  .exf-roster:hover .exf-roster-row { opacity: 1; }
}
@media screen and (min-width: 992px) {
  .exf-home-collective .cc-clients-home > .max-width-medium { grid-area: 1 / 1 / 2 / 8; align-self: start; }
  .exf-home-collective .client-list-home { grid-area: 2 / 1 / 4 / 9; place-self: start; }
}
.exf-home-collective .clients-list-row { justify-content: flex-start; column-gap: 2.2rem; }
@media screen and (min-width: 992px) { .exf-home-collective .client-list-home { margin-top: 2.5rem; } }

/* ---------- what we're up to ---------- */
.exf-now { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.18); }
.exf-now-row { display: grid; grid-template-columns: minmax(10rem, 18%) 1fr minmax(8rem, 16rem); gap: 1.5rem; align-items: center;
  padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.exf-now-when span { opacity: .55; }
.exf-now-what { font-size: clamp(2.2rem, 6vw, 6.4rem); line-height: .9; text-transform: uppercase; letter-spacing: -.04em; font-weight: 700; }
.exf-now-where { opacity: .6; text-align: right; }
.exf-now-row.is-past { opacity: .35; }
.exf-now-row.is-live .exf-now-when::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%;
  background: currentColor; margin-right: .5rem; animation: exfpulse 1.4s ease-in-out infinite; }
@keyframes exfpulse { 50% { opacity: .2; } }
@media (max-width: 767px) {
  .exf-now-row { grid-template-columns: 1fr; gap: .5rem; }
  .exf-now-where { text-align: left; }
}

/* ================= UX layer (tools/ux.py) ================= */
/* loader hint */
.exf-enter-hint { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); color: #fff; z-index: 5;
  background: #000; padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.35);
  animation: exfhint 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes exfhint { 50% { color: rgba(255,255,255,.45); } }
/* next project */
.exf-next { padding: 90px 0 45px; }
.exf-next-link { display: grid; grid-template-columns: 1fr minmax(16rem, 38%); gap: 30px; align-items: end; color: inherit; text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.5rem; }
.exf-next-name { font-size: clamp(2.6rem, 8vw, 8.5rem); line-height: .9; text-transform: uppercase; letter-spacing: -.04em; font-weight: 700; margin: .8rem 0 .6rem; transition: transform .35s ease; }
.exf-next-sub { opacity: .6; }
.exf-next-img { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.exf-next-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.exf-next-link:hover .exf-next-name { transform: translateX(.8rem); }
.exf-next-link:hover .exf-next-img img { transform: scale(1.04); }
.exf-next .exf-xlink { margin-top: 1.6rem; }
@media screen and (max-width: 767px) { .exf-next-link { grid-template-columns: 1fr; } .exf-next-img { order: -1; } }
/* work page view switch labels */
.grid-view-trigger, .loose-view-trigger { position: relative; }
.exf-view-label { position: absolute; right: calc(100% + .5rem); top: 50%; transform: translateY(-50%); white-space: nowrap; opacity: .6; pointer-events: none; }
.loose-view-trigger .exf-view-label { display: none; }
.work-view-switch:hover .exf-view-label { opacity: 1; }
.nav-menu-link, .exf-enter-hint { white-space: nowrap; }

/* ================= Menu: one minimal dropdown, top right (brand: black, white, grey #E1DEDC; Favorit; 30px grid) ================= */
.nav-menu-overlay { inset: auto !important; top: 4rem !important; right: 30px !important; left: auto !important; bottom: auto !important;
  width: 21rem; max-width: calc(100vw - 60px); height: auto !important; max-height: calc(100vh - 6rem); overflow-y: auto;
  background: #000 !important; border: 1px solid rgba(225,222,220,.22); -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.container-large.cc-menu-overlay { height: auto; min-height: 0; padding: 0 !important; display: block; max-width: none; }
.grid.cc-nav-menu-overlay { display: flex !important; flex-direction: column; align-items: stretch !important; justify-content: flex-start !important;
  gap: 0 !important; height: auto !important; padding: 0 !important; }
.grid.cc-nav-menu-overlay > * { grid-area: auto !important; }
.cc-nav-menu-overlay .menu-overlay-row { display: flex; flex-direction: column; align-items: stretch; margin: 0 !important; }
.cc-nav-menu-overlay .menu-overlay-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 13px 0; border-bottom: 1px solid rgba(225,222,220,.16); color: #fff; text-decoration: none; }
.cc-nav-menu-overlay .menu-overlay-row:first-child .menu-overlay-link { padding-top: 0; }
.cc-nav-menu-overlay .heading-style-d2 { font-size: 1.875rem !important; line-height: .9; letter-spacing: -.04em; margin: 0; transition: transform .3s ease, color .25s ease; }
.cc-nav-menu-overlay .menu-overlay-number { margin: 0; }
.cc-nav-menu-overlay .menu-overlay-number .heading-style-h4 { font-family: var(--type-base--secondary); font-weight: 400; font-size: .8125rem;
  letter-spacing: 0; line-height: 1; color: #E1DEDC; opacity: .7; }
.cc-nav-menu-overlay .menu-overlay-link:hover .heading-style-d2 { transform: translateX(6px); }
.cc-nav-menu-overlay .menu-overlay-link.w--current .heading-style-d2 { color: #E1DEDC; opacity: .55; }
.cc-nav-menu-overlay .flex-v-left.responsive-styles { margin-top: 30px; gap: 6px; align-items: flex-start; }
.cc-nav-menu-overlay .flex-v-left.responsive-styles.cc-left { margin-top: 18px; }
.cc-nav-menu-overlay .flex-v-left.responsive-styles.cc-left .text-weight-bold { font-size: .8125rem; letter-spacing: -.01em; }
.cc-nav-menu-overlay .flex-v-left.responsive-styles.cc-left .mono-caps { font-size: 12px; color: #E1DEDC; opacity: .6; }
@media screen and (max-width: 767px) {
  .nav-menu-overlay { top: 3.6rem !important; right: 15px !important; width: calc(100vw - 30px); max-width: none; padding: 24px; }
  .cc-nav-menu-overlay .heading-style-d2 { font-size: 1.75rem !important; }
}

/* ================= Brand spacing: 30px margins and gutters on desktop ================= */
@media screen and (min-width: 992px) {
  .padding-global { padding-left: 30px; padding-right: 30px; }
  .padding-nav { padding-left: 30px; padding-right: 30px; }
  .work-container { padding-left: 30px; padding-right: 30px; }
  .project-intro { padding-left: 30px; padding-right: 30px; }
}

/* ---------- Compact case studies (tools/compact.py) ---------- */
/* films: 2 across, pop out into the player */
[data-exf-case] .exf-eps { grid-template-columns: repeat(2, 1fr); gap: 45px 30px; }
[data-exf-case] .exf-eps.exf-eps-one { grid-template-columns: 1fr; max-width: calc(50% - .5rem); }
.exf-film-prev { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.exf-ep:hover .exf-film-prev { transform: scale(1.03); }
.exf-ep-play { background: rgba(0,0,0,.55); padding: .35rem .6rem; transition: background .25s ease, color .25s ease; z-index: 2; }
.exf-ep:hover .exf-ep-play { background: #fff; color: #000; }
@media screen and (max-width: 600px) {
  [data-exf-case] .exf-eps { grid-template-columns: 1fr; gap: 1.5rem; }
  [data-exf-case] .exf-eps.exf-eps-one { max-width: none; }
}
/* stills: tight justified rows, click to enlarge */
.exf-gal { --rh: 17rem; display: flex; flex-wrap: wrap; gap: 30px; }
.exf-gal::after { content: ""; flex-grow: 1000000; }
.exf-gal-item { position: relative; display: block; overflow: hidden; background: #000; aspect-ratio: var(--ar);
  flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--rh)); max-height: calc(var(--rh) * 1.6); cursor: zoom-in; }
.exf-gal-item img, .exf-gal-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, opacity .3s ease; }
.exf-gal-item:hover img { transform: scale(1.03); }
.exf-gal-loop { cursor: default; }
.exf-gal-sec + .exf-films-sec, .exf-films-sec + .exf-gal-sec { margin-top: 0; }
@media screen and (max-width: 991px) { .exf-gal { --rh: 12rem; gap: 20px; } }
@media screen and (max-width: 600px) { .exf-gal { --rh: 7.25rem; gap: 10px; } }

/* viewer */
.exf-lb { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.94); display: none;
  align-items: center; justify-content: center; padding: 4.5rem 4.5rem 4rem; }
.exf-lb.is-open { display: flex; animation: exfLbIn .25s ease; }
@keyframes exfLbIn { from { opacity: 0 } to { opacity: 1 } }
html.exf-lb-lock, html.exf-lb-lock body { overflow: hidden; }
.exf-lb-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.exf-lb-img, .exf-lb-video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; background: #000; }
.exf-lb-video { width: min(100%, calc((100vh - 8.5rem) * 16 / 9)); }
.exf-lb-frame { position: relative; width: min(100%, calc((100vh - 8.5rem) * 16 / 9)); aspect-ratio: 16 / 9; }
.exf-lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.exf-lb button { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; padding: .5rem; }
.exf-lb button:hover { opacity: .6; }
.exf-lb-close { position: absolute; top: 1.1rem; right: 1.25rem; }
.exf-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.exf-lb-prev { left: .75rem; } .exf-lb-next { right: .75rem; }
.exf-lb.is-single .exf-lb-nav { display: none; }
.exf-lb-cap { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; color: #fff; opacity: .75; text-align: center; }
@media screen and (max-width: 600px) {
  .exf-lb { padding: 3.5rem .5rem 3.5rem; }
  .exf-lb-nav { top: auto; bottom: .6rem; transform: none; }
}
.exf-gal.is-js::after { display: none; }
.exf-gal.is-js .exf-gal-item { flex: none; aspect-ratio: auto; max-height: none; }
/* chapter: a lone film with its first stills beside it */
.exf-chap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
[data-exf-case] .exf-chap .exf-eps { display: block; max-width: none; }
.exf-chap-stills { display: grid; gap: 30px; aspect-ratio: 16 / 9; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.exf-chap-stills .exf-gal-item { aspect-ratio: auto; height: 100%; width: 100%; min-height: 0; max-height: none; }
.exf-chap-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.exf-chap-n2 { grid-template-rows: 1fr; }
.exf-chap-n3 .exf-gal-item:first-child { grid-row: span 2; }
.exf-chap-sec + .exf-gal-sec .work-container { padding-top: 30px; }
.exf-gal-sec, .exf-films-sec, .exf-chap-sec { padding-top: 45px; padding-bottom: 45px; }
@media screen and (max-width: 767px) { .exf-gal-sec, .exf-films-sec, .exf-chap-sec { padding-top: 24px; padding-bottom: 24px; } }
@media screen and (max-width: 600px) {
  .exf-chap { grid-template-columns: 1fr; gap: .4rem; }
  .exf-chap-stills { gap: .4rem; }
  .exf-lb-cap { left: 4rem; right: 4rem; }
}
.exf-chap-head { align-items: start; }
.exf-chap-title h2 { margin: 0; }
@media screen and (max-width: 600px) { .exf-chap-head { gap: 1rem; } }
/* Work page: a soft black band under the header so canvas tiles and ASCII never sit behind the menu */
@media screen and (min-width: 992px) {
  body:has(.work-canvas) nav.cc-nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4.2rem;
    background: linear-gradient(#000 55%, rgba(0,0,0,0)); pointer-events: none; z-index: -1; }
}
.cc-nav-menu-overlay .flex-v-left.responsive-styles { text-align: left; justify-content: flex-start; margin-left: 0 !important; margin-right: 0 !important; }
@media screen and (max-width: 991px) { .cc-nav-menu-overlay .flex-v-left.responsive-styles { align-items: flex-start !important; text-align: left !important; } }
/* film grids never end with one card on its own: an odd count finishes with a row of three */
@media screen and (min-width: 601px) {
  [data-exf-case] .exf-eps:not(.exf-chap-film) { grid-template-columns: repeat(6, 1fr); }
  [data-exf-case] .exf-eps:not(.exf-chap-film) > * { grid-column: span 3; }
  [data-exf-case] .exf-eps:not(.exf-chap-film) > :last-child:nth-child(odd):not(:only-child),
  [data-exf-case] .exf-eps:not(.exf-chap-film) > :nth-last-child(2):nth-child(even),
  [data-exf-case] .exf-eps:not(.exf-chap-film) > :nth-last-child(3):nth-child(odd) { grid-column: span 2; }
}
/* chapters with 5 or 6 stills beside the film */
.exf-chap-n5, .exf-chap-n6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.exf-chap-n5 .exf-gal-item:first-child { grid-row: span 2; }
.exf-chap-head .exf-chap-title .mono-caps { margin-bottom: 12px; opacity: .7; }
/* a film beside its chapter title: the title is set big so the column is filled, not a small word above empty space */
@media screen and (min-width: 601px) {
  .exf-chap-head { align-items: stretch; }
  .exf-chap-head .exf-chap-title { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%;
    border-top: 1px solid rgba(225,222,220,.22); padding-top: 18px; }
  .exf-chap-head .exf-chap-title h2 { font-size: clamp(2.8rem, 5.4vw, 6.25rem); line-height: .9; letter-spacing: -.04em; text-transform: uppercase;
    font-weight: 700; margin: 0; overflow-wrap: anywhere; }
  .exf-chap-head .exf-chap-film .exf-ep-meta { min-height: 1.6rem; }
}

/* EXF.POST (/post): the lead film runs the full container width, the rest sit 2-across like the case pages */
[data-exf-post] .exf-eps.exf-col-feature { display: grid; grid-template-columns: 1fr; max-width: none; }
[data-exf-post] .exf-eps.exf-col-feature > * { grid-column: 1 / -1 !important; }
[data-exf-post] main > section + section { padding-top: 5rem; }
[data-exf-post] .exf-col-feature { margin-top: 1rem; }
@media screen and (max-width: 600px) {
  [data-exf-post] .exf-col-h1 { font-size: 13.5vw; }
  [data-exf-post] main > section + section { padding-top: 3.5rem; }
}

/* EXF.POST brand tiles + archive */
.exf-ptiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 30px; }
.exf-ptiles > .exf-pt { grid-column: span 2; }
/* 9 featured brands: a clean 3 x 3 (the two-wide first row only kicks in when the count does not divide by 3) */
.exf-ptiles.is-featured.is-2up > .exf-pt:nth-child(-n+2) { grid-column: span 3; }
.exf-ptiles.is-more { gap: 30px; }
.exf-pt { display: flex; flex-direction: column; gap: .55rem; color: inherit; text-decoration: none; }
.exf-pt-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.exf-pt-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.exf-pt:hover .exf-pt-media img { transform: scale(1.04); }
.exf-pt .exf-ep-play { opacity: 0; transition: opacity .25s ease; }
.exf-pt:hover .exf-ep-play { opacity: 1; }
.exf-pt-meta { display: flex; justify-content: space-between; gap: .5rem; opacity: .6; }
.exf-pt-name { font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 2.4rem); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.exf-ptiles.is-more .exf-pt-name { font-size: clamp(1.15rem, 1.6vw, 1.6rem); }
.exf-pa { display: flex; flex-direction: column; border-top: 1px solid rgba(225,222,220,.18); }
.exf-pa-row { display: grid; grid-template-columns: 5.5rem minmax(10rem, 22%) 1fr auto; gap: 1rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid rgba(225,222,220,.12); color: inherit; text-decoration: none; }
.exf-pa-year { opacity: .5; }
.exf-pa-brand { font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; }
.exf-pa-title { opacity: .85; }
.exf-pa-rt { opacity: .5; }
.exf-pa-tag { opacity: .45; margin-left: .6rem; }
a.exf-pa-row:hover .exf-pa-title { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.exf-pa-row.is-off { opacity: .55; }
@media screen and (max-width: 991px) { .exf-ptiles, .exf-ptiles.is-more { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } .exf-ptiles > .exf-pt, .exf-ptiles.is-featured > .exf-pt:nth-child(-n+2) { grid-column: auto; } .exf-ptiles.is-featured.is-odd > .exf-pt:first-child { grid-column: 1 / -1; } }
@media screen and (max-width: 600px) {
  .exf-ptiles, .exf-ptiles.is-more { grid-template-columns: 1fr; gap: 32px; } .exf-ptiles.is-featured > .exf-pt:first-child { grid-column: auto; }
  .exf-pa-row { grid-template-columns: 4rem 1fr; gap: .2rem .75rem; }
  .exf-pa-title { grid-column: 2; } .exf-pa-rt { display: none; }
}
.exf-pa-more > summary { list-style: none; cursor: pointer; padding: 1.1rem 0; opacity: .7; }
.exf-pa-more > summary::-webkit-details-marker { display: none; }
.exf-pa-more[open] > summary { display: none; }
.exf-pa-more > summary:hover { opacity: 1; }
[data-exf-post] main.main-wrapper { padding-bottom: 7rem; }
@media screen and (max-width: 600px) { [data-exf-post] main.main-wrapper { padding-bottom: 4rem; } }
.exf-home-post-sub { margin-top: 2rem; opacity: .7; line-height: 1.6; }
@media screen and (max-width: 991px) { .exf-home-post-sub { margin: 1rem 0 2rem; } }
/* homepage 'the post': same grid placement as the clients block (Webflow places those by node id) */
.exf-home-post .cc-clients-home > .max-width-medium { grid-area: 1 / 1 / 2 / 8; align-self: start; }
.exf-home-post .cc-clients-home > .client-list-home { grid-area: 2 / 1 / 4 / 9; place-self: start; }
.exf-home-post .client-list-home > .clients-list { grid-area: 3 / 1 / 4 / 8; justify-self: center; }
.exf-home-post .client-list-home .exf-xlink { display: inline-block; margin-top: 2rem; }
.exf-home-post .clients-list-row h2 { white-space: nowrap; }
.exf-home-post .exf-home-post-sub { margin: 2rem 0 0; }
.exf-home-post .client-list-home .exf-xlink { margin-top: .75rem; }

/* featured post: looping previews on the tiles (like a gif, but a small muted mp4) */
.exf-pt-media .exf-pt-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .6s ease; pointer-events: none; }
.exf-pt-media .exf-pt-loop.is-on { opacity: 1; }
.exf-pt:hover .exf-pt-media .exf-pt-loop { transform: scale(1.04); }
.exf-pt .exf-ep-play { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .exf-pt-media .exf-pt-loop { display: none; } }

/* ---------- capability pages (caps.py): /capabilities/ideation, production, film, stills, social ---------- */
[data-exf-cap] .exf-cstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 30px; }
[data-exf-cap] .exf-cstat-n { font-weight: 700; font-size: clamp(3rem, 6.2vw, 6.5rem); line-height: .95; letter-spacing: -.02em; }
[data-exf-cap] .exf-cstat-l { margin-top: 1rem; opacity: .7; line-height: 1.5; max-width: 16rem; }
[data-exf-cap] .exf-cgal { columns: 3; column-gap: 30px; }
[data-exf-cap] .exf-cg-item { display: block; break-inside: avoid; margin: 0 0 30px; color: inherit; text-decoration: none; }
[data-exf-cap] .exf-cg-item img { display: block; width: 100%; height: auto; }
[data-exf-cap] .exf-cg-cap { display: block; margin-top: .6rem; opacity: .7; }
[data-exf-cap] .exf-csteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
[data-exf-cap] .exf-cstep { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.25rem; }
[data-exf-cap] .exf-cstep-t { font-weight: 700; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.05; margin: .9rem 0 .7rem; text-transform: uppercase; }
[data-exf-cap] .exf-cstep-p { font-family: "ABC Favorit Mono", monospace; font-size: .85rem; line-height: 1.55; opacity: .75; margin: 0; }
[data-exf-cap] .exf-croll { margin-top: 4rem; }
[data-exf-cap] .exf-cnav { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255,255,255,.2); }
[data-exf-cap] .exf-cnav-a { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1rem 1.5rem 0; color: inherit; text-decoration: none; opacity: .55; transition: opacity .2s; }
[data-exf-cap] .exf-cnav-a:hover, [data-exf-cap] .exf-cnav-a.is-on { opacity: 1; }
[data-exf-cap] .exf-cnav-t { font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 2.2rem); text-transform: uppercase; }
[data-exf-cap] .exf-section-head .exf-xlink { margin-left: auto; }
@media screen and (max-width: 991px) {
  [data-exf-cap] .exf-cstats, [data-exf-cap] .exf-csteps { grid-template-columns: repeat(2, 1fr); }
  [data-exf-cap] .exf-cgal { columns: 2; column-gap: 20px; }
  [data-exf-cap] .exf-cnav { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 600px) {
  [data-exf-cap] .exf-cstats { gap: 24px 16px; }
  [data-exf-cap] .exf-csteps { grid-template-columns: 1fr; }
  [data-exf-cap] .exf-cgal { columns: 1; }
  [data-exf-cap] .exf-cnav { grid-template-columns: repeat(2, 1fr); }
}
/* the homepage / studio grid tiles are links now */
a.exf-cap-tile { color: inherit; text-decoration: none; display: block; cursor: pointer; }

/* episode not yet on EXF's own player */
.exf-ep.is-request { cursor: default; }
.exf-ep.is-request:hover .exf-ep-media img { transform: none; }
.exf-ep.is-request .exf-ep-play { background: rgba(0,0,0,.4); }
.exf-ep-aside { display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; padding-bottom: 3.6rem; }
.exf-ep-aside-big { font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 700; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; max-width: 12ch; }
.exf-ep-aside-link { color: inherit; text-decoration: none; opacity: .85; }
.exf-ep-aside-link:hover { opacity: 1; text-decoration: underline; }
@media screen and (max-width: 767px) { .exf-ep-aside { padding-bottom: 0; } }

/* roll call: hover a seller to see their shoot (roll-thumb.js) */
.exf-roll-item[data-thumb] { cursor: default; transition: opacity .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .exf-roll:has(.exf-roll-item.is-hot) .exf-roll-item { opacity: .25; }
  .exf-roll:has(.exf-roll-item.is-hot) .exf-roll-item.is-hot { opacity: 1; }
}
.exf-roll-thumb { position: fixed; left: 0; top: 0; z-index: 60; width: 240px; aspect-ratio: 4 / 5; pointer-events: none;
  opacity: 0; transition: opacity .18s ease; background: #111; overflow: hidden; will-change: transform; }
.exf-roll-thumb.is-on { opacity: 1; }
.exf-roll-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* flip cards: the info side is one big link to the project (flip-go.js) */
[data-flip-face="back"] { cursor: pointer; }

/* older case-study templates have no .page-wrapper, so the footer logo pushed the page 10px wide on phones */
body { overflow-x: clip; }

/* collective / post headings: size to the longest word on phones instead of breaking it ("COLLECTIV/E") */
@media screen and (max-width: 767px) {
  .exf-col-h1 { word-break: normal; overflow-wrap: normal; font-size: min(12.4vw, 4.4rem); }
}

/* ---------- EXF Originals (/originals) ---------- */
[data-exf-originals] .exf-orig-idx { margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.18); }
[data-exf-originals] .exf-orig-idx-item { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: baseline; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.18); color: inherit; text-decoration: none; transition: opacity .2s; }
[data-exf-originals] .exf-orig-idx-name { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
[data-exf-originals] .exf-orig-idx:hover .exf-orig-idx-item { opacity: .35; }
[data-exf-originals] .exf-orig-idx .exf-orig-idx-item:hover { opacity: 1; }
[data-exf-originals] section.exf-orig-sec { padding-top: 5rem; }
[data-exf-originals] .exf-orig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; row-gap: 5rem; }
[data-exf-originals] article.exf-orig { scroll-margin-top: 5rem; }
[data-exf-originals] .exf-orig-head { display: grid; gap: .4rem; margin-top: 1rem; }
[data-exf-originals] .exf-orig-title { margin: 0; line-height: .9; text-transform: uppercase; }
[data-exf-originals] .exf-orig-line { max-width: 32rem; opacity: .8; }
[data-exf-originals] .exf-orig-film { display: block; color: inherit; text-decoration: none; }
[data-exf-originals] .exf-orig-film .exf-ep-media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #111; }
[data-exf-originals] .exf-orig-film img, [data-exf-originals] .exf-orig-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-exf-originals] .exf-orig-loop { opacity: 0; transition: opacity .25s; }
[data-exf-originals] .exf-orig-film:hover .exf-orig-loop, [data-exf-originals] .exf-orig-loop.is-on { opacity: 1; }
[data-exf-originals] .exf-orig-stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: 1rem; }
[data-exf-originals] .exf-orig-still { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
[data-exf-originals] .exf-orig-still img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-exf-originals] section.exf-orig-end { padding: 8rem 0 4rem; }
[data-exf-originals] .exf-orig-cta-link { color: inherit; text-decoration: none; display: inline-block; margin-top: 1rem; }
[data-exf-originals] .exf-orig-cta-link:hover { text-decoration: underline; }
@media screen and (max-width: 767px) {
  [data-exf-originals] .exf-orig-idx-item { grid-template-columns: 3rem 1fr auto; }
  [data-exf-originals] .exf-orig-idx-name { font-size: 1.5rem; }
  [data-exf-originals] .exf-orig-grid { grid-template-columns: 1fr; row-gap: 3.5rem; }
}

/* ---------- /stills ---------- */
[data-exf-stills] .exf-st-idx { margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.18); }
[data-exf-stills] .exf-st-idx-item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1fr) 3rem; align-items: baseline; gap: 1rem;
  padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.18); color: inherit; text-decoration: none; transition: opacity .2s; }
[data-exf-stills] .exf-st-idx-name { font-size: clamp(1.6rem, 3.2vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; text-transform: uppercase; }
[data-exf-stills] .exf-st-idx-line { opacity: .7; }
[data-exf-stills] .exf-st-idx-item > :last-child { text-align: right; }
[data-exf-stills] .exf-st-idx:hover .exf-st-idx-item { opacity: .35; }
[data-exf-stills] .exf-st-idx .exf-st-idx-item:hover { opacity: 1; }
[data-exf-stills] section.exf-st-group-sec { padding-top: 7rem; padding-bottom: 0; }
[data-exf-stills] .exf-st-group { border-top: 1px solid rgba(255,255,255,.35); padding-top: .8rem; font-size: 1rem; }
[data-exf-stills] section.exf-st-sec { padding-top: 4rem; padding-bottom: 0; }
[data-exf-stills] .exf-st { scroll-margin-top: 5rem; }
[data-exf-stills] .exf-st-head { display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
[data-exf-stills] .exf-st-title { margin: 0; line-height: .9; text-transform: uppercase; }
[data-exf-stills] .exf-st-line { opacity: .8; }
[data-exf-stills] .exf-st-hero { display: block; position: relative; overflow: hidden; background: #000; cursor: zoom-in; margin-bottom: 30px; }
[data-exf-stills] .exf-st-hero img { width: 100%; height: auto; max-height: 88vh; object-fit: cover; display: block; transition: transform .8s ease; }
[data-exf-stills] .exf-st-hero:hover img { transform: scale(1.015); }
[data-exf-stills] .exf-st-strip { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 12px; cursor: grab; }
[data-exf-stills] .exf-st-strip.is-drag { cursor: grabbing; }
[data-exf-stills] .exf-st-strip.is-drag a { pointer-events: none; }
[data-exf-stills] .exf-st-bts-item { flex: none; height: 26rem; aspect-ratio: var(--ar); overflow: hidden; background: #000; cursor: zoom-in; }
[data-exf-stills] .exf-st-bts-item img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
[data-exf-stills] section.exf-orig-end { padding: 8rem 0 4rem; }
[data-exf-stills] .exf-orig-cta-link { color: inherit; text-decoration: none; display: inline-block; margin-top: 1rem; }
[data-exf-stills] .exf-orig-cta-link:hover { text-decoration: underline; }
@media screen and (max-width: 767px) {
  [data-exf-stills] .exf-st-idx-item { grid-template-columns: 2.5rem minmax(0, 1fr) 2rem; }
  [data-exf-stills] .exf-st-idx-line { display: none; }
  [data-exf-stills] .exf-st-idx-name { font-size: 1.5rem; }
  [data-exf-stills] section.exf-st-group-sec { padding-top: 4rem; }
  [data-exf-stills] section.exf-st-sec { padding-top: 2.5rem; }
  [data-exf-stills] .exf-st-head { grid-template-columns: 1fr; gap: .35rem; }
  [data-exf-stills] .exf-st-hero { margin-bottom: 10px; }
  [data-exf-stills] .exf-st-hero img { max-height: none; }
  [data-exf-stills] .exf-st-strip { gap: 10px; }
  [data-exf-stills] .exf-st-bts-item { height: 15rem; }
}

/* ---------- radio ad block (AA) ---------- */
.exf-radio { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; align-items: end; padding: 3rem 0 1rem; border-top: 1px solid rgba(255,255,255,.18); }
.exf-radio-line { font-size: clamp(2rem, 4.6vw, 4.6rem); font-weight: 700; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }
.exf-radio-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.exf-radio-k { opacity: .6; margin-bottom: .35rem; }
.exf-radio-v { font-size: 1.25rem; line-height: 1.2; }
@media screen and (max-width: 767px) {
  .exf-radio { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .exf-radio-line { font-size: 2.2rem; }
}
[data-exf-stills] .exf-st-link { color: inherit; opacity: 1; text-decoration: none; white-space: nowrap; }
[data-exf-stills] .exf-st-link:hover { text-decoration: underline; }
.exf-head-gap { margin-top: 4rem; }
@media screen and (max-width: 767px) { .exf-head-gap { margin-top: 2.5rem; } }

/* ---------- go-live: no sideways scroll on phones (footer logo was 10px over on newer case pages) ---------- */
html { overflow-x: clip; }
footer.section.cc-footer, .section.cc-footer { overflow-x: clip; }

/* ---------- go-live: heading-only chapter intros left a blank gap before their pictures ---------- */
.project-intro-copy:empty { display: none; }
.project-intro:has(> .project-intro-copy:empty) { padding-bottom: 2rem; }
@media screen and (max-width: 767px) { .project-intro:has(> .project-intro-copy:empty) { padding-top: 2.5rem; padding-bottom: 1.25rem; } }

/* smooth pass (Nov 2026): hover zooms ease out and stay crisp; hero stills hold their space while loading */
.exf-gal-item img, .exf-gal-item video, .exf-ep-media img, .exf-film-prev, .exf-pt-media img, .exf-next-img img {
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .3s ease; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.exf-gal-item:hover img, .exf-ep:hover .exf-ep-media img, .exf-ep:hover .exf-film-prev, .exf-pt:hover .exf-pt-media img, .exf-next-link:hover .exf-next-img img { will-change: transform; }
.work-container > img.img[width][height], .work-container img.img[width][height] { height: auto; }
