*, *::before, *::after { box-sizing: border-box; }

:root {
  --paper: #f4f3f0;
  --ink: #1b1b1a;
  --muted: #6d6b66;
  --line: #d9d6d0;
  --tile: #e7e5e0;
  --pad: clamp(20px, 4vw, 56px);
  --gap: clamp(14px, 2vw, 28px);
  --max: 1680px;
  --sans: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Small spaced caps used for metadata throughout */
.meta {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 10px; z-index: 10; padding: 8px 12px; background: var(--paper); }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.wordmark { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.site-header ul { display: flex; gap: clamp(18px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.site-header nav a { font-size: 15px; color: var(--muted); transition: color .2s; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Homepage intro */
.intro { padding: clamp(56px, 11vw, 150px) 0 clamp(56px, 9vw, 120px); }
.intro h1 {
  max-width: 20ch;
  margin: 18px 0 0;
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -.015em;
}

.intro-sub { max-width: 46ch; margin: clamp(20px, 2.4vw, 32px) 0 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.section-head h2 { margin: 0; font: inherit; }

/* Work grid: full-width, pair, full-width, pair */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px) var(--gap); margin: 0; padding: 0; list-style: none; }
.work .wide { grid-column: 1 / -1; }

.card-media { overflow: hidden; background: var(--tile); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .6, .2, 1); }
.work .wide img { aspect-ratio: 16 / 7.5; }
.cover-moonhouse { object-position: 50% 38%; }
.cover-farnsworth { object-position: 50% 55%; }
a.card-link:hover img { transform: scale(1.02); }

.card-caption {
  display: grid;
  grid-template-columns: 2.4em 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding-top: 14px;
}
.card-caption .no { grid-row: 1 / 3; }
.card-caption h2, .card-caption h3 { margin: 0; font-weight: 400; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; letter-spacing: -.005em; }
.card-caption .place { color: var(--muted); }
.card-caption .status { grid-column: 3; grid-row: 1; text-align: right; }
.card-caption .year { grid-column: 2 / 4; }
.view { color: var(--ink); }
a.card-link:hover .view { text-decoration: underline; text-underline-offset: 4px; }

/* Contact prompt */
.cta { margin-top: clamp(96px, 14vw, 200px); padding-top: 14px; border-top: 1px solid var(--line); }
.cta p { max-width: 24ch; margin: 18px 0 28px; font-weight: 300; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.text-link { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Project page */
.back { display: inline-block; padding: 6px 0; }
.back:hover { color: var(--ink); }
.project-head { padding: clamp(36px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.project-head h1 { margin: 16px 0 0; font-weight: 300; font-size: clamp(40px, 7vw, 104px); line-height: 1; letter-spacing: -.03em; }
.project-head .place { margin: 10px 0 0; font-weight: 300; font-size: clamp(20px, 2.4vw, 32px); color: var(--muted); }

figure { margin: 0; }
figcaption { padding-top: 10px; }

/* Hero keeps the full render composition at every width */
.hero { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.hero img { width: 100%; background: var(--tile); }

.about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--gap) clamp(32px, 8vw, 140px);
  padding: clamp(64px, 9vw, 128px) 0;
}
.about .lede { margin: 0 0 1em; font-weight: 300; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.01em; }
.about p { max-width: 58ch; margin: 0 0 1em; }
.about .credit { margin-top: 2em; font-size: 14px; color: var(--muted); }
.portrait { width: 100%; margin-bottom: clamp(28px, 4vw, 48px); background: var(--tile); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { padding-top: 2px; }
.facts dd { margin: 0; }

/* Details: tall screen on the left, pendants and banquette stacked right */
.details { display: grid; grid-template-columns: 1.13fr 1fr; gap: var(--gap); }
.details .tall { grid-row: span 2; display: flex; flex-direction: column; }
.details .tall img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }

.video { margin-bottom: clamp(36px, 5vw, 64px); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--tile); }

/* Gallery: renders in pairs at their own proportions, .wide spans both columns */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px) var(--gap); }
.gallery .wide { grid-column: 1 / -1; }
.gallery img { width: 100%; background: var(--tile); }

.related { margin-top: clamp(96px, 14vw, 200px); }
.related ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.related .card-caption { grid-template-columns: 1fr auto; }
.related .card-caption h3 { font-size: 17px; }

.return { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(64px, 9vw, 120px); padding-top: 14px; border-top: 1px solid var(--line); }

/* Contact form */
.enquiry { display: flex; flex-direction: column; max-width: 40em; }
.enquiry label { margin-top: 22px; }
.enquiry label span { text-transform: none; letter-spacing: 0; }
.enquiry input, .enquiry textarea {
  margin-top: 6px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; border-radius: 0;
}
.enquiry textarea { resize: vertical; }
.enquiry input:focus-visible, .enquiry textarea:focus-visible { outline: none; border-bottom-color: var(--ink); }
.enquiry button {
  align-self: flex-start; margin-top: 36px; padding: 12px 22px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: inherit; cursor: pointer;
}
.enquiry button:hover { background: transparent; color: var(--ink); }
.enquiry button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer .wrap { margin-top: clamp(80px, 12vw, 160px); padding-top: 22px; padding-bottom: 40px; }

/* Mobile */
@media (max-width: 760px) {
  .work, .related ul { grid-template-columns: 1fr; }
  .work .wide img, .card img { aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 8em 1fr; }
  /* Detail renders stack uncropped */
  .details, .gallery { grid-template-columns: 1fr; }
  .details .tall { grid-row: auto; }
  .details .tall img { object-fit: initial; }
  /* Hero runs edge to edge on phones */
  .hero { padding: 0; }
  .hero figcaption { padding-left: var(--pad); padding-right: var(--pad); }
}

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