:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --ink: #151514;
  --muted: #6d695f;
  --line: rgba(21, 21, 20, 0.14);
  --accent: #d9481f;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 4px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --paper-2: #1c1c1a;
    --ink: #edeae2;
    --muted: #9a968c;
    --line: rgba(237, 234, 226, 0.14);
    --accent: #ff6a3d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.section { margin-top: clamp(64px, 10vw, 128px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display em, .hero-title em { font-style: italic; color: var(--accent); }
.label {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.label a { text-decoration: none; }
.lede { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; font-weight: 300; max-width: 34em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.wordmark { font: 400 26px/1 var(--serif); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.tagline { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.site-nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current='page'] { border-bottom-color: currentColor; }
.menu-btn { display: none; }

@media (max-width: 1000px) {
  .tagline { display: none; }
}
@media (max-width: 820px) {
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .menu-btn span:not(.sr) { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.25s; }
  .menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 64px 0 auto 0; height: calc(100dvh - 64px);
    flex-direction: column; gap: 0; padding: 16px var(--gutter);
    background: var(--paper);
    font: 400 40px/1.25 var(--serif);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a[aria-current='page'] { color: var(--accent); border-bottom-color: transparent; }
  body.nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block for the fixed nav */
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 400 15px/1 var(--sans); text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }

/* ---------- home ---------- */
.hero { padding-top: clamp(48px, 10vw, 140px); display: grid; gap: 40px; }
.hero-title { font-size: clamp(56px, 11vw, 168px); }
.hero-body { max-width: 36em; font-size: clamp(18px, 1.6vw, 21px); }
.hero-cta { font-weight: 400; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.4fr 1fr; align-items: end; }
}

.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 28px;
}
.section-head h2 { font: 400 clamp(28px, 3.5vw, 44px)/1.1 var(--serif); }
.more { font-size: 15px; text-decoration: none; color: var(--muted); }
.more:hover { color: var(--accent); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 32px); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { text-decoration: none; display: block; }
.card-img { display: block; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.card .card-img { aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover img, .case-card:hover img, .case-row .card-img:hover img { transform: scale(1.035); }
.card-blank { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, transparent 0 12px, var(--line) 12px 13px); }
.card-text { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 15px; }
.card-title { font-weight: 400; }
.card-tags { color: var(--muted); font-size: 13px; text-align: right; }

.case-card { text-decoration: none; display: block; }
.case-card .card-img { aspect-ratio: 3 / 2; margin-bottom: 16px; }
.case-card h3 { font: 400 32px/1.1 var(--serif); margin-bottom: 8px; }
.case-card p { color: var(--muted); max-width: 34em; }

.client-cloud { display: flex; flex-wrap: wrap; gap: 4px 28px; font: 400 clamp(24px, 3vw, 38px)/1.3 var(--serif); }
.client-cloud a { text-decoration: none; }
.client-cloud li:not(:last-child)::after { content: '·'; margin-left: 28px; color: var(--muted); }
.client-cloud li { display: flex; }

/* ---------- inner pages ---------- */
.page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(44px, 7.5vw, 104px); max-width: 14em; }
.page-head .lede, .page-head .muted { margin-top: 20px; }

.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 80px; } }
.prose { font-size: 18px; max-width: 38em; }
.prose .lede { margin-bottom: 1.2em; }
.sign { font: italic 400 28px/1 var(--serif); margin-top: 1.4em; }
.side { font-size: 15px; }
.side .label { margin-top: 22px; }
.side .label:first-child { margin-top: 0; }
.side p { margin: 0; }
@media (min-width: 900px) { .side { border-left: 1px solid var(--line); padding-left: 28px; align-self: start; position: sticky; top: 100px; } }
.link-list li { padding: 3px 0; }
.ticks li { padding: 3px 0 3px 20px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }

.roles { margin-top: 20px; font: 400 clamp(20px, 2.4vw, 30px)/1.3 var(--serif); }
.roles span { color: var(--accent); margin: 0 0.25em; }
.ways { margin-top: 32px; }
.way { border-top: 1px solid var(--ink); padding-top: 20px; }
.way h2 { font: 400 34px/1.1 var(--serif); margin: 10px 0 12px; }
.num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.process { counter-reset: step; display: grid; gap: 0; margin-top: 24px; }
.process li { counter-increment: step; display: grid; gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.process li::before { content: counter(step, decimal-leading-zero); font: 400 56px/1 var(--serif); color: var(--accent); }
.process h3 { font: 400 30px/1.1 var(--serif); }
.process p { color: var(--muted); max-width: 32em; margin: 0; }
@media (min-width: 800px) { .process li { grid-template-columns: 120px 1fr 1.4fr; align-items: baseline; } }

.client-list { columns: 2; column-gap: 32px; font: 400 clamp(26px, 3vw, 40px)/1.35 var(--serif); }
.client-list a { text-decoration: none; }

.case-row { display: grid; gap: 28px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.case-row .card-img { aspect-ratio: 3 / 2; }
.case-row h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 16px; }
.case-row p { max-width: 30em; font-size: 18px; }
@media (min-width: 900px) {
  .case-row { grid-template-columns: 1.3fr 1fr; gap: 64px; }
  .case-row.flip > :first-child { order: 2; }
}

.hero-img { margin: 0 auto 64px; }
.hero-img img { width: 100%; max-height: 80vh; object-fit: cover; border-radius: var(--radius); }

.contact { padding-bottom: 40px; }
.big-link { display: inline-block; font: 400 clamp(28px, 5vw, 64px)/1.1 var(--serif); margin-bottom: 32px; word-break: break-all; }

/* ---------- galleries ---------- */
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 700px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.tile { position: relative; display: block; margin-bottom: 12px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
@media (min-width: 700px) { .tile { margin-bottom: 16px; } }
.tile img { width: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s; }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px; font-size: 14px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s;
}
.tile:hover img { transform: scale(1.03); }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
@media (hover: none) { .tile-cap { opacity: 1; transform: none; } }

.cgi-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cgi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cgi-grid { grid-template-columns: repeat(3, 1fr); } }
.cgi-grid .tile { margin: 0; aspect-ratio: 1; }
.cgi-grid .tile img { height: 100%; object-fit: cover; }

/* ---------- project ---------- */
.shots { display: grid; gap: clamp(12px, 2vw, 24px); margin-top: clamp(48px, 7vw, 96px); max-width: 1400px; }
.shot { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.shot img { width: 100%; cursor: zoom-in; }
@media (min-width: 800px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shots > .shot:first-child, .shots > .shot.wide { grid-column: 1 / -1; }
  .shots > .shot:not(:first-child) img { height: 100%; object-fit: cover; }
}
.shots > .shot:first-child img { max-height: 88vh; object-fit: cover; }
.shots .video video { width: 100%; }

.pager { margin-top: 80px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line); font: 400 22px/1.3 var(--serif); }
.pager a { text-decoration: none; }
.pager.split { display: flex; justify-content: space-between; gap: 24px; }
.pager.split a:last-child { text-align: right; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(10, 10, 10, 0.94); padding: 24px;
  opacity: 0; transition: opacity 0.2s;
}
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 48px); width: auto; height: auto; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 32px/1 var(--sans); width: 56px; height: 56px;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(96px, 14vw, 180px);
  padding: 48px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  display: grid; gap: 32px;
}
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-cta .display { font-size: clamp(40px, 7vw, 88px); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.footer-nav a { text-decoration: none; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
