/* =========================================================================
   Hongshu Guo — Senior Motion Designer
   Warm off-white system. Type-led. Work carries all the colour.
   ========================================================================= */

:root {
  --bg:        #f6f5f3;
  --bg-deep:   #efedea;
  --ink:       #111111;
  --ink-soft:  #38352f;
  --muted:     #6e6a64;
  --faint:     #9b968e;
  --line:      #e2dfd9;
  --accent:    #c6472a;

  --gap:       24px;
  --pad:       clamp(20px, 4vw, 56px);
  --maxw:      1560px;

  /* tallest a hero film may stand, so an upright piece still reads in one screen */
  --hero-max:  74dvh;

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--bg); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------------------------------------------------- */

h1, h2, h3, .display {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}

.display-xl { font-size: clamp(2.75rem, 8.2vw, 8.5rem); }
.display-l  { font-size: clamp(2rem, 4.6vw, 4rem); }
.display-m  { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.03em; }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.small { font-size: 0.8125rem; color: var(--muted); }

/* ---------- header --------------------------------------------------- */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-head.is-stuck { border-bottom-color: var(--line); }

.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}

.wordmark {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: 0.45em; white-space: nowrap;
}
.wordmark em { font-style: normal; color: var(--faint); font-weight: 500; letter-spacing: 0.1em; font-size: 0.75rem; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  font-size: 0.875rem; color: var(--muted);
  position: relative; padding-block: 4px;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor; transition: right .45s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
/* the arrow marks a link that leaves the site */
.nav .ext { font-size: 0.6875rem; opacity: .5; margin-left: 1px; }
.nav a:hover .ext { opacity: .8; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px 7px 11px; background: rgba(255,255,255,.55);
  white-space: nowrap;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- hero ----------------------------------------------------- */

.hero { padding-top: clamp(120px, 17vh, 190px); padding-bottom: clamp(40px, 7vh, 90px); }

.hero h1 { max-width: 16ch; }
.hero h1 .fade { color: var(--faint); }

.hero-foot {
  margin-top: clamp(28px, 5vh, 56px);
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 28px;
  border-top: 1px solid var(--line); padding-top: 22px;
}

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px; padding: 13px 22px;
  font-size: 0.875rem; font-weight: 500;
  transition: transform .5s var(--ease-out), background .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn .arrow { transition: transform .5s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.7); }

.play-chip {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--ink);
  display: inline-grid; place-items: center;
}
.play-chip svg { width: 8px; height: 8px; }

/* ---------- hero reel plate ------------------------------------------ */

.reel-plate {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg-deep); cursor: pointer;
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reel-plate.is-in { opacity: 1; transform: none; }
.reel-plate video, .reel-plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.reel-plate:hover video { transform: scale(1.02); }
.reel-plate::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.08);
  pointer-events: none;
}

.reel-badge {
  position: absolute; left: clamp(16px, 2.4vw, 30px); bottom: clamp(16px, 2.4vw, 30px);
  z-index: 2; display: inline-flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  border-radius: 999px; padding: 10px 20px 10px 12px;
  font-size: 0.875rem; font-weight: 500;
  transition: background .3s var(--ease), transform .5s var(--ease-out);
}
.reel-plate:hover .reel-badge { transform: translateY(-2px); background: var(--bg); }
.reel-badge .ring {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
}
.reel-badge .ring svg { width: 9px; height: 9px; margin-left: 2px; }
.reel-badge .dur { color: var(--faint); font-weight: 400; }

/* ---------- sections ------------------------------------------------- */

.section { padding-block: clamp(64px, 11vh, 132px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 18px; margin-bottom: clamp(28px, 4vh, 52px);
}
.section-head h2 { flex: 1 1 auto; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.link-more {
  font-size: 0.875rem; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color .3s var(--ease), gap .4s var(--ease-out);
}
.link-more:hover { border-color: var(--ink); gap: 13px; }

/* ---------- work grid ------------------------------------------------ */

.grid { display: flex; flex-direction: column; gap: clamp(30px, 3.6vw, 58px); }

.row {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  /* justified: widths follow each piece's aspect, so the row tops and bottoms
     line up while every clip keeps its native shape */
}

.tile {
  flex: var(--fg, 1) 1 0;
  min-width: 0;
  position: relative;
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.tile.is-in { opacity: 1; transform: none; }

.tile-media {
  position: relative; overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: var(--ar, 4 / 3);
}
.tile-media img,
.tile-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;   /* frame is already native — this only absorbs rounding */
  transition: transform 1.1s var(--ease-out), opacity .5s var(--ease);
}
.tile-media video { opacity: 0; }
.tile.is-playing .tile-media video { opacity: 1; }
.tile:hover .tile-media img,
.tile:hover .tile-media video { transform: scale(1.035); }

.tile-media::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.07);
  pointer-events: none;
}

.tile-cap { display: flex; gap: 14px; justify-content: space-between; padding-top: 14px; }
.tile-cap h3 { font-size: 1rem; letter-spacing: -0.02em; line-height: 1.25; font-weight: 600; }
.tile-client { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.tile-meta { font-size: 0.8125rem; color: var(--muted); margin-top: 6px; }
.tile-year { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.06em; flex: 0 0 auto; padding-top: 2px; }

/* ---------- filters -------------------------------------------------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 8px 6px;
  margin-bottom: clamp(30px, 4.5vh, 56px);
}
.filter {
  font-size: 0.8125rem; color: var(--muted);
  border: 1px solid transparent; border-radius: 999px;
  padding: 8px 15px;
  transition: color .25s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--line); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter .n { font-size: 0.6875rem; opacity: .55; margin-left: 6px; font-variant-numeric: tabular-nums; }

.work-count { font-size: 0.8125rem; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- client logo wall ----------------------------------------- */

.logos {
  border-block: 1px solid var(--line);
  padding-block: clamp(34px, 5vh, 56px);
  overflow: hidden;
  /* fade the marks out at both edges so the loop has no visible seam */
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex; align-items: center; width: max-content;
  gap: clamp(52px, 6.5vw, 104px);
  animation: logo-roll 80s linear infinite;
}
.logos:hover .logo-track { animation-play-state: paused; }
@keyframes logo-roll { to { transform: translateX(-50%); } }
/* greyscaled rather than masked: several of these marks carry knocked-out
   white shapes (Coors Light, OLG, Wilson) that a flat silhouette would
   destroy. Desaturating keeps the internal detail and still lands light. */
.logo {
  width: var(--w, 108px); height: 34px; flex: 0 0 auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.42);
  transition: filter .45s var(--ease);
}
.logo:hover { filter: grayscale(0) opacity(1); }

/* ---------- services / process --------------------------------------- */

.cols { display: grid; gap: clamp(28px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.item { border-top: 1px solid var(--line); padding-top: 18px; }
.item .num { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.08em; display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.item h3 { font-size: 1.125rem; margin-bottom: 9px; letter-spacing: -0.025em; }
.item p { margin: 0; font-size: 0.9375rem; color: var(--muted); line-height: 1.55; }

/* ---------- about ---------------------------------------------------- */

.about { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.about p { color: var(--ink-soft); font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.6; max-width: 54ch; }
.about p + p { margin-top: 1.1em; }

.cv { border-top: 1px solid var(--line); }
.cv-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 18px;
  padding-block: 15px; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.cv-row strong { font-weight: 500; font-size: 0.9375rem; }
.cv-row span { font-size: 0.8125rem; color: var(--faint); }

/* ---------- contact -------------------------------------------------- */

.contact { text-align: left; }
.mail {
  display: inline-block; margin-top: 26px;
  font-family: 'Inter Tight', sans-serif; font-weight: 600;
  font-size: clamp(1.375rem, 4.2vw, 3.25rem); letter-spacing: -0.04em;
  border-bottom: 2px solid var(--line); padding-bottom: 6px;
  transition: border-color .35s var(--ease), color .35s var(--ease);
  word-break: break-word;
}
.mail:hover { border-color: var(--accent); color: var(--accent); }

.socials { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.socials a { font-size: 0.875rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.socials a:hover { color: var(--ink); border-color: var(--ink); }

.site-foot { border-top: 1px solid var(--line); padding-block: 26px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 0.75rem; color: var(--faint); }

/* ---------- case study ----------------------------------------------- */

.tile-badge {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  padding: 6px 11px; border-radius: 999px; color: var(--ink);
}

.case-top { padding-top: clamp(104px, 15vh, 160px); }
.case-back {
  display: inline-block; font-size: 0.8125rem; color: var(--muted);
  margin-bottom: clamp(30px, 5vh, 54px);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: color .3s, border-color .3s;
}
.case-back:hover { color: var(--ink); border-color: var(--ink); }
.case-top h1 { margin-block: 14px 16px; max-width: 18ch; }
.case-meta { color: var(--muted); font-size: 0.9375rem; }

.case-hero { margin: clamp(30px, 5vh, 54px) 0 0; }
.case-hero video {
  width: 100%; aspect-ratio: 16 / 9;   /* both overridden inline per project */
  max-height: var(--hero-max);
  margin-inline: auto;                 /* upright work centres in the column */
  background: #000;
  box-shadow: 0 30px 80px -50px rgba(17,17,17,.45);
}

.case-body > section { padding-block: clamp(30px, 5vh, 58px) 0; }
.case-body > section:first-child { padding-top: clamp(36px, 6vh, 70px); }

.case-lede {
  font-size: clamp(1.25rem, 2.3vw, 1.875rem);
  line-height: 1.35; letter-spacing: -0.02em;
  max-width: 24ch; color: var(--ink);
  font-family: 'Inter Tight', sans-serif; font-weight: 500;
}

.case-stats {
  display: grid; gap: 22px clamp(20px, 3vw, 46px);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line); padding-top: 24px;
}
.case-stats strong {
  display: block; font-family: 'Inter Tight', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 600; letter-spacing: -0.04em;
}
.case-stats span { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 6px; max-width: 24ch; }

.case-head { max-width: 62ch; }
.case-head .eyebrow { margin-bottom: 14px; }
.case-head h2 { margin-bottom: 14px; }
.case-head p { color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.6; margin: 0; }

.case-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  margin-top: clamp(22px, 3.5vh, 36px);
}
.case-grid figure { margin: 0; }
.case-grid img, .case-grid video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.07);
}
.case-grid figure.is-tall img, .case-grid figure.is-tall video { aspect-ratio: 9 / 16; }
.case-grid figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }

.case-beats {
  list-style: none; margin: clamp(22px, 3.5vh, 36px) 0 0; padding: 0;
  display: grid; gap: clamp(20px, 2.6vw, 34px) var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: beat;
}
.case-beats li { position: relative; }
.case-beats img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-deep); }
.case-beats .n {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.6875rem; letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 999px;
}
.case-beats p { margin: 10px 0 0; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.45; }

/* presentational media grid — players, labels, nothing else */
.case-media {
  display: grid; gap: clamp(20px, 2.6vw, 34px) var(--gap);
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  margin-top: clamp(20px, 3vh, 30px);
}
.case-media figure { margin: 0; }
.case-media video, .case-media img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  background: #000; box-shadow: inset 0 0 0 1px rgba(17,17,17,.07);
}
.case-media figure.is-tall video, .case-media figure.is-tall img { aspect-ratio: 9 / 16; background: #000; }
.case-media figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }

/* ---------- the spread: a few more cuts, laid out as a spread ---------- */

.case-set { padding-top: clamp(56px, 9vh, 104px); }
.case-set .eyebrow { margin-bottom: clamp(22px, 3.5vh, 38px); }

/* one row, no wrap: widths follow √aspect so mixed shapes balance, and each
   plate gets its own vertical drop */
.set-spread {
  display: flex; align-items: flex-start; flex-wrap: nowrap;
  gap: clamp(20px, 2.6vw, 44px);
  width: var(--fill, 100%);
}
.set-spread figure {
  flex: var(--fgs) 1 0; min-width: 0; cursor: pointer;
  margin: var(--drop, 0) 0 0;
  transition: transform .7s var(--ease-out);
}
.set-spread figure:hover { transform: translateY(-5px); }
.set-spread video {
  width: 100%; height: auto; display: block;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.07);
  transition: box-shadow .5s var(--ease);
}
.set-spread figure:hover video { box-shadow: 0 20px 44px -28px rgba(17,17,17,.5); }

.set-spread figcaption {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 0.75rem; color: var(--faint); margin-top: 12px;
  letter-spacing: 0.01em; line-height: 1.4;
}
.set-spread .n {
  font-variant-numeric: tabular-nums; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 1px; flex: 0 0 auto;
}

@media (max-width: 860px) {
  .set-spread { width: 100% !important; gap: 18px; }
  .set-spread figure { margin-top: 0; }
}
@media (max-width: 680px) {
  .case-media { grid-template-columns: 1fr; }
  .set-spread { flex-wrap: wrap; gap: 30px; }
  .set-spread figure { flex: 1 1 calc(50% - 30px); }
}

.case-video { margin: clamp(22px, 3.5vh, 36px) 0 0; }
.case-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.case-video figcaption { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }

.case-rules { margin: clamp(22px, 3.5vh, 36px) 0 0; display: grid; gap: 0; }
.case-rules > div {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 10px clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line); padding-block: 20px;
}
.case-rules.is-numbered > div { grid-template-columns: 3rem minmax(0, 15rem) minmax(0, 1fr); }
.case-rules .num { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.06em; padding-top: 3px; }
.case-rules dt { font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; }
.case-rules dd { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }

.case-quote {
  margin: clamp(26px, 4vh, 44px) 0 0; padding: 0 0 0 clamp(18px, 2.5vw, 30px);
  border-left: 2px solid var(--accent); max-width: 58ch;
}
.case-quote p {
  margin: 0; font-size: clamp(1.0625rem, 1.7vw, 1.375rem); line-height: 1.5;
  letter-spacing: -0.02em; color: var(--ink);
}
.case-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }

.case-prompt {
  margin: clamp(22px, 3.5vh, 36px) 0 0;
  background: #fff; border: 1px solid var(--line); padding: clamp(18px, 2.6vw, 32px);
}
.case-prompt > div { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 10px 22px; padding-block: 11px; }
.case-prompt > div + div { border-top: 1px solid var(--line); }
.case-prompt span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.case-prompt p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); }
.case-prompt-cap { border-top: 1px solid var(--line); margin: 14px 0 0 !important; padding-top: 14px; font-size: 0.75rem !important; color: var(--faint) !important; }

.case-cut { list-style: none; margin: clamp(22px, 3.5vh, 36px) 0 0; padding: 0; }
.case-cut li {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px;
  border-top: 1px solid var(--line); padding-block: 13px; align-items: baseline;
}
.case-cut span { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.case-cut li.is-kept span { color: var(--ink); }
.case-cut li.is-killed span { color: var(--accent); }
.case-cut li.is-killed p { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1px; }
.case-cut p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

.case-note {
  margin: clamp(26px, 4vh, 44px) 0 0; font-size: 0.8125rem; color: var(--faint);
  border-top: 1px solid var(--line); padding-top: 16px; max-width: 70ch;
}

.case-next { padding-top: clamp(60px, 9vh, 110px); }
.case-next-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.case-next-grid a { display: block; }
.case-next-grid .tile-media { aspect-ratio: var(--ar); }
.case-next-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.case-next-grid a:hover img { transform: scale(1.035); }
.case-next-grid .tile-client { margin-top: 14px; }
.case-next-grid h3 { font-size: 1rem; letter-spacing: -0.02em; }

@media (max-width: 860px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-rules > div,
  .case-rules.is-numbered > div { grid-template-columns: 1fr; }
  .case-prompt > div { grid-template-columns: 1fr; }
  .case-cut li { grid-template-columns: 4.5rem minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ---------- lightbox ------------------------------------------------- */

.lb {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px) saturate(130%);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb-stage {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 6vh, 74px) var(--pad) 10px;
}
.lb-stage video {
  /* never taller than the space left over once the caption bar has its share —
     keeps 1:1 and 9:16 pieces fully on screen */
  max-width: min(1180px, 100%);
  /* upright and square work would otherwise fill the whole window — leave room
     for the caption bar and some air beneath it */
  max-height: min(100%, 62dvh);
  width: auto; height: auto;
  background: #000;
  box-shadow: 0 30px 80px -40px rgba(17,17,17,.4);
  transform: scale(.985); transition: transform .5s var(--ease-out);
}
.lb.is-open .lb-stage video { transform: none; }
.lb-bar {
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  justify-content: space-between; align-items: baseline;
  padding: 0 var(--pad) clamp(16px, 2.6vh, 28px);
}
.lb-bar h3 { font-size: 1rem; margin-top: 2px; }
.lb-bar .tile-meta { margin-top: 3px; }
.lb-bar .tile-client { margin-bottom: 4px; }
.lb-close {
  position: absolute; top: 18px; right: var(--pad);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.6);
  display: grid; place-items: center;
  transition: background .3s var(--ease), transform .4s var(--ease-out);
}
.lb-close:hover { background: #fff; transform: rotate(90deg); }
.lb-nav { display: flex; gap: 10px; }
.lb-nav button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.8125rem; color: var(--muted); transition: color .25s, border-color .25s; }
.lb-nav button:hover { color: var(--ink); border-color: var(--ink); }

body.is-locked { overflow: hidden; }

/* ---------- cursor --------------------------------------------------- */

.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .3s var(--ease), transform .45s var(--ease-out);
}
.cursor.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- reveal --------------------------------------------------- */

.rv { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- responsive ----------------------------------------------- */

@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .tile { flex: 1 1 calc(50% - var(--gap)); }
}

@media (max-width: 680px) {
  .row { flex-direction: column; max-width: none !important; gap: 30px; }
  .tile { flex: 1 1 auto; width: 100%; }
  .head-inner { height: 60px; gap: 12px; }
  .status { display: none; }
  .wordmark { font-size: 0.8125rem; }
  .wordmark em { display: none; }
  .nav { gap: 15px; }
  .nav a { font-size: 0.8125rem; }
  .hero h1 { max-width: none; }
  .lb-stage { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rv, .tile { opacity: 1; transform: none; }
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center;
                width: auto; row-gap: 34px; padding-inline: var(--pad); }
  .logos { mask: none; -webkit-mask: none; }
}
