/* ──────────────────────────────────────────────────────────────────────
   Edge Landscapes — v4

   v3 was deliberately flat: no display type, hierarchy from position and
   air alone. It read as a careful contractor. v4 keeps the restraint and
   the air but reintroduces scale, because the brief is to read as a
   landscape design and construction studio, not a trade.

   Rules of the system:
     · Two typefaces. Instrument Serif for display, Jost for everything
       else. Headlines are large, body copy is sparse.
     · Palette is four values and nothing else.
     · Photography is full-bleed and does the selling. Text gets out of
       its way.
     · Minimal borders. No rounded cards. No gradients except the single
       scrim that keeps hero type legible.
     · A CTA is an underlined uppercase word, not a button.
   ────────────────────────────────────────────────────────────────────── */

:root {
  /* The four brand values. Nothing outside these. */
  --charcoal:   #202321;
  --olive:      #77796D;
  --stone:      #D5D0C5;
  --offwhite:   #F4F2ED;

  /* Derived working values */
  --paper:      #F4F2ED;
  --paper-warm: #EAE6DC;
  --paper-deep: #202321;
  --white:      #ffffff;

  --ink:        #3A3D38;
  --ink-strong: #202321;
  --muted:      #77796D;
  --line:       #D5D0C5;
  --line-soft:  #E5E1D8;
  --accent:     #4A5245;

  --serif: 'Instrument Serif', 'Hoefler Text', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad:  clamp(22px, 5vw, 86px);
  --gap:  clamp(70px, 12vw, 210px);
  --maxw: 1480px;
  --col:  62ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* the off-canvas drawer must not widen the page */
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

::selection { background: var(--charcoal); color: var(--offwhite); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.col  { max-width: var(--col); }
.col-wide { max-width: 76ch; }

/* ── Type ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; color: var(--ink-strong); font-weight: 400; }

/* Display: the thing v3 refused to have. */
.display, h1.display, h2.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.display-sm {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.008em;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
}
.display-xs {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

h3, h4 { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.4; }

p { margin: 0 0 1.5rem; }
p:last-child { margin-bottom: 0; }

.lead   { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.6; color: var(--ink-strong); font-weight: 300; }
.strong { color: var(--ink-strong); font-weight: 500; }
.muted  { color: var(--muted); }

/* Small uppercase label — the system's only decorative device. */
.label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  display: block;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── Link-as-CTA ─────────────────────────────────────────────────────── */
.go {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-strong);
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink-strong);
  transition: color 0.25s, border-color 0.25s, opacity 0.25s;
}
.go:hover { color: var(--accent); border-color: var(--accent); }
.go-light { color: var(--offwhite); border-color: rgba(244,242,237,0.5); }
.go-light:hover { color: var(--white); border-color: var(--white); }
.go-row { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
#nav.scrolled {
  background: rgba(244,242,237,0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
/* Pages without a hero image start solid. */
#nav.solid { background: var(--paper); border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { flex: 0 0 auto; display: block; }
.nav-logo img { height: 30px; width: auto; transition: opacity 0.3s; }
.nav-logo .logo-light { display: none; }

/* Over a dark hero the nav runs light until it sticks. */
#nav.over-hero:not(.scrolled) .nav-logo .logo-dark { display: none; }
#nav.over-hero:not(.scrolled) .nav-logo .logo-light { display: block; }
#nav.over-hero:not(.scrolled) .nav-links a { color: var(--offwhite); }
#nav.over-hero:not(.scrolled) .hamburger span { background: var(--offwhite); }
/* The phone is muted olive on light pages; over a dark hero that reads as
   invisible, so it becomes a dimmed white instead. */
#nav.over-hero:not(.scrolled) .nav-phone { color: rgba(244,242,237,0.72) !important; }

.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.6rem); flex-wrap: nowrap;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 0.6; }
.nav-phone { color: var(--muted) !important; }

.hamburger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; z-index: 2; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--ink-strong); margin: 6px 0; transition: transform 0.3s, opacity 0.3s, background 0.3s; }
.hamburger.open span { background: var(--ink-strong); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--paper);
    flex-direction: column; justify-content: center; gap: 2.1rem;
    transform: translateX(100%); transition: transform 0.4s ease;
    visibility: hidden;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { font-size: 1rem; letter-spacing: 0.22em; color: var(--ink) !important; }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.band       { padding-block: var(--gap); }
.band-tight { padding-block: clamp(48px, 8vw, 120px); }
.band-warm  { background: var(--paper-warm); }
.band-dark  { background: var(--paper-deep); color: rgba(244,242,237,0.78); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark .display,
.band-dark .display-sm, .band-dark .display-xs { color: var(--offwhite); }
.band-dark .label { color: rgba(244,242,237,0.55); }
.band-dark .go { color: var(--offwhite); border-color: rgba(244,242,237,0.5); }
.band-dark .go:hover { color: var(--white); border-color: var(--white); }

.section-head { margin-bottom: clamp(38px, 5vw, 78px); }
.section-head .label { margin-bottom: 1.1rem; }

/* ── Hero: full-bleed image, white type on a scrim ───────────────────── */
.hero { position: relative; min-height: clamp(600px, 94vh, 1000px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  /* Two scrims. The first lifts the headline off the photograph; the second
     is a shorter, stronger band at the very top so the nav stays legible
     over a bright image. */
  background:
    linear-gradient(to bottom, rgba(22,24,21,0.55) 0%, rgba(22,24,21,0.22) 14%, rgba(22,24,21,0) 26%),
    linear-gradient(to top, rgba(22,24,21,0.74) 0%, rgba(22,24,21,0.38) 44%, rgba(22,24,21,0.12) 74%, rgba(22,24,21,0.06) 100%);
}
.hero-body { position: relative; width: 100%; padding-block: clamp(64px, 9vw, 132px); color: var(--offwhite); }
.hero-body .label { color: rgba(244,242,237,0.82); margin-bottom: 1.5rem; }
.hero-body .display { color: var(--offwhite); max-width: 20ch; }
.hero-body p { color: rgba(244,242,237,0.9); max-width: 48ch; margin: 1.6rem 0 2.4rem; }

/* ── Cover: the interior-page sibling of the hero ────────────────────────
   Same idea as .hero, shorter, and it grows with the copy instead of
   clipping it — cover copy runs from ~500 to ~1000 characters across the
   service, location and project pages, so a fixed height would cut the
   longest ones off.

   The scrim sits on .cover-body rather than on a full-height overlay, so
   it always covers exactly the text block however long the copy runs,
   and leaves the rest of the photograph alone. All 43 cover pages use the
   solid nav, so no separate top scrim is needed to keep the nav legible.
   ────────────────────────────────────────────────────────────────────── */
.cover {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(460px, 68vh, 760px);
  /* Clearance for the fixed nav (88px). Without it the long-copy covers —
     the location pages run to ~1000 characters — push their first line up
     underneath the nav bar on narrow viewports. */
  padding-top: 92px;
}
.cover-img { position: absolute; inset: 0; }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-wash { position: absolute; inset: 0; background: rgba(22,24,21,0.12); }
.cover-body {
  position: relative; width: 100%;
  padding-block: clamp(76px, 10vw, 150px);
  color: var(--offwhite);
  /* A flat wash with a fixed 130px fade at its top edge, rather than a
     percentage ramp. Cover copy runs 500-1000 characters, so a percentage
     ramp leaves the first paragraph of the long pages sitting on almost no
     scrim. A fixed fade behaves the same whatever the block height, and it
     falls inside the block's own top padding, so text always sits on the
     full-strength wash. */
  background: linear-gradient(to top,
    rgba(22,24,21,0.78) 0,
    rgba(22,24,21,0.78) calc(100% - 130px),
    rgba(22,24,21,0) 100%);
}
.cover-body .label { color: rgba(244,242,237,0.82); }
.cover-body h1 { color: var(--offwhite); }
.cover-body .display, .cover-body .display-sm { color: var(--offwhite); }
.cover-body p { color: rgba(244,242,237,0.92); }
.cover-body .muted { color: rgba(244,242,237,0.7); }
.cover-body .go { color: var(--offwhite); border-color: rgba(244,242,237,0.5); }
.cover-body .go:hover { color: var(--white); border-color: var(--white); }

/* ── Split hero: the photograph beside the type, not behind it ──────────
   A full-bleed hero has to cover the whole viewport, so on a laptop it
   asks about 2880px of a photograph and anything smaller is visibly
   soft. Giving the image half the width halves that demand, which is
   what keeps it sharp with the photography we actually have.

   The type moves onto paper, so no scrim is needed and legibility stops
   depending on how bright the photo happens to be. Only the homepage
   uses this; /residential and /commercial keep the full-bleed .hero.
   ────────────────────────────────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: clamp(560px, 86vh, 900px);
  padding-top: 92px;              /* clears the fixed nav */
  background: var(--paper);
}
.hero-split .hero-type {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(44px, 6vw, 92px) clamp(22px, 5vw, 86px);
}
.hero-split .hero-type > * { max-width: 46ch; }
/* 46ch computed on the label's own 0.7rem font is only ~260px, which
   broke the brand line across two lines. The labels set their own width. */
.hero-split .hero-type > .label { max-width: none; }
.hero-split .hero-type p { margin: 1.5rem 0 2.4rem; }
.hero-split .hero-shot { position: relative; overflow: hidden; }
.hero-split .hero-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; min-height: 0; padding-top: 88px; }
  .hero-split .hero-shot { height: clamp(290px, 46vh, 420px); }
  .hero-split .hero-type { padding-block: clamp(38px, 9vw, 64px); }
}

/* ── Plate: full-bleed image as punctuation ──────────────────────────── */
.plate { position: relative; margin: 0; }
.plate img { width: 100%; height: clamp(320px, 58vh, 720px); object-fit: cover; }
.plate figcaption { padding: 1rem var(--pad) 0; font-size: 0.78rem; color: var(--muted); max-width: var(--maxw); margin: 0 auto; }

/* ── Two-column text ─────────────────────────────────────────────────── */
.duo { display: grid; grid-template-columns: 20ch 1fr; gap: clamp(26px, 5vw, 96px); align-items: start; }
.duo > .col { max-width: var(--col); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ── Sector split: residential / commercial ──────────────────────────── */
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair-panel { position: relative; text-decoration: none; color: inherit; display: block; overflow: hidden; }
.pair-panel img { width: 100%; height: clamp(400px, 64vh, 760px); object-fit: cover; transition: transform 0.9s ease; }
.pair-panel:hover img { transform: scale(1.035); }
.pair-body {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(26px, 3.6vw, 56px);
  background: linear-gradient(to top, rgba(22,24,21,0.82), rgba(22,24,21,0));
  color: var(--offwhite);
}
.pair-body .label { color: rgba(244,242,237,0.78); }
.pair-body .display-xs { color: var(--offwhite); margin: 0.6rem 0 0.7rem; }
.pair-body p { color: rgba(244,242,237,0.88); margin: 0 0 1.4rem; max-width: 42ch; font-size: 1rem; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

/* ── Projects: asymmetrical grid ─────────────────────────────────────── */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.6vw, 40px) clamp(18px, 2.4vw, 36px); }
.work-item { text-decoration: none; color: inherit; display: block; }
.work-item img { width: 100%; object-fit: cover; transition: transform 0.9s ease; }
.work-item:hover img { transform: scale(1.025); }
.work-frame { overflow: hidden; }
.work-meta { padding-top: 1.1rem; }
.work-meta .display-xs { margin-bottom: 0.3rem; }
.work-meta .label { font-size: 0.68rem; }

/* Asymmetry: wide, narrow, narrow, wide — offset on the second row. */
.work-item.w-7 { grid-column: span 7; }
.work-item.w-5 { grid-column: span 5; }
.work-item.w-6 { grid-column: span 6; }
.work-item.w-7 img { height: clamp(300px, 46vh, 560px); }
.work-item.w-5 img { height: clamp(300px, 46vh, 560px); }
.work-item.w-6 img { height: clamp(280px, 40vh, 480px); }
.work-item.offset { margin-top: clamp(0px, 6vw, 90px); }
@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; }
  .work-item.w-7, .work-item.w-5, .work-item.w-6 { grid-column: span 1; }
  .work-item.offset { margin-top: 0; }
  .work-item img { height: clamp(260px, 52vw, 420px) !important; }
}

/* ── Process: numbered stages ────────────────────────────────────────── */
.stages { border-top: 1px solid var(--line); }
.stage {
  display: grid; grid-template-columns: 5rem 24ch 1fr;
  gap: clamp(14px, 3vw, 56px); align-items: start;
  padding: clamp(26px, 3.2vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}
.stage-n { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--muted); }
.stage-name { color: var(--ink-strong); font-weight: 500; }
.stage-desc { color: var(--ink); }
@media (max-width: 860px) {
  .stage { grid-template-columns: 3.4rem 1fr; row-gap: 0.5rem; }
  .stage-desc { grid-column: 2; }
}

/* ── Pillars: four short reasons ─────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(26px, 3.4vw, 56px); }
.pillar { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.band-dark .pillar { border-top-color: rgba(244,242,237,0.22); }
.pillar h3 { font-weight: 500; margin-bottom: 0.6rem; }
.pillar p { font-size: 0.98rem; margin: 0; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .pillars { grid-template-columns: 1fr; } }

/* ── Numbered index (capabilities, systems) ──────────────────────────── */
.index { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 4rem 22ch 1fr;
  gap: clamp(14px, 3vw, 52px); align-items: baseline;
  padding: clamp(20px, 2.8vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
a.index-row { transition: background 0.25s, padding-left 0.25s; }
a.index-row:hover { background: var(--paper-warm); padding-left: 0.8rem; }
.index-n    { font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); }
.index-name { color: var(--ink-strong); font-weight: 500; }
.index-desc { color: var(--ink); }
@media (max-width: 860px) {
  .index-row { grid-template-columns: 3rem 1fr; row-gap: 0.4rem; }
  .index-desc { grid-column: 2; }
}

/* ── Split feature: image one side, text the other ───────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 110px); }
.feature img { width: 100%; height: clamp(360px, 62vh, 700px); object-fit: cover; }
.feature-body { max-width: 46ch; }
.feature.flip .feature-media { order: 2; }
@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; gap: 2.2rem; }
  .feature.flip .feature-media { order: 0; }
  .feature img { height: clamp(280px, 56vw, 460px); }
}

/* ── Quote ───────────────────────────────────────────────────────────── */
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.28; font-weight: 400; color: var(--ink-strong); margin: 0 0 1.6rem; }
.band-dark .quote { color: var(--offwhite); }
.quote-by { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ── Enquiry form ────────────────────────────────────────────────────── */
.form { max-width: 62ch; }
.form fieldset { border: 0; margin: 0 0 2.2rem; padding: 0; }
.form legend { padding: 0; margin-bottom: 1rem; }
.choices { display: grid; gap: 0.85rem; }
.choice { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; font-size: 1rem; }
.choice input { width: 16px; height: 16px; accent-color: var(--charcoal); margin: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink-strong);
  background: var(--white); border: 1px solid var(--line); border-radius: 0;
  padding: 0.85rem 1rem; transition: border-color 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--charcoal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-submit {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--charcoal); color: var(--offwhite); border: 1px solid var(--charcoal);
  padding: 1.05rem 2.4rem; cursor: pointer; border-radius: 0; transition: background 0.25s, color 0.25s;
}
.form-submit:hover { background: transparent; color: var(--charcoal); }
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 1.2rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 104px) 2.4rem; }
.foot-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: clamp(28px, 4vw, 70px); }
.foot-grid img { height: 26px; width: auto; margin-bottom: 1.2rem; }
.foot-grid h4 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 1.2rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 0.6rem; }
.foot-grid a { font-size: 0.94rem; color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  margin-top: clamp(44px, 6vw, 86px); padding-top: 1.7rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.76rem; color: var(--muted);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ── Reveal ──────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .pair-panel img, .work-item img { transition: none; }
}

/* ── Long-form articles ──────────────────────────────────────────────── */
.prose { max-width: 70ch; }
.prose h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.2;
  margin: clamp(40px, 4.6vw, 66px) 0 1.1rem;
  padding-top: clamp(26px, 3vw, 42px);
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.06rem; font-weight: 500; margin: 2rem 0 0.7rem; }
.prose p  { margin: 0 0 1.4rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose strong, .prose b { color: var(--ink-strong); font-weight: 500; }
.prose a { color: var(--ink-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--ink-strong); }

/* ── Inner-page header (no hero image) ───────────────────────────────── */
.page-head { padding-block: clamp(130px, 17vw, 240px) clamp(40px, 5vw, 80px); }
.page-head .label { margin-bottom: 1.4rem; }
.page-head .display { max-width: 18ch; }
.page-head p { max-width: 54ch; margin-top: 1.6rem; }

/* ──────────────────────────────────────────────────────────────────────
   v4.1 — Photography system rebuilt around the Nov 2026 job set.

   The v4 header says "photography is full-bleed and does the selling".
   That principle assumed large source files. The current job set tops
   out at 736px on the long edge, so full-bleed would upscale ~2x on a
   desktop viewport and go soft. The system below keeps the air and the
   restraint but sizes every frame to the source: nothing is ever laid
   out wider than the pixels behind it.

   Replace these caps when full-resolution originals land.
   ────────────────────────────────────────────────────────────────────── */

/* Hard ceiling: no photographic frame exceeds its native width. */
.plate-inset   { --native: 736px; }
.detail-item   { --native: 736px; }

/* Inset plate — the full-bleed .plate's small sibling. */
.plate-inset {
  margin: 0 auto;
  padding-inline: var(--pad);
  max-width: calc(var(--native) + 2 * var(--pad));
}
.plate-inset img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.plate-inset figcaption {
  padding-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Wide inset — for the two landscape-format frames (735x522, 735x608). */
.plate-inset.wide { --native: 735px; }

/* Details grid — material close-ups, deliberately modest in scale. */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2.4vw, 40px);
  align-items: start;
}
.detail-item { display: block; }
.detail-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.detail-item.landscape img { aspect-ratio: 4 / 3; }
.detail-item.square img    { aspect-ratio: 1 / 1; }
.detail-cap {
  display: block;
  padding-top: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Pair panels: cap so a wide viewport cannot stretch a 736px source. */
.pair-panel img { max-height: 760px; }
@media (min-width: 1600px) {
  .pair { max-width: 1600px; margin-inline: auto; }
}

/* Project cards sit a touch shorter than v4 so the crop stays honest. */
.work-item.w-7 img,
.work-item.w-5 img { height: clamp(300px, 42vh, 520px); }

/* A render is not a photograph. Label it as one. */
.is-render { position: relative; }
.is-render .render-tag {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--offwhite);
  background: rgba(32,35,33,0.72);
  padding: 0.35rem 0.6rem;
}

@media (max-width: 760px) {
  .detail-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* v4.1 fixes ─────────────────────────────────────────────────────────── */

/* The v4 scrim was tuned for dark photographs. Half the current set is
   pale stone and silver foliage, which left the white panel type at about
   2:1 contrast. Deeper, taller gradient with a mid stop so the text block
   sits on tone the whole way up, not just at the bottom edge. */
.pair-body {
  background: linear-gradient(to top,
    rgba(22,24,21,0.90) 0%,
    rgba(22,24,21,0.78) 38%,
    rgba(22,24,21,0.42) 68%,
    rgba(22,24,21,0) 100%);
  padding-top: clamp(64px, 9vw, 130px);
}
.pair-body p { color: rgba(244,242,237,0.94); }

/* Six details in a four-column grid left a ragged 4 + 2. Three columns
   gives two full rows at a size the 736px sources still carry. */
.detail-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .detail-grid { grid-template-columns: 1fr; } }

/* Inset plates carry their own rhythm (the full-bleed .plate relied on
   inline margin overrides, which are now removed). */
.plate-inset { margin-block: clamp(48px, 7vw, 120px); }

/* Cover: split at desktop ────────────────────────────────────────────────
   The v4 cover was a full-bleed photograph with the title washed over it.
   At 1440px that asks a 640-736px source to cover the full viewport width
   — a 2x+ upscale, and it shows on the cypress and crazy-paving covers.
   Splitting it puts the image in a ~736px column (roughly 1:1 with the
   source) and moves the title onto paper, which also drops the scrim and
   the contrast problem that came with it. Mobile keeps the washed overlay:
   at those widths the source is close enough to native. */
@media (min-width: 861px) {
  .cover {
    display: grid;
    grid-template-columns: 1fr minmax(0, 736px);
    align-items: stretch;
    background: var(--paper);
    padding-top: 0;
  }
  .cover-img {
    position: relative; inset: auto;
    grid-column: 2; grid-row: 1;
    min-height: clamp(460px, 68vh, 760px);
  }
  .cover-wash { display: none; }
  .cover-body {
    grid-column: 1; grid-row: 1;
    background: none;
    color: var(--ink);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-block: clamp(110px, 11vw, 160px) clamp(48px, 6vw, 92px);
  }
  .cover-body .label  { color: var(--muted); }
  .cover-body h1,
  .cover-body .display,
  .cover-body .display-sm,
  .cover-body .statement { color: var(--ink-strong); }
  .cover-body p      { color: var(--ink); }
  .cover-body .muted { color: var(--muted); }
  .cover-body .go    { color: var(--ink-strong); border-color: var(--line); }
  .cover-body .go:hover { color: var(--ink-strong); border-color: var(--ink-strong); }
}

/* Hero (residential / commercial): same split treatment as .cover.
   A 94vh full-bleed photograph needs ~2400px of source; the current set
   has 736. Splitting it holds the image near 1:1 and lets the nav sit on
   paper instead of fighting a bright sky. */
@media (min-width: 861px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr minmax(0, 736px);
    align-items: stretch;
    min-height: clamp(560px, 82vh, 880px);
    background: var(--paper);
  }
  .hero-img {
    position: relative; inset: auto;
    grid-column: 2; grid-row: 1;
  }
  .hero-scrim { display: none; }
  .hero-body {
    grid-column: 1; grid-row: 1;
    color: var(--ink);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-block: clamp(110px, 11vw, 160px) clamp(48px, 6vw, 92px);
  }
  .hero-body .label { color: var(--muted); }
  .hero-body .display { color: var(--ink-strong); max-width: 16ch; }
  .hero-body p { color: var(--ink); max-width: 42ch; }
  .hero-body .go.go-light {
    color: var(--ink-strong);
    border-color: var(--line);
  }
  .hero-body .go.go-light:hover { border-color: var(--ink-strong); }
}
