/* CPT motion layer: floating header on scroll and one-time reveals. */
:root {
  --cpt-rise: 24px;
  --cpt-entrance-ease: cubic-bezier(.28, .12, .28, 1);
}

html{scroll-padding-top:calc(var(--cpt-header-h,112px) + 12px)}
.site-header{--header-slot:113px;display:flow-root;position:sticky;top:0;z-index:100;min-height:var(--cpt-header-h,var(--header-slot));transition:background-color .4s ease,border-color .4s ease}
.site-header:before{transition:opacity .3s ease}
.site-header .nav-row {
  box-sizing: border-box;
  isolation: isolate;
  transition: height .42s ease, min-height .42s ease, margin-top .42s ease, padding-inline .42s ease;
}

/* Fade the glass surface independently so the logo and links stay sharp. */
.site-header .nav-row::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid #80b7ef52;
  border-top-color: #c4e1ff80;
  border-radius: 999px;
  background: linear-gradient(165deg, #acd4ff1a, transparent 46%), #071124f5;
  box-shadow: 0 16px 34px #00071780, 0 5px 12px #00040d55, inset 0 1px #e9f5ff17;
  opacity: 0;
  pointer-events: none;
  transition: opacity .48s ease;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .nav-row::before {
    background-color: #071124e8;
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    backdrop-filter: blur(24px) saturate(120%);
  }
}

.site-header.is-pinned{height:var(--cpt-header-h,var(--header-slot));background-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom-color:transparent;pointer-events:none}
.site-header.is-pinned:before{opacity:0}
.site-header.is-pinned .nav-row{pointer-events:auto;margin-top:12px}
.site-header.is-pinned .nav-row::before{opacity:1}
@media(min-width:981px){
 .site-header.is-pinned .nav-row{height:76px;min-height:76px;padding-inline:22px}
 .site-header.is-pinned .brand img{width:auto;max-height:56px}
}
@media(max-width:980px){
 html{scroll-padding-top:calc(var(--cpt-header-h,90px) + 12px)}
 .site-header{--header-slot:91px}
 .site-header .nav-row{height:90px}
 .site-header .nav-row::before{border-radius:28px}
 .site-header .menu-toggle{min-height:44px;min-width:44px}
 .site-header .nav.open{max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain}
 .site-header.is-pinned .nav-row{height:64px;min-height:64px;margin-top:10px;padding-inline:14px}
 .site-header.is-pinned .nav{top:calc(100% + 8px)}
}
/* An independent translate keeps tile hover and glass panel transforms working. */
.cpt-motion .cpt-reveal:not(.is-revealed) {
  opacity: 0;
  translate: var(--cpt-reveal-x, 0px) var(--cpt-rise);
}

.cpt-motion .cpt-reveal.is-revealed {
  animation: cpt-section-in 860ms var(--cpt-entrance-ease) var(--cpt-delay, 0ms) backwards;
}

@keyframes cpt-section-in {
  from {
    opacity: 0;
    translate: var(--cpt-reveal-x, 0px) var(--cpt-rise);
  }
}

@media (min-width: 981px) {
  .field-photo-split > .cpt-reveal { --cpt-reveal-x: -18px; }
  .field-photo-split > .field-photo.cpt-reveal { --cpt-reveal-x: 18px; }
}

@media (max-width: 760px) {
  :root { --cpt-rise: 12px; }
}

@media print {
  .site-header { position: static; }
  .cpt-motion .cpt-reveal { opacity: 1; translate: none; animation: none; }
}

@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 .site-header,.site-header:before,.site-header .nav-row,.site-header .nav-row::before{transition:none!important;animation:none!important}
 .cpt-reveal{opacity:1!important;translate:none!important;animation:none!important}
}
