/* Liquid glass (Ethan, 2026-11-03: "Make a TON more things liquid glass style on people's pages… all future nav bars
   liquid glass + dynamic colors to make sure contrast is enough… the CTA button has a bit of a classy gradient/light
   shimmer outline (subtle)… the radii"). A rebuild opts in with two lines after its own site.css / site.js:
     <link rel="stylesheet" href="/glass.css" />   <script type="module" src="/glass.js"></script>
   It reads the scaffold's own classes (.nav, .nav__in, .nav__logo, .nav__links, .nav__menu, .btn, .btn--main, .btn--line,
   .btn--glass, .sheet, .hero) and the corner widgets (.icw-btn), so a page needs no other change.
   - The nav: a full-width bar of liquid glass (blurred, saturated, light along its edges). glass.js reads what's behind
     it as you scroll and sets html[data-glass-tone]: smoke glass with light words over photos and dark sections, clear
     glass with dark words over light ones; the logo turns with it when it would vanish. Contrast holds either way.
   - Over a full-width photo hero the bar sits on the photo (html.glass-over), so the glass has something to show.
   - Buttons: ONE shape, pills, everywhere (the radius rule). The main call to action gets a fine light ring that a soft
     shimmer crosses every few seconds; Reduce motion keeps the ring, without the shimmer.
   - More glass: buttons over photos, badges on photos, the corner widgets, the phone menu sheet.
   - Glass surfaces for anything (Jacob's, from Newport Condos): .glass (smoke, over photos and dark bands) and .glass--soft
     (frosted white, over light bands). Glass needs something behind it: a photo, or a soft colour wash on the band.
   - Cards: glossy (Ethan, 2026-11-03, the Temple's retreat cards: "these frames could look glossier… subtle
     gradient/outline has that glassy look"): a sheen from the top-left corner, a lit top rim, and a hairline ring that
     catches light at its top-left and bottom-right like a glass edge. glass.js marks dark cards (.glass-dark) so their
     sheen stays faint.
   - The secondary button (.btn--line): frosted, with a lit rim, so it reads as a button and not as a link; each site's
     own hover still wins.
   - Where the browser can't blur, or the person asked for less transparency, every glass turns solid and stays readable. */

:root {
  --btn-r: 999px; /* every button, one shape */
  --glass-blur: 24px;
  --glass-sat: 1.8;
}
html { --gl-tint: 24 21 20; --gl-a: 0.6; --gl-bright: 0.86; --gl-ink: #fff; --gl-ink-2: rgb(255 255 255 / 0.86); --gl-edge: 255 255 255; }
html[data-glass-tone="light"] { --gl-tint: 255 255 255; --gl-a: 0.68; --gl-bright: 1.06; --gl-ink: #1c1817; --gl-ink-2: rgb(28 24 23 / 0.8); }

/* ── the nav ── */
.nav { position: fixed !important; top: 0; left: 0; right: 0; z-index: 60 !important; color: var(--gl-ink) !important; border-bottom: 0 !important;
  background: rgb(var(--gl-tint) / var(--gl-a)) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(var(--gl-bright)) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)) brightness(var(--gl-bright)) !important;
  box-shadow: inset 0 1px 0 rgb(var(--gl-edge) / 0.18), 0 12px 32px -22px rgb(0 0 0 / 0.5) !important;
  transition: background-color 420ms ease, color 420ms ease !important; }
/* a solid bar (data-glass-solid, glass.js): white, a hairline under it, the same shape and blur */
.nav[data-glass-solid] { background: rgb(255 255 255 / 0.96) !important; box-shadow: 0 1px 0 rgb(0 0 0 / 0.06), 0 12px 32px -24px rgb(0 0 0 / 0.35) !important; }
/* the bar stays white in dark mode too, so its logo stays as drawn for white: a site's dark-mode logo filter turned
   Desa Seni's logo white on the white bar (Ethan's phone, 2026-11-10: "I can't see the logo anymore") */
html:not([data-glass-logo-flip]) .nav[data-glass-solid] .nav__logo img { filter: none !important; }
/* light catching the bar's lower edge: brighter in two places, gone at the ends */
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--gl-edge) / 0.5) 22%, rgb(var(--gl-edge) / 0.12) 52%, rgb(var(--gl-edge) / 0.42) 82%, transparent); }
html[data-glass-tone="light"] .nav::after { background: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.1) 22%, rgb(0 0 0 / 0.04) 52%, rgb(0 0 0 / 0.08) 82%, transparent); }
body { padding-top: var(--nav-h, 72px); }
html.glass-over body { padding-top: 0; }
/* aspect-ratio off: a hero sized by a ratio would carry the full-screen height across into its width (Colette's 1938/768
   hero ran 2019px wide on a laptop, sweep of 2026-11-03) */
html.glass-over .glass-first { padding-top: calc(var(--glass-pad0, 0px) + var(--nav-h, 72px)) !important; min-height: 100svh !important; aspect-ratio: auto !important; }
.nav__links a { color: var(--gl-ink-2) !important; padding: 8px 14px; margin: 0 -6px; border-radius: 999px; transition: color 200ms ease, background-color 200ms ease !important; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--gl-ink) !important; background: rgb(var(--gl-edge) / 0.14); }
html[data-glass-tone="light"] .nav__links a:hover, html[data-glass-tone="light"] .nav__links a:focus-visible { background: rgb(0 0 0 / 0.06); }
.nav__logo img { transition: filter 420ms ease; }
html[data-glass-logo-flip] .nav__logo img { filter: invert(1) hue-rotate(180deg); }
.nav__menu { border-radius: var(--btn-r) !important; color: var(--gl-ink) !important; background: rgb(var(--gl-edge) / 0.12) !important; box-shadow: inset 0 0 0 1px rgb(var(--gl-edge) / 0.3), inset 0 1px 0 rgb(var(--gl-edge) / 0.3) !important; }
html[data-glass-tone="light"] .nav__menu { background: rgb(0 0 0 / 0.04) !important; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12) !important; }

/* ── buttons: one shape ── */
.btn, .sheet__close, .icw-btn, .icw-go { border-radius: var(--btn-r) !important; }

/* the main call to action: a fine light ring, crossed by a slow shimmer; a little light inside, from the top */
.btn--main, .nav .btn { position: relative; isolation: isolate;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0) 58%) !important;
  box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--accent, #333) 70%, black), inset 0 1px 0 rgb(255 255 255 / 0.32) !important; }
.btn--main::before, .nav .btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.18) 0%, rgb(255 255 255 / 0.18) 38%, rgb(255 255 255 / 0.95) 48%, rgb(255 255 255 / 0.25) 56%, rgb(255 255 255 / 0.18) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (prefers-reduced-motion: no-preference) {
  .btn--main::before, .nav .btn::before { animation: glass-shimmer 7s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
  .nav .btn::before { animation-delay: 1.2s; }
}
@keyframes glass-shimmer { 0%, 62% { background-position: 100% 0; } 100% { background-position: -60% 0; } }

/* ── more glass ── */
/* a button over a photo, and the hero's outlined button where a photo, a film or a dark band is behind it (glass.js
   adds .on-photo after looking; on a light hero it stays the frosted .btn--line below, in the site's own ink) */
.btn--glass, .hero .btn--line.on-photo, .hero .btn--ghost.on-photo { color: #fff !important; background: rgb(255 255 255 / 0.14) !important;
  backdrop-filter: blur(18px) saturate(1.7); -webkit-backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.38), inset 0 1px 0 rgb(255 255 255 / 0.55), 0 8px 20px -12px rgb(0 0 0 / 0.45) !important; }
.btn--glass:hover, .hero .btn--line.on-photo:hover, .hero .btn--ghost.on-photo:hover { background: rgb(255 255 255 / 0.26) !important; color: #fff !important; }
/* badges sitting on photos (a flag, "Only 3 spots left"): their colour, in glass */
[class*="__flag"], .photo-badge { background: color-mix(in srgb, var(--pink, var(--accent, #333)) 62%, transparent) !important;
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.5) !important; }
/* the corner widgets (sign-up and questions): smoke glass, light edges */
html .icw-btn { background: rgb(24 21 20 / 0.52) !important; color: #fff !important;
  backdrop-filter: blur(20px) saturate(1.7) brightness(0.9); -webkit-backdrop-filter: blur(20px) saturate(1.7) brightness(0.9);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.4), 0 12px 28px -14px rgb(0 0 0 / 0.55) !important; }
html .icw-btn:hover { background: rgb(24 21 20 / 0.66) !important; }
/* the phone menu: frosted, the page soft behind it */
.sheet { background: color-mix(in srgb, var(--surface, #fff) 80%, transparent) !important;
  backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 -20px 50px -30px rgb(0 0 0 / 0.5) !important; }

/* ── glossy cards ── */
.card { background-image: linear-gradient(158deg, rgb(255 255 255 / var(--gloss, 0.85)) 0%, rgb(255 255 255 / 0) 36%, rgb(0 0 0 / var(--gloss-fall, 0.035)) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -30px rgb(0 0 0 / 0.38) !important; }
.card.glass-dark { --gloss: 0.12; --gloss-fall: 0.14; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 18px 40px -26px rgb(0 0 0 / 0.55) !important; }
.card::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgb(255 255 255 / 0.95), rgb(0 0 0 / 0.1) 30%, rgb(0 0 0 / 0.07) 70%, rgb(255 255 255 / 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card.glass-dark::before { background: linear-gradient(150deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.06) 35%, rgb(255 255 255 / 0.04) 70%, rgb(255 255 255 / 0.28)); }

/* ── the secondary button, frosted. The kit owns EVERY state of what it styles (rest, hover, focus, pressed, dark): a
   site's own :hover once turned the Temple's frosted guide button solid green (2026-11-03). Hover = brighter frost and
   a small lift, same ink (glass.js keeps the rest ink in --rest-ink). Light ink (a dark band, dark mode) gets dark glass
   (glass.js adds .btn--line-dark), so the words always read. ── */
.btn--line { background-color: rgb(255 255 255 / 0.5); background-image: linear-gradient(180deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0) 62%);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rest-ink, currentColor) 26%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.95), 0 8px 18px -12px rgb(0 0 0 / 0.35); }
.btn--line:hover, .btn--line:focus-visible { background-color: rgb(255 255 255 / 0.86) !important; background-image: linear-gradient(180deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0) 62%) !important;
  color: var(--rest-ink, inherit) !important; transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rest-ink, currentColor) 34%, transparent), inset 0 1px 0 #fff, 0 12px 22px -12px rgb(0 0 0 / 0.38) !important; }
.btn--line:active { transform: translateY(0); }
/* the ring mixes the rest ink (glass.js), never currentColor: a currentColor mix can't be eased, so it went clear for
   the whole 200ms and snapped back on every hover out (Ethan, 2026-11-09, Desa Seni's Experiences & Adventures).
   hover keeps the same sheen: a gradient can't animate, so swapping it (or a site's own `background:` hover clearing it)
   made the rim blink in (Ethan, 2026-11-04, Desa Seni). Only the frost, ring and lift change, and they ease. */
.btn--line { transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, color 200ms ease; }
.btn--line.btn--line-dark { background-color: rgb(255 255 255 / 0.08); background-image: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 62%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.28), 0 8px 18px -12px rgb(0 0 0 / 0.5); }
.btn--line.btn--line-dark:hover, .btn--line.btn--line-dark:focus-visible { background-color: rgb(255 255 255 / 0.16) !important; background-image: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 62%) !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.34), inset 0 1px 0 rgb(255 255 255 / 0.36), 0 12px 22px -12px rgb(0 0 0 / 0.55) !important; }

/* ── glass surfaces (Jacob's, from Newport Condos): a sheen from the top-left corner, a lit top rim, a hairline edge ── */
:root { --glass-tint: rgb(10 16 20 / 0.36); --soft-tint: rgb(255 255 255 / 0.5); }
.glass { background: linear-gradient(135deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.04) 42%, rgb(255 255 255 / 0.1)), var(--glass-tint) !important;
  color: #fff; backdrop-filter: blur(20px) saturate(1.8); -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 14px 34px -18px rgb(0 0 0 / 0.65) !important; }
.glass--soft { background: linear-gradient(135deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.28) 45%, rgb(255 255 255 / 0.48)), var(--soft-tint) !important;
  color: inherit; backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 0 0 1px rgb(255 255 255 / 0.5), 0 0 0 1px rgb(0 0 0 / 0.06), 0 30px 60px -36px rgb(0 0 0 / 0.4) !important; }
/* no blur, or less transparency asked for: solid enough to read on anything */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-tint: rgb(12 18 22 / 0.9); --soft-tint: var(--surface, #fff); }
  html .nav { background: rgb(var(--gl-tint) / 0.94) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-tint: rgb(12 18 22 / 0.94); --soft-tint: var(--surface, #fff); }
  html .nav { background: rgb(var(--gl-tint) / 0.96) !important; }
}
