:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --line: #e9e9e9;
  --soft: #f5f5f3;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); 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 { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Landing: full-page logo wall ---------- */
.landing { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px clamp(16px, 3vw, 40px); font-size: 13px; color: var(--muted); }
.top .mark { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.wall {
  list-style: none; margin: 0; padding: 0; flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(96px, 11vw, 150px), 1fr));
  grid-auto-rows: 1fr;
  border-top: 1px solid var(--line);
}
.wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 84px; opacity: 0; animation: pop .5s ease forwards; animation-delay: calc(var(--i) * 18ms); }
.wall li.filler { opacity: 1; animation: none; background: repeating-linear-gradient(135deg, transparent 0 10px, #f6f6f4 10px 11px); }
@media (max-width: 639px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wall li { min-height: 0; aspect-ratio: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.cell { position: relative; display: grid; place-items: center; width: 100%; height: 100%; transition: background .2s ease; }
.cell-logo { width: clamp(30px, 3.4vw, 48px); height: clamp(30px, 3.4vw, 48px); transition: transform .25s ease; }
.cell-logo svg { width: 100%; height: 100%; fill: var(--ink); transition: fill .2s ease; }
.cell-name { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; font-size: 12px; line-height: 1.3; font-weight: 500; color: #fff; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.cell:hover, .cell:focus-visible { background: var(--ink); }
.cell:hover svg, .cell:focus-visible svg { fill: #fff; }
.cell:hover .cell-logo, .cell:focus-visible .cell-logo { transform: translateY(-8px) scale(1.05); }
.cell:hover .cell-name, .cell:focus-visible .cell-name { opacity: 1; transform: none; }
@media (hover: none) { .cell-name { opacity: 1; transform: none; color: var(--muted); font-weight: 400; font-size: 11px; } .cell-logo { transform: translateY(-8px); } }
@media (max-width: 520px) { .top-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .wall li { animation: none; opacity: 1; } }

/* ---------- Page chrome ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 120px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: clamp(40px, 8vw, 88px); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { color: var(--faint); }
.hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: end; padding-bottom: 36px; border-bottom: 1px solid var(--ink); }
.hero-logo { width: clamp(56px, 9vw, 96px); height: clamp(56px, 9vw, 96px); }
.hero-logo svg { width: 100%; height: 100%; fill: var(--ink); }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 8vw, 92px); line-height: .95; letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 500; }
.about { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 760px; margin: 32px 0 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; margin: 56px 0 6px; font-size: 13px; color: var(--muted); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.agency-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease; }
.agency-row:hover { padding-left: 10px; }
.agency-row:hover .arrow { transform: translateX(4px); }
.years { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); padding-top: 10px; }
.years .now { color: var(--ink); font-weight: 500; }
.agency-main { display: block; min-width: 0; }
.agency-name { display: block; font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.01em; }
.agency-sub { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
.agency-works { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.agency-works span { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; color: #333; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; max-width: 640px; }
.thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); filter: grayscale(1); transition: filter .3s ease; }
.agency-row:hover .thumbs img { filter: none; }
.arrow { font-size: 22px; padding-top: 6px; transition: transform .25s ease; }
@media (max-width: 640px) {
  .agency-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .years { grid-column: 1 / -1; padding: 0; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Every campaign, newest to oldest ---------- */
.chrono { list-style: none; margin: 0; padding: 0; }
.chrono-row { display: grid; grid-template-columns: 150px 128px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease; }
.chrono-row:hover { padding-left: 10px; }
.chrono-row:hover .arrow { transform: translateX(4px); }
.chrono-year { font-family: var(--serif); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.chrono-thumb { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.chrono-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s ease; }
.chrono-row:hover .chrono-thumb img { filter: none; }
.chrono-logo { display: grid; place-items: center; width: 100%; height: 100%; }
.chrono-logo svg { width: 28px; height: 28px; fill: #c9c9c5; }
.chrono-main { min-width: 0; }
.chrono-title { display: block; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; }
.chrono-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.chrono-row .arrow { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.chip { font: inherit; font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip i { font-style: normal; color: var(--faint); margin-left: 2px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on i { color: #bdbdbd; }
.tag { display: inline-block; font-weight: 500; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; padding: 0 5px; margin-right: 8px; line-height: 17px; vertical-align: 1px; }
.jump { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
@media (max-width: 640px) {
  .chrono-row { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 6px 14px; }
  .chrono-year { grid-column: 1 / -1; font-size: 24px; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Agency page ---------- */
.agency-hero { padding-bottom: 40px; border-bottom: 1px solid var(--ink); }
.client-chip { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.client-chip svg { width: 18px; height: 18px; fill: var(--ink); }
.summary { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; max-width: 780px; margin: 28px 0 0; }
.site-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 11px 18px; background: var(--ink); color: #fff; border-radius: 99px; font-size: 14px; font-weight: 500; transition: transform .2s ease; }
.site-btn:hover { transform: translateY(-2px); }
.no-site { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 36px 0 0; }
.fact { background: var(--bg); padding: 16px 18px; }
.fact dt { font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.fact dd { margin: 6px 0 0; font-weight: 500; }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.work { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.work-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 28px; }
.work-year { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: .9; }
.work-type { display: inline-block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.work h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; margin: 0; letter-spacing: -0.01em; }

.media { margin: 0; }
.player, .media iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s ease, opacity .3s ease; }
.player:hover img { transform: scale(1.03); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; transition: transform .25s ease; }
.play svg { width: 30px; height: 30px; fill: var(--ink); margin-left: 4px; }
.player:hover .play { transform: scale(1.08); }
.media figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 0 0; font-size: 13px; color: var(--muted); }
.media figcaption a { color: var(--ink); white-space: nowrap; }
.media figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.img-frame { background: var(--soft); display: grid; place-items: center; padding: clamp(16px, 4vw, 48px); max-height: 640px; }
.img-frame img { max-height: 560px; width: auto; object-fit: contain; }
.poster { aspect-ratio: 21 / 9; background: var(--soft); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; padding: clamp(20px, 4vw, 44px); gap: 12px 24px; }
.poster-logo { width: clamp(40px, 7vw, 84px); height: clamp(40px, 7vw, 84px); }
.poster-logo svg { width: 100%; height: 100%; fill: var(--ink); }
.poster-year { justify-self: end; font-family: var(--serif); font-size: clamp(40px, 9vw, 120px); line-height: .8; color: #d5d5d1; }
.poster-title { grid-column: 1 / -1; align-self: end; font-family: var(--serif); font-size: clamp(24px, 4vw, 48px); line-height: 1; }

.work-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; margin-top: 36px; }
.work-side dl { margin: 0; display: grid; gap: 14px; font-size: 13px; }
.work-side dt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.work-side dd { margin: 2px 0 0; }
.side-link { display: block; margin-top: 16px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.work-text { max-width: 720px; }
.block + .block { margin-top: 26px; }
.block h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.block p { margin: 0; font-size: 17px; }
.block ul { margin: 0; padding: 0; list-style: none; }
.block li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: 16px; color: #2a2a2a; }
.block li:last-child { border-bottom: 1px solid var(--line); }
.block li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 1px; background: var(--ink); }
.impact { margin-top: 28px; padding: 18px 20px; background: var(--ink); color: #fff; font-size: 16px; }
.impact strong { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: #bdbdbd; font-weight: 600; }
@media (max-width: 720px) {
  .work-head, .work-body { grid-template-columns: 1fr; gap: 10px; }
  .work-side dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-side { order: 2; padding-top: 20px; border-top: 1px solid var(--line); }
  .poster { aspect-ratio: 4 / 3; }
}

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; font-size: 14px; }
.pager a { display: block; max-width: 48%; }
.pager a span { display: block; font-size: 12px; color: var(--muted); }
.pager a b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.pager a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pager .next { text-align: right; margin-left: auto; }
.note { margin-top: 72px; font-size: 12px; color: var(--faint); max-width: 680px; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
