:root {
  --font-main: Arial, Helvetica, sans-serif;
  --dark-bg: #0f0f0d;
  --light-01: #f3f0ea;
  --light-02: #ded8cf;
  --text-dark: #332f29;
  --text-light: rgba(255,255,255,0.92);
  --nav-dark: rgba(51,47,41,0.72);
  --nav-light: rgba(255,255,255,0.76);
  --page-padding-x: clamp(1.3rem, 4vw, 4.5rem);
  --header-top: clamp(1.1rem, 2.9vh, 2.2rem);
  --hero-text-top: 53dvh;
  --hero-text-width: min(1220px, 82vw);
  --hero-text-align: left;
  --hero-statement-size: clamp(1.95rem, 2.2vw, 2.85rem);
  --hero-line-height: 1.18;
  --hero-letter-spacing: 0.058em;
  --hero-gap: clamp(1.2rem, 1.8vw, 2rem);
  --image-overlay-opacity: 0.38;
  --image-overlay-lower: 0.22;
  --fade-duration: 2600ms;
  --image-hold: 9400ms;
  --nav-size: 0.68rem;
  --nav-letter-spacing: 0.23em;
  --nav-hover-letter-spacing: 0.29em;
  --work-image-border: rgba(58,54,49,0.42);
  --work-image-radius: 2px;
  --work-grid-gap: clamp(1.35rem, 2.4vw, 2.6rem);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--light-01);
}
body.home-page { overflow: hidden; background: var(--dark-bg); color: var(--text-light); }
a { color: inherit; }
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.06rem;
  padding: 0 var(--page-padding-x);
  text-transform: uppercase;
}
.brand-mark {
  color: var(--nav-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.31em;
  line-height: 1.18;
  text-align: center;
}
.home-page .brand-mark { color: var(--text-light); }
.desktop-nav {
  display: flex;
  gap: clamp(1.2rem, 3.2vw, 3.4rem);
  justify-content: center;
  align-items: center;
  font-size: var(--nav-size);
  letter-spacing: var(--nav-letter-spacing);
  font-weight: 700;
}
.desktop-nav a, .mobile-nav a {
  color: var(--nav-dark);
  text-decoration: none;
  transition: color 220ms ease, opacity 220ms ease, letter-spacing 260ms ease;
}
.home-page .desktop-nav a, .home-page .mobile-nav a { color: var(--nav-light); }
.desktop-nav a:hover, .desktop-nav a:focus-visible {
  color: var(--text-dark);
  letter-spacing: var(--nav-hover-letter-spacing);
  outline: none;
}
.home-page .desktop-nav a:hover, .home-page .desktop-nav a:focus-visible { color: var(--text-light); }
.mobile-menu-button {
  display: none;
  position: fixed;
  top: var(--header-top);
  right: var(--page-padding-x);
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 30;
}
.mobile-menu-button span:not(.visually-hidden) {
  display: block;
  width: 1.55rem;
  height: 1px;
  background: currentColor;
  color: var(--text-dark);
  margin: 0.38rem auto;
}
.home-page .mobile-menu-button span:not(.visually-hidden) { color: var(--text-light); }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(243,240,234,0.94);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.23em;
}
.mobile-nav.open { display: flex; }
.home-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.background-reel, .reel-image, .image-overlay {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100dvh;
}
.background-reel { z-index: 0; background: var(--dark-bg); }
.reel-image {
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--fade-duration) ease-in-out;
  will-change: opacity;
}
.reel-image.active { opacity: 1; }
.reel-laurel, .reel-rexford, .reel-bollinger, .reel-coastal, .reel-nichols { object-position: center center; }
.image-overlay {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0, calc(var(--image-overlay-opacity) * 0.7)) 0%,
    rgba(0,0,0, calc(var(--image-overlay-opacity) * 0.28)) 36%,
    rgba(0,0,0, calc(var(--image-overlay-opacity) * 0.46)) 65%,
    rgba(0,0,0, calc(var(--image-overlay-opacity) + var(--image-overlay-lower))) 100%);
}
.hero-title {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
}
.statement-stack {
  position: absolute;
  top: var(--hero-text-top);
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--hero-text-width);
  text-align: var(--hero-text-align);
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  font-size: var(--hero-statement-size);
  line-height: var(--hero-line-height);
  letter-spacing: var(--hero-letter-spacing);
}
.statement-stack p { margin: 0; }
.statement-stack p + p { margin-top: var(--hero-gap); }
.light-page {
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--light-01) 0%, #ebe5dc 42%, var(--light-02) 100%);
}
.about-page, .work-page {
  background: linear-gradient(135deg, #f3f0ea 0%, #e7e0d5 44%, #d8d0c4 100%);
}
.contact-page {
  background: linear-gradient(132deg, #f5f1ea 0%, #eee7dc 32%, #ded6c9 100%);
}
.text-page-shell, .work-shell, .contact-shell {
  min-height: 100dvh;
  padding: clamp(9rem, 18vh, 13rem) var(--page-padding-x) clamp(5rem, 10vh, 8rem);
}
.text-page-content { width: min(850px, 78vw); margin: 0 auto; }
.text-page-content h1, .work-intro h1, .contact-card h1 {
  margin: 0 0 clamp(2rem, 4vw, 4rem);
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
}
.text-page-content p {
  margin: 0;
  max-width: 830px;
  font-size: clamp(1rem, 1.18vw, 1.28rem);
  line-height: 1.72;
  letter-spacing: 0.01em;
}
.text-page-content p + p { margin-top: 1.35rem; }
.license-lines {
  margin-top: 2rem !important;
  font-size: clamp(1rem, 1.18vw, 1.28rem) !important;
  line-height: 1.72 !important;
  text-transform: none;
  letter-spacing: 0.01em !important;
  font-weight: 400;
}
.work-intro, .work-grid { width: min(1440px, 88vw); margin: 0 auto; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--work-grid-gap);
  align-items: start;
}
.work-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.work-item.visible { opacity: 1; transform: translateY(0); }
.work-item:nth-child(3n+2) { margin-top: clamp(1.4rem, 3vw, 3.6rem); }
.work-item:nth-child(5n) { margin-top: clamp(0.8rem, 2vw, 2.4rem); }
.work-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--work-image-border);
  border-radius: var(--work-image-radius);
}
.work-item p {
  margin: 0.72rem 0 0;
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(51,47,41,0.76);
}
.contact-shell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card {
  width: min(620px, 78vw);
  transform: translateY(-2vh);
}
.contact-card p {
  margin: 0;
  font-size: clamp(1rem, 1.18vw, 1.28rem);
  line-height: 1.72;
}
.contact-card p + p { margin-top: 1.35rem; }
.contact-name {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 0 var(--page-padding-x) 2.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(51,47,41,0.52);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-item:nth-child(n) { margin-top: 0; }
  .work-item:nth-child(even) { margin-top: 2rem; }
}
@media (max-width: 760px) {
  :root {
    --hero-text-top: 58dvh;
    --hero-text-width: min(82vw, 560px);
    --hero-statement-size: clamp(0.94rem, 4.2vw, 1.25rem);
    --hero-gap: 1.1rem;
    --hero-letter-spacing: 0.046em;
    --image-overlay-opacity: 0.48;
  }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: block; }
  .site-header { align-items: center; gap: 0; }
  .brand-mark { font-size: 0.68rem; }
  .text-page-content, .work-intro, .work-grid, .contact-card { width: min(86vw, 620px); }
  .work-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .work-item:nth-child(n) { margin-top: 0; }
  .site-footer { flex-direction: column; gap: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-image, .work-item, .desktop-nav a, .mobile-nav a { transition: none; }
}


/* v9 refinements */
.contact-card .license-lines {
  font-size: clamp(1rem, 1.18vw, 1.28rem) !important;
  line-height: 1.72 !important;
  text-transform: none;
  letter-spacing: 0.01em !important;
  font-weight: 400;
}

/* Keep about text calm and legible, not manifesto-like. */
.about-page .text-page-content h1,
.contact-card h1,
.work-intro h1 {
  color: rgba(51,47,41,0.72);
}

/* Larger homepage text needs tighter mobile fallback. */
@media (max-width: 760px) {
  :root {
    --hero-statement-size: clamp(1.05rem, 5.1vw, 1.55rem);
    --hero-text-width: min(84vw, 560px);
    --hero-line-height: 1.22;
    --hero-gap: 1.18rem;
  }
}


/* v10 tonal refinements */

.about-page .text-page-content {
  color: rgba(54,51,47,0.90);
}

.contact-page .contact-card {
  color: rgba(52,48,43,0.92);
}

/* Slightly calmer work field */
.work-page .work-item p {
  color: rgba(61,56,50,0.72);
}

@media (max-width: 760px) {
  :root {
    --hero-statement-size: clamp(0.98rem, 4.6vw, 1.4rem);
    --hero-gap: 1.08rem;
    --hero-line-height: 1.22;
  }
}


/* --- v11 definitive page palette overrides ---
   Work: Pacific lime putty plaster, flat and light.
   About: darker disciplined companion tone, vertical top-to-bottom gradient.
   Contact: brighter companion tone, upper-left to lower-right directional gradient.
   These are intentionally page-specific and override the shared .light-page background. */

body.work-page {
  background:
    linear-gradient(
      to bottom,
      #fbfaf7 0%,
      #f7f5f0 48%,
      #f1eee8 100%
    ) !important;
}

body.about-page {
  background:
    linear-gradient(
      138deg,
      #e7ecec 0%,
      #f1f4f1 50%,
      #fbfaf5 100%
    ) !important;
}

body.contact-page {
  background:
    linear-gradient(
      135deg,
      #f6efe2 0%,
      #faf7f0 58%,
      #ffffff 100%
    ) !important;
}

/* Ensure page containers themselves do not cover the body background. */
.work-page .work-shell,
.about-page .text-page-shell,
.contact-page .contact-shell {
  background: transparent !important;
}

/* Slightly calibrate text over the three light page tones. */
.work-page,
.about-page,
.contact-page {
  color: #332f29;
}

.about-page .text-page-content {
  color: rgba(54,51,47,0.90);
}

.contact-page .contact-card {
  color: rgba(50, 45, 39, 0.92);
}


/* v12 about-page refinement:
   disciplined mineral parchment rather than heavy taupe. */

.about-page .text-page-content {
  color: rgba(54,51,47,0.90);
}

.about-page .text-page-content p {
  max-width: 840px;
}


/* v13 tonal refinement:
   About page shifted from warm parchment toward disciplined mineral blue-gray.
   Intended atmosphere:
   cool daylight on plaster / architectural vellum / marine haze.
*/

.about-page .text-page-content p {
  text-wrap: pretty;
}


/* v14 refinement:
   About page now shares the illuminated atmospheric quality of Contact,
   but retains its disciplined cool mineral hue family.
   Intended atmosphere:
   daylight across cool architectural vellum.
*/

.about-page .text-page-content {
  color: rgba(54,51,47,0.90);
}


/* v15 atmospheric calibration:
   Work = softly illuminated gallery drywall / pin-up wall.
   About = cooler mineral field with increased luminance and slightly softer type.
   Contact unchanged from v14. */

.about-page .text-page-content p {
  line-height: 1.78;
}

.work-page .work-item img {
  background: #fbfaf7;
}


/* --- v16 footer refinement --- */

.refined-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5.5rem 0 3.5rem;
  width: 100%;
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.footer-mark {
  width: 58px;
  height: auto;
  opacity: 0.92;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  text-align: center;
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(58,54,49,0.58);
}

/* Preserve homepage cleanliness by omitting footer there. */
.home-page .refined-footer {
  display: none;
}

@media (max-width: 760px) {
  .refined-footer {
    padding: 4.2rem 0 3rem;
  }

  .footer-mark {
    width: 52px;
  }

  .footer-text {
    font-size: 0.54rem;
    letter-spacing: 0.18em;
  }
}


/* --- v17 SVG footer integration --- */

.footer-mark {
  width: 52px;
  height: auto;
  display: block;
  opacity: 0.94;
}

/* SVG now renders transparently and optically centered. */
.footer-inner {
  transform: translateY(-0.05rem);
}

.footer-text {
  margin-top: -0.1rem;
}


/* --- v18 scroll-state header atmosphere ---
   Adds a restrained translucent field behind the fixed header once the page scrolls.
   Shape and strength are adjustable. */

:root {
  --header-field-radius: 999px;
  --header-field-opacity-light: 0.72;
  --header-field-opacity-dark: 0.30;
  --header-field-blur: 14px;
  --header-field-border-light: rgba(58,54,49,0.10);
  --header-field-border-dark: rgba(255,255,255,0.10);
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -0.72rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 2.4rem));
  height: calc(100% + 1.44rem);
  border-radius: var(--header-field-radius);
  background: rgba(250,247,240,0);
  border: 1px solid transparent;
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    opacity 320ms ease,
    background-color 320ms ease,
    border-color 320ms ease,
    backdrop-filter 320ms ease,
    -webkit-backdrop-filter 320ms ease;
  pointer-events: none;
}

body.has-scrolled .site-header::before {
  opacity: 1;
  background: rgba(250,247,240,var(--header-field-opacity-light));
  border-color: var(--header-field-border-light);
  backdrop-filter: blur(var(--header-field-blur));
  -webkit-backdrop-filter: blur(var(--header-field-blur));
}

body.home-page.has-scrolled .site-header::before {
  background: rgba(12,12,11,var(--header-field-opacity-dark));
  border-color: var(--header-field-border-dark);
}

/* Keep the header field very calm on mobile. */
@media (max-width: 760px) {
  .site-header::before {
    width: min(320px, calc(100vw - 4.2rem));
    top: -0.58rem;
    height: calc(100% + 1.16rem);
  }
}


/* --- v19 header scroll field refinement ---
   The scroll field now drops from the top of the browser viewport rather than floating as a pill.
   Its bottom padding mirrors the distance from the viewport top to MAURER DYNAMICS.
   Color is derived per page from that page's background family. */

:root {
  --header-field-radius: 8px;
  --header-field-blur: 12px;
  --header-field-alpha: 0.82;
  --header-field-border-alpha: 0.10;
  --header-field-rgb: 250,247,240;
}

/* Page-derived header field colors */
body.work-page {
  --header-field-rgb: 251,250,247;
}

body.about-page {
  --header-field-rgb: 237,241,238;
}

body.contact-page {
  --header-field-rgb: 250,247,240;
}

body.home-page {
  --header-field-rgb: 12,12,11;
  --header-field-alpha: 0.36;
  --header-field-border-alpha: 0.10;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--header-top));
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(100% + (var(--header-top) * 2));
  transform: none;
  border-radius: 0 0 var(--header-field-radius) var(--header-field-radius);
  background: rgba(var(--header-field-rgb), 0);
  border: 0;
  border-bottom: 1px solid transparent;
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    opacity 320ms ease,
    background-color 320ms ease,
    border-color 320ms ease,
    backdrop-filter 320ms ease,
    -webkit-backdrop-filter 320ms ease;
  pointer-events: none;
}

body.has-scrolled .site-header::before {
  opacity: 1;
  background: rgba(var(--header-field-rgb), var(--header-field-alpha));
  border-bottom-color: rgba(58,54,49,var(--header-field-border-alpha));
  backdrop-filter: blur(var(--header-field-blur));
  -webkit-backdrop-filter: blur(var(--header-field-blur));
}

body.home-page.has-scrolled .site-header::before {
  border-bottom-color: rgba(255,255,255,var(--header-field-border-alpha));
}

/* Mobile keeps the same top-attached bar logic, slightly more compact. */
@media (max-width: 760px) {
  .site-header::before {
    top: calc(-1 * var(--header-top));
    left: 0;
    right: 0;
    width: 100vw;
    height: calc(100% + (var(--header-top) * 1.55));
    border-radius: 0 0 7px 7px;
  }
}


/* =========================================================
   V22 PROJECT MONOGRAPH TEMPLATE
   ========================================================= */

.project-page {
  min-height: 100dvh;
  background:
    linear-gradient(
      to bottom,
      #fbfaf7 0%,
      #f7f5f0 48%,
      #f1eee8 100%
    ) !important;
}

.project-monograph {
  width: min(1540px, 91vw);
  margin: 0 auto;
  padding: clamp(9.5rem, 17vh, 13rem) 0 clamp(3rem, 7vh, 6rem);
}

.project-opening {
  width: min(1120px, 82vw);
  margin: 0 auto clamp(2rem, 4vw, 4rem);
}

.project-back-link {
  display: inline-block;
  margin-bottom: 1.35rem;
  color: rgba(51,47,41,0.56);
  text-decoration: none;
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  transition: color 220ms ease;
}

.project-back-link:hover,
.project-back-link:focus-visible {
  color: rgba(51,47,41,0.92);
  outline: none;
}

.project-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.project-title-row h1 {
  margin: 0;
  color: rgba(51,47,41,0.94);
  font-size: clamp(1.25rem, 1.8vw, 2.05rem);
  line-height: 1.26;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  font-weight: 700;
}

.project-year {
  flex: 0 0 auto;
  color: rgba(51,47,41,0.48);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.monograph-image {
  width: min(1120px, 82vw);
  margin: 0 auto clamp(2rem, 4vw, 4.5rem);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 760ms ease, transform 760ms ease;
}

.monograph-image.visible {
  opacity: 1;
  transform: translateY(0);
}

.monograph-image-hero,
.monograph-image-wide {
  width: 100%;
}

.monograph-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--work-image-border);
  border-radius: var(--work-image-radius);
  background: #fbfaf7;
}

.project-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
  gap: clamp(3rem, 7vw, 7rem);
  width: min(1120px, 82vw);
  margin: clamp(3.5rem, 7vw, 7rem) auto clamp(4rem, 8vw, 8rem);
}

.project-description p {
  margin: 0;
  color: rgba(51,47,41,0.90);
  font-size: clamp(1rem, 1.12vw, 1.24rem);
  line-height: 1.74;
  letter-spacing: 0.006em;
}

.project-description p + p {
  margin-top: 1.15rem;
}

.project-metadata {
  margin: 0;
}

.project-metadata div {
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(51,47,41,0.13);
}

.project-metadata div + div {
  padding-top: 1rem;
}

.project-metadata dt {
  margin: 0 0 0.35rem;
  color: rgba(51,47,41,0.50);
  font-size: 0.56rem;
  line-height: 1.45;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-weight: 700;
}

.project-metadata dd {
  margin: 0;
  color: rgba(51,47,41,0.86);
  font-size: 0.84rem;
  line-height: 1.58;
}

.monograph-sequence {
  width: 100%;
}

.project-page .refined-footer {
  padding-top: 2.5rem;
}

.work-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-item-link img,
.work-item-link p {
  transition: opacity 240ms ease, color 240ms ease;
}

.work-item-link:hover img,
.work-item-link:focus-visible img {
  opacity: 0.88;
}

.work-item-link:hover p,
.work-item-link:focus-visible p {
  color: rgba(51,47,41,0.96);
}

.work-item-link:focus-visible {
  outline: 1px solid rgba(51,47,41,0.30);
  outline-offset: 5px;
}

@media (max-width: 900px) {
  .project-introduction {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .project-monograph {
    width: min(92vw, 720px);
    padding-top: 8.5rem;
  }

  .project-opening,
  .project-introduction,
  .monograph-image {
    width: min(86vw, 680px);
  }

  .monograph-image-hero,
  .monograph-image-wide {
    width: 100%;
  }

  .project-title-row {
    display: block;
  }

  .project-year {
    display: block;
    margin-top: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monograph-image,
  .work-item-link img,
  .work-item-link p {
    transition: none;
  }
}


/* =========================================================
   V23 – Uniform monograph image widths
   ========================================================= */

.monograph-sequence .monograph-image,
.monograph-image-hero,
.monograph-image-wide {
  width: min(1120px, 82vw);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 760px) {
  .monograph-sequence .monograph-image,
  .monograph-image-hero,
  .monograph-image-wide {
    width: min(86vw, 680px);
  }
}


/* =========================================================
   V25 — TRUE EDITORIAL GRID
   ========================================================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3rem, 5vw, 6rem) var(--work-grid-gap);
  align-items: start;
}

.work-item,
.work-item:nth-child(n),
.work-item:nth-child(even),
.work-item:nth-child(3n+2),
.work-item:nth-child(5n) {
  margin-top: 0 !important;
  align-self: start;
}

.work-item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1050px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.6rem, 5vw, 4.5rem) var(--work-grid-gap);
  }

  .work-item,
  .work-item:nth-child(n),
  .work-item:nth-child(even) {
    margin-top: 0 !important;
  }
}

@media (max-width: 760px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
