/* Glass decoration preserves each component's existing palette and geometry. */
body.hx.site-unified:not(.hx-workspace) header.hx-header.hx-header--reference {
  isolation:isolate;
  background:#ffffffdb !important;
  border-color:transparent;
  box-shadow:none;
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
}
body.hx.site-unified:not(.hx-workspace) .hx-header .hx-pill-outline {
  background:#479c73; border-color:#479c73; color:#10291d;
}
body.hx.site-unified:not(.hx-workspace) .hx-header .hx-pill-outline:hover {
  background:#3d8964; border-color:#3d8964; color:#081b11;
}
/* The alpha mask uses the existing mark at its existing dimensions. */
body.hx.site-unified:not(.hx-workspace) .hx-header .hx-logo { position:relative; }
body.hx.site-unified:not(.hx-workspace) .hx-header .hx-logo::after {
  content:''; position:absolute; inset:0; pointer-events:none; background:#479c73;
  -webkit-mask:url('/assets/images/laccino/laccino-mark-2026-dark.png') center / 22px 34px no-repeat;
  mask:url('/assets/images/laccino/laccino-mark-2026-dark.png') center / 22px 34px no-repeat;
}
@supports (mask-image:url('')) {
  body.hx.site-unified:not(.hx-workspace) .hx-header .hx-logo img { visibility:hidden; }
}
body.hx.site-unified:not(.hx-workspace) :is(.hx-plan,.contact-form-panel,.hx-search__form,.hx-agent__form,.hx-tabs) {
  position:relative; isolation:isolate;
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
}
[data-glass] > .ld-glass-layer {
  position:absolute; inset:0; z-index:-1; border-radius:inherit !important; pointer-events:none; overflow:hidden;
}
.ld-glass-layer canvas { pointer-events:none; border-radius:inherit !important; box-shadow:none !important; }
/* Subtle light catches retain the original card and form fills underneath. */
:is(.hx-plan,.contact-form-panel,.hx-search__form,.hx-agent__form,.hx-tabs) > .ld-glass-layer { opacity:.12; mix-blend-mode:soft-light; }
body.hx.site-unified:not(.hx-workspace) .hx-hero__orb:has(canvas) { background:none; }
body.hx.site-unified:not(.hx-workspace) .hx-brand-signoff { background:radial-gradient(ellipse at 50% 65%,#e8e8e8,transparent 60%),#fafafa; }
.hx-glass-badge { position:relative; isolation:isolate; border-radius:50%; width:min(320px,80vw); aspect-ratio:1; background:#ffffff70; border:0; box-shadow:none; -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.hx-glass-badge { overflow:hidden; }
.hx-glass-badge > img { position:relative; z-index:1; }
@media(prefers-reduced-transparency:reduce) { .hx-glass-badge { background:#fff; backdrop-filter:none; -webkit-backdrop-filter:none; } }


@media(prefers-reduced-transparency:reduce) {
  body.hx.site-unified:not(.hx-workspace) header.hx-header.hx-header--reference { background:#fff !important; }
  body.hx.site-unified:not(.hx-workspace) :is(.hx-header,.hx-plan,.contact-form-panel,.hx-search__form,.hx-agent__form,.hx-tabs,.hx-glass-badge) { -webkit-backdrop-filter:none; backdrop-filter:none; }
  .ld-glass-layer { display:none; }
}

/* Gloss is a decorative layer: base fills, text colours and geometry stay component-owned. */
body.hx.site-unified:not(.hx-workspace) [data-liquid-surface] {
  isolation:isolate;
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
}
body.hx.site-unified:not(.hx-workspace) :is(button,a,form,aside)[data-liquid-surface] { position:relative; }
[data-liquid-surface]::after {
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(125deg,#ffffff24,transparent 36%,transparent 70%,#ffffff0d);
  box-shadow:inset 0 1px 0 #ffffffb3,inset 1px 0 0 #ffffff4d,inset 0 -1px 0 #0000000d;
}
body.hx.site-unified:not(.hx-workspace) [data-liquid-surface] > .ld-glass-layer { opacity:.18; mix-blend-mode:soft-light; }
.hx-header .ld-glass-layer,.hx-glass-badge > .ld-glass-layer,.hx-header [data-liquid-surface]::after { display:none; }
@media(prefers-reduced-transparency:reduce) {
  body.hx.site-unified:not(.hx-workspace) [data-liquid-surface] { -webkit-backdrop-filter:none; backdrop-filter:none; }
  [data-liquid-surface]::after { display:none; }
}
