/* Avondale Residence — Brandon-reference under-header composition, 2026-11-01.
   Page-scoped: loaded only by /work/avondale-residence/.

   Desktop measurements taken from Brandon Architects /projects/boat-house at
   1440px: 50/48 columns with a 2% gutter; title at 25% into the left column;
   a 655x790 primary image at right; a 334x472 detail image at lower left; and
   Specifications below the primary image. Mobile measurements taken at 390px:
   title, primary image, Specifications, intro, then a half-width detail crop.
   Stamp & Hammer fonts, colour tokens, project copy, and navigation are retained. */

/* ------------------------------------------------- hero: preserved film */

.project-hero--film video { object-position: 50% 54%; }
.project-hero--film .project-hero__still { display: none; }

@media (prefers-reduced-motion: reduce) {
  .project-hero--film video { display: none; }
  .project-hero--film .project-hero__still { display: block; }
}

/* -------------------------------------------- under-header reference layout */

.pj26-head {
  display: grid;
  grid-template-columns: 50% 48%;
  grid-template-rows: auto auto;
  column-gap: 2%;
  row-gap: 32px;
  /* 29px matches the measured gaps on Brandon Architects Boat House at 1440px:
     hero film -> under-header block (top), and under-header block -> next
     full-width image (bottom). The phone layout keeps its own padding below. */
  padding-block: 29px;
}

.pj26-head__text {
  grid-column: 1;
  grid-row: 1;
  box-sizing: border-box;
  width: 60%;
  min-height: 572px;
  padding: 30% 0 20% 25%;
}

.pj26-head__text .pj26-identity__name {
  max-width: none;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0;
}

.pj26-head__text .pj26-identity__place {
  margin-top: 4px;
  font-size: 14px;
  line-height: 18px;
}

.pj26-head__text .pj26-identity__intro {
  margin-top: 60px;
  max-width: 239px;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: 0;
}

.pj26-head__main {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.pj26-head__primary,
.pj26-head__detail {
  margin: 0;
  overflow: hidden;
}

.pj26-head__primary {
  width: 100%;
  aspect-ratio: 655 / 790;
}

.pj26-head__primary img,
.pj26-head__detail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pj26-head__primary img { object-position: 50% 50%; }

.pj26-head__detail {
  grid-column: 1;
  grid-row: 2;
  width: 49%;
  aspect-ratio: 334 / 472;
  align-self: start;
}

.pj26-head__detail img { object-position: 48% 50%; }

.pj26-head__spec {
  width: 43%;
  margin-top: 98px;
}

.pj26-head__spec .pj26-spec__head { margin-bottom: 19px; }
.pj26-head__spec .pj26-spec__list > div {
  grid-template-columns: 140px 98px;
  column-gap: 40px;
}

.pj26-head__intro-mobile { display: none; }

/* ---------------- image-to-image spacing system, Brandon Boat House ------------

   Measured live on brandonarchitects.com/projects/boat-house at 1440px: the page
   column carries `gap: 29px` between consecutive media blocks, and its two-up rows
   sit 675 + 30 + 675 inside a 1380px container, i.e. a 30px horizontal gap.
   At 390px the same column carries `gap: 20px` and the pairs stack.
   These overrides are page-scoped to /work/avondale-residence/; the shared
   .project-band / .project-gallery defaults (10px desktop, 5px phone) are unchanged
   for every other project route. */

:is(.project-media--lead, .project-band, .project-gallery)
  + :is(.project-media--lead, .project-band, .project-gallery) {
  margin-top: 29px;
}

.project-band,
.project-gallery {
  column-gap: 30px;
  row-gap: 29px;
}

/* The chapter blocks place their copy BESIDE the photograph, so the bands above and
   below that photograph carry no text at all — they are pure image-to-image gaps and
   take Brandon's 29px like every other one. Shared default is clamp(76px,10vw,150px). */
.project-chapter {
  padding-block: 29px;
}

/* ------------------------------------------------- backyard film chapter */

.pj26-film {
  margin: 0;
  width: 100%;
  grid-column: 1 / -1;
  background: #20272b;
}

.pj26-film video {
  display: block;
  width: 100%;
  height: clamp(460px, 56vw, 880px);
  object-fit: cover;
  object-position: 50% 54%;
}

/* ------------------------------------------------------------- phone 390 */

@media (max-width: 760px) {
  .pj26-head {
    display: flex;
    flex-direction: column;
    row-gap: 0;
    padding-block: 0 100px;
  }

  .pj26-head__text {
    width: 100%;
    min-height: 0;
    padding: 100px 0 0;
  }

  .pj26-head__text .pj26-identity__name {
    font-size: 18px;
    line-height: 26px;
  }

  .pj26-head__text .pj26-identity__place {
    margin-top: 4px;
    font-size: 14px;
    line-height: 18px;
  }

  .pj26-head__intro-desktop { display: none; }

  .pj26-head__main { margin-top: 50px; }

  .pj26-head__primary { aspect-ratio: 335 / 403; }

  .pj26-head__spec {
    width: 100%;
    margin-top: 40px;
  }

  .pj26-head__spec .pj26-spec__list > div {
    grid-template-columns: 110px 98px;
    column-gap: 30px;
  }

  .pj26-head__intro-mobile {
    display: block;
    margin: 94px 0 0;
    max-width: none;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: var(--fw-light);
    line-height: 21px;
    letter-spacing: 0;
    color: var(--ink-2);
  }

  .pj26-head__detail {
    width: 50%;
    margin-top: 76px;
    align-self: flex-end;
    aspect-ratio: 168 / 236;
  }

  .pj26-film video { height: 72vw; min-height: 280px; }

  /* Brandon's phone column gap is 20px; the shared system uses 5px/10px here. */
  :is(.project-media--lead, .project-band, .project-gallery)
    + :is(.project-media--lead, .project-band, .project-gallery) {
    margin-top: 20px;
  }

  .project-band,
  .project-gallery {
    column-gap: 20px;
    row-gap: 20px;
  }

  /* Brandon's phone gap between its under-header block and the first full-width
     image measures 80px, not 100px. */
  .pj26-head {
    padding-block: 0 80px;
  }

  /* At phone the chapters stack, so only one side of each is a textless band:
     below the first chapter's photograph, and above the second's. */
  .project-chapter--first { padding-bottom: 20px; }
  .project-chapter--second { padding-top: 20px; }
}
