:root {
  --paper: #f4f1e9;
  --ink: #1c1c19;
  --muted: #66625a;
  --rule: #cdc7bc;
  --dark: #1b1b18;
  --light: #f4f1e9;
  --accent: #65744e;
  --shell: min(1368px, calc(100vw - 72px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; border-radius: 0; }
a { color: inherit; text-decoration: none; }
.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  width: var(--shell);
  margin-inline: auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 122px; height: auto; }
.nav { display: flex; gap: 25px; align-items: center; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
.nav a { opacity: .9; }
.nav a:hover { opacity: 1; color: var(--accent); }

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .13em;
  font-weight: 500;
  color: var(--muted);
}

.project-intro {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 70px;
  padding: 68px 0 64px;
  align-items: start;
}
.project-heading > .eyebrow { color: var(--accent); }

.project-heading h1 {
  margin: 38px 0 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(72px, 8vw, 116px);
  font-weight: 400;
  line-height: .77;
  letter-spacing: -.035em;
}
.project-summary { padding-top: 4px; }
.summary-copy {
  max-width: 560px;
  margin: 34px 0 52px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(22px, 1.9vw, 29px);
  line-height: 1.23;
}
.meta-row {
  border-top: 1px solid var(--rule);
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  color: var(--muted);
}

.project-film {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 0;
  border-radius: 0;
}
.film { margin-bottom: 25px; }
img.project-film { object-fit: cover; }

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 78px 0 72px;
  align-items: start;
}
.approach-copy {
  margin: -7px 0 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(22px, 1.9vw, 29px);
  line-height: 1.25;
  max-width: 650px;
}

.gallery figure { margin: 0; }
.gallery .full { margin-bottom: 92px; }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 92px;
}
.pair img { object-fit: contain; }
.pair-mixed figure { display: flex; align-items: flex-start; justify-content: center; }
.pair-mixed img { width: auto; max-width: 100%; }

.cta {
  margin-top: 112px;
  background: var(--dark);
  color: var(--light);
  padding: 64px 0 32px;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: start;
  padding-bottom: 100px;
}
.eyebrow-light { color: rgba(244,241,233,.62); }
.cta h2 {
  margin: 50px 0 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(56px, 5vw, 79px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.03em;
}
.cta-side { padding-top: 60px; }
.cta-side p {
  margin: 0 0 52px;
  max-width: 520px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(21px, 1.7vw, 27px);
  line-height: 1.28;
}
.cta-link {
  border-top: 1px solid rgba(244,241,233,.28);
  padding-top: 19px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .12em;
}
.cta-link:hover { opacity: .65; }
.footer-row {
  border-top: 1px solid rgba(244,241,233,.18);
  padding-top: 21px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .11em;
  color: rgba(244,241,233,.58);
}

/* Contact page */
.contact-email {
  display: inline-block;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(26px, 2.4vw, 36px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-list {
  margin: -7px 0 0;
  padding: 0;
  list-style: none;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(22px, 1.9vw, 29px);
  line-height: 1.25;
}
.contact-list li { padding: 14px 0; border-top: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.cta-link-second { margin-top: 18px; }
.contact-help { grid-template-columns: 1.12fr .88fr; padding-top: 40px; }
.contact-help .contact-list { margin-top: 0; }

/* Work page */
.eyebrow-accent { color: var(--accent); }
.work-intro { padding: 68px 0 72px; }
.work-intro h1 {
  margin: 38px 0 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(72px, 8vw, 116px);
  font-weight: 400;
  line-height: .77;
  letter-spacing: -.035em;
}
.work-lede {
  max-width: 560px;
  margin: 44px 0 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(22px, 1.9vw, 29px);
  line-height: 1.23;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px 18px;
}
.work-card { display: block; }
.work-card img { aspect-ratio: 16 / 9; object-fit: cover; background: #ddd8cc; transition: opacity .25s; }
.work-card:hover img { opacity: .88; }
.work-card-title {
  display: block;
  margin: 20px 0 10px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.05;
}

@media (max-width: 820px) {
  :root { --shell: calc(100vw - 32px); }
  .site-header { min-height: 72px; }
  .brand img { width: 112px; }
  .nav { gap: 20px; }
  .nav a { padding: 14px 0; }
  .project-intro,
  .approach,
  .cta-grid { grid-template-columns: 1fr; gap: 42px; }
  .project-intro { padding: 48px 0 46px; }
  .project-heading h1 { margin-top: 30px; font-size: clamp(64px, 21vw, 96px); }
  .project-summary { padding-top: 0; }
  .summary-copy { margin: 24px 0 38px; }
  .approach { padding: 58px 0 58px; }
  .approach-copy { margin: 0; }
  .pair { gap: 10px; }
  .gallery .full,
  .pair { margin-bottom: 64px; }
  .cta { margin-top: 80px; padding-top: 48px; }
  .cta-grid { padding-bottom: 72px; }
  .cta h2 { margin-top: 30px; }
  .cta-side { padding-top: 0; }
  .footer-row { flex-direction: column; gap: 8px; }
  .work-intro { padding: 48px 0 52px; }
  .work-intro h1 { margin-top: 30px; font-size: clamp(64px, 21vw, 96px); }
  .work-lede { margin-top: 30px; }
  .work-grid { grid-template-columns: 1fr; gap: 52px; }
  .contact-list { margin: 0; }
}

@media (max-width: 540px) {
  .pair { grid-template-columns: 1fr; gap: 14px; }
  .cta h2 br { display: none; }
}


/* About page */
.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-img, 32px);
  align-items: start;
}
.person { margin: 0; }
.person img { height: auto; }  /* photos keep their own shape */
.person figcaption { padding-top: 22px; max-width: 520px; }
.person-name {
  display: block;
  margin-bottom: 10px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.05;
}
.person p {
  margin: 18px 0 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.3;
}
@media (max-width: 820px) {
  .people { grid-template-columns: 1fr; gap: var(--gap-text, 40px); }
}

/* =========================================================
   SPACING SYSTEM (14 Oct 2026) — two rules for every page
   1. text  <-> image : --gap-text  64px desktop / 40px phone
   2. image <-> image : --gap-img   32px desktop / 20px phone
   End of page (last item -> dark footer): --gap-end 96 / 64
   ========================================================= */
:root { --gap-text: 64px; --gap-img: 32px; --gap-end: 96px; }

/* Case studies */
.project-intro { padding-bottom: var(--gap-text); }
.film { margin-bottom: 0; }
.approach { padding: var(--gap-text) 0; }
.approach-copy { margin-top: 0; }
.gallery .full, .pair { margin-bottom: var(--gap-img); }
.pair { gap: var(--gap-img); }
.gallery > :last-child { margin-bottom: 0; }
.cta { margin-top: var(--gap-end); }

/* Work page */
.work-intro { padding-bottom: var(--gap-text); }
.work-grid { gap: var(--gap-text) var(--gap-img); }

/* Contact page */
.contact-help { padding-top: 0; padding-bottom: 0; }

/* About page: 'The studio' line sits in the same grid as 'How we work' */
.people-intro { display: grid; grid-template-columns: 1.12fr .88fr; gap: 70px; align-items: start; padding-bottom: var(--gap-text); }
.people-intro .approach-copy { margin: 0; }

/* About page */
.eyebrow-spacer { visibility: hidden; }
/* Title top lines up with the OVERVIEW label opposite */
.project-heading h1.about-title { margin-top: 0; }
.about-how .approach-copy,
.about-how .contact-list { margin-top: 34px; }

/* About page: 'How we work' lines up with the intro paragraph; text-to-text gap = one gap */
.about-how { grid-template-columns: 1.12fr .88fr; }
/* Intro paragraph with nothing under it (About): no leftover space */
.project-summary > .summary-copy:last-child { margin-bottom: 0; }
/* Only remove the top gap when the section follows another text section (About, Contact) */
.project-intro + .about-how { padding-top: 0; }

/* Work page title: no label above, so the title starts at the top (as on About) */
.work-intro h1 { margin-top: 0; }
/* Work page intro line: one line on wide screens, wraps naturally on smaller ones */
.work-lede { max-width: none; }

/* Portrait pairs: hold their space before the photo loads (no jump) */
.pair-mixed img { width: 100%; }

@media (max-width: 820px) {
  :root { --gap-text: 40px; --gap-img: 20px; --gap-end: 64px; }
  .project-intro { padding-bottom: var(--gap-text); }
  .approach { padding: var(--gap-text) 0; }
  .contact-help { padding-top: 0; padding-bottom: 0; }
  .about-how { grid-template-columns: 1fr; gap: 0; }
  .project-intro + .about-how { padding-top: 0; }
  .about-how > div:first-child { display: none; }
  .project-heading h1.about-title { margin-top: 0; }
  .work-intro h1 { margin-top: 0; }
  .about-how .approach-copy,
  .about-how .contact-list { margin-top: 24px; }
  .people-intro { grid-template-columns: 1fr; gap: 24px; }
  .contact-help { grid-template-columns: 1fr; }
  .gallery .full, .pair { margin-bottom: var(--gap-img); }
  .pair { gap: var(--gap-img); }
  .cta { margin-top: var(--gap-end); }
  .work-intro { padding-bottom: var(--gap-text); }
  .work-grid { gap: var(--gap-text); }
}
@media (max-width: 540px) { .pair { gap: var(--gap-img); } }


/* =========================================================
   STICKY HEADER (14 Oct 2026)
   Stays at the top; hides on scroll down, returns on scroll up (site.js)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Full-width band in the page colour; contents stay on the usual page grid */
  width: 100%;
  margin-inline: 0;
  padding-inline: calc((100% - var(--shell)) / 2);
  background: var(--paper);
  border-bottom: 0;
  transition: transform .35s ease;
  will-change: transform;
}
/* The thin line under the header, kept to the page grid as before */
.site-header::after {
  content: "";
  position: absolute;
  left: calc((100% - var(--shell)) / 2);
  right: calc((100% - var(--shell)) / 2);
  bottom: 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}
.site-header.header-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
