/* =====================================================================
   SHAPES & COLORS — STYLES
   Colors and sizes you might want to tweak are at the top.
   ===================================================================== */

/* Neue Haas Grotesk Display and Text (55 Roman), served by Adobe Fonts under Nick's Creative Cloud plan: web project "Shapes & Colors", linked in each page's <head> */
/* Preview only: the claude.ai preview can't load Adobe's web fonts, so the same two styles are also picked up from Nick's Mac,
   where Creative Cloud has them turned on (desktop license). Nothing is downloaded; other visitors never see these. */
@font-face { font-family: "NHG Display Installed"; src: local("NHaasGroteskDSPro-55Rg"), local("Neue Haas Grotesk Display Pro 55 Roman"), local("NeueHaasGroteskDisplayPro-55Roman"); font-weight: 400 500; font-style: normal; }
@font-face { font-family: "NHG Text Installed"; src: local("NHaasGroteskTXPro-55Rg"), local("Neue Haas Grotesk Text Pro 55 Roman"), local("NeueHaasGroteskTextPro-55Roman"); font-weight: 400; font-style: normal; }

:root {
  /* Dark mode (default) */
  --bg: #120e0d;
  --fg: #f1eee8;
  --line: rgba(241, 238, 232, 0.16);
  --placeholder: rgba(241, 238, 232, 0.05);

  --margin: clamp(16px, 2.4vw, 36px);   /* left/right page edges */
  --gap: clamp(10px, 1.1vw, 16px);      /* space between images */

  --display: "neue-haas-grotesk-display", "NHG Display Installed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "neue-haas-grotesk-text", "NHG Text Installed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html[data-sc-theme="light"] {
  --bg: #f3f1ec;
  --fg: #151110;
  --line: rgba(21, 17, 16, 0.16);
  --placeholder: rgba(21, 17, 16, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.45 var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
img, video { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.muted { opacity: .55; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header (difference blend so it reads over any image) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px var(--margin);
  font-size: 15px;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.wordmark { color: #fff; letter-spacing: -.01em; }   /* white in dark mode; the header blend turns it black in light mode */
.nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: baseline; }
.nav a, .theme-toggle { position: relative; }

.theme-toggle { display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle .dot {
  width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .6s var(--ease);
}
html[data-sc-theme="light"] .theme-toggle .dot { transform: rotate(180deg); }

/* ---------- Custom cursor (difference blend) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #fff;
  mix-blend-mode: difference; pointer-events: none;
  display: grid; place-items: center;
  transition: width .6s var(--ease), height .6s var(--ease), margin .6s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor span {
  font: 400 15px/1 var(--text); color: #000; opacity: 0; letter-spacing: -.01em;
  transition: opacity .3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor.is-view { width: 72px; height: 72px; margin: -36px 0 0 -36px; }

@media (pointer: fine) {
  html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
}
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(110px, 18vh, 200px) var(--margin) clamp(48px, 8vh, 96px); }
.headline {
  font: 400 clamp(42px, 7.4vw, 136px)/.94 var(--display);
  letter-spacing: -.035em;
  max-width: 17ch;
  text-wrap: balance;        /* evens out line lengths so no word sits alone */
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: clamp(32px, 6vh, 72px);
}
.subhead { max-width: 40ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.35; }
.hero-meta { font-size: 15px; text-align: right; white-space: nowrap; }

/* Word-by-word rise on page load */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .08em 0; margin: 0 -.08em -.08em 0; }
.split .w > span { display: inline-block; transform: translateY(105%); }
.is-loaded .split .w > span { transform: none; transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 45ms + 150ms); }
.fade-in { opacity: 0; transform: translateY(12px); }
.is-loaded .fade-in { opacity: 1; transform: none; transition: opacity 1s var(--ease) .7s, transform 1s var(--ease) .7s; }

/* ---------- Work grid (rows of equal-height images) ---------- */
.work { padding: 0 var(--margin); }
.work-row { display: flex; gap: var(--gap); margin-bottom: clamp(36px, 5vw, 72px); align-items: flex-start; }
.tile { min-width: 0; }
.tile .media { overflow: hidden; border-radius: 0; background: var(--placeholder); }
.tile .media img { transition: transform 1.2s var(--ease), opacity .6s; }
.tile.has-page:hover .media img { transform: scale(1.025); }
.tile-caption { margin-top: 10px; font-size: 15px; line-height: 1.35; }
.tile-caption .name { display: block; }
.tile-caption .services { display: block; }

/* ---------- Reveal on scroll (one-time, no parallax) ---------- */
.reveal-img { clip-path: inset(100% 0 0 0); }
.reveal-img img, .reveal-img video { transform: scale(1.04); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); transition: clip-path .8s var(--ease) var(--d, 0s); }
.reveal-img.is-in img, .reveal-img.is-in video { transform: none; transition: transform 1.1s var(--ease) var(--d, 0s); }
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- About ---------- */
.section-label { font-size: 15px; display: flex; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 56px); }
.about { padding: clamp(60px, 10vw, 140px) var(--margin) 0; }
.about-grid { display: flex; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
.about-photo { flex: 0 0 34%; }
.about-photo figcaption { font-size: 13px; margin-top: 8px; }
.about-text { flex: 1; }
.bio p { font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; }
.bio p + p { margin-top: .7em; }
.lists { display: flex; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 80px); font-size: 15px; line-height: 1.5; }
.lists > div { flex: 1; }
.lists .lists-clients { flex: 2.6; }
.lists .lists-second { margin-top: 28px; }
.clients-large { font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; }
.lists h3 { font-weight: 400; opacity: .55; margin-bottom: 10px; font-size: 15px; }
.lists ul { list-style: none; }
.clients-list { columns: 2; column-gap: 24px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 14vw, 200px) var(--margin) 0; }
.contact-cta { font: 400 clamp(40px, 8.5vw, 156px)/.92 var(--display); letter-spacing: -.04em; display: inline-block; }

.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: clamp(60px, 8vw, 120px) var(--margin) 22px; font-size: 13px; }
.site-footer .links { display: flex; gap: 18px; }

/* ---------- Case study ---------- */
.cs-hero { padding: clamp(110px, 18vh, 200px) var(--margin) clamp(32px, 5vw, 64px); }
.cs-kicker { font-size: 15px; margin-bottom: 18px; }
.cs-title { font: 400 clamp(54px, 11vw, 200px)/.9 var(--display); letter-spacing: -.045em; }
.cs-info { display: flex; justify-content: space-between; gap: clamp(24px, 4vw, 64px); margin-top: clamp(32px, 5vw, 64px); align-items: flex-start; }
.cs-intro { flex: 0 1 auto; font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; max-width: 26ch; }
.cs-meta { flex: 0 0 auto; margin-left: auto; display: flex; gap: clamp(28px, 4vw, 64px); font-size: 15px; line-height: 1.5; }   /* B2: services, year and website link against the right margin */
.cs-meta h3 { font-weight: 400; opacity: .55; margin-bottom: 6px; font-size: 15px; }
.cs-meta ul { list-style: none; }
.cs-meta a { border-bottom: 1px solid var(--line); }

.cs-body { padding: 0 var(--margin); }
.cs-hero-img { margin: 0 var(--margin); border-radius: 0; overflow: hidden; }

.cs-text { display: flex; gap: clamp(24px, 4vw, 64px); padding: clamp(64px, 9vw, 140px) 0; }
.cs-text h2 { flex: 1; font: 400 15px/1.45 var(--text); }
.cs-text .body { flex: 1.6; max-width: 34em; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.42; }
.cs-text .body p + p { margin-top: 1em; }
.cs-text .spacer { flex: 1; }

.cs-group-label { font-size: 15px; margin: clamp(40px, 5vw, 72px) 0 clamp(16px, 2vw, 24px); display: flex; justify-content: space-between; }
.cs-row { display: flex; gap: var(--gap); margin-bottom: var(--gap); }
.cs-row figure { min-width: 0; border-radius: 0; overflow: hidden; }
.carousel-count { display: none; }

/* Placeholder boxes */
.placeholder {
  width: 100%; display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line); background: var(--placeholder); border-radius: 0;
  padding: 24px; font-size: 14px; line-height: 1.4;
}
.placeholder strong { display: block; font-weight: 400; opacity: .55; margin-bottom: 6px; letter-spacing: .04em; font-size: 12px; text-transform: uppercase; }

/* Sideways-scrolling gallery (desktop: pinned while you scroll) */
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll-track { display: flex; gap: var(--gap); padding: 0 var(--margin); will-change: transform; }
.hscroll-track figure { flex: 0 0 auto; height: min(72vh, 760px); border-radius: 0; overflow: hidden; }
.hscroll-track figure img, .hscroll-track figure video { height: 100%; width: auto; }
.hscroll-track .placeholder { height: 100%; width: auto; }
.hscroll-bar { margin: 22px var(--margin) 0; height: 1px; position: relative; }   /* only the filled part shows */
.hscroll-bar span { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(0); }
.hscroll-head { padding: 0 var(--margin); }
.hscroll-head .cs-group-label { margin-top: 0; }

/* Credits + next */
.cs-credits { display: flex; gap: clamp(24px, 4vw, 64px); padding: clamp(64px, 9vw, 140px) 0 0; font-size: 15px; }
.cs-credits h2 { flex: 1; font: 400 15px/1.45 var(--text); }
.cs-credits dl { flex: 1.6; display: grid; grid-template-columns: auto 1fr; gap: 6px 32px; }
.cs-credits dt { opacity: .55; }
.cs-credits a { border-bottom: 1px solid var(--line); }
.cs-credits .spacer { flex: 1; }

.cs-next { padding: clamp(80px, 12vw, 180px) var(--margin) 0; }
.cs-next a.big { font: 400 clamp(40px, 8.5vw, 156px)/.92 var(--display); letter-spacing: -.04em; display: inline-block; }

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  body { font-size: 16px; }
  .site-header { padding-top: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .theme-toggle .label { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-meta { text-align: left; }

  .work-row { flex-direction: column; margin-bottom: 0; gap: 0; }
  .work-row .tile { width: 100% !important; flex: none !important; margin-bottom: 36px; }

  .about-grid, .lists, .cs-info, .cs-text, .cs-credits { flex-direction: column; }
  .about-photo { flex: none; width: 100%; }
  .cs-text .spacer, .cs-credits .spacer { display: none; }
  .cs-meta { flex-wrap: wrap; }
  .cs-credits dl { grid-template-columns: 1fr; gap: 2px; }
  .cs-credits dd { margin-bottom: 12px; }
  .cs-row.is-carousel { margin-bottom: 8px; }

  /* Multi-image rows become swipe carousels */
  .cs-row.is-carousel {
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--margin) * -1) 8px; padding: 0 var(--margin); scroll-padding: 0 var(--margin);
    scrollbar-width: none;
  }
  .cs-row.is-carousel::-webkit-scrollbar { display: none; }
  .cs-row.is-carousel figure { flex: 0 0 86% !important; scroll-snap-align: start; }
  .carousel-count { display: block; font-size: 13px; margin-bottom: 28px; }

  .hscroll-sticky { position: static; height: auto; display: block; }
  .hscroll-track {
    overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important;
    scroll-padding: 0 var(--margin); scrollbar-width: none;
  }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .hscroll-track figure { height: 62vh; scroll-snap-align: start; }
  .hscroll-bar { display: none; }
  .hscroll { height: auto !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .split .w > span, .fade-in, .reveal, .reveal-img img, .reveal-img video { transform: none !important; opacity: 1 !important; }
  .reveal-img { clip-path: none !important; }
  .site-header { opacity: 1; }
}

/* ---------- Animated logo shape: blue circle → red square → yellow triangle ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 8px; }
.logo-shape { width: 11px; height: 11px; display: inline-block; visibility: hidden; }  /* holds the space in the header */
.site-header--shape { mix-blend-mode: normal; z-index: 51; visibility: hidden; pointer-events: none; }
.site-header--shape > * { pointer-events: none; }
.site-header--shape .logo-shape { visibility: visible; animation: morph 6s var(--ease) infinite; }
.site-header--shape .logo-shape.is-fast { animation-duration: 1.8s; }
@keyframes morph {
  0%, 22%   { border-radius: 50%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: rotate(0deg); }
  33%, 55%  { border-radius: 0;   clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: rotate(180deg); }
  66%, 88%  { border-radius: 0;   clip-path: polygon(50% 8%, 50% 8%, 100% 94.6%, 0 94.6%); transform: rotate(360deg) scale(1.12); }
  100%      { border-radius: 50%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: rotate(360deg) scale(1); }
  /* colors switch instantly halfway through each change, so they never blend */
  0%, 27.4%    { background: #1d4cff; }
  27.5%, 60.4% { background: #ff2a1a; }
  60.5%, 93.9% { background: #ffd400; }
  94%, 100%    { background: #1d4cff; }
}
@media (prefers-reduced-motion: reduce) { .site-header--shape .logo-shape { animation: none; border-radius: 50%; background: #1d4cff; } }

/* Sideways gallery without pinning (reduced motion) */
.hscroll.is-static { height: auto !important; }
.hscroll.is-static .hscroll-sticky { position: static; height: auto; display: block; }
.hscroll.is-static .hscroll-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scroll-padding: 0 var(--margin); }
.hscroll.is-static .hscroll-track figure { scroll-snap-align: start; }
.hscroll.is-static .hscroll-bar { display: none; }

/* ---------- Header hides on scroll down, returns on scroll up ---------- */
.site-header {
  transition: opacity .5s var(--ease), translate .6s var(--ease);
}
html.nav-hidden .site-header { opacity: 0 !important; translate: 0 -18px; pointer-events: none; }
html.nav-hidden .site-header > * { pointer-events: none; }

/* ---------- Sign-off: large shape animation above the footer ---------- */
.signoff {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: clamp(100px, 16vw, 240px) var(--margin) 0;
}
.signoff-shape { width: clamp(40px, 4.2vw, 64px); aspect-ratio: 1; }
.signoff-shape span { display: block; width: 100%; height: 100%; animation: morph 6s var(--ease) infinite; }
.signoff-shape:hover span { animation-duration: 1.8s; }
.signoff-info { text-align: right; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.35; }
.signoff-info p + p { margin-top: 14px; }
.signoff-info a { border-bottom: 1px solid var(--line); transition: border-color .4s; }
.signoff-info a:hover { border-color: currentColor; }
.site-footer { padding-top: clamp(28px, 3vw, 44px); }
@media (max-width: 800px) {
  .signoff { flex-direction: column; align-items: flex-start; }
  .signoff-info { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .signoff-shape span { animation: none; border-radius: 50%; background: #1d4cff; } }

/* B1. Sign-off with "Book the studio": the shape on top, then the booking line and the link at title size on the left margin,
   studio details on the right. Project pages show the link one size down so "View next project" stays first. */
.signoff { display: block; }
.signoff-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.signoff.has-book .signoff-shape { margin-bottom: clamp(28px, 3.4vw, 52px); }
.signoff-label { font-size: 15px; margin-bottom: clamp(10px, 1.2vw, 18px); }
.signoff-link { display: inline-block; font: 400 clamp(40px, 8.5vw, 156px)/.92 var(--display); letter-spacing: -.04em; }
.signoff.is-case .signoff-link { font-size: clamp(32px, 4.6vw, 80px); line-height: .95; letter-spacing: -.035em; }
.signoff-info { flex: none; }
@media (max-width: 800px) {
  .signoff-row { flex-direction: column; align-items: flex-start; gap: 36px; }
}

.to-top { font-size: 13px; }


/* ---------- Typing line in the sign-off ---------- */
.typer { position: relative; display: inline-block; }
.typer-space { visibility: hidden; }                 /* holds the full width so nothing shifts */
.typer-live { position: absolute; right: 0; top: 0; white-space: nowrap; }   /* right-aligned like the lines around it */
.typer-caret {
  position: absolute; left: 100%; top: .18em;                                  /* sits just past the edge so text stays flush */
  display: inline-block; width: 1px; height: 1em; margin-left: 3px;
  background: currentColor; animation: blink 1s steps(1) infinite;
}
.typer.is-static .typer-caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 800px) { .typer-live { right: auto; left: 0; } .typer-caret { position: static; vertical-align: -0.12em; } }

/* ---------- Footer location line ---------- */
.signoff-info p.local { margin-top: 0; }
.local span:not(:empty) + span:not(:empty)::before { content: "  ·  "; white-space: pre; }

/* ---------- Playful headline (desktop) ---------- */
.headline .ch, .cs-title .ch { display: inline-block; will-change: transform; }
.headline.is-playful .w, .cs-title.is-playful .w { overflow: visible; }

.cs-meta a.cs-site-link { border-bottom: 1px solid var(--line); transition: border-color .4s; }
.cs-meta a.cs-site-link:hover { border-color: currentColor; }

/* Typing label next to About stays right-aligned on every screen size */
@media (max-width: 800px) {
  .section-label .typer-live { left: auto; right: 0; }
  .section-label .typer-caret { position: absolute; left: 100%; top: .18em; }
}

/* ---------- Text highlight: black in light mode, the reverse in dark mode ---------- */
::selection { background: var(--fg); color: var(--bg); }

/* ---------- Image preview beside a link on hover ---------- */
.preview-row { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.hover-preview {
  flex: 0 0 auto; width: clamp(180px, 16vw, 260px); aspect-ratio: 4 / 3;
  border-radius: 0; overflow: hidden; pointer-events: none;
  opacity: 0; scale: .92; transition: opacity .35s var(--ease), scale .5s var(--ease);
}
.hover-preview.is-on { opacity: 1; scale: 1; }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Smooth page changes: pages crossfade, the header stays put ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Work controls: filters + grid/list switch ---------- */
.work-controls {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  margin-bottom: clamp(20px, 2.6vw, 36px); font-size: 15px;
}
.filters, .views { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.filter, .view-btn { padding: 2px 0; }
.filter sup { font-size: 10px; margin-left: 2px; vertical-align: 5px; opacity: 1; }
/* one continuous underline under the whole button, label and count together */
.filter, .view-btn { position: relative; }
.filter::after, .view-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.filter.is-active::after, .view-btn.is-active::after { transform: scaleX(1); }
/* no blue box after clicking; keyboard users still get a visible outline */
.filter:focus, .view-btn:focus, .theme-toggle:focus, .to-top:focus { outline: none; }
.filter:focus-visible, .view-btn:focus-visible, .theme-toggle:focus-visible, .to-top:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* fade between filters / views */
.work-body { transition: opacity .26s var(--ease), translate .26s var(--ease); }
.work-body.is-switching { opacity: 0; translate: 0 10px; }

/* ---------- List view ---------- */
.work-list { display: flex; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
.list-rows { flex: 1; min-width: 0; }
.list-head, .list-row {
  display: grid; grid-template-columns: minmax(clamp(258px, 21vw, 330px), 1.1fr) minmax(0, 1.4fr) clamp(96px, 7.8vw, 120px); gap: 16px;   /* the Project column always has room for the longest name plus "View case study" */
  padding: 14px 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.3;
}
.list-head { font-size: 13px; padding-top: 0; }
.list-row { transition: padding-left .4s var(--ease), opacity .4s; }
.list-rows:hover .list-row { opacity: .45; }
.list-rows .list-row:hover { opacity: 1; padding-left: 10px; }
.l-year { text-align: left; white-space: nowrap; }   /* dates line up under "Year" and a range like 2019–2021 stays on one line */
.list-preview {
  position: sticky; top: 90px; flex: 0 0 clamp(220px, 30vw, 460px);
  border-radius: 0; overflow: hidden; opacity: 0; scale: .96;
  transition: opacity .35s var(--ease), scale .5s var(--ease);
}
.list-preview.is-on { opacity: 1; scale: 1; }
/* each image shows whole, at its own shape: wide images use the full width, tall ones the full height (no taller than the width or the screen),
   all centered on the same point so wide images sit in the middle of where the tall ones are */
.list-preview { display: flex; align-items: center; justify-content: center; height: min(clamp(220px, 30vw, 460px), calc(100vh - 140px)); }
.list-preview img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(clamp(220px, 30vw, 460px), calc(100vh - 140px)); }

/* ---------- Hover video over a cover ---------- */
.tile .media { position: relative; }
.hover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s var(--ease); }
.hover-video.is-on { opacity: 1; }

/* ---------- Case study color: logo shape and text highlight ---------- */
@keyframes morphShape {
  0%, 22%   { border-radius: 50%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: rotate(0deg); }
  33%, 55%  { border-radius: 0;   clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: rotate(180deg); }
  66%, 88%  { border-radius: 0;   clip-path: polygon(50% 8%, 50% 8%, 100% 94.6%, 0 94.6%); transform: rotate(360deg) scale(1.12); }
  100%      { border-radius: 50%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: rotate(360deg) scale(1); }
}
html.has-project .site-header--shape .logo-shape,
html.has-project .signoff-shape span { animation-name: morphShape; background: var(--project); }
html.has-project { --project: var(--project-on-dark); --project-text: var(--project-ink-on-dark); }
html[data-sc-theme="light"].has-project { --project: var(--project-base); --project-text: var(--project-ink); }
html.has-project ::selection { background: var(--project); color: var(--project-text); }

@media (max-width: 800px) {
  .work-controls { flex-direction: column; gap: 10px; }
  .list-preview { display: none; }
  .list-head { display: none; }
  .list-head, .list-row { grid-template-columns: 1fr; gap: 2px; }
  .l-year { text-align: left; }
  .list-rows:hover .list-row { opacity: 1; }
}

/* ---------- One link style across the site ----------
   Links are always the full text color, no underline; the cursor growing is the only hover signal.
   Gray means "not clickable" (.muted), except filters and Grid/List, where gray means "not selected".   */
.nav a, .theme-toggle, .to-top,
.cs-meta a, .cs-credits a, .signoff-info a, .site-footer .links a, .contact-alt a, .form-note a {
  opacity: 1; border-bottom: 0 !important;
}
.filter, .view-btn { opacity: .55; border-bottom: 0 !important; transition: opacity .3s var(--ease); }
.filter.is-active, .view-btn.is-active { opacity: 1; }

/* Filters + Grid/List: no underline; hover goes partway so the selected one always reads strongest */
.filter::after, .view-btn::after { display: none; }
.filter:hover, .view-btn:hover { opacity: .8; }
.filter.is-active, .view-btn.is-active { opacity: 1; }

/* ---------- 404 page ---------- */
.nf { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--margin) 80px; }
.nf-shape { width: clamp(64px, 7vw, 110px); aspect-ratio: 1; margin-bottom: clamp(28px, 4vw, 48px); }
.nf-shape span { display: block; width: 100%; height: 100%; animation: morph 6s var(--ease) infinite; }
.nf-shape:hover span { animation-duration: 1.8s; }
.nf-title { font: 400 clamp(42px, 7.4vw, 136px)/.94 var(--display); letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.nf-text { margin-top: clamp(24px, 3vw, 40px); max-width: 36ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.35; }
.nf-link { display: inline-block; margin-top: 18px; font-size: clamp(17px, 1.35vw, 21px); }
@media (prefers-reduced-motion: reduce) { .nf-shape span { animation: none; border-radius: 50%; background: #1d4cff; } }

/* Case study marker: a simple arrow after the project name */

/* ---------- Logo collection page ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.logo-grid .logo-tile { min-width: 0; width: 100%; }
.logo-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; background: var(--placeholder); overflow: hidden; }
.logo-mark {
  position: absolute; inset: 22% 18%;
  background: var(--fg); transition: background-color .5s var(--ease);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.logo-tile.is-hot .logo-mark { background: var(--brand); }
html:not([data-sc-theme="light"]) .logo-tile.is-hot .logo-mark { background: var(--brand-dark); }
/* full-color logo, drawn inside the same logo shape so it lines up exactly */
.logo-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.logo-tile.is-hot.has-full .logo-full { opacity: 1; }
html:not([data-sc-theme="light"]) .logo-tile.full-light-only .logo-full { display: none; }
.logo-link { position: absolute; inset: 0; z-index: 1; }
.logo-tile figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between;
  font-size: 13px; opacity: 0; translate: 0 6px; transition: opacity .4s var(--ease), translate .4s var(--ease);
}
.logo-tile.is-hot figcaption { opacity: 1; translate: 0 0; }
@media (max-width: 800px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile figcaption { opacity: 1; translate: 0 0; font-size: 12px; }   /* no hover on phones: always show names */
}

/* ---------- Case study marker: dot fades to "View case study" ---------- */
.cs-tag { position: relative; display: inline-block; margin-left: .45em; width: 8px; height: 1em; vertical-align: -.12em; color: var(--fg); }
.cs-dot { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c); transition: opacity .35s var(--ease); }
.cs-label { position: absolute; left: 0; top: 0; line-height: 1; white-space: nowrap; opacity: 0; transition: opacity .35s var(--ease); }
.tile.has-page:hover .cs-dot, .list-row.has-page:hover .cs-dot { opacity: 0; }
.tile.has-page:hover .cs-label, .list-row.has-page:hover .cs-label { opacity: 1; }
html:not([data-sc-theme="light"]) .cs-dot { background: var(--c-dark, var(--c)); }   /* dark mode: the brand's dark-mode color (white for Innovative Artists and Blade) */
@media (max-width: 800px), (pointer: coarse) {   /* phones: the dot, then the label beside it, in the text color */
  .cs-tag { width: auto; height: auto; vertical-align: baseline; }
  .cs-dot { position: static; display: inline-block; margin: 0 .4em 0 0; vertical-align: .05em; opacity: 1 !important; }
  .cs-label { position: static; opacity: 1; line-height: inherit; }
}

/* ---------- Logo page: no boxes, spotlight on hover ---------- */
.logo-tile { background: transparent; overflow: visible; }
.logo-mark { inset: 26% 22%; transform: scale(var(--s, 1)); }
.logo-grid .logo-tile { transition: filter .5s var(--ease), opacity .5s var(--ease), transform 1s var(--ease); }
@media (hover: hover) and (min-width: 801px) {

}
/* without boxes, keep each logo's name and year close under the logo */
.logo-tile figcaption { left: 22%; right: 22%; bottom: 12%; }
@media (max-width: 800px) {
  .logo-mark { inset: 20% 12% 30%; }
  .logo-tile figcaption { left: 8%; right: 8%; bottom: 8%; white-space: nowrap; }
}

/* ---------- Logo on inner pages: name fades to "← All work" on hover ---------- */
.wm-text { position: relative; display: inline-block; }
.wm-name, .wm-alt { transition: opacity .35s var(--ease); }
.wm-alt { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
@media (hover: hover) {
  .wordmark.has-alt:hover .wm-name { opacity: 0; }
  .wordmark.has-alt:hover .wm-alt { opacity: 1; }
}
/* leave room for the header when jumping to a section */
#work, #about { scroll-margin-top: 72px; }

/* ---------- Logo page: Grid / Stacked ---------- */
.logo-grid { transition: opacity .26s var(--ease), translate .26s var(--ease); }
.logo-grid.is-switching { opacity: 0; translate: 0 10px; }
.logo-grid.is-stacked { grid-template-columns: minmax(0, 1fr); gap: clamp(8px, 2vw, 24px); }
.logo-grid.is-stacked .logo-tile { aspect-ratio: 16 / 7; }
.logo-grid.is-stacked .logo-mark { inset: 22% 26% 26%; }
.logo-grid.is-stacked .logo-tile figcaption { left: 26%; right: 26%; bottom: 9%; font-size: 15px; }
@media (max-width: 800px) {
  .logo-controls { flex-direction: row; justify-content: flex-end; }
  .logo-grid.is-stacked .logo-tile { aspect-ratio: 4 / 3; }
  .logo-grid.is-stacked .logo-mark { inset: 20% 14% 30%; }
  .logo-grid.is-stacked .logo-tile figcaption { left: 14%; right: 14%; bottom: 10%; font-size: 13px; }
}

/* "Next project" tag above the big link, styled like the Credits tag */
.cs-next-tag { font-size: 15px; margin-bottom: clamp(14px, 1.6vw, 22px); }

/* Stacked logos: centered on desktop (option A). Index layout (option B), if wanted later:
   logo left (inset 18% 52% 18% 0, mask at left center), name + year on the right half of the row, always visible. */
.logo-grid.is-stacked .logo-mark { inset: 22% 26% 26%; -webkit-mask-position: center; mask-position: center; }
.logo-grid.is-stacked .logo-tile figcaption { left: 26%; right: 26%; }
@media (max-width: 800px) {
  /* phones: each stacked logo runs the full width */
  .logo-grid.is-stacked .logo-mark { inset: 14% 0 28% 0; -webkit-mask-position: left center; mask-position: left center; }
  .logo-grid.is-stacked .logo-full { object-position: left center; }
  .logo-grid.is-stacked .logo-tile figcaption { left: 0; right: 0; }
}

/* ---------- Tile image flip / swipe ---------- */
.tile .media img { object-fit: cover; }
.tile-swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tile-swipe::-webkit-scrollbar { display: none; }
.tile-swipe img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; aspect-ratio: 1; object-fit: cover; }
.tile .carousel-count { display: block; font-size: 13px; margin-top: 8px; }

/* ---------- Video player ---------- */
.vplayer { position: relative; width: 100%; background: #000; border-radius: 0; overflow: hidden; }
.vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s var(--ease); }
.vplayer.is-started .vposter { opacity: 0; pointer-events: none; }
.vplay {
  position: absolute; inset: 0; z-index: 2; width: 100%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .22); color: #fff; transition: background .4s var(--ease);
}
.vplay:hover { background: rgba(0, 0, 0, .32); }
.vlabel {
  font: 400 clamp(22px, 2.4vw, 40px)/1 var(--display); letter-spacing: -.02em;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.vplay:hover .vlabel { transform: scale(1.04); }
/* while playing: clear view; "Pause" appears small in the corner on hover */
.vplayer.is-playing .vplay { background: transparent; place-items: end start; padding: 18px 20px; }
.vplayer.is-playing .vlabel { font-size: 15px; font-family: var(--text); letter-spacing: 0; opacity: 0; }
.vplayer.is-playing .vplay:hover .vlabel { opacity: 1; transform: none; }
.video-row figure { border-radius: 0; overflow: hidden; }
@media (max-width: 800px) {
  .video-row { flex-direction: column; }
}
@media (max-width: 800px) { .video-spacer { display: none; } }

/* video files in the project folder */
.vfile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- brand boards: logo, type and color shown live on the page ---------- */
.cs-brand + .cs-brand { margin-top: clamp(24px, 4vw, 56px); }
.cs-brand--type-color { margin-bottom: clamp(48px, 7vw, 110px); }   /* room before the images that follow */
.brand-logo { display: grid; place-items: center; padding: clamp(48px, 9vw, 150px) 0; }
.brand-logo-mark, .brand-aa, .brand-alpha { display: block; background: var(--fg); transition: background-color .5s var(--ease);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: left center; mask-position: left center; }
.brand-logo-mark { width: min(72%, 980px); -webkit-mask-position: center; mask-position: center; }
.brand-logo.is-hot .brand-logo-mark { background: var(--project); }
.brand-type.is-hot .brand-aa, .brand-type.is-hot .brand-alpha { background: var(--hover-color, var(--project)); }
.brand-type-color { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.brand-types, .brand-colors { display: flex; flex-direction: column; gap: 20px; }
.brand-type-list { flex: 1; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.brand-type { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.brand-type-art { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); padding: clamp(16px, 3vw, 40px) 0; }
.brand-aa { width: clamp(120px, 18vw, 260px); max-width: 100%; }
.brand-alpha { width: 100%; max-width: 560px; }
.brand-small { font-size: 15px; line-height: 1.35; }
.brand-small b { display: block; font-weight: 400; }
.brand-swatches { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: clamp(280px, 30vw, 460px); }
.brand-swatch-group { flex: 1; display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.brand-swatches.has-roles .brand-swatch-group { flex: 2.2; }
.brand-swatches.has-roles .brand-swatch-group.is-secondary { flex: 1; }
.brand-swatch { all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border-radius: 0; text-align: left; min-height: 96px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }
.brand-swatch .brand-small { font-size: 14px; }

/* more than one typeface: typefaces side by side across the page, colors below */
.brand-type-color.is-wide { grid-template-columns: 1fr; }
.brand-type-color.is-wide .brand-type-list { display: grid; grid-template-columns: repeat(var(--faces), minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
.brand-type-color.is-wide .brand-aa { width: clamp(90px, 11vw, 180px); }
.brand-type-color.is-wide .brand-swatches { min-height: clamp(220px, 24vw, 380px); }

/* the rest of the logo system, smaller */
.brand-identity .brand-logo { padding-bottom: clamp(40px, 6vw, 100px); }
.brand-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2vw, 32px); }
.brand-mark-tile, .brand-colorway-tile { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.brand-mark { display: block; width: 66%; height: 52%; background: var(--fg); transition: background-color .5s var(--ease);
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.brand-mark-tile.is-hot .brand-mark { background: var(--hover-color, var(--project)); }
.brand-colorway { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: clamp(8px, 2vw, 32px); }
.brand-colorway-tile { aspect-ratio: 3 / 2; }
.brand-colorway-tile .brand-mark { width: 58%; }
html:not([data-sc-theme="light"]) .brand-colorway-tile.is-dark-color,
html[data-sc-theme="light"] .brand-colorway-tile.is-light-color { display: none; }

@media (max-width: 760px) {
  .brand-type-color, .brand-type-color.is-wide, .brand-type-color.is-wide .brand-type-list { grid-template-columns: minmax(0, 1fr); }   /* minmax keeps a wide typeface sample from pushing past the margin */
  .brand-swatches { min-height: 320px; }
  .brand-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-colorway { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* images can't be dragged out, selected or long-press saved on phones */
img, video { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }

/* ---------- contact page: one column under the title; options and Send are text links like the nav ---------- */
.contact-body { padding: 0 var(--margin) clamp(80px, 10vw, 160px); }
.contact-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contact-head .cs-title { white-space: nowrap; }
@media (max-width: 600px) { .contact-head .cs-title { white-space: normal; } }
.contact-intro { font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; margin-bottom: clamp(36px, 4vw, 56px); }
/* B5. The form: full-width rows divided by the hairline. Answers are typed at the large text size.
   Choices are plain words: gray until picked, then the text color with the studio's blue dot. Send is plain text at title size. */
.contact-form { display: block; border-top: 1px solid var(--line); font-size: 15px; }
.form-row { display: flex; gap: clamp(24px, 4vw, 64px); align-items: baseline; padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid var(--line); transition: border-color .3s var(--ease); cursor: text; }
.form-row:focus-within { border-bottom-color: var(--fg); }
.form-row.is-group, .form-row.is-next { cursor: default; }
.form-label { flex: 1; font-size: 15px; }
.form-label .optional { opacity: .7; }
.form-field { flex: 2.6; min-width: 0; }
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field textarea {
  display: block; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; background: transparent; resize: none;
  font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; color: var(--fg); caret-color: var(--fg);
}
.form-field textarea { field-sizing: content; min-height: 2.36em; }
.choices { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 2.2vw, 36px); }
.choice { position: relative; display: inline-flex; align-items: center; cursor: pointer; font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice-dot { flex: none; width: 0; height: .26em; margin-right: 0; border-radius: 50%; background: #1d4cff; opacity: 0;
  transition: width .35s var(--ease), margin-right .35s var(--ease), opacity .3s var(--ease); }
.choice-text { opacity: .55; transition: opacity .3s var(--ease); }
@media (hover: hover) { .choice:hover .choice-text { opacity: .8; } }
.choice input:checked ~ .choice-dot { width: .26em; margin-right: .3em; opacity: 1; }
.choice input:checked ~ .choice-text { opacity: 1; }
.choice input:focus-visible ~ .choice-text { outline: 1px solid currentColor; outline-offset: 4px; }
.form-next { list-style: none; font-size: 17px; line-height: 1.45; }
.send { all: unset; cursor: pointer; color: var(--fg); display: inline-block; font: 400 clamp(40px, 8.5vw, 156px)/.92 var(--display); letter-spacing: -.04em; }
.send:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: clamp(48px, 7vw, 110px); }
@media (max-width: 800px) {
  .form-row { flex-direction: column; gap: 8px; }
  .form-label, .form-field { flex: none; width: 100%; }
}
.form-thanks { font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; }
.contact-alt { font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; gap: 14px; max-width: 34ch; padding-bottom: .6em; }
@media (max-width: 1280px) {
  .contact-head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .contact-alt { padding-bottom: 0; }
}


/* ---------- phone menu ---------- */
html { -webkit-tap-highlight-color: transparent; }   /* no gray box when tapping links and buttons on phones */
.menu-toggle:focus, .mm-theme:focus, .chip:focus, .send:focus { outline: none; }
.menu-toggle:focus-visible, .mm-theme:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 800px) {
  .nav .theme-toggle { display: none; }
  .menu-toggle { display: inline; all: unset; cursor: pointer; }
  /* The menu always fits the visible screen, with no scroll: its spacing and type sizes shrink with the screen's height
     (dvh = the height actually visible, between the browser's bars), so the email, links and light/dark switch always sit at the bottom edge. */
  .mobile-menu {
    display: flex; flex-direction: column; gap: clamp(14px, 4.7dvh, 40px);
    position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 49; overflow: hidden;
    background: var(--bg); color: var(--fg);
    padding: clamp(68px, 11.4dvh, 96px) var(--margin) calc(clamp(16px, 3.8dvh, 32px) + env(safe-area-inset-bottom, 0px));
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  html.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .mm-main { display: flex; flex-direction: column; gap: 6px; }
  .mm-main a { font: 400 min(clamp(38px, 11vw, 56px), 6.4dvh)/1.05 var(--display); letter-spacing: -.03em; }
  .mm-work { display: flex; flex-direction: column; gap: clamp(2px, 1dvh, 8px); font-size: clamp(16px, 2.4dvh, 20px); line-height: 1.25; }
  .mm-work p { font-size: clamp(13px, 1.8dvh, 15px); margin-bottom: clamp(0px, .5dvh, 4px); }
  .mm-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(4px, 1.2dvh, 10px); font-size: clamp(14px, 1.8dvh, 15px); }
  .mm-theme { all: unset; cursor: pointer; display: inline; }
  .mm-theme .dot { display: inline-block; vertical-align: -1px; margin-right: 8px; }
  .mm-theme .label { display: inline !important; }
  .mobile-menu .mm-main a, .mobile-menu .mm-work a { transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
  html.menu-open .mobile-menu .mm-main a, html.menu-open .mobile-menu .mm-work a { transform: none; opacity: 1; }
  
}

/* a single phone screenshot, shown smaller and centered */
.cs-row.is-narrow { width: min(100%, 440px); margin-left: auto; margin-right: auto; }
.cs-row.is-narrow figure { flex: 1 1 0px !important; }

/* phone drawn around a phone screenshot: a hairline in the page's text color, phone-shaped corners and the Dynamic Island (sharp at any size, no image needed) */
.cs-row figure.is-framed { border-radius: 0; overflow: visible; background: none; }
.phone-screen { position: relative; border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);   /* same hairline as the color tiles */ border-radius: 48px; overflow: hidden; }
.phone-screen img { display: block; width: 100%; height: auto; }
.phone-island { position: absolute; top: 1.6%; left: 50%; width: 30%; height: 3.6%; translate: -50% 0; border-radius: 999px; background: #000; }
@media (max-width: 760px) { .phone-screen { border-radius: 40px; } }

/* Hairline browser frame: drawn outside the screen recording so none of the video is covered */
.hscroll-track figure.is-browser { border-radius: 4px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); }   /* same hairline and corners as the color tiles */
.hscroll.is-static .hscroll-track { padding-top: 2px; padding-bottom: 2px; }

/* Swipe rows end on the site margin: a spacer after the last item, since browsers drop the end padding of a scrolling row */
.hscroll.is-static .hscroll-track { padding-right: 0; }
.hscroll.is-static .hscroll-track::after { content: ""; flex: 0 0 max(1px, calc(var(--margin) - var(--gap))); }
@media (max-width: 800px) {
  .hscroll-track, .cs-row.is-carousel { padding-right: 0; }
  .hscroll-track::after, .cs-row.is-carousel::after { content: ""; flex: 0 0 max(1px, calc(var(--margin) - var(--gap))); }
}

/* Full-color logo on hover (brand boards): the approved full-color file sits exactly over the one-color mark */
.brand-logo > *, .brand-mark-tile > * { grid-area: 1 / 1; }
.brand-logo-full, .brand-mark-full { display: block; background: no-repeat center / contain; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.brand-logo-full { width: min(72%, 980px); }
.brand-mark-full { width: 66%; height: 52%; }
.brand-logo-mark, .brand-mark { transition: background-color .5s var(--ease), opacity .5s var(--ease); }
.brand-logo.has-full.is-hot .brand-logo-full, .brand-mark-tile.has-full.is-hot .brand-mark-full { opacity: 1; }
.brand-logo.has-full.is-hot .brand-logo-mark, .brand-mark-tile.has-full.is-hot .brand-mark { opacity: 0; }
/* dark mode: files with dark colors that can't be seen there keep the brand-color hover instead */
html:not([data-sc-theme="light"]) .full-light-only .brand-logo-full,
html:not([data-sc-theme="light"]) .full-light-only .brand-mark-full { display: none; }
html:not([data-sc-theme="light"]) .brand-logo.full-light-only.is-hot .brand-logo-mark,
html:not([data-sc-theme="light"]) .brand-mark-tile.full-light-only.is-hot .brand-mark { opacity: 1; }

/* Brand board rows: each row as many columns as it has marks */
.brand-marks { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.brand-marks + .brand-marks { margin-top: clamp(8px, 2vw, 32px); }
@media (max-width: 760px) {
  .brand-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-marks[style*="--cols:3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-marks[style*="--cols:3"] .brand-mark, .brand-marks[style*="--cols:3"] .brand-mark-full { width: 86%; }
}
/* Full-color hover: light-mode file in light mode, the white-text version in dark mode */
html[data-sc-theme="light"] .is-for-dark, html:not([data-sc-theme="light"]) .is-for-light { display: none; }

/* a set of approved color combinations: only the one picked for this hover shows */
.brand-mark-tile.has-set.is-hot .brand-mark-full { opacity: 0; }
.brand-mark-tile.has-set.is-hot .brand-mark-full.is-pick { opacity: 1; }

/* Primary color tiles keep the same height on every page, however many rows of secondary colors sit under them */
.brand-swatches.has-roles .brand-swatch-group:not(.is-secondary) { min-height: calc(clamp(280px, 30vw, 460px) * 0.6875); }
.brand-type-color.is-wide .brand-swatches.has-roles .brand-swatch-group:not(.is-secondary) { min-height: calc(clamp(220px, 24vw, 380px) * 0.6875); }
.brand-swatches.has-roles .brand-swatch-group.is-secondary { flex: 0 0 auto; }

/* ---------- Group A clean-ups ---------- */
/* A4. A sideways row shown as a swipe row (phone, or motion turned off) keeps the page's spacing:
   its label sits as far below the section above as every other section label, and the row keeps the same gap beneath it as other rows */
/* (set on the row's outer box so it combines with the neighbouring sections' spacing exactly as other sections do) */
.hscroll.is-static { margin-top: clamp(40px, 5vw, 72px); margin-bottom: var(--gap); }
@media (max-width: 800px) { .hscroll { margin-top: clamp(40px, 5vw, 72px); margin-bottom: var(--gap); } }
/* A5. Phones: rows of two or three images stack full width, one gap apart (rows of four or more still swipe) */
@media (max-width: 800px) {
  .cs-row:not(.is-carousel):not(.is-narrow) { flex-direction: column; }
  .cs-row:not(.is-carousel):not(.is-narrow) figure { flex: none !important; width: 100%; }
}
/* A8. Phones: Selected Logos names wrap, with the year beneath; never under 13px */
@media (max-width: 800px) {
  .logo-tile figcaption, .logo-grid.is-stacked .logo-tile figcaption { flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; font-size: 13px; }
}
/* A8. Phones: no Grid/List switch on the homepage (always the grid) */
@media (max-width: 800px) { .work-controls:not(.logo-controls) .views { display: none; } }   /* homepage only; Selected Logos keeps Grid / Stacked */
@media (max-width: 800px) {   /* room for a wrapped name and the year under each logo, without touching it */
  .logo-grid:not(.is-stacked) .logo-tile { aspect-ratio: 1 / 1; }
  .logo-grid:not(.is-stacked) .logo-mark { inset: 12% 10% 46%; }
  .logo-grid:not(.is-stacked) .logo-tile figcaption { bottom: 5%; }
}

/* ---------- B2. Project page opening: the first screen takes the brand's main color ----------
   site.js sets --opening (the project's openingColor) and --opening-ink (black or white, whichever reads better)
   and adds  is-opening  to <html> while the color shows. The whole page simply uses them as its background and text color,
   then fades back to the light / dark theme with the same 0.6s timing as the light / dark switch. */
html.is-opening {
  --bg: var(--opening);
  --fg: var(--opening-ink);
  --line: color-mix(in srgb, var(--opening-ink) 18%, transparent);
  --placeholder: color-mix(in srgb, var(--opening-ink) 6%, transparent);
}
/* While the color shows (and until the fade back has finished) the header is plain text in the page's text color, not the difference blend */
html.opening-header .site-header:not(.site-header--shape) { mix-blend-mode: normal; color: var(--fg); transition: opacity .5s var(--ease), translate .6s var(--ease), color .6s var(--ease); }
html.opening-header .site-header .wordmark { color: inherit; }
/* the header shape matches the text while the color shows (it would vanish in the project color on a page of the same color) */
html.has-project .site-header--shape .logo-shape { transition: background-color .6s var(--ease); }
html.is-opening.has-project .site-header--shape .logo-shape { background: var(--opening-ink); }
html.is-opening.has-project ::selection { background: var(--opening-ink); color: var(--opening); }
html.opening-instant body, html.opening-instant .site-header, html.opening-instant .logo-shape { transition: none !important; }
@media (max-width: 800px) { .cs-meta { margin-left: 0; } }

/* ---------- B6. Work grid: case studies first and larger, the logo row, then image-only work smaller ---------- */
.work-row.is-archive { margin-bottom: clamp(36px, 5vw, 72px); }
/* swipe counters sit on the image corner (the same blend as the header, so they read over any image) */
.tile .media .carousel-count { position: absolute; right: 10px; bottom: 8px; margin: 0; z-index: 2; font-size: 13px; color: #fff; mix-blend-mode: difference; pointer-events: none; }
/* Selected Logos: a 3:2 tile showing one logo at a time (see "Selected Logos tile" below) */
@media (max-width: 800px) {
  /* image-only work: two to a row on phones, so it stays smaller than the case studies */
  .work-row.is-archive { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); margin-bottom: 0; }
  .work-row.is-archive .row-spacer { display: none; }
}

/* ---------- B3. Statements: one sentence at the large text size, label on the left margin ---------- */
.cs-text.is-statement .cs-statement { flex: 2.6; font: 400 clamp(22px, 2.2vw, 34px)/1.18 var(--display); letter-spacing: -.015em; }
.cs-text.is-statement .cs-statement span { display: block; max-width: 36ch; }

/* ---------- B4. Type sample set in the brand's own words (replaces the "Aa" and alphabet where a typeface has words) ----------
   .brand-words            an SVG of the words set in the brand typeface, drawn in the text color like the other type art
   .brand-words.is-standin the same words as live text in the site's typeface, only to show the layout until the SVG exists */
.brand-words { display: block; width: 100%; max-width: 720px; background: var(--fg); transition: background-color .5s var(--ease);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: left center; mask-position: left center; }
.brand-type.is-hot .brand-words { background: var(--hover-color, var(--project)); }
.brand-words.is-standin { display: inline-block; width: auto; max-width: none; align-self: flex-start; background: none; color: var(--fg);
  font: 400 clamp(40px, 6vw, 100px)/.98 var(--display); letter-spacing: -.04em; transition: color .5s var(--ease); }
.brand-type.is-hot .brand-words.is-standin { background: none; color: var(--hover-color, var(--project)); }
.brand-type-color.is-wide .brand-words { max-width: 560px; }
.brand-type-color.is-wide .brand-words.is-standin { font-size: clamp(32px, 4.2vw, 68px); }

/* ---------- Selected Logos tile on the homepage: one logo at a time ----------
   The tile is the tint surface at 3:2. Each logo is drawn inside a centered box 40% of the tile's width and 30% of its height,
   so the logo never exceeds either and keeps at least its own height clear around it. Each logo's own "scale" applies on top. */
.logos-tile .lt { aspect-ratio: 3 / 2; }
.lt-box { position: absolute; left: 30%; top: 35%; width: 40%; height: 30%; transform: scale(var(--s, 1)); }
.lt-mask, .lt-full { position: absolute; inset: 0; }
.lt-mask { background: var(--fg); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.lt-full { display: none; background: center / contain no-repeat; }
/* colored: the full-color file where there is one for this theme, otherwise the brand color */
.lt-box.is-colored .lt-mask { background: var(--c); }
html:not([data-sc-theme="light"]) .lt-box.is-colored .lt-mask { background: var(--c-dark); }
html[data-sc-theme="light"] .lt-box.is-colored.has-full-light .lt-mask,
html:not([data-sc-theme="light"]) .lt-box.is-colored.has-full-dark .lt-mask { display: none; }
.lt-box.is-colored .lt-full { display: block; }
/* the counter: while hovering on desktop, always on phones and with motion off */
.logos-tile .media .carousel-count { display: none; }
.logos-tile.is-stepping .media .carousel-count, .logos-tile .lt-swipe ~ .carousel-count { display: block; }
/* phones and motion off: one logo per swipe */
.lt-swipe { position: absolute; inset: 0; }
.lt-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
html[data-sc-theme="light"] .lt-box .lt-full.is-for-dark, html:not([data-sc-theme="light"]) .lt-box .lt-full.is-for-light { display: none; }
.logos-tile .media .carousel-count { color: var(--fg); mix-blend-mode: normal; }   /* on the flat tint the counter is simply the text color */

/* ---------- homepage image sets (CoverGirl x Disney and CoverGirl): six equal columns, two rows of squares, every gap the same ---------- */
.work-sets { display: grid; grid-template-columns: repeat(var(--set-cols), minmax(0, 1fr)); gap: var(--gap); margin-bottom: clamp(36px, 5vw, 72px); }
.work-sets .set { grid-column: span var(--cols); min-width: 0; }
.set-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap); }
.set-img { aspect-ratio: 1; overflow: hidden; background: var(--placeholder); transition: opacity .35s var(--ease); }
.set-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) {
  .work-sets:has(.set-img:hover) .set-img { opacity: .45; }   /* the image under the cursor stays full strength, the rest dim (as the List view) */
  .work-sets:has(.set-img:hover) .set-img:hover { opacity: 1; }
}
@media (max-width: 800px) {
  .work-sets { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-bottom: 36px; }
  .work-sets .set { grid-column: auto; }
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.set-img.reveal-img.is-in { transition: clip-path .8s var(--ease) var(--d, 0s), opacity .35s var(--ease); }
.set-img { cursor: pointer; }
.set-img:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
/* lightbox: the image large on the page color, no controls; a click anywhere or Esc closes it */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(16px, 4vw, 64px); background: var(--bg); opacity: 0; transition: opacity .35s var(--ease); outline: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: calc(100vw - 2 * clamp(16px, 4vw, 64px)); max-height: calc(100dvh - 2 * clamp(16px, 4vw, 64px)); width: auto; height: auto; object-fit: contain; display: block; }   /* never larger than the file itself */
html.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
.lightbox[hidden] { display: none; }
.lightbox:not(.is-open) { pointer-events: none; }
.lb-caption { position: absolute; left: var(--margin); bottom: clamp(14px, 2vw, 24px); margin: 0; pointer-events: none; }
.lb-caption .lb-count { margin-left: .4em; }

/* ---------- C2. Next-project handoff ----------
   When "View [name]" is clicked, the name travels to where the next page's title sits and becomes it, while the pages crossfade.
   site.js gives the link's name and the next page's title the same transition name ("next-title") for that one page change. */
.cs-title.is-arrived > span { display: inline-block; }
.cs-next .next-name { display: inline-block; line-height: .9; }   /* same proportions as the title it turns into, so the name does not double mid-flight */
.cs-title.is-arrived .w > span { transform: none !important; transition: none !important; }   /* already in place: no rise-in */
::view-transition-group(next-title) { animation-duration: .7s; animation-timing-function: var(--ease); }
::view-transition-old(next-title), ::view-transition-new(next-title) { animation-duration: .4s; animation-timing-function: ease; }

/* Logo dots (Innovative Artists): the dots start straight and turn into their own angle once, as the logo comes into view */
.brand-logo-mark.is-inline { background: none; -webkit-mask: none; mask: none; color: var(--fg); fill: currentColor; height: auto; overflow: visible; transition: color .5s var(--ease); }
.brand-logo.is-hot .brand-logo-mark.is-inline { background: none; color: var(--project); }   /* the drawn logo takes the color, not its box */
.logo-dot { transform-box: fill-box; transform-origin: center; transform: rotate(var(--straight)); }
.brand-logo.dots-in .logo-dot { transform: rotate(0deg); transition: transform .9s var(--ease) var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .logo-dot { transform: none; } }

/* Brand boards in Safari: each logo tile gets one fixed cell, and each mark a fixed box inside it (the artwork is fitted
   inside that box, the same size as before). Without this, Safari sized the cells from the artwork and the marks spilled
   over each other and past the edge of the page on phones. */
.brand-mark-tile, .brand-colorway-tile { grid-template-columns: 100%; grid-template-rows: 100%; min-width: 0; }
.brand-logo { grid-template-columns: 100%; }
/* Nothing can make the page scroll sideways */
html, body { overflow-x: clip; }

/* C2 handoff, smoother: the travelling name stays solid the whole way (the title it turns into replaces it at once,
   instead of the two fading through each other) */
::view-transition-old(next-title) { animation: none; opacity: 0; }
::view-transition-new(next-title) { animation: none; opacity: 1; }

/* Page changes in dark mode: no white flash between pages.
   The browser's own page color follows the theme (it was the default white underneath the site),
   and the layer the page change plays on carries the page color, so nothing white can show through mid-change. */
html { color-scheme: dark; }
html[data-sc-theme="light"] { color-scheme: light; }
::view-transition { background: var(--bg); }

/* list view on narrower screens: a smaller hover image, so the Services column keeps room */
@media (min-width: 801px) and (max-width: 1100px) {
  .list-preview { flex-basis: 20vw; height: min(20vw, calc(100vh - 140px)); }
  .list-preview img { max-height: min(20vw, calc(100vh - 140px)); }
}

/* ---------- Live graphics (Compton's): brand artwork built on the page ----------
   Sized from the frame's own width (cqw), so every piece keeps its place at any size. Motion plays once as the frame is revealed. */
.live { position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size; }
.live span { position: absolute; display: block; background: no-repeat center / contain; }
.live .lv-faded { background: #f9e0b7; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }

/* the logo on yellow */
.live-logo { background: #ffb71a; }
.lv-script { width: 108cqw; aspect-ratio: 952.6 / 215.17; left: -3cqw; top: 2cqw; rotate: -3deg; }
.lv-oval   { width: 62cqw; aspect-ratio: 269.603 / 168.801; left: -3cqw; top: 29cqw; }
.lv-round  { width: 50.35cqw; aspect-ratio: 1000 / 670.155; left: 59.03cqw; top: 24.36cqw; rotate: -30deg; }   /* turned so "EST." sits below left, clear of the oval */
.lv-lockup { width: 66cqw; aspect-ratio: 1000 / 412.244; left: 17cqw; top: 14.4cqw; }
.live-logo .lv-faded { opacity: 0; translate: 0 2cqw; }
.live-logo .lv-lockup { opacity: 0; scale: .96; }
.reveal-img.is-in .live-logo .lv-faded { opacity: .55; translate: 0 0; transition: opacity 1.4s var(--ease), translate 1.6s var(--ease); }
.reveal-img.is-in .live-logo .lv-script { transition-delay: .3s; }
.reveal-img.is-in .live-logo .lv-oval { transition-delay: .45s; }
.reveal-img.is-in .live-logo .lv-round { transition-delay: .6s; }
.reveal-img.is-in .live-logo .lv-lockup { opacity: 1; scale: 1; transition: opacity 1s var(--ease) .15s, scale 1.4s var(--ease) .15s; }

/* four location badges on color */
.live-badges { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.lv-panel { position: relative; }
.lv-badge { width: 54%; aspect-ratio: 144.79 / 98.457; left: 23%; top: 50%; translate: 0 -50%; opacity: 0; scale: 1.25; rotate: -8deg; }
.reveal-img.is-in .lv-badge { opacity: 1; scale: 1; rotate: 0deg; transition: opacity .35s ease, scale .7s cubic-bezier(.3, 1.4, .5, 1), rotate .7s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(.35s + var(--i) * .14s); }

/* dots and stripes */
.live-dots { background: #ffb71a; }
.lv-dots { position: absolute; left: 7.875cqw; top: 16.62cqw; display: grid; grid-template-columns: repeat(13, .917cqw); column-gap: 2.111cqw; row-gap: 3.483cqw; }
.lv-dots i { display: block; width: .917cqw; aspect-ratio: 1; border-radius: 50%; background: #26213f; scale: 0; }
.reveal-img.is-in .lv-dots i { scale: 1; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1) calc(.35s + var(--w)); }
.lv-bars { position: absolute; left: 55.92cqw; top: 17cqw; width: 36.58cqw; display: grid; row-gap: 4.25cqw; }
.lv-bars i { display: block; height: 4.583cqw; background: #26213f; scale: 0 1; transform-origin: left center; }
.reveal-img.is-in .lv-bars i { scale: 1 1; transition: scale 1s var(--ease); }
.reveal-img.is-in .lv-bars i:nth-child(1) { transition-delay: .5s; }
.reveal-img.is-in .lv-bars i:nth-child(2) { transition-delay: .65s; }
.reveal-img.is-in .lv-bars i:nth-child(3) { transition-delay: .8s; }

/* the pattern, turned like printed sandwich paper */
.live-pattern { background: #e70000; }
.lv-paper { position: absolute; left: 50%; top: 50%; width: 150cqw; translate: -50% -50%; rotate: -10deg; }
.lv-row { height: 6.5cqw; margin-left: -27.58cqw; width: calc(100% + 55.16cqw); background-repeat: repeat-x; background-size: 27.58cqw 6.5cqw; }
.lv-row.is-tagline { background-position: -3.75cqw 0; }
.live-pattern.is-playing .lv-row { animation: lvDrift 22s linear infinite; }
.live-pattern.is-playing .lv-row.is-tagline { animation-direction: reverse; }
@keyframes lvDrift { from { transform: translateX(0); } to { transform: translateX(27.58cqw); } }

@media (prefers-reduced-motion: reduce) {
  .live *, .reveal-img.is-in .live * { transition: none !important; animation: none !important; }
  .live-logo .lv-faded { opacity: .55; translate: none; }
  .live-logo .lv-lockup, .lv-badge { opacity: 1; scale: 1; rotate: 0deg; }
  .lv-dots i { scale: 1; }
  .lv-bars i { scale: 1 1; }
}
.cs-row figure > .live, .cs-hero-img > .live { width: 100%; height: 100%; }

/* Logo page hover: when the full-color file shows, the one-color logo under it goes clear, so no brand color shows around its edges */
.logo-tile.is-hot.has-full .logo-mark { background: transparent; }
html:not([data-sc-theme="light"]) .logo-tile.is-hot.full-light-only .logo-mark { background: var(--brand-dark); }

/* Logo page: a logo placed on the page as-is (Austin Institute of Dental Medicine, whose rings turn on hover) */
.logo-mark.is-inline { background: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
.logo-mark.is-inline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-mark.is-inline path { fill: var(--fg); transition: fill .5s var(--ease); }
html[data-sc-theme="light"] .logo-tile.is-hot .logo-mark.is-inline path { fill: var(--own); }   /* light mode: the logo's own colors */
html:not([data-sc-theme="light"]) .logo-tile.is-hot .logo-mark.is-inline path { fill: var(--brand-dark); }   /* dark mode: all in the brand blue, as before */

/* Brand board: logos always shown in their own full colors (detailed artwork with no one-color version, e.g. Hildebrandt's) */
.brand-logo-full.is-shown, .brand-mark-full.is-shown { opacity: 1; }

/* Logo page: a full-color logo shown untrimmed on hover (Hildebrandt's neon, whose shadow reaches past the one-color shape).
   Same box as the one-color logo; inside it, a box the exact shape of the one-color logo (its ratio, --r), centered like the logo. */
.logo-mark.logo-free { background: none !important; -webkit-mask-image: none !important; mask-image: none !important; container-type: size; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.logo-free .lf-box { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(100cqw, calc(100cqh * var(--r))); aspect-ratio: var(--r); }
.logo-free img { position: absolute; display: block; max-width: none; }
.logo-tile.is-hot .logo-mark.logo-free { opacity: 1; }
.logo-tile.is-hot:has(.logo-free) .logo-mark:not(.logo-free) { opacity: 0; transition: opacity .5s var(--ease), background-color .5s var(--ease); }
@media (max-width: 800px) {
  .logo-grid.is-stacked .logo-free .lf-box { left: 0; translate: 0 -50%; }
}

.brand-marks.is-single > * { grid-column: 2; }
.brand-marks.is-narrow { grid-template-columns: repeat(var(--n), calc((100% - 2 * clamp(8px, 2vw, 32px)) / 3)) !important; justify-content: center; }

/* Logo page: a one-color logo shown as drawn before hover (Pelkey's Tavern), crossfading to the full-color logo on hover */
.logo-tile:has(.logo-rest) .logo-mark:not(.logo-free) { opacity: 0; }
.logo-mark.logo-free.logo-rest { opacity: 1; }
.logo-tile.is-hot .logo-mark.logo-free.logo-rest { opacity: 0; }

/* Selected Logos tile: a spinning logo drawn inline (AIDM) */
.lt-box.is-inline .lt-mask, .lt-box.is-inline .lt-full { display: none !important; }   /* the turning logo is drawn inline: hide the still copies under it */
.lt-inline { position: absolute; inset: 0; }
.lt-inline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lt-box.is-inline path { fill: var(--fg); transition: fill .5s var(--ease); }
.lt-box.is-inline.is-colored path { fill: var(--c); }
html:not([data-sc-theme="light"]) .lt-box.is-inline.is-colored path { fill: var(--c-dark); }
html[data-sc-theme="light"] .lt-box.is-inline.is-colored path { fill: var(--own); }   /* light mode: the logo's own colors (AIDM: blue mark, gray type) */

/* Selected Logos page, phones: the grid shows the logos only (names and years stay in Stacked) */
@media (max-width: 800px) {
  .logo-grid:not(.is-stacked) .logo-tile figcaption { display: none; }
}

/* Selected Logos tile on phones: the logo a little larger in the tile */
@media (max-width: 800px) {
  .logos-tile .lt-box { left: 17.5%; width: 65%; top: 30%; height: 40%; }
}

/* Selected Logos page on phones */
@media (max-width: 800px) {
  /* Grid: with the names hidden, the logos sit closer together */
  .logo-grid:not(.is-stacked) .logo-tile { aspect-ratio: 4 / 3; }
  .logo-grid:not(.is-stacked) .logo-mark { inset: 22% 10%; }
  /* Stacked: as on desktop — each logo centered inside the margins, the name on the left and the year on the right */
  .logo-grid.is-stacked .logo-mark { inset: 14% 7% 28%; -webkit-mask-position: center; mask-position: center; }
  .logo-grid.is-stacked .logo-full { object-position: center; }
  .logo-grid.is-stacked .logo-free .lf-box { left: 50%; translate: -50% -50%; }
  .logo-grid.is-stacked .logo-tile figcaption { left: 0; right: 0; flex-direction: row; justify-content: space-between; align-items: baseline; white-space: nowrap; }
}

/* CoverGirl large view: Close at the top right, where the header's last link sits */
.lb-close { position: absolute; top: 0; right: var(--margin); padding: 18px 0 12px 16px; margin: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
@media (max-width: 800px) { .lb-close { padding-top: 14px; font-size: 14px; } }
/* CoverGirl large view: the name and count on the top line, across from Close, like the header */
.lb-caption { top: 0; bottom: auto; padding-top: 18px; font-size: 15px; line-height: 1; }
@media (max-width: 800px) { .lb-caption { padding-top: 14px; font-size: 14px; } }

/* Selected Logos page: logos wait for their files; switching layouts brings the logos on screen in one at a time */
.logo-tile.reveal.is-in.is-loading { opacity: 0; transform: translateY(24px); }
.logo-grid.is-switching { transition-duration: .2s; }
.logo-grid.is-restaging, .logo-grid.is-restaging .logo-tile { transition: none !important; }
.logo-tile.reveal.is-in.is-quick { transition-duration: .45s; }

/* Drawn logos with their own dark-mode type color (AIDM: Light Gray type, Sky Blue mark) */
html:not([data-sc-theme="light"]) .logo-tile.is-hot .logo-mark.is-inline .spin-type { fill: var(--type-dark, var(--brand-dark)); }
html:not([data-sc-theme="light"]) .lt-box.is-inline.is-colored .spin-type { fill: var(--type-dark, var(--c-dark)); }

/* Homepage: case studies coming soon (names only, set apart under the work) */
.coming-soon { margin-top: clamp(56px, 7vw, 104px); padding-top: 16px; border-top: 1px solid var(--line, rgba(127,127,127,.25)); color: var(--fg); font-size: 15px; line-height: 1.35; }
.coming-label, .coming-line { opacity: .55; }   /* names in the text color, like the work grid; the label and descriptions in gray */
.coming-label { margin: 0 0 clamp(16px, 2vw, 24px); }
.coming-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(8px, 2vw, 32px); }
.coming-name, .coming-line { display: block; }
@media (max-width: 800px) { .coming-list { grid-template-columns: 1fr; } }
