
/* =============================
   TRACKMODE — Header styles (scoped)
   ============================= */

/* Sticky header shell */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(15,16,20,.85);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line, #24252b);
}

/* Brand */
.site-header .logo{display:flex; align-items:center; gap:10px; text-decoration:none}
.site-header .logo img{height:40px; width:auto; display:block}

/* Logo stack for scroll swap */
.logo-stack {
  position: relative;
  display: inline-block;
}
.logo-stack img {
  height: 40px;
  width: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.logo-stack img.main-logo { opacity: 1; position: relative; }
.site-header.show-alt-logo .logo-stack img.main-logo { opacity: 0; }
.site-header.show-alt-logo .logo-stack img.alt-logo { opacity: 1; }
.site-header .logo span{font-weight:900; letter-spacing:.6px}

/* Nav layout */
.nav-links{display:flex; align-items:center; gap:14px; margin-left:auto}
.nav-links a:not(.btn){color: var(--text, #e9e9ee); text-decoration:none; opacity:.9}
.nav-links a:not(.btn):hover{opacity:1}

.nav-modes{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.drive-mode-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.05);
  box-shadow:inset 0 0 12px rgba(0,0,0,0.4);
}
.drive-mode-toggle button{
  appearance:none;
  border:none;
  border-radius:999px;
  padding:6px 12px;
  background:transparent;
  color:rgba(233,233,238,0.65);
  font-family:var(--font-heading, 'Inter', sans-serif);
  font-size:0.62rem;
  letter-spacing:0.26em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.drive-mode-toggle button:hover,
.drive-mode-toggle button:focus-visible{
  color:var(--accent, #ff6a00);
}
.drive-mode-toggle button.is-active{
  background:var(--accent, #ff6a00);
  color:#050607;
  box-shadow:0 0 14px rgba(255,106,0,0.45);
}
.ambient-control{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.ambient-control-mobile{
  width:100%;
  display:grid;
  gap:10px;
}
.ambient-panel{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:240px;
  padding:16px;
  border-radius:14px;
  background:rgba(8,10,16,0.95);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 20px 38px rgba(0,0,0,0.55);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity 0.18s ease, transform 0.18s ease;
  z-index:70;
  display:grid;
  gap:12px;
  backdrop-filter:blur(18px) saturate(120%);
}
.ambient-panel-head{
  font-family:var(--font-heading, 'Inter', sans-serif);
  letter-spacing:0.22em;
  text-transform:uppercase;
  font-size:0.62rem;
  color:rgba(233,233,238,0.75);
}
.ambient-field{
  display:grid;
  gap:6px;
}
.ambient-field--brightness{
  position:relative;
  padding-top:12px;
  --ambient-threshold-percent:71.4286%;
}
.ambient-field--brightness .ambient-threshold-marker{
  position:absolute;
  pointer-events:none;
  width:2px;
  height:28px;
  background:linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0) 100%);
  top:calc(100% - 26px);
  left:calc(var(--ambient-threshold-percent, 71.4286%) - 1px);
  opacity:0.85;
  box-shadow:0 0 6px rgba(255,255,255,0.5);
}
.ambient-field--brightness .ambient-threshold-marker::after{
  content:"";
  position:absolute;
  top:-10px;
  left:50%;
  transform:translate(-50%,0);
  width:12px;
  height:12px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.75);
  background:rgba(255,255,255,0.18);
  box-shadow:0 0 8px rgba(255,255,255,0.45);
}
.ambient-field--brightness .ambient-threshold-marker::before{
  content:"BOOST";
  position:absolute;
  top:-30px;
  left:50%;
  transform:translateX(-50%);
  font-size:0.55rem;
  letter-spacing:0.2em;
  color:rgba(255,255,255,0.78);
  font-family:var(--font-heading, 'Inter', sans-serif);
}
.ambient-field--brightness input[type=range]{
  position:relative;
  z-index:1;
}
.ambient-field.is-disabled{
  opacity:0.45;
}
.ambient-field.is-disabled label,
.ambient-field.is-disabled span{
  color:rgba(233,233,238,0.4);
}
.ambient-field.is-disabled input[type=range]{
  pointer-events:none;
  filter:saturate(0);
}
.ambient-field label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.68rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(233,233,238,0.72);
}
.ambient-field span{
  font-size:0.68rem;
  color:rgba(233,233,238,0.55);
}
.ambient-panel input[type=range]{
  -webkit-appearance:none;
  width:100%;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,0.16);
  outline:none;
}
.ambient-panel input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--accent, #ff6a00);
  box-shadow:0 0 8px rgba(255,106,0,0.45);
  border:none;
}
.ambient-panel input[type=range]::-moz-range-thumb{
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--accent, #ff6a00);
  box-shadow:0 0 8px rgba(255,106,0,0.45);
  border:none;
}
.ambient-panel input[type=range]::-moz-range-track{
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,0.16);
}
.ambient-flow-option{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:0.68rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(233,233,238,0.72);
}
.ambient-flow-option input{
  width:16px;
  height:16px;
  accent-color:var(--accent, #ff6a00);
  cursor:pointer;
}
.ambient-control:hover .ambient-panel,
.ambient-control:focus-within .ambient-panel{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.ambient-toggle{
  --ambient-toggle-size:28px;
  appearance:none;
  position:relative;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:var(--ambient-toggle-size);
  height:var(--ambient-toggle-size);
  min-width:var(--ambient-toggle-size);
  min-height:var(--ambient-toggle-size);
  padding:0;
  border-radius:50%;
  border:1px solid rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) + 0.18)));
  background:rgb(var(--ambient-rgb) / 0.08);
  color:transparent;
  cursor:pointer;
  isolation:isolate;
  overflow:visible;
  box-shadow:
    0 0 calc(7px * var(--ambient-glow-boost, 1)) rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.38 + 0.06))),
    inset 0 0 8px rgba(255,255,255,0.08);
  transition:background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.ambient-toggle::before,
.ambient-toggle::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.ambient-toggle::before{
  inset:4px;
  z-index:1;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.95) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 50%, rgb(var(--ambient-rgb)) 0 42%, rgb(var(--ambient-rgb) / 0.68) 64%, rgb(var(--ambient-rgb) / 0.24) 100%);
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.2),
    0 0 calc(8px * var(--ambient-glow-boost, 1)) rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.5 + 0.12)));
  transition:background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.ambient-toggle::after{
  inset:-2px;
  z-index:0;
  border:1px solid rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.5 + 0.18)));
  box-shadow:0 0 calc(12px * var(--ambient-glow-boost, 1)) rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.38 + 0.06)));
  opacity:0.95;
  transition:border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.ambient-toggle .ambient-indicator{
  position:absolute;
  inset:7px;
  z-index:2;
  border-radius:50%;
  background:transparent;
  box-shadow:inset 0 0 10px rgba(255,255,255,0.18);
}
.ambient-toggle .ambient-label{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}
.ambient-toggle:hover,
.ambient-toggle:focus-visible{
  transform:none;
  border-color:rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) + 0.28)));
  box-shadow:
    0 0 calc(10px * var(--ambient-glow-boost, 1)) rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.5 + 0.12))),
    inset 0 0 8px rgba(255,255,255,0.12);
  outline:none;
}
.ambient-toggle:focus-visible{
  outline:2px solid rgba(255,255,255,0.78);
  outline-offset:4px;
}
.ambient-toggle:not(.is-active),
.ambient-toggle[aria-pressed="false"]{
  border-color:rgba(233,233,238,0.18);
  background:rgba(255,255,255,0.04);
  box-shadow:inset 0 0 10px rgba(255,255,255,0.05);
  opacity:0.82;
}
.ambient-toggle:not(.is-active)::before,
.ambient-toggle[aria-pressed="false"]::before{
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.62) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(98,101,112,0.95) 0 42%, rgba(65,68,76,0.88) 68%, rgba(40,42,49,0.72) 100%);
  filter:saturate(0.3);
  box-shadow:inset 0 0 8px rgba(255,255,255,0.1);
}
.ambient-toggle:not(.is-active)::after,
.ambient-toggle[aria-pressed="false"]::after{
  border-color:rgba(233,233,238,0.12);
  box-shadow:0 0 8px rgba(233,233,238,0.12);
  opacity:0.5;
}
body.ambient-flow .ambient-toggle[aria-pressed="true"]::before{
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.95) 0 9%, transparent 10%),
    conic-gradient(from 0deg,
      #ff1d1d 0deg,
      #ff7a00 45deg,
      #ffe600 90deg,
      #58ff39 135deg,
      #00f0ff 190deg,
      #356cff 245deg,
      #b447ff 300deg,
      #ff1d1d 360deg);
  animation:ambientToggleFlowSpin 2.8s linear infinite;
}
body.ambient-flow .ambient-toggle[aria-pressed="true"]::after{
  border-color:rgba(255,255,255,0.38);
  box-shadow:
    0 0 calc(9px * var(--ambient-glow-boost, 1)) rgba(255,255,255, min(1, calc(var(--ambient-brightness) * 0.38 + 0.12))),
    0 0 calc(16px * var(--ambient-glow-boost, 1)) rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.38 + 0.1)));
}

@keyframes ambientToggleFlowSpin{
  to{transform:rotate(360deg);}
}

/* Highlight active section link */
.nav-links a.is-active:not(.btn) {
  opacity: 1;
  color: var(--accent, #ff6a00);
}

/* Buttons inside header */
.site-header .btn,
.mobile-nav .btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; border-radius:12px; font-weight:800; letter-spacing:.3px; text-decoration:none}
.site-header .btn-primary,
.mobile-nav .btn-primary{background: var(--accent, #ff6a00); color:#0b0b0c; border: none}
.site-header .btn-outline,
.mobile-nav .btn-outline{background: transparent; border:1px solid var(--line, #24252b); color: var(--text, #e9e9ee)}

/* Ensure Enquiry (primary) stays black text even on header hover */
.site-header:hover .nav-links .btn-primary{color:#0b0b0c}

/* Space helpers for right side CTA group */
.nav-cta{display:flex; align-items:center; gap:10px}
.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-left:8px;
}

.profile-control{
  position:relative;
  margin-left:8px;
}
.profile-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.05);
  color:rgba(255,255,255,0.8);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  letter-spacing:0.1em;
  font-size:0.75rem;
  cursor:pointer;
  transition:background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.profile-control.is-auth .profile-avatar{
  background:var(--accent, #ff6a00);
  color:#050607;
  border-color:var(--accent, #ff6a00);
  box-shadow:0 0 12px rgba(255,106,0,0.45);
}
.profile-control.is-open .profile-avatar{
  border-color:var(--accent, #ff6a00);
  box-shadow:0 0 10px rgba(255,106,0,0.4);
}
.profile-avatar:focus-visible,
.profile-avatar:hover{
  border-color:var(--accent, #ff6a00);
  color:#fff;
}
.profile-dropdown{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:280px;
  padding:18px;
  border-radius:18px;
  background:rgba(6,7,12,0.95);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 20px 40px rgba(0,0,0,0.6);
  backdrop-filter:blur(18px) saturate(120%);
  z-index:80;
}
.profile-dropdown[hidden]{display:none;}
.profile-login-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.profile-dropdown-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
}
.profile-hint{
  font-size:0.75rem;
  color:rgba(233,233,238,0.7);
  margin:10px 0 0;
}
.profile-dropdown-auth{
  padding-bottom:6px;
}
.profile-dropdown-name{
  margin:0;
  font-size:1rem;
  font-weight:600;
}
.profile-dropdown-email{
  margin:2px 0 0;
  font-size:0.85rem;
  color:rgba(233,233,238,0.65);
}
.profile-dropdown-message{
  min-height:1.2em;
  margin:6px 0 0;
  font-size:0.8rem;
  color:rgba(233,233,238,0.7);
}
.profile-dropdown-message.is-error{color:#ff6b6b;}
.profile-dropdown-message.is-success{color:var(--accent, #ff6a00);}


/* Mobile */
.nav-toggle{display:none}
.site-header.is-mobile-layout{
  min-height:56px;
  justify-content:flex-end;
  padding:10px 12px;
}
.site-header.is-mobile-layout .logo{
  position:absolute;
  left:50%;
  top:50%;
  z-index:1;
  transform:translate(-50%, -50%);
}
.site-header.is-mobile-layout .logo img{
  height:34px;
}
.site-header.is-mobile-layout .logo-stack img{
  height:34px;
}
.site-header.is-mobile-layout .header-actions{
  position:relative;
  z-index:2;
  margin-left:0;
}
.site-header.is-mobile-layout .profile-control{
  display:none;
}
.site-header.is-mobile-layout .nav-toggle{
  display:inline-flex;
}
.site-header.is-mobile-layout .nav-links,
.site-header.is-mobile-layout .nav-cta,
.site-header.is-mobile-layout .nav-modes{
  display:none;
}
.site-header.is-mobile-layout .ambient-panel{
  min-width:100%;
}
@media (max-width: 1280px){
  .site-header{padding:10px 12px}
  .nav-links{gap:10px}
  .site-header .logo img{height:34px}
  .logo-stack img { height: 34px; }
  .header-actions{margin-left:0;}
}

/* =============================
   Mobile navigation (hamburger + drawer)
   ============================= */

/* Hamburger toggle (shown on mobile) */
.nav-toggle{
  display:none;
  appearance:none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  width:46px;
  height:46px;
  border-radius:10px;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction: column;
  cursor:pointer;
  position:relative
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--accent, #ff6a00);
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: transform .22s ease, opacity .22s ease;
}


.nav-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

@media (max-width: 1280px){
  .site-header{
    min-height:56px;
    justify-content:flex-end;
  }
  .site-header .logo{
    position:absolute;
    left:50%;
    top:50%;
    z-index:1;
    transform:translate(-50%, -50%);
  }
  .header-actions{
    position:relative;
    z-index:2;
  }
  .profile-control{display:none}
  .nav-toggle{display:inline-flex}
  .nav-links, .nav-cta, .nav-modes{display:none}
  .ambient-panel{min-width:100%;}
}

/* Backdrop behind drawer */
.nav-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.45); backdrop-filter: blur(1.5px); opacity:0; pointer-events:none; transition: opacity .22s ease; z-index: 98}

/* Drawer panel */
.mobile-drawer{
  position:fixed;
  top:0;
  right:0;
  box-sizing:border-box;
  width:min(88vw, 420px);
  height:100vh;
  height:100dvh;
  background:rgba(15,16,20,.96);
  box-shadow: -8px 0 28px rgba(0,0,0,.55);
  backdrop-filter: saturate(1.1) blur(10px);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 99;
  padding:16px 14px max(18px, env(safe-area-inset-bottom));
  border-left:1px solid var(--line, #24252b);
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
}
.mobile-drawer[hidden]{display:none}
.mobile-drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:42px;
  margin-bottom:10px;
}
.mobile-drawer-head span{
  font-family:var(--font-heading, 'Inter', sans-serif);
  letter-spacing:0.22em;
  text-transform:uppercase;
  font-size:0.68rem;
  color:rgba(233,233,238,0.78);
}
.mobile-drawer-close{
  appearance:none;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.04);
  cursor:pointer;
}
.mobile-drawer-close span{
  position:absolute;
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--accent, #ff6a00);
}
.mobile-drawer-close span:first-child{transform:rotate(45deg)}
.mobile-drawer-close span:last-child{transform:rotate(-45deg)}
.mobile-nav{display:flex; flex-direction:column; gap:10px}
.mobile-link{display:block; padding:12px 12px; border-radius:10px; text-decoration:none; color:var(--text,#e9e9ee); border:1px solid rgba(255,255,255,.06)}
.mobile-link:hover{background: rgba(255,255,255,.04)}
.mobile-cta{margin-top:2px; width:100%; justify-content:center}
.mobile-mode{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:9px;
  padding:8px 0 2px;
}
.mobile-mode p{
  margin:0;
  font-family:var(--font-heading, 'Inter', sans-serif);
  letter-spacing:0.24em;
  text-transform:uppercase;
  font-size:0.62rem;
  color:rgba(233,233,238,0.75);
}
.mobile-mode .drive-mode-toggle{
  grid-column:1 / -1;
  width:100%;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:6px;
  border-radius:12px;
}
.mobile-mode .drive-mode-toggle button{
  min-width:0;
  text-align:center;
  padding:8px 6px;
  font-size:0.58rem;
  letter-spacing:0.16em;
}
.mobile-mode .ambient-control-mobile{
  display:contents;
}
.mobile-mode .ambient-toggle{
  --ambient-toggle-size:32px;
  grid-column:2;
  grid-row:1;
  justify-self:end;
}
.mobile-mode .ambient-panel{
  grid-column:1 / -1;
  position:relative;
  top:auto;
  right:auto;
  min-width:0;
  width:100%;
  margin-top:4px;
  padding:12px;
  border-radius:12px;
  opacity:1;
  transform:none;
  pointer-events:auto;
  box-shadow:0 14px 26px rgba(0,0,0,0.35);
}

@media (max-width: 380px){
  .mobile-drawer{
    width:min(92vw, 340px);
    padding-inline:12px;
  }
  .mobile-nav{gap:8px}
  .mobile-link{padding:11px 10px}
}

/* Open state (body class toggled by JS) */
body.nav-open .nav-backdrop{opacity:1; pointer-events:auto}
body.nav-open .mobile-drawer{transform: translateX(0)}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .nav-backdrop{transition:none}
  .mobile-drawer{transition:none}
  .nav-toggle .bar{transition:none}
}

/* Scrolled state tweaks */
.site-header.is-scrolled {
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Ambient underglow */
.site-header{ position: sticky; }
.site-header::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px; /* ~2mm visual */
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.site-header.with-ambient::after{
  background: rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) + 0.22)));
  box-shadow:
    0 0 calc(16px * var(--ambient-glow-boost, 1)) rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.9 + 0.05))),
    0 0 calc(32px * var(--ambient-glow-boost, 1)) rgb(var(--ambient-rgb) / min(1, calc(var(--ambient-brightness) * 0.6 + 0.05)));
}
body.ambient-flow .site-header.with-ambient::after,
.site-header.with-ambient.ambient-flowing::after{
  background:linear-gradient(90deg,
    hsla(0,100%,50%,1) 0%,
    hsla(15,100%,51%,1) 4%,
    hsla(30,100%,53%,1) 8%,
    hsla(45,100%,54%,1) 12%,
    hsla(60,100%,55%,1) 16%,
    hsla(75,95%,53%,1) 20%,
    hsla(90,92%,50%,1) 24%,
    hsla(105,90%,48%,1) 28%,
    hsla(120,90%,46%,1) 32%,
    hsla(135,92%,46%,1) 36%,
    hsla(150,92%,45%,1) 40%,
    hsla(165,94%,46%,1) 44%,
    hsla(180,95%,50%,1) 48%,
    hsla(195,100%,52%,1) 52%,
    hsla(210,100%,55%,1) 56%,
    hsla(225,100%,58%,1) 60%,
    hsla(240,100%,58%,1) 64%,
    hsla(255,100%,60%,1) 68%,
    hsla(270,100%,62%,1) 72%,
    hsla(285,100%,63%,1) 76%,
    hsla(300,100%,63%,1) 80%,
    hsla(315,100%,60%,1) 84%,
    hsla(330,100%,58%,1) 88%,
    hsla(345,100%,55%,1) 92%,
    hsla(360,100%,50%,1) 100%);
  background-size:420% 100%;
  background-position:var(--ambient-flow-offset, 0%) 0%;
  box-shadow:
    0 0 calc(14px * var(--ambient-glow-boost, 1)) rgba(255,255,255, min(1, calc(var(--ambient-brightness) * 0.6 + 0.08))),
    0 0 calc(28px * var(--ambient-glow-boost, 1)) rgba(255,255,255, min(1, calc(var(--ambient-brightness) * 0.4 + 0.06)));
}

/* Wallpaper page header auto-hide/show */
body.wallpaper-page .site-header,
body.wallpaper .site-header {
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}

body.wallpaper-page .site-header.wp-show,
body.wallpaper .site-header.wp-show {
  transform: translateY(0);
}
