/* EXPERIMENT (2026-10-24, Kyle: "the background feels a bit static… brighter shade… opaque glass finish").
   A brighter warm-charcoal ground, slow warm light drifting behind the page, and frosted glass on the surfaces that
   already act as containers. Self-contained so it can be undone cleanly: remove this file's <link> in
   includes/header.php, the <div class="ambient"> there, and the "Ambient light" block in assets/js/main.js.
   Contrast measured on the brightest glow (#3a2518): text-2 6.8:1, text-3 5.2:1, orange on glass 5.1:1. */

:root {
  --ground: #15120f;
  --surface-1: rgba(40, 33, 28, 0.55);
  --surface-2: rgba(52, 43, 37, 0.62);
  --surface-3: rgba(64, 54, 46, 0.7);
  --line: rgba(255, 244, 232, 0.08);
  --line-strong: rgba(255, 244, 232, 0.15);
  --text-3: #a39a8f;

  --glass-bg: rgba(34, 28, 24, 0.58);
  --glass-bg-strong: rgba(30, 25, 21, 0.74);
  --glass-edge: rgba(255, 244, 232, 0.09);
  --glass-shine: inset 0 1px 0 rgba(255, 244, 232, 0.07);
  --glass-blur: blur(20px) saturate(135%);
}

/* The ground lives on the canvas (html) and the body is transparent, so the light layer behind can show through */
html { background: radial-gradient(120% 70% at 50% 0%, #211b16 0%, rgba(21, 18, 15, 0) 70%) no-repeat, var(--ground); }
body { background: transparent; }
::-webkit-scrollbar-track { background: var(--ground); }

/* ---------- The light: four soft glows, fixed behind everything, drifting slowly ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient__glow {
  position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform;
  transform: translate3d(0, calc(var(--sp, 0) * var(--drift, 0px)), 0);
}
.ambient__glow--a { width: 62vmax; height: 62vmax; left: -18vmax; top: -14vmax; --drift: -160px;
  background: radial-gradient(circle, rgba(248, 100, 0, 0.17) 0%, rgba(248, 100, 0, 0) 68%); animation: glow-a 46s var(--ease-in-out) infinite alternate; }
.ambient__glow--b { width: 54vmax; height: 54vmax; right: -16vmax; top: 18vh; --drift: 120px;
  background: radial-gradient(circle, rgba(255, 196, 140, 0.09) 0%, rgba(255, 196, 140, 0) 66%); animation: glow-b 58s var(--ease-in-out) infinite alternate; }
.ambient__glow--c { width: 48vmax; height: 48vmax; left: 22vw; bottom: -22vmax; --drift: -90px;
  background: radial-gradient(circle, rgba(196, 70, 20, 0.14) 0%, rgba(196, 70, 20, 0) 66%); animation: glow-c 52s var(--ease-in-out) infinite alternate; }
.ambient__glow--d { width: 30vmax; height: 30vmax; right: 12vw; bottom: 8vh; --drift: 70px;
  background: radial-gradient(circle, rgba(255, 238, 220, 0.05) 0%, rgba(255, 238, 220, 0) 64%); animation: glow-d 40s var(--ease-in-out) infinite alternate; }
@keyframes glow-a { to { translate: 14vw 10vh; scale: 1.12; } }
@keyframes glow-b { to { translate: -12vw 16vh; scale: 0.9; } }
@keyframes glow-c { to { translate: 10vw -14vh; scale: 1.15; } }
@keyframes glow-d { to { translate: -18vw -10vh; scale: 1.2; } }
@media (prefers-reduced-motion: reduce) { .ambient__glow { animation: none; } }

/* ---------- Frosted glass ---------- */
.site-header.is-scrolled,
.menu,
.problem,
.services__list,
.frame,
.also__shots .frame,
.ways__item,
.book__call, .book__form-wrap,
.faq__list,
.modules,
.svc__body,
.pair__shots .frame,
.next__list li,
.beliefs__list li,
.founder__grid,
.zoom,
.notice {
  background-color: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* Header and menu: a stronger glass so links stay crisp over moving light */
.site-header.is-scrolled { background-color: rgba(21, 18, 15, 0.62); box-shadow: 0 1px 0 var(--glass-edge); }
.menu { background-color: rgba(21, 18, 15, 0.88); }

/* The problem panel slides up over the hero as one big sheet of glass */
.problem { background-color: var(--glass-bg-strong); box-shadow: var(--glass-shine), 0 -20px 50px -24px rgba(0, 0, 0, 0.6); border-top: 1px solid var(--glass-edge); }

/* Panels: hairline edge plus a light catch along the top; one elevation, no ghost shadows */
.services__list, .ways__item, .book__call, .book__form-wrap, .faq__list, .modules, .svc__body,
.next__list li, .beliefs__list li, .founder__grid {
  border: 1px solid var(--glass-edge); border-radius: var(--radius-lg); box-shadow: var(--glass-shine);
}
.services__list { padding: 0 clamp(20px, 3vw, 40px); }
.services__row:first-child { border-top: 0; }
.services__row:last-child { border-bottom: 0; }
.ways__item, .book__call, .book__form-wrap, .next__list li, .beliefs__list li { padding: clamp(24px, 3vw, 36px); border-top: 1px solid var(--glass-edge); }
.faq__list { padding: 0 clamp(20px, 3vw, 36px); max-width: 56rem; }
.faq__item:first-child { border-top: 0; }
.modules { padding: clamp(24px, 3vw, 40px); }
.svc__body { padding: clamp(24px, 3vw, 40px); }
.founder__grid { padding: clamp(24px, 3.5vw, 48px); }
.beliefs__list { gap: 18px; }

/* Screenshot frames: glass bezels */
.frame { border-color: var(--glass-edge); box-shadow: var(--glass-shine), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.frame__bar { border-bottom-color: var(--glass-edge); }
.frame__bar span { background: rgba(255, 244, 232, 0.06); }

/* Form fields read as glass wells */
.input { background-color: rgba(18, 15, 13, 0.55); border-color: var(--line-strong); }
.input:focus { background-color: rgba(18, 15, 13, 0.7); }
.choice span { background: rgba(18, 15, 13, 0.35); }

/* Buttons: the outline button gets a frosted fill so it holds its own over light */
.btn--outline { background: rgba(255, 244, 232, 0.04); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--outline:hover { background: rgba(255, 244, 232, 0.08); }
.jump__list a { background: rgba(255, 244, 232, 0.04); }

/* Nodes sit on the ground colour so the line passes behind them cleanly */
.flow-node, .how.is-pinned .how__dot { background: var(--ground); }

.site-footer { background: rgba(21, 18, 15, 0.7); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border-top-color: var(--glass-edge); }

/* Small screens: lighter blur keeps scrolling smooth on phones */
@media (max-width: 760px) {
  :root { --glass-blur: blur(12px) saturate(130%); }
  .ambient__glow { filter: blur(50px); }
}
