/* Client corrections, 14 October 2026. */
@media (max-width: 760px) {
 .local-curation-review .v4-selected .section-heading h2 { font-size: clamp(28px, 7.5vw, 36px); line-height: 1.12; max-width: 19ch; }
 .gallery-categories { gap: 18px; }
 .gallery-categories button { font-size: 15px; min-height: 44px; padding: 12px 0; }
 .gallery-collection-heading h3 { font-size: 17px; }
 .service-detail .service-media { width: min(100%, 520px); min-height: 0; aspect-ratio: 1; align-self: stretch; }
}
@media (min-width: 761px) {
 .service-detail { grid-template-columns: minmax(0, 1fr) minmax(280px, .95fr); gap: clamp(30px, 5vw, 90px); }
 .service-detail > p { width: 100%; max-width: 44ch; }
 .service-detail .service-media { width: 100%; max-width: 520px; justify-self: end; }
}
/* Retain the original alternating editorial gallery rhythm, with category controls above. */
.local-curation-review .v4-selected .project-gallery { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 72px 28px; padding-top: 50px; }
.local-curation-review .v4-selected .project-card:nth-child(n) { grid-column: 1 / span 5; grid-row: auto; margin: 0; width: 100%; padding-bottom: 30px; }
.local-curation-review .v4-selected .project-card:nth-child(6n+2),
.local-curation-review .v4-selected .project-card:nth-child(6n+6) { grid-column: 7 / span 6; margin-top: 100px; }
.local-curation-review .v4-selected .project-card:nth-child(6n+3) { grid-column: 2 / span 4; margin-top: 40px; }
.local-curation-review .v4-selected .project-card:nth-child(6n+4) { grid-column: 8 / span 4; }
.local-curation-review .v4-selected .project-card:nth-child(n) img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.local-curation-review .v4-selected .project-card:nth-child(even) img { aspect-ratio: 16 / 10; }
.local-curation-review .v4-selected .project-card::after { font-size: 11px; }
.gallery-categories button { font-size: clamp(15px,1.35vw,20px); }
@media (max-width: 760px) {
 .local-curation-review .v4-selected .project-gallery { grid-template-columns: minmax(0,1fr); gap: 38px; padding-top: 30px; }
 .local-curation-review .v4-selected .project-card:nth-child(n) { grid-column: 1 / -1; margin: 0; width: 100%; }
 .local-curation-review .v4-selected .project-card:nth-child(even) { width: 84%; margin-left: auto; }
 .local-curation-review .v4-selected .project-card:nth-child(n) img { aspect-ratio: 4 / 3; }
 .local-curation-review .v4-selected .project-card:nth-child(even) img { aspect-ratio: 4 / 5; }
}

/* 17 October: stable frames for every CMS image, retaining the staggered layout. */
.local-curation-review .v4-selected .project-card:nth-child(n) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
/* A real sky frame stays visible when mobile autoplay is unavailable. */
.hero { background: #cf855c url("assets/video/hero-poster.jpg") center / cover no-repeat; }
@media (max-width: 760px) {
  .hero { height: 100svh; height: 100dvh; min-height: 480px; }
  .hero-time { bottom: calc(41px + env(safe-area-inset-bottom, 0px)); }
  .hero-scroll { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 760px) and (orientation: landscape) {
  .hero { min-height: 320px; }
}

/* Mobile aperture: fit the artwork to the screen width, with its crown flush
   to the top. The full-height wash avoids a seam beneath the natural logo. */
@media (max-width: 760px) {
  .hero .hero-aperture { display: none; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #fff;
    pointer-events: none;
    opacity: calc(.25 * var(--hero-fade));
    transform: translateY(var(--hero-shift));
    transition: opacity 120ms linear, transform 120ms linear;
    -webkit-mask-image: linear-gradient(#000 0 0), url("assets/brand/mobile-aperture-cutouts.svg");
    mask-image: linear-gradient(#000 0 0), url("assets/brand/mobile-aperture-cutouts.svg");
    -webkit-mask-size: 100% 100%, 100% auto;
    mask-size: 100% 100%, 100% auto;
    -webkit-mask-position: 0 0, center top;
    mask-position: 0 0, center top;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .hero::after { transition: none; }
}

/* Client review, 22 October: lighter labels and consistent space filters. */
.gallery-categories button,
.gallery-collection-heading h3 { font-weight: 300; }
.gallery-space-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-space-filters button { width: 96px; max-width: 100%; height: 44px; padding: 0 12px; border-radius: 999px; font-family: inherit; font-weight: 300; }
.gallery-space-filters button[aria-pressed="true"] { background: var(--orange-bright); border-color: var(--orange-bright); color: #fff; }
.gallery-space-filters button:focus-visible,
.gallery-image-arrow:focus-visible,
.dialog-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* Keep the image, its arrows and project controls inside the visible viewport. */
.local-curation-review .v4-dialog .project-dialog-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 14px;
  height: 100dvh;
  min-height: 0;
  padding: max(72px, env(safe-area-inset-top)) max(24px, 4vw) max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.local-curation-review .v4-dialog .project-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}
.local-curation-review .project-carousel figure {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  background: transparent;
}
.local-curation-review .project-carousel img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; cursor: zoom-in; }
.gallery-image-arrow { display: grid; place-items: center; grid-row: 1; width: 44px; height: 44px; padding: 0; border: 1px solid #fff8; border-radius: 50%; background: #202020; color: #fff; cursor: pointer; }
.gallery-image-previous { grid-column: 1; }
.gallery-image-next { grid-column: 3; }
.gallery-image-arrow[hidden] { display: none; }
.gallery-image-arrow svg { width: 20px; height: 20px; }
.local-curation-review .v4-dialog .dialog-copy { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 0; margin: 0; padding: 0; }
.local-curation-review .v4-dialog .dialog-copy h2 { margin: 4px 0 0; font-size: 18px; font-weight: 300; }
.local-curation-review .v4-dialog .dialog-copy p { margin: 0; font-size: 12px; }
.local-curation-review .v4-dialog [data-dialog-review-note] { display: none; }
.local-curation-review .v4-dialog .gallery-image-position { white-space: nowrap; }
.local-curation-review .v4-dialog .dialog-nav { position: static; justify-content: center; align-items: center; gap: 24px; padding: 8px 0; }
.local-curation-review .v4-dialog .dialog-nav button { width: 48px; height: 48px; color: white; background: var(--orange-bright); border-color: var(--orange-bright); animation: modalNextPulse 2s ease-out infinite; }
.local-curation-review .v4-dialog .dialog-nav button:disabled { opacity: .35; animation: none; cursor: default; }

@media (max-width: 760px) {
  /* Cutout circle center is 727.6 / 1386 of the screen width below its origin. */
  .hero::after {
    top: calc(max(50dvh, 240px) - 52.5vw);
    -webkit-mask-position: 0 0, center top;
    mask-position: 0 0, center top;
  }
  .local-curation-review .v4-dialog .project-dialog-panel { gap: 12px; padding: max(72px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom)); }
  .local-curation-review .v4-dialog .project-carousel { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; }
  .local-curation-review .v4-dialog .dialog-copy h2 { font-size: 15px; }
  .local-curation-review .v4-dialog .dialog-copy p { font-size: 11px; }
  .project-carousel .image-expand { right: 6px; bottom: 6px; }
}
@media (max-width: 760px) and (orientation: landscape) {
  .hero::after {
    top: calc(max(50dvh, 160px) - 52.5vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .local-curation-review .v4-dialog .dialog-nav button { animation: none; }
}
/* Separate project navigation clearly from image navigation. */
.v4-dialog .dialog-backdrop { background: #080808; }
.local-curation-review .v4-dialog .dialog-nav { gap: 64px; padding-bottom: 24px; }
.local-curation-review .v4-dialog .dialog-nav button { position: relative; }
.dialog-nav button::after { position: absolute; top: calc(100% + 7px); left: 50%; transform: translateX(-50%); color: #ccc; font: 11px/1.2 "Helvetica Neue", sans-serif; white-space: nowrap; }
.dialog-nav [data-project-previous]::after { content: "Previous project"; }
.dialog-nav [data-project-next]::after { content: "Next project"; }
.project-carousel .image-expand { position: fixed; top: 20px; right: 82px; bottom: auto; }
