:root {
  --bg: #EAEAEA;
  --bg-2: #E0E0E0;
  --ink: #111111;
  --muted: #7A7A7A;
  --line: rgba(17, 17, 17, .12);
  --gut: 8px;
  --r: 6px;
  --pad: clamp(16px, 3vw, 40px);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.label { font-size: 12px; color: var(--muted); letter-spacing: .01em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px calc(var(--pad) + 10px);
  color: #fff; font-size: 14px; font-weight: 500;
  transition: color .3s, background .3s;
}
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 28px); }
.nav nav a { opacity: .9; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav.solid { color: var(--ink); background: rgba(234,234,234,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- hero mosaic ---------- */
.hero {
  height: 100svh; min-height: 560px;
  background: var(--ink);
  padding: var(--gut);
  display: flex; flex-direction: column; gap: var(--gut);
}
.row { display: grid; gap: var(--gut); min-height: 0; }
.r1 { flex: .7; grid-template-columns: 1fr 1fr; }
.r2 { flex: 1.9; grid-template-columns: 1fr 2.2fr 1fr; }
.r3 { flex: .95; grid-template-columns: 1fr 1fr; position: relative; }
.tile-h { position: relative; overflow: hidden; border-radius: var(--r); background: #222; }
.tile-h img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); opacity: 0; transition: opacity 1s ease, transform 2.4s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.tile-h img.ok { opacity: 1; transform: scale(1); }
/* hierarchy: the centre image leads in colour, the rest recede in muted black & white */
.tile-h:not(.lead) img { filter: grayscale(1) brightness(.62) contrast(1.05); }
.tile-h:not(.lead):hover img { filter: none; }
.tile-h.lead img { filter: none; }
.r3 .tile-h img, .r3 .tile-h:hover img { filter: grayscale(1) brightness(.42) contrast(1.05); }
.r3 .tile-h::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.45)); }

.wordmark {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 3vw;
  padding: 0 clamp(16px, 2.6vw, 36px) .2em;
  color: #F2F2F2; font-weight: 600; letter-spacing: -.055em; line-height: .9;
  font-size: clamp(64px, 12.5vw, 210px);
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
  pointer-events: none;
}
.wordmark .rule { flex: 1; height: max(2px, .02em); background: currentColor; opacity: .75; max-width: 22vw; transform: translateY(.05em); }

/* ---------- intro / statement ---------- */
.intro { padding: clamp(96px, 14vw, 180px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro .label { margin-bottom: 26px; }
.statement {
  max-width: 21em; font-size: clamp(24px, 2.7vw, 40px); font-weight: 500;
  line-height: 1.16; letter-spacing: -.025em;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .25s ease, background .25s, color .25s;
}
.pill:hover { transform: translateY(-2px); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ghost { background: transparent; color: var(--ink); }
.pill-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- clients strip ---------- */
.clients {
  overflow: hidden; padding: 0 0 clamp(80px, 10vw, 140px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  max-width: 900px; margin: 0 auto;
}
.clients-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.clients-track span { padding: 0 clamp(20px, 3vw, 36px); font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #8a8a8a; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.clients-track span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- work: stacked cards ---------- */
.work { padding: 0 var(--pad) clamp(60px, 8vw, 120px); }
.mega {
  text-align: center; font-weight: 600; letter-spacing: -.06em; line-height: .86;
  font-size: clamp(64px, 12vw, 200px);
}
.work .mega { margin-bottom: clamp(32px, 5vw, 64px); }
.stack { max-width: 1240px; margin: 0 auto; }
.card {
  position: sticky; top: calc(84px + var(--i) * 18px);
  height: min(78svh, 760px); margin-bottom: 8vh;
  border-radius: 10px; overflow: hidden; background: #222; color: #fff;
  box-shadow: 0 -10px 40px rgba(0,0,0,.12);
  cursor: pointer; display: block; width: 100%; text-align: left;
}
.card:last-child { margin-bottom: 0; }
.card-media { position: absolute; inset: 0; display: grid; gap: 4px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.03); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.28), transparent 26%, transparent 60%, rgba(0,0,0,.55)); pointer-events: none; }
.card-top, .card-bottom { position: absolute; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: clamp(16px, 2.2vw, 28px); }
.card-top { top: 0; font-size: 13px; font-weight: 500; }
.card-bottom { bottom: 0; }
.card-name { font-size: clamp(44px, 7vw, 112px); font-weight: 600; letter-spacing: -.055em; line-height: .88; }
.card-cta { font-size: 14px; font-weight: 500; border: 1px solid rgba(255,255,255,.7); padding: 10px 18px; border-radius: 999px; white-space: nowrap; transition: background .25s, color .25s; }
.card:hover .card-cta { background: #fff; color: var(--ink); }

/* ---------- generic blocks ---------- */
.block { padding: clamp(80px, 11vw, 150px) var(--pad); }
.block-head { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; align-items: baseline; margin-bottom: clamp(36px, 5vw, 64px); }
.big { font-size: clamp(38px, 5.4vw, 84px); font-weight: 600; letter-spacing: -.05em; line-height: .92; }

/* frames */
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gut); background: var(--ink); padding: var(--gut); border-radius: 10px; }
.tile { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r); background: #222; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile span { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #fff; opacity: 0; transition: opacity .3s; }
.tile:hover span { opacity: .9; }

/* services */
.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 1fr 3fr 2fr; gap: 24px; align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); transition: padding .35s ease; }
.service:hover { padding-left: 14px; }
.service .num { font-size: 12px; color: var(--muted); }
.service h3 { font-size: clamp(28px, 3.2vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.service p { color: #4d4d4d; max-width: 30em; }
.services-note { margin-top: 28px; font-size: 13px; color: var(--muted); }
.services-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* process */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gut); }
.process li { background: var(--bg-2); border-radius: 10px; padding: 22px 20px 26px; min-height: 230px; display: flex; flex-direction: column; }
.process .num { font-size: 12px; color: var(--muted); }
.process h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -.04em; margin: auto 0 8px; padding-top: 40px; }
.process p { color: #4d4d4d; font-size: 15px; }

/* studio */
.studio { padding-top: clamp(60px, 8vw, 110px); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: min(100%, 900px); margin-top: 56px; border-top: 1px solid var(--line); padding-top: 18px; text-align: left; font-size: 14px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts span:first-child { color: var(--muted); font-size: 12px; }

/* contact */
.contact { padding: clamp(100px, 13vw, 190px) var(--pad); text-align: center; background: var(--ink); color: #F2F2F2; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; align-items: center; }
.contact .label { color: #8f8f8f; margin-bottom: 24px; }
.contact-sub { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; color: #a8a8a8; margin-top: 18px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.contact .pill { background: #F2F2F2; color: var(--ink); border-color: #F2F2F2; }
.contact .pill-ghost { background: transparent; color: #F2F2F2; }
.contact .pill-ghost:hover { background: #F2F2F2; color: var(--ink); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--pad) 26px; font-size: 13px; color: #8f8f8f; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }

.corner { position: fixed; bottom: 16px; z-index: 40; font-size: 12px; color: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: opacity .4s; }
body.past-hero .corner { opacity: 1; }
.corner-l { left: calc(var(--pad) + 10px); }
.corner-r { right: calc(var(--pad) + 10px); font-size: 10px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(17,17,17,.97); color: #f2f2f2; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100svh; padding: 64px 0 24px; }
.lightbox img { max-height: calc(100svh - 120px); max-width: 100%; object-fit: contain; border-radius: var(--r); }
.lightbox figcaption { margin-top: 12px; font-size: 13px; color: #a8a8a8; }
.lb-close { position: absolute; top: 18px; right: var(--pad); font-size: 14px; }
.lb-nav { font-size: 32px; height: 100%; opacity: .55; transition: opacity .2s; }
.lb-nav:hover { opacity: 1; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .block-head { grid-template-columns: 1fr; gap: 10px; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .service:hover { padding-left: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li { min-height: 180px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .card { height: 68svh; top: calc(72px + var(--i) * 12px); }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}
@media (max-width: 600px) {
  .r2 { grid-template-columns: 1fr; }
  .r2 .tile-h:not(:nth-child(2)) { display: none; }
  .r1 { flex: .7; }
  .nav nav { gap: 14px; font-size: 13px; }
  .nav nav a:nth-child(2), .nav nav a:nth-child(3) { display: none; }
  .process { grid-template-columns: 1fr; }
  .card-top span:last-child { display: none; }
  .card-cta { display: none; }
  .foot { flex-direction: column; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .tile-h img { opacity: 1; transform: none; }
}