:root {
  --paper: #ebe9e4;
  --ink: #151515;
  --mute: #75726c;
  --pad: clamp(20px, 3.4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

/* header sits on top of everything and inverts against whatever is beneath it */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px var(--pad);
  color: #fff; transition: background .4s ease, color .4s ease, padding .4s ease;
}
.bar.solid { background: var(--paper); color: var(--ink); padding-top: 18px; padding-bottom: 18px; }
.mark { font-weight: 400; letter-spacing: .42em; font-size: 15px; }
.bar nav { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 15px; font-weight: 400; }
.bar nav a { position: relative; }
.bar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.bar nav a:hover::after { transform: scaleX(1); }

/* hero: the photograph is the page */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #1a1a1a; }
.hero img { position: absolute; inset: 0; transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .4), transparent); }
.hero h1 {
  position: absolute; z-index: 2; left: var(--pad); bottom: clamp(36px, 7vh, 72px);
  max-width: 14ch; color: #fff;
  font-weight: 300; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -.015em;
}
@keyframes settle { to { transform: scale(1); } }

/* statement */
.lead { padding: clamp(70px, 10vw, 140px) var(--pad); }
.lead p { max-width: 30em; margin-left: auto; margin-right: 8vw; font-size: clamp(19px, 1.9vw, 28px); line-height: 1.35; letter-spacing: -.01em; }

/* projects: a compact grid so several are visible at once */
.work { padding: 0 var(--pad) clamp(60px, 8vw, 110px); }
.work > h2 { font-weight: 400; font-size: 16px; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(14px, 1.6vw, 24px); }
.p img { height: auto; aspect-ratio: 4 / 5; }
.p:nth-child(3n + 2) { margin-top: clamp(30px, 6vw, 90px); }
.p figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 14px; }
.p figcaption b { font-weight: 400; }
.p figcaption span { color: var(--mute); white-space: nowrap; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); padding: clamp(50px, 7vw, 100px) var(--pad); border-top: 1px solid rgba(21, 21, 21, .18); }
.about h2 { font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.015em; }
.about-text { max-width: 30em; font-size: 16px; }
.about-text ul { list-style: none; margin-top: 26px; }
.about-text li { padding: 9px 0; border-top: 1px solid rgba(21, 21, 21, .14); font-size: 15px; }
.about-text li:last-child { border-bottom: 1px solid rgba(21, 21, 21, .14); }

/* contact */
.contact { padding: clamp(50px, 7vw, 100px) var(--pad) clamp(50px, 6vw, 90px); }
.big-mail { display: inline-block; font-size: clamp(24px, 3.4vw, 52px); letter-spacing: -.02em; line-height: 1.1; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s ease; }
.big-mail:hover { background-size: 100% 1px; }
.contact p { margin-top: 16px; color: var(--mute); font-size: 15px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px;
  padding: 22px var(--pad); border-top: 1px solid rgba(21, 21, 21, .18); font-size: 14px; font-weight: 400;
}

/* reveal */
.js .p img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .p.in img { clip-path: inset(0); }
.js .p figcaption { opacity: 0; transition: opacity .8s ease .4s; }
.js .p.in figcaption { opacity: 1; }

@media (max-width: 760px) {
  .bar nav a:first-child { display: none; }
  .lead p { margin-right: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .p:nth-child(3n + 2) { margin-top: 0; }
  
  .about { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero img { animation: none; transform: none; }
  .js .p img, .js .p figcaption { clip-path: none; opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────── subpages ───────── */
body.sub .bar { background: var(--paper); color: var(--ink); padding-top: 18px; padding-bottom: 18px; }
.page { padding-top: 76px; }
.work__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.work__head h2 { font-weight: 400; font-size: 16px; }
.more { font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s; }
.more:hover { color: var(--mute); }
.about-text .more { display: inline-block; margin-top: 22px; }
a.p { display: block; }
.news { padding: clamp(40px, 6vw, 80px) var(--pad); border-top: 1px solid rgba(21, 21, 21, .18); display: grid; grid-template-columns: 1fr 2fr; gap: var(--pad); }
.news h2 { font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); }
.news li { list-style: none; display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(21, 21, 21, .14); font-size: 15px; }
.news li:last-child { border-bottom: 1px solid rgba(21, 21, 21, .14); }
.news time { color: var(--mute); }
.foot { display: block; padding: 40px var(--pad) 20px; border-top: 1px solid rgba(21, 21, 21, .18); font-size: 14px; font-weight: 400; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 36px; }
.foot__cols b { font-weight: 500; display: block; margin-bottom: 6px; }
.foot__cols a, .foot__cols span, .foot__cols p { display: block; padding: 2px 0; color: var(--mute); }
.foot__cols a:hover { color: var(--ink); }
.foot__bot { color: var(--mute); font-size: 13px; }

.pagehead { padding: clamp(36px, 5vw, 70px) var(--pad) 26px; }
.pagehead h1 { font-weight: 300; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 14px; padding: 7px 18px; border: 1px solid rgba(21, 21, 21, .25); background: none; cursor: pointer; transition: background .2s, color .2s; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page .grid .p { margin-top: 0 !important; }

.d-hero { height: min(72vh, 680px); margin: 0 var(--pad); overflow: hidden; }
.d-body { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: var(--pad); padding: 36px var(--pad) 60px; align-items: start; }
.d-body h1 { font-weight: 300; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; }
.d-sub { color: var(--mute); margin-top: 6px; }
.d-text { font-size: 17px; max-width: 28em; }
.d-body dl { display: grid; grid-template-columns: 7em 1fr; gap: 8px 10px; font-size: 15px; }
.d-body dt { color: var(--mute); }
.d-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 var(--pad) 70px; }
.d-pair figure { aspect-ratio: 4 / 3; overflow: hidden; }
.d-next { padding: 30px var(--pad) 60px; border-top: 1px solid rgba(21, 21, 21, .18); font-size: clamp(20px, 2.2vw, 30px); }
.d-next a { transition: color .2s; }
.d-next a:hover { color: var(--mute); }

.a-hero { padding: clamp(36px, 5vw, 70px) var(--pad); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--pad); align-items: end; }
.a-hero h1 { font-weight: 300; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -.015em; max-width: 12em; }
.a-hero p { max-width: 28em; }
.wide { padding: 0 var(--pad); }
.wide figure { aspect-ratio: 21 / 9; overflow: hidden; }
.a-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--pad); padding: clamp(50px, 7vw, 100px) var(--pad); }
.a-cols h2, .team h2, .awards h2, .jobs h2 { font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 14px; }
.a-cols p { max-width: 28em; }
.phases { list-style: none; counter-reset: ph; }
.phases li { counter-increment: ph; display: grid; grid-template-columns: 40px 160px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(21, 21, 21, .16); font-size: 15px; }
.phases li:last-child { border-bottom: 1px solid rgba(21, 21, 21, .16); }
.phases li::before { content: "0" counter(ph); color: var(--mute); }
.phases b { font-weight: 500; }
.phases span { color: #4a4843; }
.team, .awards { padding: 0 var(--pad) clamp(50px, 7vw, 90px); }
.team ul, .awards ul { list-style: none; }
.team li { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid rgba(21, 21, 21, .16); }
.team li:last-child { border-bottom: 1px solid rgba(21, 21, 21, .16); }
.team b { font-weight: 400; font-size: 18px; }
.team span { color: var(--mute); }
.awards li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid rgba(21, 21, 21, .16); }
.awards li:last-child { border-bottom: 1px solid rgba(21, 21, 21, .16); }
.awards time { color: var(--mute); }

.c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); padding: clamp(36px, 5vw, 70px) var(--pad); }
.c-grid h1 { font-weight: 300; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; max-width: 12em; }
.c-lead { margin: 14px 0 28px; max-width: 26em; color: #4a4843; }
.c-facts { display: grid; grid-template-columns: 6em 1fr; gap: 8px 14px; font-size: 15px; }
.c-facts dt { color: var(--mute); }
.c-facts a:hover { color: var(--mute); }
#form { display: grid; gap: 18px; align-content: start; }
#form label { font-size: 14px; color: var(--mute); display: block; }
#form input, #form select, #form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 0; font: 300 17px "Jost", sans-serif; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(21, 21, 21, .4); border-radius: 0; }
#form input:focus, #form select:focus, #form textarea:focus { outline: none; border-color: var(--ink); }
#form button { justify-self: start; font: 400 15px "Jost", sans-serif; padding: 12px 34px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; transition: opacity .2s; }
#form button:hover { opacity: .8; }
.ok { color: #2f6a47; }
.jobs { padding: 0 var(--pad) clamp(50px, 7vw, 90px); max-width: 52em; }
.jobs a { border-bottom: 1px solid currentColor; }

@media (max-width: 760px) {
  .d-body, .a-hero, .a-cols, .c-grid, .news { grid-template-columns: 1fr; }
  .d-pair { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .phases li { grid-template-columns: 30px 1fr; }
  .phases span { grid-column: 2; }
  .wide figure { aspect-ratio: 4 / 3; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
}

/* ───────── v3: video hero, centred 3×3 grids, merged studio + contact ───────── */
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work { max-width: 1280px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 96px) clamp(60px, 8vw, 110px); }
.grid { gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.p:nth-child(3n + 2) { margin-top: 0 !important; }
.c-grid h2 { font-weight: 300; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; max-width: 12em; }
.c-grid { border-top: 1px solid rgba(21, 21, 21, .18); }
.page .pagehead { max-width: 1280px; margin: 0 auto; padding-left: clamp(24px, 6vw, 96px); padding-right: clamp(24px, 6vw, 96px); }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr 1fr; } }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 1; background: linear-gradient(to bottom, rgba(0, 0, 0, .38), transparent); pointer-events: none; }
