:root {
  /* Width shared by the logos, results and work sections so they line up down the page */
  --content: 1000px;
  --bg: #f1f1ee;
  --ink: #111110;
  --muted: #6d6d68;
  --line: #d6d6d0;
  --accent: #e2452f;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  /* Film grain texture (generated noise), laid over photos to hide compression and softness */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3' intercept='-1'/%3E%3CfeFuncG type='linear' slope='3' intercept='-1'/%3E%3CfeFuncB type='linear' slope='3' intercept='-1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  font-size: 14px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}
.nav-name { font-weight: 500; }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent); }

/* Hero — justified headline with photos tucked between the words */
.hero-title .line {
  display: block;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}
.hero {
  padding: clamp(32px, 7vh, 88px) var(--gutter) clamp(48px, 9vh, 112px);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  /* vw-only sizing keeps the hand-set lines identical at every width */
  font-size: 12vw;
  line-height: 0.86;
  letter-spacing: -0.015em;
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
}

.pic {
  --img: none;
  display: inline-block;
  position: relative;
  z-index: 1;
  width: 1.05em;
  height: 0.78em;
  margin: 0 -0.3em;
  vertical-align: -0.06em;
  /* --pos / --size let each photo zoom in on the subject */
  background: var(--img) var(--pos, center) / var(--size, cover) no-repeat, var(--ph);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / .35);
}
.pic-a { --ph: linear-gradient(140deg, #cfc3b4, #7d6c5b); transform: rotate(-2deg); }
.pic-b {
  --ph: radial-gradient(circle at 30% 40%, #ff7a5c 0 18%, transparent 19%),
        radial-gradient(circle at 70% 60%, #ff7a5c 0 18%, transparent 19%),
        var(--accent);
  width: 0.8em;
  height: 0.62em;
  transform: rotate(3deg);
}
.pic-c {
  --ph: linear-gradient(170deg, #f0a35e 0%, #4a4f63 45%, #16171c 100%);
  width: 0.9em;
  height: 1.15em;
  margin-left: 0.08em;
  margin-right: 0;
  vertical-align: -0.35em;
}

/* Film grain over every photo spot */
.pic::after,
.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--grain) 0 0 / 420px 420px;
  mix-blend-mode: overlay;
  opacity: .5;
}
.case-media, .pic { position: relative; overflow: hidden; }

/* What I do: pinned while you scroll through the list */
.services { --count: 7; position: relative; height: calc(100vh + var(--count) * 34vh); }
.services-pin {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 96px);
  height: 100vh;
  padding: 72px var(--gutter) 24px;
}
.services-copy { justify-self: end; max-width: 30rem; text-align: right; }
.services-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: .95;
}
.services-title em { color: var(--accent); }
.services-text { margin-top: 20px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: #3b3b38; }
.services-cta {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.services-cta span { display: inline-block; transition: transform .3s; }
.services-cta:hover span { transform: translateX(6px); }
.services-list { list-style: none; }
.services-list li {
  --d: 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(2.4rem, min(5.4vw, 9.4vh), 5.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  /* Further from the one in focus = softer and paler */
  filter: blur(calc(min(var(--d), 4) * 2.4px));
  opacity: calc(1 - min(var(--d), 3.2) * .27);
  transition: filter .2s linear, opacity .2s linear, color .3s;
}
.services-list li.is-active { color: var(--ink); }
.services-list li::before {
  content: "";
  position: absolute;
  left: -0.55em;
  top: 50%;
  width: .16em;
  height: .16em;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) scale(0);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.services-list li.is-active::before { transform: translateY(-50%) scale(1); }

/* Logos */
.logos { width: min(var(--content), 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: clamp(80px, 14vh, 160px); text-align: center; }
.logo-marquee {
  margin-top: 20px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* Fade the logos in and out at the edges */
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  list-style: none;
  display: flex;
  width: max-content;
}
.logo-track li {
  display: grid;
  place-items: center;
  flex: none;
  height: clamp(96px, 11vw, 150px);
  padding: 0 clamp(28px, 4vw, 56px);
}
/* Two copies of the list slide left by half their width, then repeat */
.logo-track.is-sliding { animation: logo-slide 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logo-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-track.is-sliding { animation: none; }
}
/* Every logo shown in one ink colour so the row looks consistent.
   Each <img> sets --h so all logos cover about the same area. */
.logo-track img {
  display: block;
  width: auto;
  height: calc(var(--h, 34px) * var(--logo-scale, 1));
  filter: brightness(0);
  opacity: .72;
  transition: opacity .3s;
}
.wordmark {
  white-space: nowrap;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: .72;
  transition: opacity .3s;
}
.logo-track li:hover img, .logo-track li:hover .wordmark { opacity: 1; }

/* Results */
.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--content), 100% - 2 * var(--gutter));
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 20px 32px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: 0.95;
}
.stat-label { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Work */
.work { padding: clamp(80px, 14vh, 160px) var(--gutter) 0; }
.work-head { max-width: var(--content); margin: 0 auto clamp(48px, 8vh, 88px); text-align: center; }
.work-heading {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  line-height: 0.98;
}
.work-heading em { color: var(--muted); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(64px, 8vw, 120px) clamp(40px, 6vw, 96px);
  max-width: var(--content);
  margin: 0 auto;
}
/* Each card rests at a slight tilt, alternating left and right, the right column sitting lower */
.case-card { --tilt: -2.5deg; transform: rotate(var(--tilt)); }
.case-card:nth-child(even) { --tilt: 2.5deg; margin-top: clamp(64px, 12vw, 180px); }
/* An odd card out at the end sits centred under the pair above */
.case-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(20px, 3vw, 48px)); --tilt: -1.5deg; }
.case-link {
  padding: 12px 12px 22px;
  background: #fbfbf8;
  border-radius: 18px;
  box-shadow: 0 34px 60px -34px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .05);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
/* Hover straightens the card and lifts it */
.case-link:hover { transform: rotate(calc(var(--tilt) * -1)) translateY(-8px); box-shadow: 0 44px 70px -34px rgb(0 0 0 / .45), 0 2px 8px rgb(0 0 0 / .05); }
.case-link { display: block; }
.case-card .case-media { border-radius: 10px; }
.case-media {
  --img: none;
  aspect-ratio: 4 / 3;
  background: var(--img) center / cover no-repeat,
              linear-gradient(140deg, #e3e1db, #c9c5bc);
  overflow: hidden;
}
.case-card:nth-of-type(3) .case-media { background-image: var(--img), linear-gradient(160deg, #2b2d36, #0f1013); }
.case-card:nth-of-type(4) .case-media { background-image: var(--img), linear-gradient(140deg, #d8cfc2, #9a8a76); }
.case-link .case-media > * { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.case-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Feature images in the site's black and white; full colour comes back on hover */
.case-media { filter: grayscale(1) contrast(1.06); transition: filter .6s ease; }
.case-link:hover .case-media, .case-link:focus-visible .case-media { filter: none; }
/* Paper-tone wash so whites match the page background */
.case-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity .6s ease;
}
.case-link:hover .case-media::before, .case-link:focus-visible .case-media::before { opacity: 0; }
/* Landscape films with text near the edges: show the whole frame on the film's own background */
.case-media.is-film { background: var(--film-bg, #000); }
.case-media.is-film video { object-fit: contain; }

.case-card-body { padding: 18px 6px 0; }
.case-meta { font-size: 13px; color: var(--muted); }
.case-meta span { margin-right: 10px; color: var(--ink); }
.case-title {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.02;
}
.case-desc { margin-top: 10px; max-width: 46ch; font-size: 15px; color: #3b3b38; }
.case-stat {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}
.case-stat strong {
  margin-right: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  vertical-align: -0.12em;
}
.case-cta {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}
.case-link:hover .case-cta { color: var(--accent); }
.is-soon .case-cta { font-weight: 400; color: var(--muted); border-bottom: 0; }

/* Poster-style media: real flyers shown whole on a brand-colour backdrop */
.case-poster {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #1d5a5a, #0e3a3b);
}
.case-card .case-poster img {
  position: absolute;
  top: 7%;
  left: 50%;
  translate: -50% 0;
  height: 86%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  box-shadow: 0 24px 50px -18px rgb(0 0 0 / .6);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.case-link:hover .case-poster img { transform: translateY(-2%) rotate(-1deg); }
/* ===== Case study pages =====
   Short and image-led: a personal title, a few lines of story in first person,
   then the real work doing the talking. No small uppercase labels.
   Each page sets its theme on <body class="study" style="--cs-bg: …">, usually the client's colours. */
.study {
  --cs-bg: #151514;
  --cs-ink: #f1efe8;
  --cs-muted: #a3a19b;
  --cs-accent: var(--accent);
  /* Accent for text on the light reading surface (the brand accent can be too pale there) */
  --cs-accent-ink: var(--cs-accent);
  --cs-line: color-mix(in srgb, var(--cs-ink) 18%, transparent);
}
.study .nav-cta:hover { background: var(--cs-accent-ink); }

/* Opening: a personal title, who it was for, and a few short lines of story */
.cs { width: min(var(--content), 100% - 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(24px, 4vh, 40px); }
.cs-back { font-size: 15px; color: var(--muted); transition: color .2s; }
.cs-back:hover { color: var(--ink); }
.cs-title {
  max-width: 16ch;
  margin: clamp(40px, 9vh, 104px) auto 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: .95;
  letter-spacing: -0.015em;
  text-align: center;
}
.cs-title em { color: var(--cs-accent-ink); }
.cs-client { margin-top: 20px; text-align: center; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); animation: rise 1s .08s cubic-bezier(.2, .7, .2, 1) both; }
.cs-story {
  max-width: 54ch;
  margin: clamp(32px, 6vh, 56px) auto 0;
  text-align: center;
  animation: rise 1s .16s cubic-bezier(.2, .7, .2, 1) both;
}
.cs-story p { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.6; color: #2f2f2c; }
.cs-story p + p { margin-top: 1em; }

/* Lead media: one big film or a reel of phone films */
.cs-lead { margin-top: clamp(56px, 9vh, 104px); }
.cs-lead video, .cs-lead img { display: block; width: 100%; border-radius: 18px; background: var(--cs-bg); }
.cs-reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.cs-reel video, .cs-reel img { aspect-ratio: 9 / 16; object-fit: cover; }

/* Section heading */
.cs-h2 {
  max-width: 22ch;
  margin: clamp(96px, 15vh, 168px) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}
.cs-h2 em { color: var(--cs-accent-ink); }

/* Media on case studies sits on paper cards like the homepage: slightly tilted, flying in with the scroll */
.cs-reel > *, .cs-bento > *, .cs-lead:not(.cs-reel) {
  --tilt: 0deg;
  --dir: -1;
  --fly: 0;
  border: clamp(6px, .8vw, 10px) solid #fbfbf8;
  box-shadow: 0 34px 60px -34px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .05);
  transform: translate3d(calc(var(--fly) * var(--dir) * 14vw), calc(var(--fly) * 70px), 0) rotate(calc(var(--tilt) + var(--fly) * var(--dir) * 9deg)) scale(calc(1 - var(--fly) * .08));
  opacity: calc(1 - var(--fly) * .9);
}
.cs-lead:not(.cs-reel) { border-radius: 18px; overflow: hidden; --tilt: -1deg; }
.cs-lead:not(.cs-reel) img, .cs-lead:not(.cs-reel) video { border-radius: 8px; }
.cs-reel > :nth-child(1) { --tilt: -3deg; }
.cs-reel > :nth-child(2) { --tilt: 1.5deg; --dir: 1; margin-top: clamp(20px, 4vw, 56px); }
.cs-reel > :nth-child(3) { --tilt: 3.5deg; --dir: 1; }
.cs-bento > :nth-child(odd) { --tilt: -1.2deg; }
.cs-bento > :nth-child(even) { --tilt: 1.2deg; --dir: 1; }

/* Gallery: real pieces in mixed tile sizes. Desktop layout uses named areas per page. */
.cs-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 13vw, 220px);
  gap: clamp(10px, 1.4vw, 20px);
  margin-top: clamp(32px, 5vh, 56px);
}
.cs-bento > * {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--cs-bg);
}
.cs-bento img, .cs-bento video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
/* Flyers and posters sit whole on the brand colour */
.cs-bento .is-print img { inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .45)); }
.cs-bento > *:hover img { transform: scale(1.035); }
.cs-bento .is-paper { background: #e6e3dc; }
.cs-bento .is-paper img { filter: drop-shadow(0 16px 24px rgb(0 0 0 / .2)); }

/* One line worth remembering */
.cs-line {
  max-width: 20ch;
  margin: clamp(96px, 15vh, 168px) auto 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  line-height: 1;
  text-align: center;
}
.cs-line em { color: var(--cs-accent-ink); }

/* How it went */
.cs-impact {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
  margin-top: clamp(96px, 15vh, 168px);
  padding-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--line);
}
.cs-impact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }
.cs-impact p { max-width: 56ch; font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.6; color: #2f2f2c; }
.cs-impact strong { font-family: var(--serif); font-weight: 400; font-size: 1.5em; color: var(--cs-accent-ink); }

/* Next case + call to action */
.cs-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  padding: clamp(72px, 12vh, 128px) var(--gutter);
}
.cs-next-link { display: block; }
.cs-next-pre { font-size: 15px; color: var(--muted); }
.cs-next-title {
  max-width: 22ch;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: .95;
  transition: color .25s;
}
.cs-next-link:hover .cs-next-title { color: var(--cs-accent-ink); }
.cs-next-title span { display: inline-block; transition: transform .25s; }
.cs-next-link:hover .cs-next-title span { transform: translateX(10px); }
.cs-next .submit { white-space: nowrap; }
a.submit { display: inline-block; }
.cs .cs-next { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-left: 0; padding-right: 0; }
.cs .cs-next-title { margin-left: auto; margin-right: auto; }

/* Placeholder highlight — delete the <mark> tags once real results are in */
mark { background: #ffe9a8; color: inherit; padding: 0 .15em; }

/* Lead form */
#start { scroll-margin-top: 40px; }
.start {
  display: grid;
  grid-template-columns: 7fr 4fr;
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(96px, 16vh, 180px) var(--gutter) 0;
}
.start-side { display: grid; justify-items: start; gap: 20px; }
.start-heading {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.95;
}
.start-heading em { color: var(--muted); }
.start-sub { max-width: 34ch; color: var(--muted); }

.lead-form { display: grid; gap: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; }
.field > span, .field legend {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field legend { margin-bottom: 12px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 0;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d6d68' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #a5a5a0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "Other" text box appears only when the Other chip is ticked */
.field .other-input { display: none; margin-top: 12px; }
.field:has(input[value="Other"]:checked) .other-input { display: block; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.submit {
  padding: 16px 32px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.submit:hover { background: var(--accent); }
.submit:disabled { opacity: .5; cursor: wait; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { border-bottom: 1px solid currentColor; }
.form-status:empty { display: none; }
.form-status { font-size: 15px; }

/* Pop-up */
.lead-dialog {
  width: min(760px, 100% - 32px);
  max-height: min(90vh, 100% - 32px);
  margin: auto;
  padding: clamp(28px, 5vw, 56px);
  overflow-y: auto;
  color: var(--ink);
  background: var(--bg);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgb(0 0 0 / .35);
}
.lead-dialog::backdrop {
  background: rgb(17 17 16 / .55);
  backdrop-filter: blur(4px);
}
.lead-dialog[open] { animation: dialog-in .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dialog-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: -12px -12px 0 0;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--ink); }
.dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dialog-heading {
  margin: 12px 0 clamp(24px, 4vw, 40px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}
.dialog-heading em { color: var(--muted); }
body:has(.lead-dialog[open]) { overflow: hidden; }

/* After a successful send, swap the form for the thank-you line */
.lead-form.is-sent > :not(.form-status) { display: none; }
.lead-form.is-sent .form-status {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
}

/* Footer */
.footer {
  margin-top: clamp(80px, 14vh, 160px);
  padding: clamp(56px, 10vh, 120px) var(--gutter) 28px;
  background: var(--ink);
  color: var(--bg);
}
.footer .label { color: #9a9a94; }
.footer-lead { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; color: #a3a19b; }
.footer-email {
  display: block;
  margin: 20px 0 clamp(56px, 10vh, 120px);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 9.5vw, 9rem); /* sized so the full address stays on one line */
  line-height: 1;
  overflow-wrap: anywhere;
  transition: color .25s;
}
.footer-email:hover { color: var(--accent); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #9a9a94;
}

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Scroll progress line along the top */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Headline photos drift at their own speed as the page scrolls */
.pic { translate: 0 var(--drift, 0px); will-change: translate; }

/* Headings rise in word by word (script.js wraps each word) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 40ms); }
.is-visible .split-word > span { transform: none; }

/* Case cards ride in with the scroll: script.js sets --fly from 1 (off to the side) to 0 (settled) */
.js .case-card {
  --fly: 0;
  --dir: -1;
  transform: translate3d(calc(var(--fly) * var(--dir) * 22vw), calc(var(--fly) * 90px), 0) rotate(calc(var(--tilt) + var(--fly) * var(--dir) * 12deg)) scale(calc(1 - var(--fly) * .1));
  opacity: calc(1 - var(--fly) * .9);
  will-change: transform, opacity;
}
.js .case-card:nth-child(even) { --dir: 1; }
.js .case-card .case-media { clip-path: inset(calc(var(--fly) * 16%) calc(var(--fly) * 12%) round calc(var(--fly) * 24px)); }
.case-media { transition: filter .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }

/* Hover: the card lifts and the arrow nudges forward */
.case-cta span { display: inline-block; transition: transform .3s; }
.case-link:hover .case-cta span { transform: translateX(6px); }

@media (prefers-reduced-motion: reduce) {
  .hero-title, .lead-dialog[open] { animation: none; }
  .scroll-progress { display: none; }
  .pic { translate: none; }
  .split-word > span { transform: none; transition: none; }
  .js .case-card { --fly: 0 !important; }
  .services { height: auto; }
  .services-pin { position: static; height: auto; }
  .services-list li { filter: none !important; opacity: 1 !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile */
@media (max-width: 760px) {
  .services { height: calc(100vh + var(--count) * 28vh); }
  .services-pin { grid-template-columns: 1fr; align-content: center; gap: 28px; }
  .services-copy { justify-self: start; text-align: left; }
  .services-list li { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .services-list { padding-left: .5em; }
  .services-list li::before { left: -0.4em; }
  .start { grid-template-columns: 1fr; }
  .lead-dialog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .field-row { grid-template-columns: 1fr; }
  .logo-track { --logo-scale: .68; }
  .logo-track li { height: 84px; padding: 0 22px; }
  .results { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; grid-column: 1 / -1; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case-grid { grid-template-columns: 1fr; max-width: 460px; row-gap: 56px; }
  .case-card { --tilt: -1.5deg; }
  .case-card:nth-child(even) { --tilt: 1.5deg; margin-top: 0; }
  .case-card:last-child:nth-child(odd) { grid-column: auto; width: auto; }
  .cs-story { margin-left: 0; }
  .cs-reel { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .cs-reel video { scroll-snap-align: start; }
  .cs-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .cs-bento > * { grid-area: auto !important; }
  .cs-bento .wide { grid-column: span 2 !important; }
  .cs-impact { grid-template-columns: 1fr; }
  .cs-next { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 4px; }
}

/* Keyboard focus */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
