/* Project photographs and captions use the existing site palette and type. */
.case-hero { background: var(--navy); color: #fff; padding-block: 42px; display: flex; align-items: center; min-height: calc(100svh - var(--opening-header-height)); }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 64px; }
.case-back { display: inline-flex; align-items: center; min-height: 44px; color: #dce8f3; font-size: 14px; margin-bottom: 20px; }
.case-back:hover { color: #fff; }
.case-intro > .eyebrow { color: #c2d5e7; font-size: 12px; letter-spacing: .04em; margin-bottom: 16px; }
.case-hero h1 { color: #fff; font-size: clamp(40px, 4.5vw, 64px); }
.case-lead { margin-top: 24px; font-size: 18px; line-height: 1.6; }
.case-intro > p + p { margin-top: 14px; font-size: 16px; line-height: 1.6; }
.case-jumps { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.case-jumps a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #fff; font-size: 14px; }
.case-cover img { width: 100%; height: auto; }
.case-cover figcaption { color: #c2d5e7; }
.case-photo-link { display: block; cursor: zoom-in; }
.case-photo-link:focus-visible { outline: 3px solid var(--clay); outline-offset: 5px; }
.case-photo figcaption { margin-top: 7px; font: 13px/1.4 Arial, Helvetica, sans-serif; }
.case-chapter { min-height: 100svh; display: flex; align-items: center; padding-block: 36px; }
.case-chapter-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: 64px; }
.case-copy h2 { font-size: clamp(32px, 3vw, 46px); text-wrap: balance; }
.case-copy > p:not(.eyebrow) { margin-top: 20px; line-height: 1.65; }
.case-copy .case-photo-help { font-size: 13px; color: var(--muted); }
.case-section-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.case-section-nav .eyebrow { margin: 0; }
.case-section-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.page-enquiry-actions > .case-return { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.case-gallery { --photo-height: clamp(100px, 20svh, 190px); display: grid; gap: 22px 18px; align-items: stretch; }
.case-gallery .case-photo { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.case-gallery .case-photo-link { flex: 1; min-height: 0; }
.case-gallery img { display: block; width: 100%; height: var(--photo-height); object-fit: cover; }
.case-gallery-exterior { grid-template-columns: 1fr 1fr; }
.case-gallery-exterior .case-photo:first-child { grid-column: 1/-1; }
.case-gallery-exterior .case-photo:first-child img { height: calc(var(--photo-height) * 1.65); object-position: 50% 65%; }
.case-gallery-interiors { grid-template-columns: 1.05fr 1fr 1fr; grid-auto-rows: calc(var(--photo-height) + 26px); }
.case-gallery-interiors .case-photo:first-child { grid-row: span 2; }
.case-gallery-interiors .case-photo:first-child img { height: 100%; }
.case-gallery-construction { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-viewer { padding: 0; border: 0; background: var(--navy); color: #fff; width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); }
.case-viewer::backdrop { background: #071421e8; }
.case-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 16px; }
.case-viewer h2 { color: #fff; font: 18px/1.4 Arial, Helvetica, sans-serif; }
.case-viewer form { margin: 0; }
.case-viewer button { display: flex; align-items: center; gap: 18px; min-height: 44px; border: 1px solid #ffffff70; color: #fff; background: transparent; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.case-viewer > img { width: 100%; height: calc(100dvh - 164px); max-height: 900px; object-fit: contain; }
.case-viewer-navigation { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; gap: 16px; }
.case-viewer-navigation button { min-width: 48px; justify-content: center; font-size: 22px; }
.case-viewer-position { font: 14px/1.5 Arial, Helvetica, sans-serif; }
html:has(.case-viewer[open]) { scroll-snap-type: none; overflow: hidden; }
.featured-project { display: block; color: #fff; text-decoration: none; }
.featured-project img { width: 100%; height: clamp(170px, 31svh, 310px); object-fit: cover; object-position: 50% 65%; }
.featured-project .eyebrow { margin: 18px 0 8px; }
.featured-project h2 { font-size: 32px; margin-bottom: 8px; }
.featured-project .text-link { color: #fff; }
.featured-project:hover h2 { text-decoration: underline; text-underline-offset: 6px; }
.project-collection-heading { margin-bottom: 18px; }
/* Short case studies combine their introduction and photographs in one slide. */
.case-compact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.case-compact .case-gallery { --photo-height: clamp(125px, 23svh, 245px); }
.case-compact .case-back { margin-bottom: 14px; }
.case-compact .case-copy .case-lead { margin-top: 20px; font-size: 18px; line-height: 1.6; }
.case-compact .case-jumps { margin-top: 18px; }
.case-compact.case-chapter .case-jumps a { color: var(--blue); }
.case-compact.case-hero figcaption { color: #dce8f3; }
.case-enquiry-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.case-hero .case-enquiry-link { color: #dce8f3; }
.case-gallery-overview, .case-gallery-portrait, .case-gallery-pair, .case-gallery-four, .case-gallery-landscape-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-gallery-overview .case-photo:first-child { grid-column: 1/-1; }
.case-gallery-overview .case-photo:first-child img { height: calc(var(--photo-height) * 1.25); }
.case-gallery-portrait .case-photo:first-child { grid-row: span 2; }
.case-gallery-portrait .case-photo:first-child img { height: 100%; }
.case-gallery-single img, .case-gallery-pair img { height: clamp(230px, 51svh, 520px); }
.case-viewer button[hidden] { display: none; }
.case-viewer-position { margin-inline: auto; }
.project-category h2 { margin-bottom: 26px; }
.project-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.project-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 22px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.project-card img { width: 100%; height: clamp(110px, 20svh, 180px); object-fit: cover; }
.project-card h3 { font-size: clamp(23px, 2.2vw, 31px); color: var(--navy); }
.project-card p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.project-card .text-link { margin-top: 14px; min-height: 0; color: var(--blue); font-size: 14px; line-height: 1.5; }
.project-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.project-card-arrow { display: none; }
.project-placeholder { grid-template-columns: 1fr; border: 1px solid var(--line); padding: 24px; background: #ffffff55; }
.project-placeholder:hover h3 { text-decoration: none; }
.project-placeholder h3 { font-weight: 400; }
.project-browse { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }
.project-browse a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
@media(max-width:1100px) {
  .project-card { gap: 16px; }
  .project-card h3 { font-size: 25px; }
}
@media(max-width:800px) {
  .case-compact-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-compact .case-copy .case-lead { font-size: 15px; line-height: 1.5; margin-top: 12px; }
  .case-compact .case-intro > .eyebrow { margin-bottom: 8px; }
  .case-compact .case-back { margin-bottom: 0; }
  .case-compact .case-jumps { margin-top: 8px; }
  .case-compact .case-gallery { --photo-height: clamp(85px, 14svh, 145px); gap: 8px 12px; }
  .case-compact .case-gallery-portrait { --photo-height: clamp(85px, 13svh, 135px); }
  .case-compact .case-gallery-single img { height: clamp(180px, 32svh, 320px); }
  .case-compact .case-gallery-pair img { height: clamp(180px, 36svh, 340px); }
  .case-compact.case-single-slide .case-gallery-pair img { height: clamp(160px, 27svh, 260px); }
  .case-compact .case-enquiry-link { font-size: 13px; }
  .project-category { padding-block: 16px; }
  .project-category > .wrap > .eyebrow { margin-bottom: 10px; }
  .project-category h2 { margin-bottom: 12px; font-size: 32px; line-height: 1.15; }
  .project-cards { grid-template-columns: 1fr; gap: 12px; }
  .project-card { grid-template-columns: 32% minmax(0, 1fr); gap: 16px; padding-bottom: 12px; }
  .project-card img { height: 96px; }
  .project-card h3 { font-size: 22px; line-height: 1.25; }
  .project-card p { margin-top: 5px; font-size: 12px; }
  .project-card .text-link { margin-top: 6px; font-size: 12px; }
  .project-placeholder { grid-template-columns: 1fr; padding: 16px 18px; }
  .section-navigation-page .project-card img { height: 84px; }
  .section-navigation-page .project-card h3 { font-size: 20px; }
  .section-navigation-page .project-card .text-link { display: none; }
  .section-navigation-page .project-card-arrow { display: inline; color: var(--blue); font-size: 15px; white-space: nowrap; }
  .section-navigation-page .project-cards { gap: 10px; }
  .project-browse { gap: 8px 20px; margin-top: 12px; }
  .project-browse a { font-size: 14px; }
}
@media screen and (prefers-reduced-motion:no-preference) {
  .case-hero, .case-chapter { scroll-snap-align: start; scroll-snap-stop: always; }
  .case-hero { scroll-margin-top: var(--opening-header-height); }
}
@media(max-width:1100px) {
  .case-hero-grid, .case-chapter-grid { gap: 32px; }
  .case-hero h1 { font-size: 44px; }
  .case-lead { font-size: 17px; }
  .case-copy { font-size: 16px; }
  .case-gallery { gap: 16px 12px; }
}
@media(max-width:800px) {
  .case-hero, .case-chapter { padding-block: 16px; }
  #pontoon.case-single-slide { padding-block: 10px; }
  .case-hero-grid, .case-chapter-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-back { margin-bottom: 8px; }
  .case-intro > .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .case-hero h1 { font-size: 34px; }
  .case-lead { font-size: 16px; margin-top: 14px; }
  .case-intro > p + p { font-size: 15px; margin-top: 10px; }
  .case-jumps { margin-top: 8px; gap: 24px; }
  .case-cover img { max-height: 27svh; object-fit: cover; object-position: 50% 65%; }
  .case-cover figcaption { font-size: 12px; }
  .case-copy h2 { font-size: 28px; text-wrap: initial; }
  .case-copy .eyebrow { margin-bottom: 10px; }
  .case-section-nav { margin-bottom: 0; }
  .case-section-nav .eyebrow { margin: 0; font-size: 11px; letter-spacing: 0; }
  .case-section-nav a { font-size: 12px; gap: 6px; }
  .case-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.5; margin-top: 12px; }
  .case-copy .case-photo-help { font-size: 12px; }
  .case-gallery { --photo-height: clamp(80px, 12svh, 115px); gap: 8px 12px; }
  .case-photo figcaption { font-size: 12px; margin-top: 5px; }
  .case-gallery-exterior .case-photo:first-child img { height: calc(var(--photo-height) * 1.8); }
  .case-gallery-interiors { grid-template-columns: 1fr 1fr; }
  .case-gallery-interiors .case-photo:first-child { grid-row: span 2; }
  .case-gallery-construction { grid-template-columns: 1fr 1fr; }
  .case-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .case-viewer-bar { padding: 6px 10px; gap: 12px; }
  .case-viewer h2 { font-size: 15px; }
  .featured-project img { height: clamp(140px, 24svh, 210px); }
  .featured-project h2 { font-size: 27px; }
  .featured-project .eyebrow { margin-top: 10px; }
}
@media(max-height:620px) {
  .case-hero, .case-chapter { min-height: 0; }
}
@media print {
  .case-hero, .case-chapter { min-height: 0; padding-block: 24px; color: var(--ink); background: white; }
  .case-hero h1, .case-hero p, .case-photo figcaption { color: var(--ink); }
  .case-back, .case-jumps, .case-section-nav a, .case-return, .case-viewer { display: none; }
}
