/* Alyssa Studio · Glass over grain header (approved 30 Nov 2026). Values from the approved board (board.src.html: .gloss, .gnav,
   .gtab, .glider; phone: .phbar, .pmenu, .pnav, .ptab). Cream #E3E2DE (her 2026 logo) lifting to white; no pink in the menu. */

/* Kadence's header steps aside for whoever sees this one. */
body.alyssa-look-header #masthead, body.alyssa-look-header #mobile-drawer { display: none !important; }

.as-header {
	--as-ease: cubic-bezier(.22, 1, .36, 1);
	position: fixed; z-index: 1000; left: 0; right: 0; margin: 0 auto;
	top: calc(14px + var(--wp-admin--admin-bar--height, 0px));
	width: min(var(--global-content-width, 1290px), calc(100% - 32px));
	border-radius: 999px; isolation: isolate; box-shadow: 0 22px 44px -24px rgba(10, 6, 8, .7);
	font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
}
.as-glens { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; z-index: -2; pointer-events: none; }
.as-gveil { position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 50%), rgba(34, 28, 26, var(--gd, .2)); }
/* No lens yet (or none possible): the same clear glass, from the browser. */
.as-header:not(.as-lit) .as-gveil { -webkit-backdrop-filter: blur(3px) saturate(1.2); backdrop-filter: blur(3px) saturate(1.2); }
.as-header::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), inset 0 1.5px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(255, 255, 255, .14); }
/* Desktop: the logo's art and the track sit 8px from the bar's edges (the logo's art starts about 3px in). */
.as-htop { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 5px; }
.as-logo { display: block; line-height: 0; flex: none; border-radius: 6px; }
.as-logo-svg { display: block; width: 92px; height: auto; }
.as-logo:focus-visible { outline: 2px solid #F7F7F7; outline-offset: 3px; }

/* The track: carved into the same clear glass, no frost of its own; top wall in shadow, bottom lip in light. */
.as-gnav { position: relative; display: flex; flex-wrap: wrap; margin-left: auto; padding: 3px; border-radius: 999px; background: rgba(10, 6, 8, .05);
	box-shadow: inset 0 1.5px 2.5px rgba(0, 0, 0, .3), inset 0 0 0 .5px rgba(0, 0, 0, .14), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 1px 0 rgba(255, 255, 255, .16), 0 -1px 0 rgba(0, 0, 0, .08); }
.as-tab, .as-ptab {
	position: relative; z-index: 1; display: block; font: 500 13px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase;
	color: #E3E2DE; text-decoration: none !important; white-space: nowrap; padding: 5px 20px; border-radius: 999px; border: 1.2px solid transparent;
	transition: color 200ms var(--as-ease); text-shadow: 0 1px 10px rgba(10, 6, 8, .35); -webkit-tap-highlight-color: transparent;
}
/* Hover: a quiet shift from cream to pure white. No underline, no outline. */
.as-tab:hover, .as-tab[aria-current], .as-ptab[aria-current], .as-ptab:active, .as-tab:active { color: #FFFFFF; }
.as-tab:focus-visible, .as-ptab:focus-visible, .as-menu:focus-visible { outline: 2px solid #F7F7F7; outline-offset: 2px; }
/* The pill: clear raised glass that slides to the current page (320 ms); it darkens only when the backdrop is bright. */
.as-glider { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 999px; z-index: 0; pointer-events: none; opacity: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%), rgba(26, 20, 20, var(--pd, 0));
	box-shadow: 0 6px 14px -7px rgba(8, 4, 6, .55), inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .12); }
.as-glider.live { transition: left 320ms var(--as-ease), top 320ms var(--as-ease), width 320ms var(--as-ease), height 320ms var(--as-ease), opacity 200ms linear; }

/* The page starts below the bar. */
.as-hspace { height: 76px; }
.as-menu, .as-pnav, .as-veil { display: none; }

/* ---------- phones: the bar grows into a glass sheet ---------- */
@media (max-width: 767px) {
	.as-header { top: calc(12px + var(--wp-admin--admin-bar--height, 0px)); width: calc(100% - 24px); height: 56px; border-radius: 28px; overflow: hidden;
		transition: height 520ms var(--as-ease); }
	.as-gnav { display: none; }
	/* The logo's art and the Menu pill sit the same 15px from the bar's edges. */
	.as-htop { height: 56px; padding: 0 15px 0 12px; justify-content: space-between; }
	.as-logo-svg { width: 84px; }
	/* Clear glass, no pink: Kadence styles every <button>, so each value is held here. */
	.as-header button.as-menu, .as-header button.as-menu:hover, .as-header button.as-menu:focus {
		display: inline-block; position: relative; margin: 0; min-height: 0; width: auto; font: 500 13px/1 Inter, system-ui, sans-serif !important; letter-spacing: .08em !important; text-transform: uppercase !important;
		color: #E3E2DE !important; cursor: pointer; padding: 5px 20px !important; border-radius: 999px !important; border: 1.2px solid rgba(255, 255, 255, .4) !important;
		background: rgba(255, 255, 255, .06) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 10px -6px rgba(8, 4, 6, .5) !important; text-decoration: none !important;
		transition: color 200ms var(--as-ease), transform 120ms var(--as-ease); -webkit-tap-highlight-color: transparent; }
	.as-menu::after { content: ""; position: absolute; inset: -10px -6px; } /* 44px to tap */
	.as-header button.as-menu:active { transform: translateY(1px); }
	.as-header button.as-menu[aria-expanded="true"], .as-header button.as-menu:active { color: #FFFFFF !important; }
	.as-pnav { display: grid; position: relative; gap: 2px; margin: 4px 12px 12px; padding: 4px; border-radius: 22px; background: rgba(10, 6, 8, .05);
		box-shadow: inset 0 1.5px 2.5px rgba(0, 0, 0, .3), inset 0 0 0 .5px rgba(0, 0, 0, .14), inset 0 -1px 0 rgba(255, 255, 255, .3), 0 1px 0 rgba(255, 255, 255, .16), 0 -1px 0 rgba(0, 0, 0, .08);
		opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 260ms linear, transform 520ms var(--as-ease), visibility 0s linear 520ms; }
	.as-header.open .as-pnav { opacity: 1; visibility: visible; transform: none; transition-delay: 110ms, 110ms, 0s; }
	.as-ptab { font-size: 14px; text-align: left; padding: 13px 18px; border-radius: 18px; }
	.as-pnav .as-glider { border-radius: 18px; }
	.as-hspace { height: 80px; }
	/* The page goes calm behind the sheet: a soft blur and a veil, so the glass stays clear and the words readable. */
	.as-veil { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(20, 16, 14, .3); opacity: 0; pointer-events: none; transition: opacity 600ms var(--as-ease); }
	html.as-menu-open .as-veil { opacity: 1; pointer-events: auto; }
	body.alyssa-look-header #wrapper { transition: filter 600ms var(--as-ease); }
	html.as-menu-open body.alyssa-look-header #wrapper { filter: blur(6px) saturate(.85); }
}

@media (prefers-reduced-motion: reduce) {
	.as-header, .as-pnav, .as-veil, body.alyssa-look-header #wrapper { transition-duration: 200ms !important; transition-timing-function: linear !important; }
	.as-pnav { transform: none !important; }
	.as-glider.live { transition: opacity 200ms linear; }
}
