/* 24 Nov 2026, home page /dermaniq/ only.
   Phones (600px and narrower): header 65% ivory with frosted-glass blur (also after scrolling).
   Desktop (821px and wider): two states.
     1. Top of page (scrolled 70px or less): the original transparent header with white nav, unchanged.
     2. Scrolled past 70px (html class set by header-frost-20261124.js): a floating frosted-glass panel (22% ivory, so the content behind shows through blurred)
        12px from the top and 24px from the sides, radius 20px, navy nav. It is drawn by ::before behind
        the header contents, so the logo and links never move.
   Tablet (601-820px) keeps its original behaviour. */
/* Phones (600px and narrower), 25 Nov 2026: the same floating glass capsule as desktop, always shown.
   The sticky header keeps its 64px height (nothing below moves); the bar itself is clear. */
@media (max-width:600px){
  .site-header,.site-header.is-scrolled{background:transparent!important;border-bottom-color:transparent!important;box-shadow:none!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;isolation:isolate;padding-left:28px;padding-right:24px}
  .site-header::before{content:"";position:absolute;z-index:-1;inset:6px 10px 2px;border-radius:999px;pointer-events:none;
    background:rgba(248,245,241,.42);
    border:1px solid rgba(255,255,255,.24);border-top-color:rgba(255,255,255,.55);
    box-shadow:0 0 0 .5px rgba(255,255,255,.18),0 0 18px rgba(255,255,255,.26),0 10px 30px rgba(20,35,40,.08);
    -webkit-backdrop-filter:blur(16px) saturate(145%);backdrop-filter:blur(16px) saturate(145%)}
  .site-header::after{content:"";position:absolute;z-index:-1;inset:6px 10px 2px;border-radius:999px;pointer-events:none;
    background:radial-gradient(30% 150% at 6% -18%,rgba(255,255,255,0) 52%,rgba(255,255,255,.34) 60%,rgba(255,255,255,.1) 70%,rgba(255,255,255,0) 82%),
      linear-gradient(180deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.06) 24%,rgba(255,255,255,0) 50%);
    box-shadow:inset 0 1.5px 1px rgba(255,255,255,.75),inset 0 -1.5px 1px rgba(255,255,255,.4),inset 0 0 0 1px rgba(255,255,255,.2),
      inset 0 0 14px rgba(255,255,255,.32),inset 12px 0 18px -12px rgba(255,255,255,.55),inset -12px 0 18px -12px rgba(255,255,255,.45)}
  /* menu: the same glass as the capsule, as a rounded card under it */
  .site-header .mobile-nav{left:10px;right:10px;top:calc(100% + 6px);border-radius:22px;overflow:hidden;
    background:linear-gradient(180deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,0) 30%),rgba(248,245,241,.27);
    border:1px solid rgba(255,255,255,.26);border-top-color:rgba(255,255,255,.55);
    box-shadow:inset 0 1.5px 1px rgba(255,255,255,.75),inset 0 -1.5px 1px rgba(255,255,255,.35),inset 0 0 16px rgba(255,255,255,.3),
      0 0 18px rgba(255,255,255,.22),0 16px 40px rgba(20,35,40,.1);
    -webkit-backdrop-filter:blur(19px) saturate(145%);backdrop-filter:blur(19px) saturate(145%)}
  @supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
    .site-header::before{background:rgba(253,249,244,.95)}
  }
}

@media (min-width:821px){
  /* master-brand.js marks the header "is-scrolled" after 32px; keep the top-of-page look until 70px */
  html:not(.hg-glass) .has-hero-video .site-header.is-scrolled:not(:has(.menu-toggle[aria-expanded=true])){background:transparent;border-bottom-color:transparent;box-shadow:none}
  html:not(.hg-glass) .has-hero-video .site-header.is-scrolled:not(:has(.menu-toggle[aria-expanded=true])) :is(.desktop-nav>a,.skincare-trigger,.language){color:#fff}
  html:not(.hg-glass) .has-hero-video .site-header.is-scrolled:not(:has(.menu-toggle[aria-expanded=true])) .desktop-nav>a:after{background:#fff}
  html:not(.hg-glass) .has-hero-video .site-header.is-scrolled:not(:has(.menu-toggle[aria-expanded=true])) .language button[aria-current=true]{color:#fff;box-shadow:0 1px #fff}

  /* glass state: the header bar itself stays clear; the panel is ::before */
  html.hg-glass .has-hero-video .site-header{background:transparent;border-bottom-color:transparent;box-shadow:none}
  .has-hero-video .site-header{isolation:isolate}
  /* glass surface */
  .has-hero-video .site-header::before{content:"";position:absolute;z-index:-1;inset:12px 24px 2px;border-radius:999px;pointer-events:none;
    background:rgba(248,245,241,.22);
    border:1px solid rgba(255,255,255,.22);border-top-color:rgba(255,255,255,.5);
    box-shadow:0 0 0 .5px rgba(255,255,255,.18),0 0 26px rgba(255,255,255,.3),0 14px 44px rgba(20,35,40,.06);
    -webkit-backdrop-filter:blur(26px) saturate(145%);backdrop-filter:blur(26px) saturate(145%);
    opacity:0;transform:translateY(-4px);transition:opacity .3s ease,transform .3s ease}
  /* rim glow, diagonal sheen and top specular edge (light only: no fill, no blur) */
  .has-hero-video .site-header::after{content:"";position:absolute;z-index:-1;inset:12px 24px 2px;border-radius:999px;pointer-events:none;
    background:
      radial-gradient(28% 150% at 4% -18%,rgba(255,255,255,0) 52%,rgba(255,255,255,.34) 60%,rgba(255,255,255,.1) 70%,rgba(255,255,255,0) 82%),
      linear-gradient(104deg,rgba(255,255,255,0) 6%,rgba(255,255,255,.16) 9%,rgba(255,255,255,.04) 13%,rgba(255,255,255,0) 17%),
      linear-gradient(180deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.06) 24%,rgba(255,255,255,0) 50%),
      radial-gradient(40% 140% at 100% 100%,rgba(255,255,255,.12) 0%,rgba(255,255,255,0) 70%);
    box-shadow:
      inset 0 1.5px 1px rgba(255,255,255,.75),
      inset 0 -1.5px 1px rgba(255,255,255,.4),
      inset 0 0 0 1px rgba(255,255,255,.2),
      inset 0 0 18px rgba(255,255,255,.36),
      inset 16px 0 22px -14px rgba(255,255,255,.6),
      inset -16px 0 22px -14px rgba(255,255,255,.5);
    opacity:0;transform:translateY(-4px);transition:opacity .3s ease,transform .3s ease}
  /* Chromium only (header-frost-20261124.js adds html.hg-refract): bend the background near the rounded edges */
  html.hg-refract .has-hero-video .site-header::before{-webkit-backdrop-filter:blur(22px) saturate(145%) url(#hg-refract);backdrop-filter:blur(22px) saturate(145%) url(#hg-refract)}
  html.hg-glass .has-hero-video .site-header::before,html.hg-glass .has-hero-video .site-header::after{opacity:1;transform:none}
  @supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
    .has-hero-video .site-header::before{background:rgba(253,249,244,.96)}
  }
}
@media (min-width:821px) and (prefers-reduced-motion:reduce){
  .has-hero-video .site-header::before,.has-hero-video .site-header::after{transition:opacity .15s linear;transform:none}
}
