/*
  KIMI-28 final pass — the harvest of both evenings, decided note by note (build/KIMI-28-website-final.md).

  What this file holds, and whose note it answers:
    1. The showroom (7:58 pm): every picture and card in the proof below the scene sits raised off the
       page like a short key on a keyboard — a keycap plate with a lit top edge, a hard dark underside and
       a contact shadow. Hovering lifts a key a hair and its photograph pops (Kimmy-27's pop animation,
       her design-pass.css 203-204 / 214-215, kept); pressing sinks it like a keystroke.
    2. The golden light carried through (7:58 pm): the empty black is broken by a warm gradient and faint
       diagonal shafts fixed to the room, running down the whole page behind the sections.
    3. Kimmy's team layout (8:15 pm): wider, more legible people grid, name and role sizes, and her
       portrait treatment (quietly desaturated at rest, full colour on approach).
    4. The glass's buttons and facts (8:10 pm): the plain pills stand 46px tall with roomier padding
       (his "a little squishy"), and a ruled, aired gap now separates "Previous photo / Next photo" from
       the Panel system fact beneath (his "smashed together").
  Type, lettering and spacing on the first screen are untouched — ours was preferred (7:58 pm).
*/

/* ── the golden light, carried down the page ────────────────────────────────
   A warm ambient wash and two faint diagonal shafts, fixed to the room rather
   than the document, so the light the A throws follows the reader down the
   page instead of ending at the hero. Alphas stay at or below .085 so every
   word still reads against near-black (the checks measure the real pixels). */
main{
  background-color:var(--ground);
  background-image:
    radial-gradient(900px 520px at 78% -60px, rgba(245,139,29,.085), rgba(245,139,29,0) 62%),
    radial-gradient(1150px 680px at 3% 48%, rgba(245,139,29,.04), rgba(245,139,29,0) 60%),
    repeating-linear-gradient(113deg, rgba(245,139,29,0) 0 430px, rgba(245,139,29,.026) 430px 510px, rgba(245,139,29,0) 510px 1090px);
  background-attachment:fixed, fixed, fixed;
}

/* ── the showroom: pictures and cards raised like short keys ─────────────── */
/* every key in a row stands the same height, its photograph top, its name at
   its foot — a wall of labelled keys, not a stack of odd-sized cards */
.grid, .people-grid{grid-auto-rows:1fr}
.grid figure, .people-grid figure{
  position:relative;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg, #1E1B20 0%, #17141A 100%);
  border:1px solid rgba(244,241,238,.10);
  border-top-color:rgba(255,231,199,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,231,199,.10),
    inset 0 -2px 0 rgba(0,0,0,.55),
    0 24px 40px rgba(0,0,0,.48),
    0 4px 10px rgba(0,0,0,.5);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.grid figure{padding:12px 12px 16px}
.people-grid figure{padding:10px 10px 12px}
/* the keycap's underside: the dark base the plate stands on */
.grid figure::after, .people-grid figure::after{
  content:""; position:absolute; left:5px; right:5px; bottom:-5px; height:4px;
  background:linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.18));
  filter:blur(1px);
}
/* the label sits at the foot of the key, whatever the key holds above it */
.grid figcaption, .people-grid figcaption{margin-top:auto; padding-top:14px}
/* hovering lifts the key a hair; pressing sinks it like a keystroke */
@media (hover:hover){
  .grid figure:hover, .grid figure:has(a:focus-visible),
  .people-grid figure:hover, .people-grid figure:has(a:focus-visible){
    transform:translateY(-3px);
    border-color:rgba(244,241,238,.17);
    border-top-color:rgba(255,231,199,.24);
    box-shadow:
      inset 0 1px 0 rgba(255,231,199,.12),
      inset 0 -2px 0 rgba(0,0,0,.55),
      0 32px 50px rgba(0,0,0,.52),
      0 6px 14px rgba(0,0,0,.5);
  }
}
.grid figure:active, .people-grid figure:active{
  transform:translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,231,199,.07),
    inset 0 -2px 0 rgba(0,0,0,.55),
    0 10px 20px rgba(0,0,0,.48),
    0 2px 6px rgba(0,0,0,.5);
}

/* ── Kimmy's pop animations in the pictures (her design-pass.css, kept) ──── */
.grid img{transition:transform .7s cubic-bezier(.2,.65,.25,1), filter .4s ease}
.grid a:hover img, .grid a:focus-visible img{transform:scale(1.018); filter:brightness(1.06)}
.people-grid .ph img{filter:saturate(.82) contrast(1.025); transition:filter .35s ease, transform .65s cubic-bezier(.2,.65,.25,1)}
.people-grid a:hover img, .people-grid a:focus-visible img{filter:saturate(1) contrast(1); transform:scale(1.012)}

/* ── the showroom's featured wall: SFU Stadium stands wider ──────────────── */
@media (max-width:819px){
  .grid figure:first-child{grid-column:1/-1}
}
@media (min-width:820px){
  .grid figure:first-child{grid-column:span 2}
  .grid figure:first-child .ph{aspect-ratio:16/9}
}

/* ── Kimmy's team layout (8:15 pm): wider, more legible ─────────────────── */
.people-grid{gap:40px 18px; margin-top:48px}
.people-grid figcaption{font-size:19px; font-weight:500}
.people-grid figcaption span{font-size:18px; line-height:1.4; color:var(--ink-2)}
@media (min-width:820px){
  .people-grid{gap:52px 26px}
}
/* a biography opened: only its own card grows; the people beside it keep their size (10-26) */
.people-grid:has(.bio-details[open]){grid-auto-rows:auto; align-items:start}

/* ── the glass: roomier buttons, aired and ruled facts (8:10 pm) ──────────
   Scoped to the drilled-in glass: the bar's Back button and the Contact panel
   keep the recipe's own sizes — their fit was approved and measured to the
   pixel, and a taller Back button would push the whole scene down 2px. */
.screen-flow .pfg-plain{min-height:46px; padding:0 24px}
.screen-flow .scr-actions{gap:14px; margin-top:26px}
.screen-flow .fact{margin-top:24px; padding-top:16px; border-top:1px solid var(--rule)}
.contact-flow .pfg-plain{min-height:44px; padding:0 22px}
.contact-flow .scr-actions{gap:12px; margin-top:14px}
.screen-flow .gallery-position{margin-top:18px}

/* ── reduced motion: keys and pictures settle at once ───────────────────── */
@media (prefers-reduced-motion:reduce){
  main{background-attachment:scroll, scroll, scroll}
  .grid figure, .people-grid figure, .grid img, .people-grid .ph img{transition:none}
}
