/* Editorial project template. Scoped to project pages; homepage styles stay frozen. */
.project-case .case-heading{padding-block:42px 36px}
.project-case .case-heading h1{font-size:clamp(52px,8vw,116px);margin-bottom:10px}
.project-case .case-location{font:600 16px/1.5 var(--heading);color:var(--blue);margin-bottom:18px}
.project-case .case-deck{font-size:clamp(19px,2vw,28px);max-width:850px;margin:0}
.case-top-tags{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:25px;font-size:13px;line-height:1.6}
.case-top-tags a{border-bottom:1px solid #b6c3c9;padding-bottom:3px}
.project-case .case-hero img{aspect-ratio:2.05;max-height:none;object-position:49% 48%}
.project-case .case-hero figcaption{font-size:12px;padding-block:12px}
.case-highlights{display:grid;grid-template-columns:repeat(5,1fr);gap:24px;padding-block:42px;margin-block:0;border-bottom:1px solid var(--line)}
.case-highlights dt{font:600 clamp(27px,3.1vw,48px)/1.1 var(--heading);letter-spacing:-.05em;color:var(--blue);white-space:nowrap}
.case-highlights dd{font-size:13px;line-height:1.6;margin:12px 0 0}
.project-case .case-intro{grid-template-columns:1.35fr .65fr;padding-block:70px 80px;gap:12%}
.project-case .case-intro .lead{font-size:clamp(20px,1.7vw,25px);line-height:1.7}
.case-index nav{display:grid}
.case-index a{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}
.project-case .case-chapter{padding-block:80px;scroll-margin-top:25px}
.project-case .case-chapter-copy{grid-template-columns:1fr 1fr;gap:10%;margin-bottom:38px}
.project-case .case-chapter-copy h2{font-size:clamp(30px,3.2vw,47px);line-height:1.15}
.project-case .case-chapter-copy p:not(.eyebrow){font-size:16px;line-height:1.85;max-width:620px}
.project-case .case-media{gap:28px;grid-template-columns:1.1fr 1fr}
.project-case .case-media figure:nth-child(2){padding-top:65px}
.project-case .case-media img{aspect-ratio:1.3}
.project-case .case-media figcaption{font-size:12px;line-height:1.6;max-width:650px;padding-top:13px}
.project-case .case-media--1{display:block;max-width:1200px}
.project-case .case-media--1 img{aspect-ratio:1.9}
.case-constraints{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;margin-bottom:45px}
.case-constraints>div{padding-top:20px;border-top:2px solid var(--blue)}
.case-constraints h3{font-size:19px;letter-spacing:-.025em;margin-bottom:13px}
.case-constraints p{font-size:14px;line-height:1.85}
.project-case .case-chapter--challenge{background:var(--surface-subtle)}
.project-case .case-chapter--planning{background:var(--surface-muted)}
.case-artifact{display:grid;grid-template-columns:1.7fr .6fr;align-items:center;gap:6%}
.case-artifact>a{display:block;background:white;padding:25px;box-shadow:0 3px 12px #18212712}
.case-artifact img{aspect-ratio:auto!important;object-fit:contain}
.case-artifact figcaption{font-size:13px;line-height:1.75}
.case-artifact strong{font:600 18px/1.5 var(--heading)}
.case-artifact figcaption p{margin-top:14px}
.project-case .case-chapter--fabrication{background:#fff}
.project-case .case-chapter--installation{background:var(--project-denim)}
.project-case .case-chapter--installation .case-media{display:grid;grid-template-columns:1fr 1fr;max-width:1600px}
.project-case .case-chapter--installation .case-media figure:first-child{grid-column:1/-1}
.project-case .case-chapter--installation .case-media figure:first-child img{aspect-ratio:1.9;max-height:none}
.project-case .case-chapter--installation .case-media figure:nth-child(2){padding-top:0}
.project-case .case-chapter--installation .case-media figure:not(:first-child) img{aspect-ratio:1.05;max-height:none;object-position:50% 40%}
.project-case .case-chapter--finished .case-media{grid-template-columns:1fr 1.4fr}
.project-case .case-chapter--finished .case-media figure:first-child{grid-column:1/-1}
.project-case .case-chapter--finished .case-media figure:first-child img{aspect-ratio:1.95}
.project-case .case-chapter--finished .case-media figure:nth-child(2){padding-top:0}
.project-case .case-chapter--finished .case-media figure:nth-child(2) img{aspect-ratio:.95}
.project-case .case-chapter--finished .case-media figure:nth-child(3){padding-top:75px}
.project-case .case-chapter--finished .case-media figure:nth-child(3) img{aspect-ratio:1.5}
.case-technical{display:grid;grid-template-columns:.7fr 1.3fr;gap:10%;padding-block:65px 80px;border-top:1px solid var(--line)}
.case-technical h2{font-size:32px;max-width:350px}
.case-technical dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:25px 35px}
.case-technical dl>div{border-top:1px solid var(--line);padding-top:14px}
.case-technical dt{font:600 11px/1.5 var(--heading);text-transform:uppercase;letter-spacing:.06em;color:#526b78}
.case-technical dd{margin:8px 0 0;font-size:14px;line-height:1.75}
.case-technical dd a{text-decoration:underline;text-underline-offset:4px}
.project-case .case-solutions{padding-block:65px;background:var(--surface-subtle)}
.case-alternatives{padding-block:30px;border-top:1px solid var(--line);margin-top:30px}
.case-alternatives h3{font-size:25px}
.case-alternatives>p{max-width:780px;margin-top:15px;font-size:15px}
.case-context{display:grid;grid-template-columns:1fr 1fr;gap:35px;border-top:1px solid var(--line);padding-top:30px;margin-bottom:30px}
.case-context .eyebrow{margin-bottom:10px}
.case-context .case-top-tags{margin-top:0}
.case-context>div>a{font-size:16px;text-decoration:underline;text-underline-offset:5px}
.project-case .case-related{padding-block:70px}
.project-case .case-related .project-pair{max-width:none;grid-template-columns:1fr 1fr;margin-top:30px}
.case-related-reason{font-size:14px;line-height:1.8;margin-top:18px;max-width:540px}
.project-case .case-cta{padding-block:75px}
.project-case .case-cta h2{max-width:850px;font-size:clamp(34px,4vw,58px)}
@media(max-width:800px){
.case-highlights{gap:16px;grid-template-columns:repeat(3,1fr)}
.project-case .case-intro{gap:6%;grid-template-columns:1.15fr .85fr}
.case-artifact{grid-template-columns:1fr}
.case-artifact figcaption{padding-top:25px;max-width:600px}
.case-constraints{gap:22px}
.case-technical{grid-template-columns:1fr;gap:30px}
}
@media(max-width:600px){
.project-case .case-heading{padding-block:24px 30px}
.project-case .case-heading h1{font-size:50px}
.project-case .case-hero img{aspect-ratio:1.22;object-position:43% 50%}
.case-top-tags{gap:12px 18px;font-size:12px;margin-top:20px}
.case-highlights{grid-template-columns:repeat(2,1fr);gap:25px 16px;padding-block:30px}
.case-highlights dt{font-size:33px}.case-highlights dd{font-size:12px;margin-top:8px}
.project-case .case-intro{display:block;padding-block:40px}
.case-index{margin-top:35px}
.project-case .case-chapter{padding-block:45px}
.project-case .case-chapter-copy{display:block;margin-bottom:25px}
.project-case .case-chapter-copy h2{font-size:32px;margin-bottom:24px!important}
.project-case .case-chapter-copy p:not(.eyebrow){font-size:15px;line-height:1.85}
.case-constraints{display:block;margin-bottom:30px}
.case-constraints>div{padding-block:18px}
.case-constraints h3{font-size:19px}
.project-case .case-media,.project-case .case-chapter--installation .case-media,.project-case .case-chapter--finished .case-media{display:block}
.project-case .case-media figure+figure{padding-top:28px!important}
.project-case .case-media img,.project-case .case-media--1 img{aspect-ratio:auto!important;max-height:none}
.project-case .case-chapter--finished .case-media figure:nth-child(2){max-width:none;margin:0}
.case-artifact>a{padding:10px}.case-artifact .text-link{font-size:13px}
.case-technical{padding-block:40px}.case-technical h2{font-size:30px}
.case-technical dl{grid-template-columns:1fr}.case-technical dd{font-size:14px}
.project-case .case-solutions{padding-block:40px}
.case-context{grid-template-columns:1fr;gap:30px}
.case-alternatives h3{font-size:24px}
.project-case .case-related{padding-block:40px}
.project-case .case-related .project-pair{grid-template-columns:1fr;gap:35px}
.project-case .case-cta{padding-block:45px}
}

/* Metadata and highlights are separate fields with a compact shared introduction. */
.case-metadata{display:flex;flex-wrap:wrap;align-items:baseline;gap:14px 36px;margin:0 0 18px}
.case-metadata:empty{display:none}
.case-metadata dt{font:600 11px/1.5 var(--heading);letter-spacing:.08em;text-transform:uppercase;color:var(--blue-ink);margin-bottom:6px}
.case-metadata dd{margin:0;font:600 16px/1.5 var(--heading)}
.project-case .case-metadata .case-location{margin:0;color:var(--blue-ink)}
.case-metadata .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.project-case .case-heading>.eyebrow,.project-case .case-chapter-copy .eyebrow,.project-case .case-technical .eyebrow,.project-case .case-technical dt{color:var(--blue-ink)}
.project-case .case-chapter--installation .eyebrow{color:var(--accent-on-dark)}
.project-case .text-link{color:var(--blue-ink)}
.project-case .case-chapter--installation .text-link{color:var(--accent-on-dark)}
.project-case .v-project .text-link{color:white}
.project-case .case-top-tags a:hover{border-color:var(--blue-ink)}
.project-case .case-index a:hover{color:var(--blue-ink);border-color:var(--blue-ink)}
.project-case .case-cta{background:var(--project-denim)}

/* Project identity extends the shared card panel beneath the white navigation. */
.project-case .case-heading{background:var(--project-denim);color:white;max-width:none;padding-inline:max(var(--gutter),calc((100% - 1600px)/2 + var(--gutter)))}
.project-case .case-heading h1{color:white}
.project-case .case-heading .case-back{color:#ced9e5}
.project-case .case-heading>.eyebrow,.project-case .case-heading .case-metadata dt,.project-case .case-heading .case-location{color:var(--accent-on-dark)}
.project-case .case-heading .case-top-tags a{color:#edf3f7;border-color:#83878f}
.project-case .case-heading a:hover,.project-case .case-heading .case-top-tags a:hover{color:var(--accent-on-dark);border-color:var(--accent-on-dark)}
.project-case .case-heading :focus-visible{outline-color:var(--accent-on-dark)}
/* Blue Buffalo review: aligned galleries override legacy editorial spans and offsets. */
.project-case.blue-review .case-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.project-case.blue-review .case-media figure:nth-child(n){grid-column:auto;grid-row:auto;align-self:start;padding:0!important;margin:0;max-width:none;min-width:0}
.project-case.blue-review .case-media img{display:block;width:100%;height:clamp(240px,24vw,340px);max-height:340px;aspect-ratio:auto!important;object-fit:contain;object-position:center}
.project-case.blue-review .case-chapter--finished .case-media{grid-template-columns:repeat(3,minmax(0,1fr))}
.project-case.blue-review .case-media--1{display:block;max-width:760px}
.project-case.blue-review .case-chapter{padding-block:48px}
.project-case.blue-review .case-chapter-copy{gap:6%;margin-bottom:28px}
.project-case.blue-review .case-intro{padding-block:40px;gap:7%}
.project-case.blue-review .case-technical{padding-block:44px;gap:6%}
.project-case.blue-review .case-solutions,.project-case.blue-review .case-related,.project-case.blue-review .case-cta{padding-block:44px}
.project-case.blue-review .case-hero img{aspect-ratio:2.5;max-height:560px;object-position:49% 48%}
@media(min-width:1201px){.project-case.blue-review .case-heading{padding-right:calc(var(--gutter) + 350px)}}
@media(max-width:800px){.project-case.blue-review .case-chapter--finished .case-media{grid-template-columns:repeat(3,minmax(0,1fr))}.project-case.blue-review .case-media img{height:240px}}
@media(max-width:600px){.project-case.blue-review .case-media,.project-case.blue-review .case-chapter--finished .case-media{display:grid;grid-template-columns:1fr;gap:16px}.project-case.blue-review .case-media img{height:220px;max-height:220px}.project-case.blue-review .case-chapter{padding-block:32px}.project-case.blue-review .case-intro,.project-case.blue-review .case-technical,.project-case.blue-review .case-solutions,.project-case.blue-review .case-related,.project-case.blue-review .case-cta{padding-block:32px}.project-case.blue-review .case-hero img{aspect-ratio:1.6}}
.project-case.blue-review .case-media:not(.case-media--1){max-width:1000px}
.project-case.blue-review .case-chapter--finished .case-media{max-width:1200px}
@media(min-width:601px) and (max-width:1000px){.project-case.blue-review .case-chapter-copy{display:block}.project-case.blue-review .case-chapter-copy>div+div{margin-top:22px}.project-case.blue-review .case-chapter-copy p:not(.eyebrow){max-width:none}}
.project-case.blue-review .case-media img{object-position:50% 0}
.project-case.blue-review .case-chapter--finished .case-media img{height:260px;max-height:260px}
@media(min-width:601px) and (max-width:800px){.project-case.blue-review .case-chapter--finished .case-media img{height:200px;max-height:200px}}
@media(max-width:600px){.project-case.blue-review .case-chapter--finished .case-media img{height:220px;max-height:220px}}
/* The cover itself links to its source; keep the approved visual dimensions. */
.project-case.blue-review .case-press-link{display:block;position:absolute;right:var(--gutter);top:38px;width:300px;line-height:0}
.project-case.blue-review .case-press-link .case-press-cover{position:static;width:100%;height:auto;display:block}
.project-case.blue-review .case-press-link:focus-visible{outline:3px solid white;outline-offset:5px}
@media(max-width:1200px){.project-case.blue-review .case-press-link{position:static;flex:0 0 220px;width:220px}}
@media(max-width:650px){.project-case.blue-review .case-press-link{flex-basis:170px;width:170px}}

/* Mobile: show the completed installation before magazine coverage and taxonomy. */
@media(max-width:650px){
 .project-case.blue-review .blue-opening{display:flex;flex-direction:column;padding-top:26px}
 .project-case.blue-review .blue-opening .case-heading{display:contents}
 .project-case.blue-review .blue-opening .case-heading>*{margin-left:var(--gutter);margin-right:var(--gutter)}
 .project-case.blue-review .blue-opening .case-heading .case-back{margin-bottom:18px}
 .project-case.blue-review .blue-opening .case-heading h1{font-size:44px;margin-bottom:16px}
 .project-case.blue-review .blue-opening .case-heading .case-metadata:empty{display:none}
 .project-case.blue-review .blue-opening .case-heading .case-deck{margin-bottom:24px;font-size:19px}
 .project-case.blue-review .blue-opening .case-hero{order:1}
 .project-case.blue-review .blue-opening .case-press-feature{order:2;margin-top:28px;margin-bottom:0;gap:20px}
 .project-case.blue-review .blue-opening .case-press-link{flex-basis:130px;width:130px}
 .project-case.blue-review .blue-opening .case-top-tags{order:3;margin-top:24px;margin-bottom:28px}
}

/* Preserve the denim header treatment when its mobile contents are reordered. */
@media(max-width:650px){
 .project-case.blue-review .blue-opening{background:var(--project-denim);color:#fff;max-width:100%;min-width:0}
 .project-case.blue-review .blue-opening .case-heading>*{box-sizing:border-box;width:calc(100% - 2 * var(--gutter));max-width:calc(100% - 2 * var(--gutter));min-width:0}
 .project-case.blue-review .blue-opening .case-hero{width:100%;max-width:100%;min-width:0}
 .project-case.blue-review .blue-opening .case-hero img{display:block;max-width:100%}
 .project-case.blue-review .blue-opening .case-press-feature{display:flex;flex-wrap:wrap;align-items:center}
 .project-case.blue-review .blue-opening .case-press-mention{flex:1 1 140px;min-width:0;color:#dbe5ec;overflow-wrap:anywhere}
 .project-case.blue-review .blue-opening .case-top-tags a{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:650px){.blue-video-frame{min-width:0;max-width:100%}.blue-video-host{min-width:0;max-width:100%}}
@media(max-width:650px){.blue-review .blue-video-frame{width:100%;max-width:100%;min-height:0}}
