/* Liquid Glass refinement. Loaded after the legacy theme stylesheet.
 * Content stays quiet; navigation and controls carry the optical material.
 * No layout dimensions are changed in this layer.
 */
html body {
  --glass-regular: rgba(250,251,253,.48);
  --glass-control: rgba(255,255,255,.32);
  --glass-menu: rgba(250,251,253,.86);
  --glass-edge: rgba(255,255,255,.72);
  --glass-shadow: 0 1px 3px rgba(24,34,48,.04), 0 8px 24px rgba(24,34,48,.085);
  --glass-rim: inset 0 1px 1px rgba(255,255,255,.92), inset 0 -1px 1px rgba(40,53,70,.10), inset 1px 0 1px rgba(255,255,255,.42), inset -1px 0 1px rgba(255,255,255,.24);
  --gourica-header-glass-border: 1px solid var(--glass-edge);
  --gourica-header-glass-bg: var(--glass-regular);
  --gourica-header-glass-shadow: var(--glass-rim), var(--glass-shadow);
  --gourica-header-glass-filter: blur(18px) saturate(145%);
  --gourica-header-button-bg: var(--glass-control);
  --gourica-header-button-shadow: var(--glass-rim), 0 2px 7px rgba(24,34,48,.07);
}

/* Calm content surfaces: avoid stacking several thick, luminous glass layers. */
html body.home div.g3 :is(.home-reference__hero-main,#home-information,.home-reference__works,.home-reference__feature-card),
html body.page:not(.home) :is(.gourica-fixed-page__hero,.gourica-fixed-page__content-wrap),
html body .site-main :is(.content-panel,.post-card) {
  background: linear-gradient(155deg,rgba(255,255,255,.52),rgba(255,255,255,.28)) !important;
  border-color: rgba(255,255,255,.66) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 2px 5px rgba(24,34,48,.02), 0 14px 34px rgba(24,34,48,.055) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body.home div.g3 :is(.home-reference__hero-main,#home-information,.home-reference__works,.home-reference__feature-card)::before,
html body.home div.g3 :is(.home-reference__hero-main,#home-information,.home-reference__works,.home-reference__feature-card)::after,
html body.page:not(.home) :is(.gourica-fixed-page__hero,.gourica-fixed-page__content-wrap)::before {
  background: none !important;
  box-shadow: none !important;
}
html body.home div.g3 .home-reference__work-card {
  box-shadow: 0 2px 5px rgba(24,34,48,.03), 0 8px 22px rgba(24,34,48,.07) !important;
}
html body.home div.g3 .home-reference__work-body {
  background: rgba(255,255,255,.65) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body.home div.g3 #home-information .home-reference__info-category {
  background: rgba(255,255,255,.48) !important;
  border-color: rgba(255,255,255,.46) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #59616b !important;
}

/* The floating toolbar: a translucent core and a narrow, directional rim. */
html body .site-header > .header-inner,
html body .site-footer--minimal .footer-inner--minimal {
  background: linear-gradient(165deg,rgba(255,255,255,.30),rgba(255,255,255,.08) 48%,rgba(255,255,255,.20)),var(--glass-regular) !important;
  border-color: rgba(255,255,255,.64) !important;
  box-shadow: var(--glass-rim), var(--glass-shadow) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
}
html body .site-header > .header-inner::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  padding: 1px !important;
  border-radius: inherit !important;
  background: radial-gradient(ellipse at var(--glass-light-x,35%) var(--glass-light-y,0%),rgba(255,255,255,.98),rgba(255,255,255,.16) 55%),linear-gradient(135deg,rgba(255,255,255,.80),transparent 40%,rgba(255,255,255,.52)) !important;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite: exclude;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
html body .site-header > .header-inner::after {
  background: none !important;
  box-shadow: none !important;
}
html body .site-header > .header-inner > button.menu-toggle {
  background: radial-gradient(ellipse at 30% 10%,rgba(255,255,255,.65),transparent 70%),var(--glass-control) !important;
  color: #101318 !important;
  border-color: rgba(255,255,255,.80) !important;
  box-shadow: var(--glass-rim),0 3px 9px rgba(24,34,48,.08) !important;
}
html body > nav#site-navigation.site-nav.is-mobile-portal {
  background: linear-gradient(165deg,rgba(255,255,255,.32),transparent 60%),var(--glass-menu) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
}

/* A single traveling lens under labels, with neutral light instead of blue glow. */
html.has-liquid-nav-indicator body .site-header .site-nav .liquid-nav-indicator,
html.has-liquid-social-indicator body .site-header .header-social .liquid-social-indicator,
html.has-liquid-info-tabs body.home div.g3 #home-information .liquid-info-tab-indicator {
  background: radial-gradient(ellipse at var(--glass-light-x,35%) var(--glass-light-y,10%),rgba(255,255,255,.65),transparent 72%),rgba(255,255,255,.26) !important;
  border-color: rgba(255,255,255,.80) !important;
  box-shadow: var(--glass-rim),0 2px 8px rgba(24,34,48,.065) !important;
  backdrop-filter: blur(7px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(7px) saturate(135%) !important;
  transition-timing-function: cubic-bezier(.22,1,.36,1) !important;
}
html.has-liquid-nav-indicator body .site-header .site-nav .liquid-nav-indicator::before,
html.has-liquid-social-indicator body .site-header .header-social .liquid-social-indicator::before,
html.has-liquid-info-tabs body.home div.g3 #home-information .liquid-info-tab-indicator::before {
  background: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22) !important;
  opacity: .65 !important;
}

/* Regular glass buttons: fine edges, short shadows and a restrained press. */
html body .site-header .header-social a,
html body .mobile-menu-social a,
html body.home div.g3 .home-reference__feature-card .home-reference__text-link,
html body.home div.g3 .home-reference__works-intro .home-reference__works-all,
html body.home div.g3 #home-information .home-reference__view-all--bottom,
html body.home div.g3 .home-reference__hero-main .home-reference__play-for .home-reference__play-for-button {
  background: radial-gradient(ellipse at var(--glass-light-x,35%) var(--glass-light-y,10%),rgba(255,255,255,.42),transparent 74%),var(--glass-control) !important;
  border-color: rgba(255,255,255,.75) !important;
  box-shadow: var(--glass-rim),0 3px 9px rgba(24,34,48,.065) !important;
  backdrop-filter: blur(10px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(135%) !important;
  transition: scale 280ms cubic-bezier(.22,1,.36,1),box-shadow 200ms ease,background-color 200ms ease !important;
}
html body.home div.g3 #home-information .home-reference__info-tab {
  color: #606873 !important;
}
html body.home div.g3 #home-information .home-reference__info-tab[aria-selected="true"] {
  color: #101318 !important;
}

/* Clear glass over media: preserve the image behind the playback lens. */
html body.home div.g3 .home-reference__hero-main .work-video-shell .work-video-trigger {
  background: radial-gradient(ellipse at var(--glass-light-x,30%) var(--glass-light-y,10%),rgba(255,255,255,.52),transparent 60%),linear-gradient(165deg,rgba(255,255,255,.16),rgba(12,19,28,.12)) !important;
  border-color: rgba(255,255,255,.72) !important;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95),inset 0 -1px 2px rgba(255,255,255,.46),inset 1px 0 2px rgba(255,255,255,.50),inset -1px 0 2px rgba(0,0,0,.12),0 2px 5px rgba(0,0,0,.10),0 8px 18px rgba(0,0,0,.15) !important;
  backdrop-filter: blur(3px) saturate(150%) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(3px) saturate(150%) brightness(1.08) !important;
  transition: scale 280ms cubic-bezier(.22,1,.36,1),box-shadow 200ms ease !important;
}
html body.home div.g3 .home-reference__hero-main .work-video-shell .work-video-trigger::before {
  background: linear-gradient(145deg,rgba(255,255,255,.24),transparent 45%) !important;
  opacity: .7 !important;
}
html body.home div.g3 .home-reference__hero-main .work-video-shell .work-video-trigger::after {
  background: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16) !important;
}
html body.home div.g3 .home-reference__hero-main .work-video-shell .work-video-trigger,
html body.home div.g3 .home-reference__hero-main .work-video-shell:is(:hover,:focus-within) .work-video-trigger {
  transform: translateZ(0) !important;
  color: #fff !important;
}
html body.home div.g3 .home-reference__hero-main .work-video-shell .work-video-trigger__icon {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.65)) drop-shadow(0 0 1px rgba(0,0,0,.5)) !important;
}

@media (hover:hover) and (pointer:fine) {
  html body :is(.home-reference__text-link,.home-reference__works-all,.home-reference__view-all--bottom):hover { scale: 1.025; }
  html body .work-video-trigger:hover { scale: 1.04; }
}
html body :is(.home-reference__text-link,.home-reference__works-all,.home-reference__view-all--bottom,.work-video-trigger):active { scale: .96; }

/* Keep text legible and suppress optical motion when the OS requests it. */
@media (prefers-reduced-motion:reduce) {
  html body :is(.home-reference__text-link,.home-reference__works-all,.home-reference__view-all--bottom,.work-video-trigger) { scale: 1 !important; transition: none !important; }
  html body :is(.liquid-nav-indicator,.liquid-social-indicator,#home-information .liquid-info-tab-indicator) { transition: none !important; }
  html body > nav#site-navigation.site-nav.is-mobile-portal,
  html.is-mobile-menu-open body > nav#site-navigation.site-nav.is-mobile-portal.is-open,
  html.is-mobile-menu-open body > nav#site-navigation.site-nav.is-mobile-portal.is-open li,
  html.is-mobile-menu-open body > nav#site-navigation.site-nav.is-mobile-portal.is-open .mobile-menu-social,
  html body .site-header .menu-toggle__line { transition: none !important; }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  html body { --glass-regular: #f4f5f7; --glass-control: #f8f9fb; --glass-menu: #f4f5f7; }
  html body.home div.g3 .home-reference__hero-main .work-video-shell .work-video-trigger,
  html body.home div.g3 .home-reference__hero-main .work-video-shell:is(:hover,:focus-within) .work-video-trigger { background: #f4f5f7 !important; color: #101318 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html body.home div.g3 .home-reference__hero-main .work-video-shell .work-video-trigger__icon { filter: none !important; }
  html.has-liquid-info-tabs body.home div.g3 #home-information .liquid-info-tab-indicator { background: #fff !important; border-color: #59616b !important; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  html body { --glass-regular: rgba(250,251,253,.94); --glass-control: rgba(255,255,255,.94); --glass-menu: #f4f5f7; }
}
