.project-page{background:var(--paper);color:var(--ink)}
.project-page .nav{color:#fff;background:transparent;transition:background .2s,color .2s}
.project-page .nav.on-paper{background:#fff;color:var(--ink)}
.project-hero{min-height:88svh;position:relative;display:flex;align-items:flex-end;padding:0 var(--page-gutter) 8vh;background:var(--black);color:#fff;overflow:hidden}
.project-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.7);opacity:.82}
.project-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),rgba(0,0,0,.7))}
.project-hero-content{position:relative;z-index:1;max-width:1100px}
.project-hero .page-kicker{margin-bottom:28px}
.project-hero h1{font:700 clamp(4rem,10vw,11rem)/.84 Formula,Arial,sans-serif;letter-spacing:-.06em;margin:0;max-width:1050px}
.project-hero h1 em{font-family:var(--serif);font-weight:400;letter-spacing:-.07em}
.project-location{font:11px 'DM Mono',monospace;letter-spacing:.12em;text-transform:uppercase;margin:30px 0 0}

/* Editorial case-study opening: the label, statement and project metadata share a precise grid. */
.project-intro{display:grid;grid-template-columns:minmax(150px,.3fr) minmax(0,1fr);gap:clamp(42px,8vw,150px);padding:clamp(110px,14vw,205px) var(--page-gutter) clamp(95px,12vw,170px)}
.project-section-label{font:11px 'DM Mono',monospace;letter-spacing:.12em;text-transform:uppercase;line-height:1.35}
.project-intro-copy{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(210px,.65fr);column-gap:clamp(24px,5vw,90px);align-items:start}
.project-intro h2,.project-detail h2{font:500 clamp(3.4rem,6.4vw,7.4rem)/.88 Formula,Arial,sans-serif;letter-spacing:-.06em;margin:0 0 42px}
.project-intro h2 em,.project-detail h2 em,.project-cta h2 em{font-family:var(--serif);font-weight:400;letter-spacing:-.06em}
.project-intro-copy>p{font-size:clamp(1.2rem,1.75vw,1.75rem);line-height:1.2;letter-spacing:-.025em;max-width:690px;margin:0}
.project-facts{grid-column:1 / -1;border-top:1px solid var(--line);margin-top:clamp(60px,9vw,120px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-top:16px}
.project-facts span{display:block;font:10px 'DM Mono',monospace;letter-spacing:.1em;text-transform:uppercase;margin-bottom:9px;opacity:.6}
.project-facts strong{font:500 16px/1.2 Formula,Arial,sans-serif}
.project-feature{padding:0 var(--page-gutter)}
.project-feature figure{margin:0}
.project-feature img{display:block;width:100%;height:min(78vh,820px);object-fit:cover;object-position:center}
.project-feature figcaption{display:none}

/* Palomino-inspired media chapter: a quiet black field with a controlled image rhythm. */
.project-gallery-wrap{padding:clamp(96px,12vw,180px) var(--page-gutter) clamp(120px,16vw,230px);background:var(--black);color:#fff}
.project-gallery-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:30px;margin-bottom:clamp(48px,6vw,84px)}
.project-gallery-heading h2{font:500 clamp(3.4rem,6.4vw,7.4rem)/.88 Formula,Arial,sans-serif;letter-spacing:-.06em;margin:0;max-width:760px;color:#fff}
.project-gallery-heading h2 em{font-family:var(--serif);font-weight:400;letter-spacing:-.06em}
.project-gallery-heading p{font:11px 'DM Mono',monospace;letter-spacing:.1em;text-transform:uppercase;margin:0 0 7px;opacity:.6;text-align:right}
.project-gallery{display:flex;flex-direction:column;gap:clamp(42px,5vw,78px)}
.gallery-composition{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(12px,1.5vw,24px);align-items:start}
.gallery-item{margin:0;min-width:0}
.gallery-item img{display:block;width:100%;height:100%;object-fit:cover;background:#1d1f20;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.gallery-item{overflow:hidden}
.gallery-item:hover img{transform:scale(1.025)}
.gallery-composition--wide .gallery-item{grid-column:1 / -1}
.gallery-composition--wide .gallery-item img{aspect-ratio:2.05 / 1}
.gallery-composition--duo .gallery-item:first-child{grid-column:1 / span 7}
.gallery-composition--duo .gallery-item:last-child{grid-column:9 / -1;align-self:end}
.gallery-composition--duo .gallery-item img{aspect-ratio:1.22 / 1}
.gallery-composition--duo .gallery-item:last-child img{aspect-ratio:.82 / 1}
.gallery-composition--inset-right .gallery-item{grid-column:4 / -1}
.gallery-composition--inset-right .gallery-item img{aspect-ratio:1.55 / 1}
.gallery-composition--triptych .gallery-item:first-child{grid-column:1 / span 5}
.gallery-composition--triptych .gallery-item:nth-child(2){grid-column:6 / span 3;align-self:end}
.gallery-composition--triptych .gallery-item:last-child{grid-column:10 / -1;align-self:start}
.gallery-composition--triptych .gallery-item img{aspect-ratio:.82 / 1}
.gallery-composition--duo-alt .gallery-item:first-child{grid-column:1 / span 4;align-self:start}
.gallery-composition--duo-alt .gallery-item:last-child{grid-column:6 / -1}
.gallery-composition--duo-alt .gallery-item:first-child img{aspect-ratio:.82 / 1}
.gallery-composition--duo-alt .gallery-item:last-child img{aspect-ratio:1.45 / 1}
.gallery-composition--inset-left .gallery-item{grid-column:1 / span 9}
.gallery-composition--inset-left .gallery-item img{aspect-ratio:1.55 / 1}

/* A quiet, horizontal scope block closes the case study before the CTA. */
.project-detail{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(0,1fr);gap:clamp(44px,9vw,150px);padding:clamp(100px,13vw,180px) var(--page-gutter);background:#ececea}
.project-detail-copy>p{font-size:17px;line-height:1.45;max-width:470px;letter-spacing:0;margin:0 0 60px}
.project-list{border-top:1px solid currentColor;margin:0;padding:0;list-style:none}
.project-list li{display:grid;grid-template-columns:48px 1fr;gap:18px;border-bottom:1px solid currentColor;padding:20px 0;font:500 clamp(1.2rem,1.8vw,1.9rem)/1 Formula,Arial,sans-serif}
.project-list li span{font:10px 'DM Mono',monospace;letter-spacing:.1em;padding-top:4px}
.project-cta{padding:clamp(100px,14vw,190px) var(--page-gutter);background:var(--black);color:#fff;display:flex;justify-content:space-between;align-items:flex-end;gap:6vw}
.project-cta h2{font:500 clamp(3.3rem,7vw,8rem)/.87 Formula,Arial,sans-serif;letter-spacing:-.06em;margin:0}
.project-cta .page-link{flex:none}
.project-footer{background:var(--black);color:#fff;border-top-color:#ffffff33}
@media(max-width:767px){
  .project-hero{min-height:78svh;padding:0 var(--page-gutter) 58px}
  .project-hero h1{font-size:4.7rem}
  .project-intro,.project-detail{display:block;padding:88px var(--page-gutter)}
  .project-intro-copy{display:block;margin-top:58px}
  .project-intro h2,.project-detail h2{font-size:3.7rem}
  .project-facts{gap:12px;margin-top:56px}
  .project-facts strong{font-size:13px}
  .project-feature{padding:0 var(--page-gutter)}
  .project-feature img{height:58vh}
  .project-detail-copy{margin-top:58px}
  .project-detail-copy>p{margin-bottom:48px}
  .project-list{margin-top:0}
  .project-cta{display:block;padding:88px var(--page-gutter)}
  .project-cta .page-link{display:inline-block;margin-top:52px}
  .project-gallery-wrap{padding:86px var(--page-gutter) 110px}
  .project-gallery-heading{display:block;margin-bottom:42px}
  .project-gallery-heading p{text-align:left;margin-top:20px}
  .project-gallery{gap:34px}
  .gallery-composition{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
  .gallery-composition--wide .gallery-item{grid-column:1 / -1}
  .gallery-composition--wide .gallery-item img{aspect-ratio:1.35 / 1}
  .gallery-composition--duo .gallery-item:first-child{grid-column:1 / span 4}
  .gallery-composition--duo .gallery-item:last-child{grid-column:5 / -1}
  .gallery-composition--duo .gallery-item img,.gallery-composition--duo .gallery-item:last-child img{aspect-ratio:1 / 1.12}
  .gallery-composition--duo-alt .gallery-item:last-child{grid-row:1;grid-column:1 / span 4}
  .gallery-composition--duo-alt .gallery-item:first-child{grid-row:1;grid-column:5 / -1}
  .gallery-composition--inset-right .gallery-item{grid-column:2 / -1}
  .gallery-composition--inset-right .gallery-item img{aspect-ratio:1.15 / 1}
  .gallery-composition--inset-left .gallery-item{grid-column:1 / span 5}
  .gallery-composition--triptych .gallery-item:first-child{grid-column:1 / span 4}
  .gallery-composition--triptych .gallery-item:nth-child(2){grid-column:5 / -1}
  .gallery-composition--triptych .gallery-item:last-child{grid-column:2 / span 4;margin-top:24px}
  .gallery-composition--triptych .gallery-item img{aspect-ratio:1 / 1.15}
  .gallery-composition--duo-alt .gallery-item img,.gallery-composition--duo-alt .gallery-item:last-child img{aspect-ratio:1 / 1.15}
  .gallery-composition--inset-left .gallery-item img{aspect-ratio:1.15 / 1}
}
