/* 2026-11-12: approved blue/green refinement of the existing site. */
:root {
  --blue: #146b9e;
  --blue-deep: #104f76;
  --blue-paper: #eef7fb;
  --paper: #f4f9f6;
  --scene-paper: #edf5f7;
  --scene-caption: #4d6258;
}

/* Preserve all sign lettering. Apply each scene's display grade once. */
img.scene-base-aerial { filter: brightness(1.07) contrast(1.015) saturate(.97); }
img.scene-tatan-exterior { filter: brightness(1.055) contrast(1.025) saturate(.95); }
img.scene-tatan-entrance { filter: brightness(1.06) contrast(1.01) saturate(.96); }
img.field-image[src*="field-20261026/tatan-entrance-"] {
  filter: brightness(1.08) contrast(1.01) saturate(.92);
}

/* Green remains the brand/action color; blue marks supporting context. */
.inner-hero {
  background: var(--blue-paper);
  border-bottom-color: #d9e8ef;
}
.inner-hero .business-name,
.inner-hero .breadcrumbs a,
.corporate-copy > .text-link { color: var(--blue-deep); }
.corporate-copy > .text-link:hover,
.inner-hero .breadcrumbs a:hover { color: var(--leaf); }
.group-overview,
.corporate-companies { background: #fff; }

/* Only photographic peer groups share this frame. Product/brand/certificate
   graphics and the independently authored homepage visual are excluded. */
.corporate-row > figure,
.project-grid > .project-card > figure,
.gallery > figure:has(> img:is(.scene-photo, .polished-scene, .field-image)),
.tatan-guidance > .field-figure,
.tatan-daily > .field-figure {
  min-width: 0;
  margin: 0;
}
.project-grid > .project-card > figure {
  display: grid;
  grid-template-rows: auto 1fr;
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
  background: transparent;
  align-items: stretch;
}
.corporate-row > figure > figcaption,
.project-grid > .project-card > figure > figcaption,
.gallery > figure:has(> img:is(.scene-photo, .polished-scene, .field-image)) > figcaption,
.tatan-guidance > .field-figure > figcaption,
.tatan-daily > .field-figure > figcaption {
  position: static;
  inset: auto;
  margin: 12px 0 0;
  padding: 0;
  min-height: 24px;
  color: var(--scene-caption);
  background: none;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
}
.project-grid > .project-card > .project-meta { margin-top: 18px; }
.project-grid > .project-card > figure > img:is(.scene-photo, .polished-scene) {
  transform: none;
  transition: none;
}
/* Supersede the legacy Tatan caption's important declarations as a group. */
.project-grid > .project-card > figure > figcaption {
  margin: 12px 0 0 !important;
  color: var(--scene-caption) !important;
}

@media (min-width: 701px) {
  .corporate-rows > .corporate-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(28px, 3vw, 44px);
  }
  .gallery > figure:has(> img:is(.scene-photo, .polished-scene, .field-image)),
  .tatan-guidance > .field-figure,
  .tatan-daily > .field-figure {
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: start;
    background: transparent;
  }
  .corporate-row > figure > img.polished-scene,
  .project-grid > .project-card > figure > img:is(.scene-photo, .polished-scene),
  .gallery > figure > img:is(.scene-photo, .polished-scene, .field-image),
  .tatan-guidance > .field-figure > img.field-image,
  .tatan-daily > .field-figure > img.field-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    object-position: center;
    background: var(--scene-paper);
    clip-path: none;
    transform: none;
  }
}

@media (max-width: 700px) {
  .corporate-rows > .corporate-row,
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-grid > .project-card > figure > img:is(.scene-photo, .polished-scene),
  .gallery > figure > img:is(.scene-photo, .polished-scene, .field-image),
  .tatan-guidance > .field-figure > img.field-image,
  .tatan-daily > .field-figure > img.field-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    background: var(--scene-paper);
  }
  .corporate-row > figure > figcaption,
  .project-grid > .project-card > figure > figcaption,
  .gallery > figure:has(> img:is(.scene-photo, .polished-scene, .field-image)) > figcaption,
  .tatan-guidance > .field-figure > figcaption,
  .tatan-daily > .field-figure > figcaption {
    min-height: 0;
    margin-top: 10px;
    font-size: 13px;
  }
  .project-grid > .project-card > figure > figcaption {
    margin-top: 10px !important;
  }
}
