/* ---------- tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --grey: #6e6e6e;
  --mute: #9a9a9a;
  --rule: #e4e4e4;
  --seam: #e3e3e3;
  --dark-rule: #2c2c2c;
  --dark-text: #b0b0b0;
  --pad: clamp(20px, 5vw, 64px);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Work Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[aria-disabled="true"] { opacity: .55; cursor: default; }

.pad { padding-inline: var(--pad); }
.lbl {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 14px 0 0;
  text-wrap: balance;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -.5px;
  margin: 0 0 34px;
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 28px;
  border-radius: 27px;
  border: 1px solid var(--ink);
  font: 500 15px var(--sans);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.pill-solid { background: var(--ink); color: var(--paper); }
.pill-solid:hover { background: var(--grey); border-color: var(--grey); }
.pill-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill-light:hover { background: var(--mute); border-color: var(--mute); }
.pill-outline-light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, .6); }
.pill-outline-light:hover { background: var(--paper); color: var(--ink); }
.chip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid currentColor;
  border-radius: 12px;
  padding: 3px 9px;
}

/* ---------- nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px var(--pad);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.nav-logo svg { width: 32px; height: auto; }
.nav-links { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.nav-links a:hover,
body[data-page="work"] [data-nav="work"],
body[data-page="about"] [data-nav="about"] { text-decoration: underline; text-underline-offset: 5px; }
body[data-page="work"] .nav { color: var(--paper); }
.nav-menu {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px 0;
  color: inherit;
  font: 500 15px var(--sans);
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 22px var(--pad) 40px;
  background: var(--ink);
  color: var(--paper);
}
.menu[hidden] { display: none; }
.menu-close {
  align-self: flex-end;
  background: none;
  border: 0;
  padding: 8px 0;
  color: inherit;
  font: 500 15px var(--sans);
  cursor: pointer;
}
.menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.menu nav a { font-family: var(--serif); font-size: 52px; line-height: 1.1; }
.menu-socials { margin-top: auto; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--dark-text); }

/* ---------- brands ---------- */
.brands { background: var(--ink); color: var(--paper); padding: 110px var(--pad) 70px; }
.brands-head { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.brands-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 12vw, 180px);
  line-height: .92;
  letter-spacing: -1.5px;
  margin: 0;
}
.brands-line { max-width: 560px; margin: 34px 0 28px; font-size: clamp(18px, 1.6vw, 21px); color: var(--paper); }
.brands-creator { margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--dark-rule); font-size: 16px; color: var(--dark-text); }
.brands-creator a:hover { color: var(--paper); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px 56px;
  padding: 40px var(--pad) 36px;
  border-top: 1px solid var(--dark-rule);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}
.foot .lbl { display: block; margin-bottom: 6px; font-size: 10px; color: var(--grey); }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-socials { display: inline-flex; flex-wrap: wrap; gap: 16px; }

/* ---------- intro ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity 520ms ease;
}
#intro[hidden] { display: none; }
.intro-pending #intro[hidden] { display: flex; animation: intro-failsafe 0s linear 4s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
#intro.done { opacity: 0; pointer-events: none; }
#intro svg { width: 168px; height: auto; }
#intro .stem, #intro .bowl { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
#intro .stem { --len: 180; animation: draw 500ms cubic-bezier(.65, 0, .35, 1) forwards; }
#intro .bowl { --len: 302; animation: draw 620ms cubic-bezier(.65, 0, .35, 1) 340ms forwards; }
#intro .arc { opacity: 0; transform-box: view-box; transform-origin: 228px 140px; }
#intro .arc-top { transform: rotate(-128deg); animation: swing 760ms cubic-bezier(.34, 1.12, .5, 1) 860ms forwards; }
#intro .arc-bot { transform: rotate(128deg); animation: swing 760ms cubic-bezier(.34, 1.12, .5, 1) 860ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes swing { to { transform: rotate(0deg); opacity: 1; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: clamp(600px, 64vw, 780px);
  overflow: hidden;
  /* matches the studio backdrop in the photo, darker at the top like the shot */
  background: linear-gradient(to bottom, #c9c9c9, #dadada 55%);
}
.hero-copy { position: absolute; z-index: 2; left: var(--pad); top: 20%; max-width: min(460px, 34vw); }
.hero-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin: 0;
  text-wrap: balance;
}
.hero-sub { margin: 18px 0 26px; font-size: clamp(17px, 1.6vw, 20px); }
.hero-role { position: absolute; z-index: 2; right: var(--pad); top: 36%; margin: 0; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; }
.hero-role span { display: block; margin-bottom: 12px; }
@media (min-width: 761px) { .hero-role { max-width: 24vw; } }
.hero-photo {
  position: absolute;
  left: 56%;
  bottom: 0;
  transform: translateX(-50%);
  width: clamp(300px, 34vw, 480px);
  aspect-ratio: 2 / 3;
  display: grid;
}
/* soften the photo's edges so it melts into the backdrop */
.hero-photo img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 14%);
  mask-composite: intersect;
}
.hero-photo picture { display: contents; }
.hero-photo-ph {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 48% 48% 0 0;
  background: #d6d6d6;
  color: #8a8a8a;
  font-family: var(--sans);
  font-size: 14px;
}
.hero-photo img ~ .hero-photo-ph,
.hero-photo picture ~ .hero-photo-ph { display: none; }
.hero-place {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 18%;
  margin: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 18px;
  padding: 14px var(--pad) 14px 14px;
  border-radius: 60px 0 0 60px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.35;
}
.globe { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #2a2a2a; display: grid; place-items: center; }
.globe svg { width: 26px; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Phone: the photo leads. The headline sits over the backdrop above the hair,
   and the rest follows below. */
@media (max-width: 760px) {
  .hero { height: auto; display: flex; flex-direction: column; align-items: center; padding: 92px 0 36px; }
  .hero-copy { display: contents; }
  .hero-line { order: 0; position: relative; z-index: 2; padding-inline: var(--pad); text-align: center; font-size: clamp(44px, 13vw, 64px); }
  .hero-sub { order: 1; position: relative; z-index: 2; margin: 12px 0 0; padding-inline: var(--pad); text-align: center; font-size: 16px; }
  .hero-photo { position: relative; order: 3; left: auto; transform: none; width: min(92vw, 420px); margin-top: -36px; }
  .hero-photo img {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  }
  .hero-copy .pill { order: 2; position: relative; z-index: 2; margin-top: 18px; }
  .hero-role { position: static; order: 5; margin-top: 28px; padding-inline: var(--pad); font-size: 18px; text-align: center; }
  .hero-role span { display: inline; margin: 0 8px 0 0; }
  .hero-place { position: static; order: 6; align-self: flex-end; margin-top: 20px; }
}

/* ---------- recent work ---------- */
.proof { padding-block: 90px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 20px; border-top: 1px solid var(--ink); }
.proof-item { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px 0; }
.proof-item + .proof-item { padding-left: 22px; border-left: 1px solid var(--rule); }
.proof-big { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.5px; }
.proof-what { font-size: 14px; line-height: 1.5; color: var(--grey); }
.proof-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; }
.proof-item:hover .proof-more { text-decoration: underline; text-underline-offset: 3px; }
a.proof-item:hover .proof-big { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item + .proof-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .proof { padding-block: 64px 0; }
}

/* ---------- what I run ---------- */
.run { padding-block: 110px 100px; }
.run-rows { margin-top: 20px; }
.run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 40px;
  align-items: baseline;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.run-row:last-child { border-bottom: 1px solid var(--rule); }
.run-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin: 0; }
.run-row p { margin: 0; color: var(--grey); }
.run-note { margin: 22px 0 0; font-size: 14px; color: var(--grey); }
.run-cta { margin-top: 28px; }
.run-cta:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .run { padding-block: 70px; }
  .run-row { grid-template-columns: 1fr; }
}

/* ---------- work list ---------- */
/* The stage is sticky inside the section. overflow: clip plus the min-height
   keep it from ever spilling into the next section (the round-three bug). */
.worklist { position: relative; overflow: clip; min-height: min(100vh, 820px); background: var(--ink); color: var(--paper); }
.wl-stage {
  position: sticky;
  top: 0;
  height: min(100vh, 820px);
  margin-bottom: calc(-1 * min(100vh, 820px));
  overflow: hidden;
  background: radial-gradient(circle at 70% 40%, #2a2a2a, #0a0a0a 70%);
}
.wl-bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  filter: blur(28px) brightness(.42);
}
.wl-card {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(160px, 17vw, 240px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  background: #1c1c1c;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.wl-head { position: relative; z-index: 1; padding-top: 84px; }
body[data-page="work"] .wl-head { padding-top: 120px; }
.wl-head .lbl { color: rgba(255, 255, 255, .55); }
.wl-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 30vh calc(var(--pad) + 22vw) 30vh var(--pad);
  text-align: center;
}
.wl-item { display: block; padding-block: 2px; cursor: pointer; }
.wl-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.12;
  letter-spacing: -.5px;
  color: rgba(255, 255, 255, .28);
  transition: color 250ms ease;
  text-wrap: balance;
}
.wl-meta {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 250ms ease, max-height 250ms ease;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--paper);
}
.wl-item.is-active .wl-title { color: var(--paper); }
.wl-item.is-active .wl-meta { max-height: 5em; opacity: 1; padding: 6px 0 12px; }
.wl-more { position: relative; z-index: 1; display: flex; justify-content: center; padding-bottom: 90px; }
.wl-noscript { position: relative; z-index: 1; padding-bottom: 60px; }
@media (max-width: 760px) {
  .wl-card { display: none; }
  .wl-list { padding-inline: var(--pad); }
}

/* ---------- past work ---------- */
.past { padding-block: 100px 110px; }
.past-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; }
.past-link { display: block; }
.past-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--seam); }
.past-media video, .past-media img { width: 100%; height: 100%; object-fit: cover; }
.past-media .chip { position: absolute; left: 14px; top: 14px; background: var(--paper); }
.past-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin: 18px 0 6px; }
.past-blurb { max-width: 46ch; margin: 8px 0 0; color: var(--grey); }
a.past-link:hover .past-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .past-grid { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about-hero { padding-top: 150px; padding-bottom: 60px; }
.about-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px 72px; align-items: start; padding-bottom: 100px; }
.about-photo {
  display: grid;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--seam);
  color: #8a8a8a;
  font-family: var(--sans);
  font-size: 14px;
}
.about-photo img, .about-photo span { grid-area: 1 / 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about-photo span { place-self: center; }
.about-photo img ~ span { display: none; }
.about-text p { margin: 0 0 18px; font-size: 18px; }
.about-text p + p { color: var(--grey); }
.about-text .pill { margin-top: 10px; }
.road { padding-bottom: 110px; }
.road-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--rule); }
.road-row:last-child { border-bottom: 1px solid var(--rule); }
.road-when { padding-top: 4px; }
.road-what { margin: 0; font-weight: 500; }
.road-desc { margin: 2px 0 0; font-size: 15px; color: var(--grey); }
@media (max-width: 760px) {
  .about-body { grid-template-columns: 1fr; }
  .road-row { grid-template-columns: 90px minmax(0, 1fr); }
}

/* ---------- creators ---------- */
.creator-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; }
.creators { padding-top: 150px; padding-bottom: 110px; }
.creators-body { max-width: 560px; margin: 22px 0 40px; font-size: 18px; color: var(--grey); }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 14px; font-weight: 500; }
.field-full { grid-column: 1 / -1; }
.field input, .field select {
  height: 50px;
  padding: 0 20px;
  border: 1px solid var(--rule);
  border-radius: 25px;
  background: var(--paper);
  color: var(--ink);
  font: 16px var(--sans);
  appearance: none;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.yn { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.yn legend { width: 100%; margin-bottom: 6px; padding: 0; }
.yn label { position: relative; }
.yn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.yn label span { display: inline-flex; align-items: center; height: 42px; padding: 0 22px; border: 1px solid var(--rule); border-radius: 21px; font-weight: 400; }
.yn input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.yn input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.yn input[aria-invalid="true"] + span { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .pill { grid-column: 1 / -1; justify-self: start; }
.cform .pill:disabled { opacity: .6; cursor: default; }
.form-status { grid-column: 1 / -1; min-height: 1.6em; margin: 0; font-size: 14px; color: var(--grey); }
@media (max-width: 560px) {
  .cform { grid-template-columns: 1fr; }
}

h1.lbl { font-weight: 400; }

/* ---------- case page (lookalike.html) ---------- */
/* One centered column: the story reads top to bottom, so nothing hangs off
   the left edge on a wide screen. */
.case { max-width: 1120px; margin-inline: auto; padding-top: 150px; padding-bottom: 120px; text-align: center; }
.case a { text-underline-offset: 3px; }
.case-title { margin: 0 auto; max-width: 14ch; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 112px); line-height: .98; letter-spacing: -1.5px; text-wrap: balance; }
.case-stat { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(36px, 5.5vw, 72px); line-height: 1; }
.case-photo { display: block; width: min(100%, 520px); height: auto; margin: 56px auto 0; }
.story { margin-top: 88px; display: grid; justify-items: center; gap: 88px; }
.case-lede { margin: 0; max-width: 34ch; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; text-wrap: balance; }
/* The two pre-event reels sit side by side; subgrid keeps the videos level
   when the captions run to different lengths. */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); grid-template-rows: auto auto; gap: 18px 48px; justify-content: center; }
.duo-item { display: grid; grid-row: span 2; grid-template-rows: subgrid; justify-items: center; margin: 0; }
.duo-item figcaption { align-self: end; max-width: 34ch; font-size: 18px; line-height: 1.5; text-wrap: balance; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; max-width: 30ch; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; text-wrap: balance; }
/* Instagram's embed.js swaps each blockquote for its own iframe; the link
   inside is what shows if that script is blocked. */
.story-reel, .clip-reel { width: 100%; min-width: 0 !important; max-width: 400px; margin: 0 auto !important; }
.story-reel a, .clip-reel a { display: block; padding: 16px; border: 1px solid var(--rule); font-size: 14px; }
.story-head { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.clips-wrap { margin-top: 140px; }
.clips { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 32px; }
.clip { flex: 0 1 300px; display: grid; justify-items: center; align-content: start; gap: 14px; min-width: 0; }
.clip-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.clips-more { max-width: 36ch; margin: 64px auto 0; font-size: 18px; line-height: 1.5; text-wrap: balance; }
.found-wrap { margin-top: 140px; display: grid; justify-items: center; gap: 20px; font-size: 18px; }
.found-wrap p { margin: 0; }
.found { list-style: none; margin: 8px 0 0; padding: 0; width: min(100%, 520px); border-top: 1px solid var(--rule); }
.found li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.found a { font-weight: 500; }
.found span { font-size: 14px; }
.case-end { margin: 140px 0 0; font-family: var(--serif); font-size: clamp(44px, 7vw, 96px); line-height: 1; text-wrap: balance; }
/* Each beat eases in as it scrolls into view, where the browser supports it. */
@supports (animation-timeline: view()) {
  .case-lede, .duo-item, .beats li, .clip, .case-end { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
}
@media (max-width: 760px) {
  .case { padding-top: 120px; }
  .story { margin-top: 64px; gap: 64px; }
  .duo { grid-template-columns: minmax(0, 400px); grid-template-rows: none; gap: 56px; }
  .duo-item { grid-row: auto; grid-template-rows: none; gap: 16px; }
  .clips-wrap, .found-wrap { margin-top: 104px; }
  .case-end { margin-top: 104px; }
}

/* ---------- reduced motion (keep this block last in the file) ---------- */
@media (prefers-reduced-motion: reduce) {
  #intro { display: none !important; }
  .globe svg { animation: none; }
  .wl-title, .wl-meta { transition: none; }
  .case-lede, .duo-item, .beats li, .clip, .case-end { animation: none; }
}

/* ---------- captions tool ---------- */
.cap [hidden] { display: none !important; }
.cap { max-width: 560px; margin: 0 auto; padding-block: 32px 64px; }
.cap-title { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0 0 8px; }
.cap-status { min-height: 1.6em; margin: 0 0 16px; color: var(--grey); }
.cap-step, .cap-step form { display: grid; gap: 16px; }
.cap-input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); color: var(--ink); }
.cap-input[dir="rtl"] { font-family: 'TikTok Sans', -apple-system, sans-serif; }
.cap-btn { display: block; width: 100%; padding: 16px; font: inherit; font-weight: 600; text-align: center; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; cursor: pointer; }
.cap-link { font: inherit; background: none; border: 0; padding: 0; text-decoration: underline; color: var(--ink); cursor: pointer; }
.cap-note { margin: 0; color: var(--grey); font-size: 14px; }
.cap-stage { background: var(--ink); border-radius: 12px; overflow: hidden; }
.cap-stage canvas { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.cap-controls { display: flex; gap: 8px; align-items: center; }
.cap-seg { flex: 1; display: flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.cap-seg button { flex: 1; padding: 10px 0; font: inherit; font-size: 14px; background: var(--paper); color: var(--ink); border: 0; cursor: pointer; }
.cap-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cap-round { min-width: 44px; height: 44px; padding: 0 14px; font: inherit; font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.cap-round[data-bg="white"] { box-shadow: inset 0 0 0 3px var(--ink); }
.cap-round[data-bg="black"] { background: var(--ink); color: var(--paper); }
.cap-pos { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--grey); }
.cap-pos input { flex: 1; accent-color: var(--ink); }
.cap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cap-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.cap-list .cap-input { grid-column: 2; padding: 8px 10px; }
.cap-time { grid-row: span 2; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.cap-progress { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.cap-bar { height: 100%; width: 0; background: var(--ink); }
.cap-error { margin: 16px 0 0; font-weight: 600; color: var(--ink); }
.cap-work { display: grid; gap: 14px; }
.cap-mascot:empty { display: none; }
.cap-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cap-steps li { color: var(--grey); padding-left: 22px; position: relative; }
.cap-steps li::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--grey); }
.cap-steps li[data-state="now"] { color: var(--ink); font-weight: 600; }
.cap-steps li[data-state="now"]::before { border-color: var(--ink); animation: cap-pulse 1s ease-in-out infinite; }
.cap-steps li[data-state="done"]::before { background: var(--ink); border-color: var(--ink); }
@keyframes cap-pulse { 50% { transform: scale(1.35); } }
.cap-work .cap-bar { transition: width .2s linear; }
.cap-speaker { display: grid; gap: 8px; }

/* ---------- toolbox: the tape, the set and the camera ---------- */
html.tbx-lock, html.tbx-lock body { overflow: hidden; }
.hero.cam { position: relative; z-index: 50; transform-origin: 0 0; transition: transform 1100ms cubic-bezier(.6, 0, .25, 1); }
.hero.cam-hunt { animation: cam-hunt 1100ms ease-in-out; }
.hero.cam-out { transition: transform 700ms cubic-bezier(.4, 0, .2, 1); }
.hero.cam-still { transition: none; }
.hero.cam-fade { animation: cam-fade 250ms linear; }
@keyframes cam-hunt { 0% { filter: blur(0); } 25% { filter: blur(8px); } 50% { filter: blur(2px); } 70% { filter: blur(5px); } 100% { filter: blur(0); } }
@keyframes cam-fade { from { opacity: 0; } to { opacity: 1; } }
.tbx-viewfinder { position: fixed; inset: 16px; z-index: 60; pointer-events: none; }
.tbx-viewfinder i { position: absolute; width: 28px; height: 28px; border: 0 solid var(--ink); }
.tbx-viewfinder i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.tbx-viewfinder i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.tbx-viewfinder i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.tbx-viewfinder i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.tbx-rec { position: absolute; left: 40px; top: 4px; font: 600 13px var(--sans); letter-spacing: 1px; color: var(--ink); }
.tbx-rec::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ink); animation: tbx-blink 1s steps(2) infinite; }
@keyframes tbx-blink { 50% { opacity: 0; } }

.spot { position: absolute; z-index: 3; top: 20%; left: calc(56% - .19 * clamp(300px, 34vw, 480px)); transform: translateX(-100%); display: grid; justify-items: end; gap: 14px; }
.tape { display: grid; justify-items: inherit; text-decoration: none; }
.tape-main { display: grid; justify-items: inherit; gap: 6px; transition: transform .2s ease; }
.tape-word, .set-back { font-family: 'Permanent Marker', var(--sans); color: #d62a1f; background: rgba(250, 250, 246, .9); padding: 6px 14px 3px; white-space: nowrap; line-height: 1.15; clip-path: polygon(0 6%, 4% 0, 96% 3%, 100% 0, 99% 94%, 95% 100%, 3% 97%, 0 100%); }
.tape-word { font-size: clamp(20px, 2.2vw, 36px); }
.tape-word:nth-child(1) { transform: rotate(-5deg); }
.tape-word:nth-child(2) { transform: rotate(4deg); margin-right: 22px; }
.tape-word:nth-child(3) { transform: rotate(-2deg); }
.tape:hover .tape-main, .tape:focus-visible .tape-main { transform: translateY(-3px) rotate(-1deg); }

.set { position: relative; width: 100px; height: 100px; cursor: zoom-in; }
/* desktop: tuck the set under the tape and left, clear of the face and shoulder */
@media (min-width: 1001px) { .set { margin-right: calc(.15 * clamp(300px, 34vw, 480px)); } }
/* mid laptops: the subline runs long, so the set drops below it */
@media (min-width: 1001px) and (max-width: 1300px) { .set { margin-top: 36px; margin-right: calc(.19 * clamp(300px, 34vw, 480px)); } }
.set.is-live { cursor: auto; }
.set-inner { position: absolute; left: 0; top: 0; width: 280px; height: 280px; transform: scale(.357); transform-origin: 0 0; transition: filter .6s ease, opacity .6s ease; }
/* zoomed out, the pins read as faint marks on the paper; colour comes back as the camera lands */
.set:not(.is-live) .set-inner { filter: grayscale(1) contrast(.8); opacity: .5; }
.set-back { position: absolute; left: 14px; top: 196px; border: 0; font-size: 12px; transform: rotate(-2deg); cursor: pointer; }
.pin { position: absolute; width: 112px; padding: 16px 10px 10px; display: grid; justify-items: center; gap: 3px; border: 0; background: #f6f4ee; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); color: var(--ink); font-family: var(--sans); text-align: center; text-decoration: none; cursor: pointer; }
.pin[data-tool="limeade"] { left: 12px; top: 10px; transform: rotate(-5deg); }
.pin[data-tool="hookstack"] { left: 150px; top: 2px; transform: rotate(4deg); }
.pin[data-tool="captions"] { left: 146px; top: 182px; transform: rotate(-3deg); }
.pin-head { position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #d62a1f 55%, #8c140c); box-shadow: 0 2px 2px rgba(0, 0, 0, .3); }
.pin-logo { width: 46px; height: 46px; border-radius: 10px; }
.pin-name { font-weight: 600; font-size: 13px; }
.pin-line { font-size: 8.5px; line-height: 1.3; color: var(--grey); }
.pin-note { font-size: 8px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.pin.is-wiggle { animation: pin-wiggle 400ms; }
@keyframes pin-wiggle { 25% { rotate: -4deg; } 75% { rotate: 4deg; } }

@media (min-width: 761px) and (max-width: 1000px) {
  .spot { left: 49.5%; top: calc(100% - 1.5 * clamp(300px, 34vw, 480px) - 58px); transform: translateX(-50%); justify-items: center; }
  .tape-main { display: flex; gap: 4px; }
  .tape-word { font-size: 18px; }
  .tape-word:nth-child(2) { margin-right: 0; }
  .set { justify-self: start; margin-left: 24px; width: 84px; height: 84px; }
  .set-inner { transform: scale(.3); }
}
@media (max-width: 760px) {
  .spot { position: relative; order: 3; align-self: flex-start; top: auto; left: auto; transform: none; margin: 22px 0 -170px max(8vw, calc(50% - 190px)); justify-items: start; }
  .tape-word { font-size: 18px; }
  .tape-word:nth-child(2) { margin-right: 0; margin-left: 18px; }
  .set { width: 73px; height: 73px; }
  .set-inner { transform: scale(.26); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.cam, .hero.cam-out { transition: none; }
  .hero.cam-hunt { animation: none; }
}
