/* Progressive enhancements. Every photograph and line of text is visible by default. */
:root {
  --motion-press: 140ms;
  --motion-feedback: 180ms;
  --motion-ui: 240ms;
  --motion-reveal: 660ms;
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
  --motion-rise: 12px;
  --motion-focus-blur: 3px;
  --glass-fill: rgba(248, 250, 249, .82);
  --glass-fill-active: rgba(248, 250, 249, .87);
  --glass-ink: #163d45;
  --glass-edge: rgba(255, 255, 255, .7);
  --glass-blur: 10px;
  --glass-radius: 4px;
  --navigation-blur: 12px;
}

html.motion-ready { scroll-padding-top: calc(var(--header-height, 104px) + env(safe-area-inset-top, 0px) + 8px); }
html.motion-ready :target { scroll-margin-top: 12px; }
/* Keep the material on a sibling layer. Filtering the header itself would make
   it a backdrop root and stop its menu from sampling the photograph below. */
html.motion-ready .site-header,
html:is([data-mobile-menu="open"], [data-mobile-menu="closing"]).motion-ready .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: color var(--motion-ui) ease;
}
html.motion-ready .site-header:not(.header-solid) {
  position: fixed;
  border-bottom: 1px solid transparent;
}
html.motion-ready .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--motion-ui) ease, border-color var(--motion-ui) ease,
    backdrop-filter 280ms ease, -webkit-backdrop-filter 280ms ease;
}
html.motion-ready .site-header.header-solid::before { background: var(--lake); }
html.motion-ready .site-header.is-scrolled:not(.header-solid),
html:is([data-mobile-menu="open"], [data-mobile-menu="closing"]).motion-ready .site-header {
  color: var(--lake);
}
html.motion-ready .site-header.is-scrolled:not(.header-solid)::before,
html:is([data-mobile-menu="open"], [data-mobile-menu="closing"]).motion-ready .site-header::before {
  background: #f3f6f5;
  border-bottom-color: rgba(22, 61, 69, .1);
}
.site-header.is-scrolled .header-cta { background: var(--lake); color: var(--paper); }
.site-header.is-scrolled .header-cta:hover { background: var(--action); }

/* Material is limited to small captions, navigation and the action rail. Text
   remains sharp; only the scene behind these surfaces changes focus. */
.glass-card[data-glass] {
  color: var(--glass-ink);
  background: #edf1f0;
  border: 1px solid var(--glass-edge);
  border-radius: var(--glass-radius);
  box-shadow: 0 6px 22px rgba(8, 26, 30, .08);
  transition: transform var(--motion-ui) var(--motion-ease), background-color 280ms ease,
    backdrop-filter 320ms ease, -webkit-backdrop-filter 320ms ease;
}
.glass-card[data-glass][data-glass-tone="dark"] {
  --glass-fill: rgba(22, 61, 69, .86);
  --glass-fill-active: rgba(22, 61, 69, .92);
  --glass-ink: #f8faf9;
  --glass-edge: rgba(228, 233, 232, .24);
  background: #163d45;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card[data-glass] {
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.06);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.06);
  }
  .glass-card[data-glass]:not([data-glass="still"]):focus-within {
    background: var(--glass-fill-active);
    -webkit-backdrop-filter: blur(14px) saturate(1.06);
    backdrop-filter: blur(14px) saturate(1.06);
  }
  html.motion-ready .site-header::before {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
  html.motion-ready .site-header.is-scrolled:not(.header-solid)::before,
  html:is([data-mobile-menu="open"], [data-mobile-menu="closing"]).motion-ready .site-header::before {
    background: rgba(248, 250, 249, .88);
    -webkit-backdrop-filter: blur(var(--navigation-blur));
    backdrop-filter: blur(var(--navigation-blur));
  }
  .mobile-menu nav {
    background: rgba(248, 250, 249, .94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .mobile-action-rail {
    background: rgba(248, 250, 249, .9);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
  .mobile-action-rail[data-state="visible"] {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.motion-media { overflow: hidden; overflow: clip; }
.motion-media > img[data-parallax] { display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-parallax {
  /* Overscan on each edge exceeds the 3.2% travel cap. No full-screen blur. */
  scale: 1.08;
  translate: 0 0;
  transform-origin: center;
}
.hero-photo.motion-parallax { animation-duration: 650ms; }

@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] [data-reveal].is-revealing {
    animation: silverlane-reveal var(--motion-reveal) var(--motion-ease) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
  html[data-motion="on"] [data-reveal="fade"].is-revealing,
  html[data-motion="on"] .guide-prose [data-reveal].is-revealing {
    animation-name: silverlane-reveal-fade;
  }
  html[data-motion="on"] .itinerary-stops [data-reveal].is-revealing {
    animation-name: silverlane-reveal-stop;
  }
  /* The photographs resolve from a very slight softness; their captions never blur. */
  html[data-motion="on"] .destination-card.is-revealing .destination-image,
  html[data-motion="on"] .journal-card.is-revealing .journal-image img {
    animation: silverlane-focus var(--motion-reveal) var(--motion-ease) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
  html[data-motion="on"] .vehicle-image.is-motion-arriving {
    animation: silverlane-vehicle 420ms var(--motion-ease) both;
  }
  html[data-motion="on"] .service-item[open] .service-content,
  html[data-motion="on"] .faq details[open] > p,
  html[data-motion="on"] .destination-sources[open] > p,
  html[data-motion="on"] .destination-sources[open] > ul {
    animation: silverlane-panel 240ms var(--motion-ease) both;
  }
  html[data-motion="on"] .button svg,
  html[data-motion="on"] .journey-link svg,
  html[data-motion="on"] .text-link svg {
    transition: translate var(--motion-feedback) var(--motion-ease);
  }
  html[data-motion="on"] .button:is(:hover, :focus-visible) svg,
  html[data-motion="on"] .journey-link:is(:hover, :focus-visible) svg,
  html[data-motion="on"] .text-link:is(:hover, :focus-visible) svg { translate: 3px 0; }
}
@keyframes silverlane-reveal {
  from { opacity: .15; translate: 0 var(--motion-rise); }
  to { opacity: 1; translate: 0 0; }
}
@keyframes silverlane-reveal-fade {
  from { opacity: .35; }
  to { opacity: 1; }
}
@keyframes silverlane-reveal-stop {
  from { opacity: .35; translate: 7px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes silverlane-focus {
  from { filter: blur(var(--motion-focus-blur)); }
  to { filter: blur(0px); }
}
@keyframes silverlane-vehicle {
  from { opacity: .6; filter: blur(2px); translate: 0 6px; }
  to { opacity: 1; filter: blur(0px); translate: 0 0; }
}
@keyframes silverlane-panel {
  from { opacity: .55; translate: 0 4px; }
  to { opacity: 1; translate: 0 0; }
}

@media (min-width: 701px) {
  .destination-grid > [data-reveal]:nth-child(2),
  .destination-grid > [data-reveal]:nth-child(4),
  .related-grid > [data-reveal]:nth-child(2),
  .journal-grid > [data-reveal]:nth-child(2),
  .audiences > [data-reveal]:nth-child(2),
  .experience-list > [data-reveal]:nth-child(2) { --reveal-delay: 60ms; }
  .destination-grid > [data-reveal]:nth-child(5),
  .journal-grid > [data-reveal]:nth-child(3),
  .audiences > [data-reveal]:nth-child(3),
  .experience-list > [data-reveal]:nth-child(3) { --reveal-delay: 120ms; }
}
@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.motion-pointer .glass-card[data-glass]:not([data-glass="still"])::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 48%);
    opacity: 0;
    transition: opacity var(--motion-feedback) ease;
  }
  html.motion-pointer .glass-card.is-glass-active::after,
  html.motion-pointer .glass-card[data-glass]:focus-within::after { opacity: 1; }
  html.motion-pointer .glass-card.is-glass-active {
    background: var(--glass-fill-active);
    transition: background-color 280ms ease, backdrop-filter 320ms ease, -webkit-backdrop-filter 320ms ease;
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.motion-pointer .glass-card.is-glass-active {
      -webkit-backdrop-filter: blur(14px) saturate(1.06);
      backdrop-filter: blur(14px) saturate(1.06);
    }
  }
}

[data-motion-toggle] {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-underline-offset: 4px;
}
[data-motion-toggle]:hover:not(:disabled) { text-decoration: underline; }
[data-motion-toggle]:disabled { cursor: default; opacity: .8; }
[data-motion-toggle][hidden] { display: none; }

@media (max-width: 960px) {
  html.motion-ready .site-header.header-solid.is-scrolled {
    color: var(--lake);
  }
  html.motion-ready .site-header.header-solid.is-scrolled::before {
    background: #f3f6f5;
    border-bottom-color: rgba(22, 61, 69, .1);
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.motion-ready .site-header.header-solid.is-scrolled::before {
      background: rgba(248, 250, 249, .88);
      -webkit-backdrop-filter: blur(var(--navigation-blur));
      backdrop-filter: blur(var(--navigation-blur));
    }
  }
}
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  :root {
    --navigation-blur: 8px;
    --glass-blur: 8px;
    --motion-focus-blur: 1.5px;
    --glass-fill: rgba(248, 250, 249, .88);
    --glass-fill-active: rgba(248, 250, 249, .9);
  }
  .glass-card[data-glass]:not([data-glass="still"]):focus-within {
    -webkit-backdrop-filter: blur(10px) saturate(1.04);
    backdrop-filter: blur(10px) saturate(1.04);
  }
}

/* A preference changes the finished composition, never its access or content.
   Reduced/manual motion keeps a stable frosted material. Data saving uses solid fills. */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] [data-reveal],
html[data-motion="off"] .motion-parallax,
html[data-motion="off"] .hero-photo,
html[data-motion="off"] .glass-card[data-glass],
html[data-motion="off"] .vehicle-image {
  opacity: 1;
  translate: none !important;
  scale: none !important;
  transform: none !important;
  filter: none !important;
}
html[data-motion-constrained="data"] .glass-card[data-glass],
html[data-motion-constrained="data"] .mobile-menu nav,
html[data-motion-constrained="data"] .mobile-action-rail {
  background: #edf1f0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-motion-constrained="data"] .glass-card[data-glass][data-glass-tone="dark"] { background: #163d45 !important; }
html[data-motion-constrained="data"] .site-header::before {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-motion-constrained="data"] .site-header.is-scrolled:not(.header-solid)::before,
html[data-motion-constrained="data"]:is([data-mobile-menu="open"], [data-mobile-menu="closing"]) .site-header::before {
  background: #f3f6f5 !important;
}
@media (max-width: 960px) {
  html[data-motion-constrained="data"] .site-header.header-solid.is-scrolled::before { background: #f3f6f5 !important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .motion-parallax, .hero-photo, .glass-card[data-glass], .vehicle-image {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    translate: none !important;
    scale: none !important;
    transform: none !important;
    filter: none !important;
  }
}
