/* Sticky frosted-glass header (portfolio + campaign pages).
   The blur lives on ::before rather than #header itself: backdrop-filter
   creates a containing block, which would trap the fixed mobile menu
   overlay inside the header bar. */

html {
  scroll-padding-top: 90px;
}

body #header.header {
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(0, 0, 0, 0.08);
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 1000 !important;
  background-color: transparent !important;
  /* Older pages draw their own 1.5px rule. The hairline below replaces it. */
  border-bottom: none !important;
}

html:has(link[href*="all-black.css"], style#triton-dark-mode) body #header.header {
  --glass-bg: rgba(10, 10, 10, 0.68);
  --glass-line: rgba(255, 255, 255, 0.08);
}

body #header.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--glass-line);
}

body #header.header .header-background {
  background: transparent !important;
  pointer-events: none;
}

/* The template shrinks the logo (and so the whole bar) once you scroll.
   Keep it at its full height. */
body #header.header .header-title-logo img {
  height: 50px !important;
  width: auto !important;
}

body #header.header .header-display-desktop,
body #header.header .header-display-mobile {
  position: static !important;
}

/* Same column as the gallery, in CSS so the signature is already there
   on the first paint. Portfolio sets --sss-col to this same formula. */
body #header.header .header-announcement-bar-wrapper {
  padding-left: var(--sss-col, max(4vw, calc((100vw - 1223px) / 2))) !important;
  padding-right: var(--sss-col, max(4vw, calc((100vw - 1223px) / 2))) !important;
}

@media (max-width: 767px) {
  body #header.header .header-title-logo img {
    height: 30px !important;
  }

  body #header.header .header-announcement-bar-wrapper {
    padding-left: var(--sss-col, 6vw) !important;
    padding-right: var(--sss-col, 6vw) !important;
  }
}

/* Page title that fades in at the right edge once the big heading scrolls
   away. The signature stays where it is. */
body #header.header .sss-header-title {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: "Manrope", "Poppins", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: inherit;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body #header.header.sss-title-mode .sss-header-title {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body #header.header .sss-header-title,
  body #header.header .header-nav,
  body #header.header .header-actions,
  body #header.header .header-actions-action--social {
    transition: none;
  }
}

body #header.header .header-nav,
body #header.header .header-actions,
body #header.header .header-actions-action--social {
  transition: opacity 0.3s ease;
}

body #header.header.sss-title-mode .header-nav,
body #header.header.sss-title-mode .header-actions,
body #header.header.sss-title-mode .header-actions-action--social {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  body #header.header .sss-header-title {
    display: none !important;
  }

  body #header.header.sss-title-mode .header-nav,
  body #header.header.sss-title-mode .header-actions,
  body #header.header.sss-title-mode .header-actions-action--social {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Travel & Tourism closer. The flex animation turns each word into a
   full-width block, so the sentence stacks. Keep it one centered line. */
#block-6270b88411f733466a3ab40d :is(h2, h3):has(.animation-segment-wrapper) {
  display: flex !important;
  flex-flow: row wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.28em;
}

#block-6270b88411f733466a3ab40d .animation-segment-wrapper,
#block-6270b88411f733466a3ab40d .animation-segment-interior {
  width: auto !important;
  max-width: max-content;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body #header.header {
    --glass-bg: rgba(255, 255, 255, 0.96);
  }
  html:has(link[href*="all-black.css"], style#triton-dark-mode) body #header.header {
    --glass-bg: rgba(10, 10, 10, 0.96);
  }
}
