:root {
  --bg: #f3f3f1; --fg: #0b0b0c; --muted: #5b5b60; --line: rgba(0,0,0,.12); --field: #fff;
  --inset: clamp(20px, 3.4vw, 220px);
  --tb-pad: clamp(10px, 1.05vw, 44px); --tb-logo: clamp(22px, 1.6vw, 64px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0d0f; --fg: #f2f2f0; --muted: #a0a0a6; --line: rgba(255,255,255,.14); --field: #17171a; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Inter", system-ui, sans-serif; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tbd { opacity: .55; font-style: italic; }

/* Top bar */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: var(--tb-pad) var(--inset); color: #fff; }
.brand { display: flex; align-items: center; gap: clamp(10px, .8vw, 32px); text-decoration: none; }
.brand-mark { display: block; height: var(--tb-logo); width: auto; }
.brand-word { font-variation-settings: "opsz" 32; font-size: clamp(13px, .9vw, 36px); letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.brand-word b { font-weight: 700; }
.brand-word span { font-weight: 100; }
.top-right { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 64px); }
.nav-link { font-size: clamp(13px, .75vw, 30px); font-weight: 500; text-decoration: none; padding: .4em 0; border-bottom: 1px solid rgba(255,255,255,.5); }
.nav-link:hover { border-bottom-color: #fff; }
.framed { display: block; height: clamp(56px, 3.5vw, 140px); width: auto; }

/* Hero */
.hero { --gw: clamp(340px, 32vw, 2000px); max-height: 100svh; position: relative; width: 100%; aspect-ratio: 16 / 7.74; overflow: hidden; background: #111; color: #fff; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 18%; z-index: 1; background: linear-gradient(rgba(0,0,0,.4), transparent); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; left: var(--inset); right: var(--inset); top: calc(var(--tb-pad) * 2 + var(--tb-logo) + clamp(10px, 1.2vw, 48px)); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 1.2vw, 48px); }
.glass {
  container-type: inline-size; position: relative; isolation: isolate; flex: none;
  width: var(--gw);
  padding: calc(var(--gw) * .045) calc(var(--gw) * .05);
  border-radius: calc(var(--gw) * .022);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 45%, rgba(255,255,255,.07)), rgba(8,12,18,.26);
  -webkit-backdrop-filter: blur(28px) saturate(150%) brightness(.8);
  backdrop-filter: blur(28px) saturate(150%) brightness(.8);
  box-shadow: 0 calc(var(--gw) * .02) calc(var(--gw) * .06) rgba(0,0,0,.28);
  overflow: hidden;
}
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(115deg, transparent 38%, rgba(255,255,255,.08) 46%, transparent 54%), radial-gradient(80% 50% at 100% 100%, rgba(140,200,255,.12), transparent 60%); }
.glass h1 { margin: 0; }
.lockup-svg { display: block; width: 80%; height: auto; color: #fff; margin: 0 0 4cqi; }
.tagline { margin: 0; color: #fff; font-family: "Source Serif 4", Georgia, serif; font-optical-sizing: auto; font-weight: 300; font-size: 3.5cqi; line-height: 1.25; letter-spacing: -.005em; white-space: nowrap; }
/* Type 2 Fun quote, bottom right of the hero; half the size of the tagline */
.quote { --qs: max(12px, calc(var(--gw) * .021)); position: absolute; z-index: 2; right: var(--inset); bottom: clamp(14px, 2.2vw, 96px); margin: 0; max-width: calc(var(--gw) * .62); color: #fff; font-size: var(--qs); line-height: 1.4; text-wrap: balance; text-align: left; }
.quote b { font-weight: 600; }
.quote { font-family: "Inter", sans-serif; font-weight: 400; letter-spacing: .005em;
  padding: calc(var(--qs) * 1.1) calc(var(--qs) * 1.4); border-radius: calc(var(--qs) * .3);
  background: rgba(8,12,18,.18); -webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%); }
.cta { display: inline-flex; align-items: center; gap: .6em; padding: 1em 1.5em; border-radius: 999px; background: #fff; color: #0b0b0c; text-decoration: none; border: 0; cursor: pointer; font: 600 clamp(14px, .95vw, 36px)/1 "Inter", sans-serif; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s ease, box-shadow .2s ease; }
.cta:hover { transform: translateY(-2px); }
.cta span { transition: transform .2s ease; }
.cta:hover span { transform: translateX(3px); }
.cta-dark { background: var(--fg); color: var(--bg); box-shadow: none; }

/* Select clients: white band, logos in 60% grey */
/* the logo row sits on the band's vertical centre; the heading floats just above it */
.clients { --lh: clamp(16px, 1.1vw, 50px); --pad: clamp(12px, .9vw, 40px); --hs: clamp(7px, .3vw, 12px); --hg: clamp(8px, .55vw, 24px); background: #fff; color: #000; padding: var(--pad) var(--inset) calc(var(--pad) + var(--hs) * 1.2 + var(--hg)); }
.clients h2 { margin: 0 0 var(--hg); line-height: 1.2; text-align: center; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: var(--hs); }
.client-row { list-style: none; margin: 0 auto; padding: 0; align-content: center; max-width: 2400px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(10px, .9vw, 40px) clamp(28px, 3vw, 130px); color: #666; }
.client { display: flex; align-items: center; justify-content: center; height: calc(var(--lh) * var(--k, 1)); }
.client svg { display: block; height: 100%; width: auto; }
.client-tbd { font-weight: 600; font-size: clamp(11px, .8vw, 32px); letter-spacing: .06em; text-transform: uppercase; color: #000; opacity: .35; border: 1px dashed rgba(0,0,0,.25); border-radius: 6px; text-align: center; padding: 0 .6em; }

/* Gallery: edge to edge, no gaps */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.tile { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.03); }
@media (max-width: 1199px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px)  { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Contact teaser */
.contact { padding: clamp(64px, 7vw, 280px) var(--inset); }
.contact h2 { margin: 0 0 .4em; font-variation-settings: "opsz" 32; font-weight: 600; font-size: clamp(32px, 3.6vw, 150px); letter-spacing: -.03em; line-height: 1; }
.contact p { margin: 0 0 2em; max-width: 36em; color: var(--muted); font-size: clamp(16px, 1vw, 40px); line-height: 1.5; }

/* Footer */
footer { background: #000; color: #fff; font-variation-settings: "opsz" 32; padding: clamp(40px, 4vw, 160px) var(--inset) clamp(28px, 2.4vw, 96px); font-size: clamp(15px, .8vw, 30px); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2em; flex-wrap: wrap; }
.foot-top .mark { width: clamp(72px, 5vw, 200px); }
.foot-top .mark svg { display: block; width: 100%; height: auto; }
.foot-top .framed { height: auto; width: clamp(56px, 3.1vw, 124px); color: #fff; }
.foot-mid { margin-top: clamp(32px, 3vw, 120px); }
.foot-cols { display: flex; gap: clamp(32px, 5vw, 200px); flex-wrap: wrap; line-height: 1.7; }
.foot-cols h3 { margin: 0 0 .4em; font-size: .8em; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-bottom { margin-top: clamp(40px, 4vw, 160px); padding-top: 1.2em; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1em; font-size: .85em; color: rgba(255,255,255,.6); }

/* Contact page */
.subhead { position: relative; background: #000; height: calc(var(--tb-pad) * 2 + var(--tb-logo)); }
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 240px); padding: clamp(48px, 6vw, 240px) var(--inset); max-width: 3000px; font-size: clamp(16px, .9vw, 34px); }
.form-intro h1 { margin: 0 0 .5em; font-variation-settings: "opsz" 32; font-weight: 600; font-size: clamp(32px, 3.2vw, 130px); letter-spacing: -.03em; line-height: 1.02; }
.form-intro p { color: var(--muted); line-height: 1.5; max-width: 28em; }
.form { display: grid; gap: 1.2em; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.form label { display: grid; gap: .45em; font-size: .85em; font-weight: 500; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { font: inherit; font-size: 1.15em; color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: .5em; padding: .75em .9em; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
.form .check { display: flex; gap: .7em; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 1.1em; height: 1.1em; margin-top: .15em; flex: none; }
.form button { justify-self: start; font-size: 1em; }
.hp { position: absolute; left: -9999px; }
.status { margin: 0; min-height: 1.5em; color: var(--muted); }
.status.ok { color: #1f9d55; } .status.err { color: #d33; }

/* Phone */
@media (max-width: 700px) {
  .form-wrap, .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .hero { aspect-ratio: 4 / 4.3; }
  .tagline { white-space: normal; font-size: 15px; line-height: 1.3; }
  .tagline .br { display: none; }
  .clients { --lh: 13px; --hs: 6px; --hg: 7px; }
  .client-row { gap: 10px 16px; }
  .brand-word { font-size: 14px; }
  .brand-mark { height: 26px; }
  .hero-content { align-items: stretch; }
  .hero { --gw: calc(100vw - 40px); }
  .quote { --qs: 11px; max-width: 82%; }
  .lockup-svg { width: 62%; }
  .cta { justify-content: center; }
  .form-wrap, .form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
