/* The same navigation blends over media, then settles onto a quiet white surface. */
:root { --site-header-height: 94px; }
html { scroll-padding-top: calc(var(--site-header-height) + 24px); }
body { padding-top: var(--site-header-height); }
body[data-page="home"], body[data-page="about"] { padding-top: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: var(--site-header-height);
  z-index: 50;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  transition: background-color .3s ease, color .25s ease, box-shadow .3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(7, 12, 9, .78), rgba(7, 12, 9, .48) 58%, rgba(7, 12, 9, 0));
  transition: opacity .3s ease;
}
.site-header.is-over-media:not(.has-services-open) {
  color: white;
  background: transparent;
  box-shadow: inset 0 -1px rgba(255, 255, 255, .12);
}
.site-header.is-over-media:not(.has-services-open)::before { opacity: 1; }
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 0 rgba(23, 25, 22, .08), 0 6px 25px rgba(23, 25, 22, .06);
}
.site-header.has-services-open {
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}
.site-header.has-services-open::before { opacity: 0; }
.site-header .wordmark { transition: background-color .25s ease; }
.site-header .wordmark img { transition: opacity .25s ease; }
.site-header .header-cta { transition: color .25s ease; }
.site-header.is-over-media:not(.has-services-open) .menu-toggle span { background: #fff; }
.site-header.is-over-media:not(.has-services-open) .header-cta { border-color: #e0b866; }
.site-header.is-over-media:not(.has-services-open) .header-cta:hover { color: #efd09a; }
.site-header.is-over-media:not(.has-services-open) .desktop-nav > a::after,
.site-header.is-over-media:not(.has-services-open) .services-top-link::after { background: #e0b866; }
.site-header.is-over-media:not(.has-services-open) > a:focus-visible,
.site-header.is-over-media:not(.has-services-open) .desktop-nav > a:focus-visible,
.site-header.is-over-media:not(.has-services-open) .services-top-link:focus-visible,
.site-header.is-over-media:not(.has-services-open) .menu-toggle:focus-visible { outline-color: #efd09a; }

/* A luminance mask reuses the exact cropped lettering from the opaque source PNG.
   The source image is untouched, and its original black/gold treatment returns on white. */
@supports (mask-composite: subtract) and (mask-mode: luminance) {
  .site-header .wordmark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    mask-image: linear-gradient(#fff, #fff), url('kolumbia-original.png');
    mask-size: 100% 100%, 120.5% auto;
    mask-position: 0 0, 52.7% 99.35%;
    mask-repeat: no-repeat;
    mask-mode: alpha, luminance;
    mask-composite: subtract;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
  }
  .site-header.is-over-media:not(.has-services-open) .wordmark { background: transparent; }
  .site-header.is-over-media:not(.has-services-open) .wordmark img { opacity: 0; }
  .site-header.is-over-media:not(.has-services-open) .wordmark::after { opacity: 1; }
}

/* Add the former header space to the media area, keeping the approved copy clear. */
body[data-page="home"] .hero { height: min(914px, 100svh); min-height: 734px; }
body[data-page="home"] .hero-composition { padding-top: calc(30px + var(--site-header-height)); }
body[data-page="about"] .about-hero { min-height: calc(clamp(640px, 80svh, 900px) + var(--site-header-height)); }
body[data-page="about"] .about-hero-content { padding-top: calc(95px + var(--site-header-height)); }

@media (max-width: 1100px) {
  body[data-page="home"] .hero { min-height: 714px; }
}
@media (max-width: 999px) {
  body[data-page="about"] .about-hero { min-height: calc(640px + var(--site-header-height)); }
  body[data-page="about"] .about-hero-content { padding-top: calc(85px + var(--site-header-height)); }
}
@media (max-width: 900px) {
  :root { --site-header-height: 80px; }
  body[data-page="home"] .hero { height: calc(690px + var(--site-header-height)); min-height: 0; }
}
@media (max-width: 600px) {
  :root { --site-header-height: 76px; }
  body[data-page="home"] .hero { height: auto; min-height: 0; }
  body[data-page="home"] .hero-composition { padding-top: 0; }
  body[data-page="home"] .hero-scenes { height: calc(280px + var(--site-header-height)); grid-template-rows: calc(160px + var(--site-header-height)) 120px; }
  body[data-page="about"] .about-hero { min-height: calc(605px + var(--site-header-height)); }
  body[data-page="about"] .about-hero-content { padding-top: calc(70px + var(--site-header-height)); }
}

html[data-motion="off"] .site-header,
html[data-motion="off"] .site-header::before,
html[data-motion="off"] .site-header .wordmark,
html[data-motion="off"] .site-header .wordmark img,
html[data-motion="off"] .site-header .wordmark::after,
html[data-motion="off"] .site-header .header-cta { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header::before, .site-header .wordmark, .site-header .wordmark img, .site-header .wordmark::after, .site-header .header-cta { transition: none; }
}
