/* glass.css: design-build's frosted glass, one system (Ninebark r5 base, raised by Wren r5,
   2026-11-14; Eric: "glassmorphism on ALL tiles/cards: opacity and frosted, epic, consistent").
   Loaded last, after site.css and tiles.css; owns surfaces only, never layout or animation.
   Matches the shared Ulric demo recipe (realtor-os "Hero glass"): forest tint at .6 for cards and
   panels, .55 for data tiles, .5 for pills and controls; blur 22px saturate 155%; a 1px rim
   brightest at the top-left with a cedar tail; a sheen kept to the top 12px; a two-layer deep
   shadow; a soft dark halo and a local top-weighted shade under the text so small labels hold AA
   over the brightest render behind them (per-text measurement, r5 glass audit). Dark forest bands
   with renders behind give every pane something to frost. Fallbacks at the end go solid. */
:root {
  color-scheme: dark;
  --paper: #111b16; --paper-2: #18251e;
  --ink: #f1f0ea; --ink-2: #bfcac2; --ink-rgb: 241 240 234;
  --cedar: #e4a66c; --cedar-ink: #e4a66c;
  --line: rgb(241 240 234 / .17);
  --forest-rgb: 22 31 27;
  --g-a: .74;
  /* r7 smoked Liquid Glass (Wren, 2026-11-15; Eric: "match iPhone glassmorphism", reference: his iOS 26
     widget screen): dark near-opaque forest (.74 panes, .7 data tiles, .66 pills), blur 16px so the renders
     still read through, and the glass showing at the EDGE rather than across the face: a 1px rim brightest
     along the top and corners fading down the sides with a cedar refraction at the lower-right corner, a
     1px specular and a faint curved upper highlight for thickness, small shadows, no diagonal sweep. One
     26px radius on every standalone pane and tile; 16px on nested project art (26 minus the 10px padding),
     10px on small thumbnails. Hover tokens kept for the lift. */
  --g-r: 26px; --g-r-tile: 26px; --g-r-art: 10px;
  --g-blur: blur(16px) saturate(140%);
  --g-rim: linear-gradient(180deg, rgb(255 246 230 / .6), rgb(255 246 230 / .16) 34%, rgb(255 246 230 / .07) 68%, rgb(255 246 230 / .13)) border-box,
    radial-gradient(60% 40% at 100% 100%, rgb(228 166 108 / .4), rgb(228 166 108 / 0) 70%) border-box;
  --g-rim-hi: linear-gradient(180deg, rgb(255 248 236 / .8), rgb(255 246 230 / .26) 34%, rgb(255 246 230 / .12) 68%, rgb(255 246 230 / .2)) border-box,
    radial-gradient(60% 40% at 100% 100%, rgb(228 166 108 / .6), rgb(228 166 108 / 0) 70%) border-box;
  --g-rim-on: linear-gradient(180deg, rgb(255 222 190 / .9), rgb(228 166 108 / .55) 34%, rgb(228 166 108 / .35) 70%, rgb(228 166 108 / .6)) border-box;
  --g-sheen: linear-gradient(180deg, rgb(255 246 230 / .1), rgb(255 246 230 / 0) 2px) padding-box,
    radial-gradient(120% 36px at 50% -14px, rgb(255 246 230 / .07), rgb(255 246 230 / 0)) padding-box;
  --g-shade: linear-gradient(180deg, rgb(8 12 10 / .22), rgb(8 12 10 / .06) 60%) padding-box;
  --g-shadow: inset 0 1px 0 rgb(255 246 230 / .22), inset 0 0 0 1px rgb(255 246 230 / .04), inset 0 -1px 0 rgb(0 0 0 / .4),
    0 1px 1px rgb(0 0 0 / .25), 0 8px 20px -14px rgb(0 0 0 / .45);
  --g-shadow-up: inset 0 1px 0 rgb(255 246 230 / .3), inset 0 0 0 1px rgb(255 246 230 / .06), inset 0 -1px 0 rgb(0 0 0 / .4),
    0 2px 2px rgb(0 0 0 / .25), 0 14px 28px -16px rgb(0 0 0 / .5);
  --g-pill-shadow: inset 0 1px 0 rgb(255 246 230 / .2), inset 0 0 0 1px rgb(255 246 230 / .04), inset 0 -1px 0 rgb(0 0 0 / .26), 0 4px 12px -8px rgb(0 0 0 / .5);
  --g-text-shadow: 0 0 2px rgb(8 12 10 / .65), 0 0 6px rgb(8 12 10 / .55), 0 1px 14px rgb(8 12 10 / .4);
}
body { background: var(--paper); }

/* Dark forest washes sit behind each pane, not a light paper ground. */
.sec { position: relative; isolation: isolate; background: #111b16; }
.sec::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 12% 32%, rgb(91 120 84 / .3), transparent 64%),
    radial-gradient(ellipse at 86% 70%, rgb(172 107 64 / .26), transparent 60%);
}
.process::before, .contact::before {
  background: linear-gradient(180deg, #111b16 0, rgb(17 27 22 / 0) 18%, rgb(17 27 22 / 0) 82%, #111b16 100%),
    linear-gradient(90deg, rgb(17 27 22 / .9), rgb(17 27 22 / .45)),
    url('../img/hero-3-1600.webp?v=2') center/cover;
}
.work::before, .words::before {
  background: radial-gradient(ellipse at 18% 35%, rgb(109 137 91 / .34), transparent 64%),
    radial-gradient(ellipse at 85% 70%, rgb(180 112 65 / .3), transparent 62%);
}

/* ---------- panes: cards, panels, tiles, quotes, the form ---------- */
.fg, .u-glass, .config__panel {
  --tint: rgb(var(--forest-rgb) / var(--g-a));
  --acc: #e4a66c; --acc-rgb: 228 166 108;
  --fg-ink: #f1f0ea; --fg-ink-2: #d3dbd5; --cedar-ink: #ecb886;
  position: relative; isolation: isolate; border: 1px solid transparent; border-radius: var(--g-r);
  background: var(--g-sheen), var(--g-shade), linear-gradient(var(--tint), var(--tint)) padding-box, var(--g-rim);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  box-shadow: var(--g-shadow);
  color: #f1f0ea; text-shadow: var(--g-text-shadow);
}
/* grain only: the pointer glow sat under the text */
.fg::before, .u-glass::before, .config__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: var(--grain); background-size: 160px 160px;
}
/* data tiles one step lighter, as in the shared recipe; the model stage and the remodel share the pane radius */
.hx.fg, .tile.fg { --g-a: .7; border-radius: var(--g-r-tile); }
.config__stage, .compare { border-radius: var(--g-r); }
.proj.fg img { border-radius: 16px; }
.tile.fg .tile__k { color: #e3e9e4; }
/* r6 audit: the hero tiles' italic sub-lines read 3.8 without the halo over the brightest render once the
   sweep is on; one colour step up (the r5 way) puts them back over 4.5. */
.hx.fg { --fg-ink-2: #e3e9e4; }
.hero__card.u-glass { border-radius: var(--g-r); }
.hero__card p:last-child { color: #dfe5e0; }
.hud { border-radius: 999px; }
.config__panel { padding: 18px 18px 22px; min-width: 0; }
.ppanel.fg, .form.fg { border-radius: var(--g-r); }
/* tiles.css paints the process panel at .94 with its own layers: bring it onto the shared glass */
.ppanel.fg { --tint: rgb(var(--forest-rgb) / var(--g-a));
  background: var(--g-sheen), var(--g-shade), linear-gradient(var(--tint), var(--tint)) padding-box, var(--g-rim); }
/* r6 audit: the sweep takes the week label to 3.9 without the halo, so it uses the brighter cedar */
.ppanel.fg .ppanel__k { color: var(--cedar-ink); }
.proj.fg, .quote.fg { border-radius: var(--g-r); }

/* ---------- pills and controls: the same glass at .5 ---------- */
.chip, .compare__handle, .compare__tag, .config__hint, .car__btn, .btn--light, .play, .play--dark,
.form.fg input, .form.fg textarea {
  --tint: rgb(var(--forest-rgb) / .66);
  border: 1px solid transparent; color: #f1f0ea; text-shadow: var(--g-text-shadow);
  background: var(--g-sheen), var(--g-shade), linear-gradient(var(--tint), var(--tint)) padding-box, var(--g-rim);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  box-shadow: var(--g-pill-shadow);
}
.btn--light:hover { --tint: rgb(var(--forest-rgb) / .74); }
/* the drag hint floats on the bright 3D sky: card tint plus a local darker wash, not more tint */
.config__hint { --tint: rgb(var(--forest-rgb) / .74); z-index: 2; /* the WebGL canvas is appended after it */
  background: var(--g-sheen), linear-gradient(rgb(8 12 10 / .3), rgb(8 12 10 / .3)) padding-box,
    linear-gradient(var(--tint), var(--tint)) padding-box, var(--g-rim); }
.btn--dark { background: #e4a66c; color: #17201c; text-shadow: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -1px 0 rgb(0 0 0 / .18), 0 1px 2px rgb(0 0 0 / .3), 0 10px 22px -12px rgb(228 166 108 / .8); }
.btn--dark:hover { background: #efb986;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .42), inset 0 -1px 0 rgb(0 0 0 / .18), 0 2px 3px rgb(0 0 0 / .3), 0 16px 30px -14px rgb(239 185 134 / .9); }
.btn--dark:active { box-shadow: inset 0 1px 0 rgb(255 255 255 / .15), inset 0 2px 6px rgb(0 0 0 / .22), 0 1px 2px rgb(0 0 0 / .3); }
.tabs button { color: #d3dbd5; font-size: .82rem; }
.tabs button[aria-selected="true"] { color: #f1f0ea; }
.config__panel .chips { margin-inline: -18px; padding-inline: 18px; }
.chip { border-radius: 999px; }
.chip[aria-pressed="true"] {
  --tint: rgb(var(--forest-rgb) / .78); --g-rim: var(--g-rim-on);
  background: var(--g-sheen), linear-gradient(rgb(228 166 108 / .12), rgb(228 166 108 / .12)) padding-box, var(--g-shade),
    linear-gradient(var(--tint), var(--tint)) padding-box, var(--g-rim);
  box-shadow: inset 0 0 0 1px rgb(228 166 108 / .3), 0 0 22px -6px rgb(228 166 108 / .55), var(--g-pill-shadow);
}
.chip__sw--plan { background: #314637; }
.chip__sw--plan::before { background: #e4a66c; }
.config__summary { color: #f1f0ea; }
.config__panel .note { color: #d3dbd5; }
.form.fg input, .form.fg textarea { border-radius: 14px;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / .22), inset 0 1px 0 rgb(0 0 0 / .18), inset 0 -1px 0 rgb(255 246 230 / .1); }
.form.fg input:hover, .form.fg textarea:hover { --g-rim: var(--g-rim-hi); }
.form.fg input:focus, .form.fg textarea:focus { --g-rim: var(--g-rim-on); outline: 0;
  box-shadow: inset 0 2px 6px rgb(0 0 0 / .22), inset 0 -1px 0 rgb(255 246 230 / .1), 0 0 0 3px rgb(228 166 108 / .32); }
.form input::placeholder, .form textarea::placeholder { color: #c9d2cb; opacity: 1; }
.dot::before { background: #758b7b; }
.dot[aria-current="true"]::before { background: #e4a66c; }
.contact__list a { text-decoration-color: #8ea291; }
@media (min-width: 960px) { .config__panel .chips { margin-inline: 0; padding-inline: 0; } }

/* ---------- r6: hover and press ----------
   Lift rides translate/scale (never transform: the .io entrance and the hero parallax own it, so the
   hero tiles scale instead of moving). Pointer-only hover; every pointer gets the press. No new
   backdrop-filter layers. */
.btn, .chip, .play, .car__btn, .tile.fg, .proj.fg {
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease),
    translate .25s var(--ease), scale .15s var(--ease), box-shadow .3s var(--ease);
}
.hx.fg { transition: translate .6s var(--ease), scale .3s var(--ease), box-shadow .3s var(--ease); } /* keeps tiles.css's parallax pace */
.btn--light { box-shadow: var(--g-pill-shadow); }
.btn:active, .chip:active, .play:active, .car__btn:not(:disabled):active, .steps button:active, .psteps button:active { scale: .97; transition-duration: .08s; }
.steps button, .psteps button { transition: color .2s var(--ease), scale .15s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { translate: 0 -1px; }
  .btn--light:hover, .chip:not([aria-pressed="true"]):hover, .car__btn:not(:disabled):hover, .play:hover, .compare__handle:hover { --g-rim: var(--g-rim-hi); }
  .chip:hover, .car__btn:not(:disabled):hover { translate: 0 -1px; }
  .tile.fg:hover { translate: 0 -3px; --g-rim: var(--g-rim-hi); box-shadow: var(--g-shadow-up); }
  .proj.fg:hover { translate: 0 -4px; --g-rim: var(--g-rim-hi); box-shadow: var(--g-shadow-up); }
  .hx.fg:hover { scale: 1.02; --g-rim: var(--g-rim-hi); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .play, .car__btn, .tile.fg, .proj.fg, .hx.fg, .steps button, .psteps button { transition-duration: .01ms; }
  .btn:hover, .chip:hover, .car__btn:hover, .tile.fg:hover, .proj.fg:hover { translate: none; }
  .hx.fg:hover { scale: none; }
}

/* Atlas pattern: no filter support or reduced transparency means a solid forest tint,
   every secondary control included. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fg, .u-glass, .config__panel, .hx.fg, .tile.fg { --tint: rgb(var(--forest-rgb) / .95); }
  .chip, .chip[aria-pressed="true"], .compare__handle, .compare__tag, .config__hint, .car__btn, .btn--light,
  .btn--light:hover, .play, .play--dark, .form.fg input, .form.fg textarea { --tint: rgb(var(--forest-rgb) / .95); }
}
@media (prefers-reduced-transparency: reduce) {
  .fg, .u-glass, .config__panel, .hx.fg, .tile.fg,
  .chip, .chip[aria-pressed="true"], .compare__handle, .compare__tag, .config__hint, .car__btn, .btn--light,
  .btn--light:hover, .play, .play--dark, .form.fg input, .form.fg textarea {
    --tint: #161f1b; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  .fg::before, .u-glass::before, .config__panel::before { display: none; }
  .hdr.is-scrolled { background: #121a17; }
}
