/* Liquid Glass v8 layer (2026-11-01). Loads after glass.css, polish.css and any page stylesheet, on every page that
   loads styles.css, together with assets/lg8.css (the shared v8 tokens, copied verbatim from the Brain spec).
   Visual only: no copy, links, facts, chatbot or layout order change. Remove the two <link> lines to roll back.

   Spec (WEB_DESIGN_REFERENCE.md section 6)
   SITE       Ashton Capes-Varisano personal site.
   SIGNATURE  the home hero slab stays the one moving moment (its light fields, static and reduced-motion fallbacks
              are untouched). New: the Builds page's first project is the v8 hero card, filled with the cyan accent.
   MAP        unchanged on every page.
   TYPE       display serif (ui-serif, then Georgia; no font download, so no swap and no CLS) at weight 400 for page
              titles, the hero name and section heads. Card titles, labels and body stay Geist. Scale as the site has it;
              serif tracking -.02em (the sans -.045em is too tight for a serif). Numbers tabular.
   PALETTE    light, as glass.css pins it: paper #f0f6fa, ink #1a1d1b, muted #4f5752, accent text #0b7a75, cyan
              #34e0d6 with ink #0a1420 on it (9.1:1). Hero card gradient #34e0d6 to #34e0d6, ink #0a1420 (7.9:1 at the
              darker end). Status colors unchanged.
   RADII      v8: cards and doors 22, tiles 18, nav and pills 9999, hero card 22.
   SURFACES   v8 glass recipe on light: white fill gradient, 1px white edge, inset top highlight, faint inset bottom
              line, deeper v8 drop shadow. Blur stays where glass.css put it (nav pill on desktop only).
   MOTION     cubic-bezier(.2,.8,.2,1); 160ms sheen, the existing 320ms lift. Hover lift 3px plus a sheen (opacity
              only) on fine pointers; press .98 (polish.css); the header keeps its place during the page crossfade.
              Reduced motion: no lift, no sheen transition (styles.css and lg8.css stop them).
   SCROLL     native. No content-visibility here: pages have in-page anchors (LEARNINGS 2026-10-31).
   PERF       two small CSS files, no fonts, no images, no JS, no third-party requests. CLS 0. */

:root{
  --lg-accent:#34e0d6;
  --lg-accent-2:#34e0d6;
  --lg-ease:cubic-bezier(.2,.8,.2,1);
  --v8-serif:ui-serif,Georgia,"Times New Roman",serif;
  --v8-fill:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.62));
  --v8-edge:rgba(255,255,255,.9);
  --v8-hi:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(26,29,27,.05);
  --v8-shadow:0 1px 2px rgba(26,29,27,.05),0 24px 48px -20px rgba(40,46,42,.28);
}
/* lg8.css sets the room colors on .lg-room only, so nothing here turns the site dark. Its focus rule is low
   specificity; the site's own ring (polish.css) still wins. */

/* 1. Serif display headings */
.hero h1,.page-head h1,main h1,main h2{font-family:var(--v8-serif);font-weight:400;letter-spacing:-.02em}
.hero h1{letter-spacing:-.03em}
.hero-surname,.hero-accent{font-weight:400}
/* Card titles, labels styled as h2 and tool panels keep the sans. */
main :is(.card,.build,.entry,.door,.quote,.upnext,.facts,.t-panel,.t-disc,.tool,.chat) :is(h2,h3),
main .snapshot-title,main .label,main h2.label{font-family:var(--font-sans);font-weight:600;letter-spacing:-.015em}
main .snapshot-title{letter-spacing:.13em}
.proof strong,.stat b{font-variant-numeric:tabular-nums}

/* 2. Glass nav: v8 pill, same size and slots (no shift). */
.nav .wrap{border-color:var(--v8-edge);box-shadow:var(--v8-hi),var(--v8-shadow)}
.nav-links a[aria-current="page"]{background:rgba(26,29,27,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}

/* 3. Glass project cards: Builds cards, Home doors and the Builds demo showcase. */
.build,.door,.door-mini,.project-showcase{background:var(--v8-fill);border-color:var(--v8-edge);box-shadow:var(--v8-hi),var(--v8-shadow)}
.build,.door,.project-showcase{border-radius:22px}
.door:hover,.build:hover{box-shadow:var(--v8-hi),var(--v8-shadow)}
.build,.door{position:relative;isolation:isolate}
.build::after,.door::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;
  background:linear-gradient(120deg,rgba(255,255,255,.42),transparent 42%);opacity:0;transition:opacity 160ms var(--lg-ease)}
@media (hover:hover) and (pointer:fine){
  .build:hover,.door:hover{transform:translateY(-3px)}
  .build:hover::after,.door:hover::after{opacity:1}
}
.build:focus-within::after,.door:focus-visible::after{opacity:1}
.build-filter .chip[aria-pressed="true"]{box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 6px 16px -8px rgba(11,122,117,.55)}

/* 4. Featured project hero card: the first project on Builds (while the "All" filter shows it). Full width from 1101px;
   on tablets and phones it keeps its grid slot (PW-115 page height) and only takes the cyan fill. */
@media (min-width:1101px){
  .builds-grid>.build:first-child:not([hidden]){grid-column:1/-1;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto;align-self:stretch}
  .builds-grid>.build:first-child:not([hidden]) .preview{height:100%;min-height:300px;border-bottom:0;border-right:1px solid rgba(10,20,32,.12)}
  .builds-grid>.build:first-child:not([hidden]) .build-body{align-content:center;padding:clamp(24px,3vw,40px)}
  .builds-grid>.build:first-child:not([hidden]) .build-top h2{font-family:var(--v8-serif);font-weight:400;font-size:clamp(28px,3vw,40px);letter-spacing:-.02em}
}
.builds-grid>.build:first-child:not([hidden]){background:linear-gradient(160deg,#34e0d6,var(--lg-accent-2));border-color:rgba(255,255,255,.55);color:#0a1420;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 30px 60px -24px rgba(11,122,117,.55)}
.builds-grid>.build:first-child:not([hidden]) :is(h2,.oneliner,.who,summary){color:#0a1420}
.builds-grid>.build:first-child:not([hidden]) .tag{background:rgba(255,255,255,.5);color:#0a1420;border-color:rgba(10,20,32,.18)}
.builds-grid>.build:first-child:not([hidden]) .btn-primary{background:#0a1420;color:#fff;box-shadow:0 8px 20px -10px rgba(10,20,32,.7)}
.builds-grid>.build:first-child:not([hidden]) .btn-primary:hover{background:#112237;color:#fff}
.builds-grid>.build:first-child:not([hidden]) :focus-visible{outline-color:#0a1420}

/* 5. Page swap: the header keeps its place while the page crossfades (polish.css runs the crossfade). */
@media screen and (prefers-reduced-motion:no-preference){.nav{view-transition-name:v8-nav}}

/* 6. Fallbacks */
@media (prefers-reduced-transparency:reduce){.build,.door,.door-mini,.project-showcase{background:var(--glass-solid,#fff)}}
@media (prefers-contrast:more){.build,.door,.project-showcase,.nav .wrap{border-color:var(--line-strong)}}
@media (forced-colors:active){.builds-grid>.build:first-child:not([hidden]){border:1px solid CanvasText}}
@media print{.build,.door{box-shadow:none;background:#fff}.build::after,.door::after{display:none}}
