/* Alyssa Studio · Glass over grain (approved 30 Nov 2026).
   Every rule hangs from a body class (alyssa-look, -type, -pills, -panes), so each part switches off on its own.
   Her colours, as given: white #F7F7F7 (reading), cream #E3E2DE (titles, logo), light lavender #BBA8E5 (brand design),
   turquoise #69BBB8 (websites), peach #EF9B7E (custom tools), mint #E2F5E7 (the business side), pink #E58F9C (buttons only). */

body.alyssa-look {
	--as-white: #F7F7F7; --as-cream: #E3E2DE; --as-lav: #BBA8E5; --as-web: #69BBB8; --as-peach: #EF9B7E; --as-mint: #E2F5E7; --as-pink: #E58F9C;
	--as-rim: 230, 143, 155;
	--as-ease: cubic-bezier(.22, 1, .36, 1);
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* ---------- type ---------- */
/* Titles and names: sentence case, never capitals. */
body.alyssa-look-type :is(h1, h2, h3, h4, .entry-title, .page-title) { text-transform: none !important; letter-spacing: -.005em !important; text-wrap: balance; }
/* Big numbers: Handjet, 48px and up, never words. The unit sits beside it in small Inter capitals. */
body.alyssa-look-type :is(.alyssa-num, .aj-num, .note-stat-num) {
	font-family: "Handjet", ui-monospace, monospace !important; font-weight: 400 !important; font-style: normal !important;
	font-size: max(48px, 1em) !important; line-height: .82 !important; letter-spacing: .01em !important; text-transform: none !important;
}
body.alyssa-look-type :is(.alyssa-unit, .alyssa-label) {
	font-family: Inter, system-ui, sans-serif !important; font-weight: 600 !important; font-size: 11px !important; line-height: 1.25;
	letter-spacing: .16em !important; text-transform: uppercase !important;
}
.alyssa-star { display: inline-block; vertical-align: -.1em; overflow: visible; flex: none; }

/* ---------- pills: one spec for every button ---------- */
/* Tiers (30 Nov): prism, the leading action (class prism-blr-btn or pill-prism); clear, everything else (the default);
   carved, quiet choices (pill-carved), cut into the surface like the menu's track. */
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit) {
	position: relative !important; isolation: isolate; overflow: visible !important; align-items: center; justify-content: center;
	font-family: Inter, system-ui, -apple-system, sans-serif !important; font-weight: 500 !important; font-size: 13px !important; font-style: normal !important;
	line-height: 1 !important; letter-spacing: .08em !important; text-transform: uppercase !important; text-decoration: none !important; white-space: nowrap;
	padding: 5px 20px !important; min-height: 0 !important; border-radius: 999px !important;
	color: var(--as-white) !important;
	/* clear: the same clear glass as the header, a fine white edge, no darker fill */
	border: 1.2px solid rgba(255, 255, 255, .38) !important; background: rgba(255, 255, 255, .05) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3) !important;
	-webkit-backdrop-filter: blur(5px) saturate(1.2) !important; backdrop-filter: blur(5px) saturate(1.2) !important;
	transform: perspective(800px) rotateX(var(--as-rx, 0deg)) rotateY(var(--as-ry, 0deg)) !important;
	transition: border-color .4s var(--as-ease), box-shadow .4s var(--as-ease), background .4s var(--as-ease), color .2s var(--as-ease) !important;
	text-shadow: calc(var(--as-tx, 0) * 1.6px) calc(var(--as-ty, 0) * 1px) 0 rgba(229, 143, 156, calc(var(--as-m, 0) * .6)),
	             calc(var(--as-tx, 0) * -1.6px) calc(var(--as-ty, 0) * -1px) 0 rgba(105, 187, 184, calc(var(--as-m, 0) * .6)) !important;
	-webkit-tap-highlight-color: transparent;
}
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit) :is(.kb-button-text, .kt-btn-inner-text, .kb-svg-icon-wrap, span) {
	color: inherit !important; font: inherit !important; letter-spacing: inherit !important; text-transform: inherit !important;
}
/* A press sinks the button 1px. */
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit):active {
	transform: perspective(800px) rotateX(var(--as-rx, 0deg)) rotateY(var(--as-ry, 0deg)) translateY(1px) !important;
}
/* Prism: clear glass with her pink rim. */
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link):is(.prism-blr-btn, [id^="prism-blr-btn"], .pill-prism),
body.alyssa-look-pills :is(.prism-blr-btn, [id^="prism-blr-btn"], .pill-prism) :is(.kb-button, .wp-block-button__link) {
	border-color: rgba(var(--as-rim), 1) !important; box-shadow: none !important;
}
/* The prism rim in her palette (peach, pink, light lavender, turquoise, mint), drifting while the pointer is on the button. */
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit)::before {
	content: "" !important; display: block !important; position: absolute !important; inset: -1.2px !important; width: auto !important; height: auto !important;
	border-radius: inherit !important; padding: 1.2px !important; z-index: 3 !important; pointer-events: none !important; opacity: 0 !important; transform: none !important;
	transition: opacity .25s ease !important; border: 0 !important; box-shadow: none !important;
	background: linear-gradient(115deg, rgba(239, 155, 126, .75), rgba(229, 143, 156, .7) 22%, rgba(187, 168, 229, .75) 44%, rgba(105, 187, 184, .7) 66%, rgba(226, 245, 231, .6) 84%, rgba(239, 155, 126, .75)) !important;
	background-size: 300% 300% !important; animation: as-prism 10s ease-in-out infinite alternate paused !important;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
	-webkit-mask-composite: destination-out !important; mask-composite: exclude !important;
}
/* A soft glow that follows the pointer. */
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit)::after {
	content: "" !important; display: block !important; position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important;
	border-radius: inherit !important; z-index: -1 !important; pointer-events: none !important; opacity: 0 !important; transform: none !important;
	transition: opacity .25s ease !important; border: 0 !important; box-shadow: none !important;
	background: radial-gradient(circle at var(--as-gx, 50%) var(--as-gy, 50%), rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 40%, transparent 78%),
	            radial-gradient(circle at calc(var(--as-gx, 50%) + 15%) calc(var(--as-gy, 50%) - 10%), rgba(187, 168, 229, .16), transparent 72%),
	            radial-gradient(circle at calc(var(--as-gx, 50%) - 15%) calc(var(--as-gy, 50%) + 10%), rgba(239, 155, 126, .14), transparent 72%) !important;
}
/* The lens: drawn only while the pointer is on a prism button (look.js). */
body.alyssa-look-pills .as-lens {
	position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; z-index: -1; pointer-events: none;
	opacity: 0; transition: opacity .25s ease; display: block;
}
/* Carved: a groove can't tip toward you. No fill, blur or border; shadow on the top wall, light on the bottom lip.
   No tilt, prism rim, lens or colour split. The label is cream and lifts to white; a press deepens the groove. */
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link):is(.pill-carved, .pill-recessed),
body.alyssa-look-pills :is(.pill-carved, .pill-recessed) :is(.kb-button, .wp-block-button__link) {
	color: #E3E2DE !important; background: rgba(10, 6, 8, .05) !important; border-color: transparent !important;
	-webkit-backdrop-filter: none !important; backdrop-filter: none !important;
	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) !important;
	transform: none !important; text-shadow: none !important;
	transition: color 200ms var(--as-ease), box-shadow 160ms var(--as-ease) !important;
}
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link):is(.pill-carved, .pill-recessed)::before,
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link):is(.pill-carved, .pill-recessed)::after,
body.alyssa-look-pills :is(.pill-carved, .pill-recessed) :is(.kb-button, .wp-block-button__link)::before,
body.alyssa-look-pills :is(.pill-carved, .pill-recessed) :is(.kb-button, .wp-block-button__link)::after { display: none !important; }
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link):is(.pill-carved, .pill-recessed):is(:hover, :focus-visible, :active),
body.alyssa-look-pills :is(.pill-carved, .pill-recessed) :is(.kb-button, .wp-block-button__link):is(:hover, :focus-visible, :active) { color: #FFFFFF !important; }
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link):is(.pill-carved, .pill-recessed):active,
body.alyssa-look-pills :is(.pill-carved, .pill-recessed) :is(.kb-button, .wp-block-button__link):active {
	box-shadow: inset 0 2.5px 4px rgba(0, 0, 0, .4), inset 0 0 0 .5px rgba(0, 0, 0, .18), inset 0 -1px 0 rgba(255, 255, 255, .26), 0 1px 0 rgba(255, 255, 255, .16), 0 -1px 0 rgba(0, 0, 0, .08) !important;
}
/* Phones: pills keep their 5/20 look, and an invisible hit area grows them to at least 44px (13px label + 16px above and below; on the label, because ::after is the glow). */
@media (pointer: coarse) {
	body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit) :is(.kb-button-text, .kt-btn-inner-text, .as-t) { position: relative; }
	body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit) :is(.kb-button-text, .kt-btn-inner-text, .as-t)::before { content: ""; position: absolute; inset: -16px -24px; }
}
/* look.js adds as-on: while the mouse is on the button, or for about 480 ms after a tap on a phone. */
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit).as-pill.as-on { border-color: rgba(255, 255, 255, 0) !important; }
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit).as-pill.as-on::before { opacity: 1 !important; animation-play-state: running !important; }
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit).as-pill.as-on::after,
body.alyssa-look-pills .as-pill.as-on > .as-lens.as-ready { opacity: 1 !important; }
@keyframes as-prism { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit):focus-visible { outline: 2px solid var(--as-white) !important; outline-offset: 3px !important; }

/* ---------- glass panes: add the class to a Kadence row, column or group ---------- */
/* Clear to glance, frosted to read, calm to decide, smoked for the header. Frost follows the light: --as-fa (night .52 up to morning .74). */
body.alyssa-look-panes .glass-clear { --as-bg: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .05)), rgba(30, 22, 26, .14); --as-bf: blur(2px) saturate(1.15); }
body.alyssa-look-panes .glass-frost { --as-bg: rgba(34, 28, 26, var(--as-fa, .52)); --as-bf: blur(14px) saturate(1.2); }
body.alyssa-look-panes .glass-calm  { --as-bg: rgba(34, 28, 26, var(--as-fc, .58)); --as-bf: blur(24px) saturate(1.1); }
body.alyssa-look-panes .glass-smoke { --as-bg: rgba(18, 14, 13, .6); --as-bf: blur(10px) saturate(1.2); }
body.alyssa-look-panes :is(.glass-clear, .glass-frost, .glass-calm, .glass-smoke):not(.wp-block-kadence-column),
body.alyssa-look-panes .wp-block-kadence-column:is(.glass-clear, .glass-frost, .glass-calm, .glass-smoke) > .kt-inside-inner-col {
	position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
	background: var(--as-bg) !important; -webkit-backdrop-filter: var(--as-bf) !important; backdrop-filter: var(--as-bf) !important;
	box-shadow: 0 28px 60px -30px rgba(10, 6, 8, .7), inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .34);
	transition: background 600ms var(--as-ease);
}
/* The faint grain in the glass. */
body.alyssa-look-panes :is(.glass-clear, .glass-frost, .glass-calm, .glass-smoke):not(.wp-block-kadence-column)::after,
body.alyssa-look-panes .wp-block-kadence-column:is(.glass-clear, .glass-frost, .glass-calm, .glass-smoke) > .kt-inside-inner-col::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: .09; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
/* Full-width rows stay square. */
body.alyssa-look-panes .alignfull:is(.glass-clear, .glass-frost, .glass-calm, .glass-smoke) { border-radius: 0; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
	body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit) { transform: none !important; text-shadow: none !important; }
	body.alyssa-look-pills :is(.kb-button, .wp-block-button__link, .kb-forms-submit)::before { animation: none !important; }
}
