.case-page { background: #fff; color: #222; }
.case-page #navbar { background: #171717 !important; }
.case-page main { padding-top: 128px; }
.case-wrap { width: min(1200px, calc(100% - 48px)); margin: auto; }
.case-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; font-size: 14px; }
.case-breadcrumbs a { color: inherit; }
.case-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: clamp(28px, 5vw, 72px); padding: 20px 0 48px; }
.case-eyebrow { font: 700 13px/1.5 Matter_B, sans-serif; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.case-page main h1 { font: 700 clamp(36px, 4vw, 58px)/1.08 Proxima_Nova_B, sans-serif; letter-spacing: -1.5px; margin: 0 0 24px; text-wrap: balance; }
.case-page main h2, .project-highlights h2 { font: 700 clamp(28px, 3vw, 40px)/1.15 Proxima_Nova_B, sans-serif; letter-spacing: -.6px; margin-bottom: 22px; }
.case-page main h3 { font: 700 23px/1.3 Proxima_Nova_B, sans-serif; margin-bottom: 14px; }
.case-page main p { font-size: 17px; line-height: 1.75; }
.case-page main .case-eyebrow { font-size: 12px; line-height: 1.5; color: #655f4d; }
.case-page .case-intro { font-size: 20px; line-height: 1.6; }
.case-page .page-intent-links { margin: 26px 0; gap: 16px 24px; }
.case-page .page-intent-links a { color: #222; font-size: 16px; }
.case-page .page-intent-links a:first-child, .case-button { display: inline-block; padding: 14px 22px; background: #f8d215; color: #171717; text-decoration: none; font: 700 16px/1.4 Matter_B, sans-serif; border-radius: 3px; }
.case-page a:focus-visible, .project-highlights a:focus-visible { outline: 3px solid #8a6700; outline-offset: 5px; }
.case-hero > div:first-child { align-self: center; }
.case-hero-media { position: relative; margin: 0; display: flex; flex-direction: column; }
.case-hero-media img { display: block; width: 100%; height: clamp(420px, 44vw, 600px); object-fit: cover; border-radius: 10px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); }
.case-hero-media .case-hero-tag { position: absolute; top: 16px; left: 16px; margin: 0; background: #f8d215; color: #171717; padding: 7px 12px; border-radius: 3px; font: 700 12px/1.3 Matter_B, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.case-page .case-hero-media figcaption { margin-top: 12px; padding-left: 14px; border-left: 3px solid #f8d215; }
.case-page figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #555; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f5f4f0; border: 1px solid #e5e3db; border-radius: 8px; padding: 28px; gap: 24px; margin-bottom: 0; }
.case-facts dt { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 7px; }
.case-facts dd { font-size: 19px; margin: 0; }
.case-section { padding: 56px 0; border-bottom: 1px solid #e5e3db; scroll-margin-top: 125px; }
.case-jump-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 22px 0; border-bottom: 1px solid #e5e3db; }
.case-jump-links a { font: 700 15px/1.5 Matter_B, sans-serif; color: #333; text-underline-offset: 5px; }
.case-jump-links a:hover { color: #6e5500; }
.case-hero > *, .case-story > *, .case-facts > *, .project-card-grid > * { min-width: 0; }
.case-story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.case-story p:last-child { margin-bottom: 0; }
.case-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.case-comparison figure { margin: 0; overflow: hidden; border: 1px solid #e0ded7; border-radius: 10px; background: #f5f4f0; }
.case-comparison a { display: block; }
.case-comparison img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.case-comparison--landscape img { aspect-ratio: 4 / 3; }
.case-comparison .case-tag { display: block; background: #292c29; color: #fff; padding: 13px 20px; font: 700 13px/1.4 Matter_B, sans-serif; margin: 0; text-transform: uppercase; letter-spacing: 1.5px; }
.case-comparison figure:last-child .case-tag { background: #f8d215; color: #171717; }
.case-page .case-comparison figcaption { margin: 0; padding: 18px 20px; background: #fff; color: #333; min-height: 80px; }
.case-specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0; }
.case-specs div { border-top: 1px solid #d7d2c8; padding: 18px 0; }
.case-specs dt { font-size: 14px; color: #666; margin-bottom: 5px; }
.case-specs dd { font-size: 18px; margin: 0; }
.case-gallery { columns: 3; column-gap: 24px; }
.case-gallery figure { break-inside: avoid; margin: 0 0 24px; padding: 10px; background: #f5f4f0; border: 1px solid #e5e3db; border-radius: 8px; }
.case-gallery img { display: block; width: 100%; height: auto; border-radius: 4px; }
.case-gallery a { display: block; overflow: hidden; }
.case-gallery figcaption { padding: 0 4px 4px; }
.case-page .case-note { font-size: 15px; color: #555; }
.case-cta { background: #1b1e1b; color: #fff; padding: 48px; margin: 56px 0; border-radius: 10px; border-top: 4px solid #f8d215; }
.case-cta p { max-width: 65ch; }
.case-cta a:not(.case-button) { color: #fff; display: inline-block; margin: 18px 24px; }
.case-related { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 24px; }
.case-related a { color: inherit; font-size: 17px; }
.case-location-panel { padding: 56px 40px; background: #e9e5db; border-left: 5px solid #f8d215; }
.case-location-panel .case-postcode { font: 500 clamp(70px, 9vw, 120px)/1 Cormorant_Garamond_M, Georgia, serif; margin: 24px 0; }
.project-highlights { padding: 55px 0; }
.project-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #d7d2c8; color: #222; border-radius: 10px; overflow: hidden; }
.project-card img { width: 100%; height: 280px; object-fit: cover; }
.project-card:first-child img { object-position: center 72%; }
.project-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.project-card h3 { font: 700 26px/1.2 Proxima_Nova_B, sans-serif; margin-bottom: 14px; }
.project-card p { font-size: 17px; line-height: 1.6; }
.project-card a { color: #222; font-weight: bold; margin-top: auto; padding-top: 18px; }
.project-card-location { height: 280px; background: #e9e5db; padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.project-card-location strong { font: 500 76px/1 Cormorant_Garamond_M, Georgia, serif; }
.project-card-location span { font-size: 15px; text-transform: uppercase; letter-spacing: 2px; margin-top: 14px; }
.case-skip { position: fixed; top: -100px; left: 20px; z-index: 10000; background: #f8d215; padding: 14px; color: #111; }
.case-skip:focus { top: 12px; }
/* projects.html: intent-led layout */
.intent-hero.projects-hero { background-image: url("../assets/images/steel-window-wall-courtyard-patio-bee-cave-tx.webp"); background-position: center 60%; }
.projects-hero.intent-hero::after { background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.62) 55%, rgba(0,0,0,.3) 100%); }
.pj-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 4px 0 0; padding: 0; list-style: none; color: #fff; font-size: 15px; }
.pj-trust li { display: flex; align-items: center; gap: 9px; }
.pj-trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f8d215; flex: none; }
.pj-section { padding: 64px 0 24px; scroll-margin-top: 110px; }
.pj-section h2, .project-highlights h2 { font: 700 clamp(28px, 3vw, 40px)/1.15 Proxima_Nova_B, sans-serif; letter-spacing: -.6px; margin-bottom: 14px; color: #1b1b1b; }
.pj-lead { font-size: 18px; line-height: 1.6; color: #444; max-width: 62ch; margin-bottom: 30px; }
.pj-intent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pj-intent { display: flex; flex-direction: column; background: #fff; border: 1px solid #d7d2c8; border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.pj-intent:hover { box-shadow: 0 16px 34px -22px rgba(0,0,0,.5); transform: translateY(-2px); }
.pj-intent img { width: 100%; height: 220px; object-fit: cover; }
.pj-intent-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.pj-intent h3 { font: 700 22px/1.25 Proxima_Nova_B, sans-serif; margin-bottom: 10px; color: #1b1b1b; }
.pj-intent p { font-size: 16px; line-height: 1.6; color: #444; margin-bottom: 14px; }
.pj-intent-links { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid #e5e3db; }
.pj-intent-links li { border-bottom: 1px solid #e5e3db; }
.pj-intent-links a { display: block; padding: 9px 0; color: #222; font-size: 15px; text-underline-offset: 4px; }
.pj-intent-cta { margin-top: auto; align-self: flex-start; padding: 11px 16px; background: #f8d215; color: #171717; border-radius: 3px; font: 700 15px/1.3 Matter_B, sans-serif; text-decoration: none; }
.pj-intent-cta:hover { background: #e9c400; color: #171717; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 6px; }
.pj-chips li { background: #f5f4f0; border: 1px solid #e5e3db; border-radius: 20px; padding: 5px 12px; font-size: 14px; color: #333; }
.pj-card-media { position: relative; }
.pj-card-media img { object-position: center 45%; }
.pj-card-tag { position: absolute; top: 14px; left: 14px; background: #f8d215; color: #171717; padding: 6px 10px; border-radius: 3px; font: 700 11px/1.3 Matter_B, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
.pj-process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 64px; }
.pj-process-intro p { font-size: 18px; line-height: 1.6; color: #444; }
.pj-call { margin-top: 14px; font-size: 16px !important; }
.pj-call a { color: #222; font-weight: 700; }
.pj-steps { list-style: none; counter-reset: pj; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pj-steps li { counter-increment: pj; background: #f5f4f0; border: 1px solid #e5e3db; border-radius: 10px; padding: 24px; }
.pj-steps li::before { content: counter(pj, decimal-leading-zero); display: block; font: 500 34px/1 Cormorant_Garamond_M, Georgia, serif; color: #8a6700; margin-bottom: 12px; }
.pj-steps h3 { font: 700 19px/1.3 Proxima_Nova_B, sans-serif; margin-bottom: 8px; color: #1b1b1b; }
.pj-steps p { font-size: 15.5px; line-height: 1.6; color: #444; margin: 0; }
.pj-cta { margin: 24px 0 56px; }
.pj-cta h2 { color: #fff; font: 700 clamp(26px, 3vw, 36px)/1.2 Proxima_Nova_B, sans-serif; margin-bottom: 14px; }
.pj-cta p { font-size: 17px; line-height: 1.7; }
.pj-intent a:focus-visible, .pj-process a:focus-visible, .pj-cta a:focus-visible { outline: 3px solid #8a6700; outline-offset: 4px; }
@media (max-width: 1199px) { .pj-intent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-intent img { height: 260px; } }
@media (max-width: 991px) { .pj-process { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .pj-section { padding-top: 44px; }
  .pj-section.container, .project-highlights.container { padding-left: 18px; padding-right: 18px; }
  .pj-intent-grid, .pj-steps { grid-template-columns: 1fr; }
  .pj-intent img { height: 230px; }
  .pj-trust { flex-direction: column; font-size: 14px; }
  .pj-cta { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { .pj-intent { transition: none; } .pj-intent:hover { transform: none; } }
@media (max-width: 991px) {
  .case-page main { padding-top: 100px; }
  .case-hero { gap: 30px; }
  .case-story { gap: 30px; }
  .project-card-grid { gap: 16px; }
  .project-card-body { padding: 20px; }
  .case-gallery { columns: 2; }
}
@media (max-width: 767px) {
  .case-wrap { width: calc(100% - 36px); }
  .case-hero, .case-story, .case-specs, .project-card-grid { grid-template-columns: 1fr; }
  .case-hero { gap: 30px; padding-bottom: 36px; }
  .case-hero-media img { height: auto; aspect-ratio: 4 / 3; }
  .case-facts { grid-template-columns: 1fr; gap: 20px; }
  .case-section { padding: 40px 0; }
  .case-gallery { column-gap: 18px; }
  .case-comparison { gap: 12px; }
  .case-comparison .case-tag { padding: 10px 12px; }
  .case-page .case-comparison figcaption { padding: 12px; font-size: 13px; }
  .case-cta { padding: 28px; margin: 40px 0; }
  .case-cta a:not(.case-button) { margin-left: 0; }
  .case-location-panel { padding: 32px; }
}
@media (max-width: 479px) {
  .case-gallery { columns: 1; }
  .case-comparison { grid-template-columns: 1fr; gap: 20px; }
  .case-page .case-comparison figcaption { min-height: 0; }
  .case-page main h1 { letter-spacing: -.8px; }
  .case-facts { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
