/* Cinematic layer (2026-10-28). Loads last on every page and sets the final look:
   deep charcoal, warm natural highlights, restrained color, no glow. Remove the <link> to roll back. */
:root,:root[data-theme="dark"],:root:not([data-theme="light"]){
  --paper:#0d0d0e; --surface:#151516; --mist:#1c1c1e; --line:#2a2a2d;
  --ink:#e2e8ec; --ink-muted:#999fa3;
  --fairway:#34e0d6; --fairway-deep:#22b8af; --fairway-soft:#101f32; --on-fairway:#09121c; --chip-ink:#34e0d6;
  --cta-bg:#09111b; --cta-ink:#e2e8ec; --cta-btn:#34e0d6; --cta-btn-ink:#09121c;
  --shadow-lift:0 1px 2px rgba(0,0,0,.5),0 24px 60px rgba(0,0,0,.45);
  --line-strong:#52585c; --neg:#e0806f; --neg-soft:#102034;
  --projected-bg:#0e1f24; --projected-ink:#34e0d6; --projected-line:#0b7a75;
  --example-bg:#18202a; --example-ink:#a9c1dc; --example-line:#33475e;
  --opinion-bg:#221b2a; --opinion-ink:#cdb7e3; --opinion-line:#4a3a5c;
  --chart-1:#34e0d6; --chart-2:#8fa9c4; --chart-3:#a3b38a; --chart-4:#ff7a45; --chart-5:#e0806f;
  --mm-matcha:#7fae8c; --mm-foam:#2a3a2c;
  --ff-bar:#18304d; --ff-bar-strong:#34e0d6; --ff-current:#e0806f;
  --shadow-sm:0 1px 2px rgba(0,0,0,.5); --shadow-focus:0 0 0 3px #34e0d655;
  color-scheme:dark;
}
body{background:var(--paper);color:var(--ink)}
body::before{background:var(--paper)}
::selection{background:#34e0d640}

/* Nav: quiet glass on charcoal */
.nav,.mnav{background:rgba(13,13,14,.84)}
.nav.scrolled{border-bottom-color:var(--line)}
.mark,.portrait:empty::before,.headshot:empty::before{background:#101f32}
.mark:empty::before,.portrait:empty::before,.headshot:empty::before{color:#34e0d6}

/* Home hero: dark, still, room for the portrait from the visual plan (assets/img/hero-desktop.jpg) */
body[data-page="home"] .hero{background:#0b0b0c center right/cover no-repeat;color:var(--ink)}
body[data-page="home"] .hero::before{content:"";inset:0;width:auto;height:auto;border-radius:0;filter:none;animation:none;
  background:radial-gradient(ellipse 70% 60% at 85% 20%,rgba(52,224,214,.10),transparent 70%),linear-gradient(90deg,rgba(11,11,12,.92) 0%,rgba(11,11,12,.55) 55%,rgba(11,11,12,.15) 100%)}
body[data-page="home"] .hero::after{display:none}
/* Cyan spotlight follows the pointer behind the name (Ashton, 2026-10-29). Still on touch, hidden for reduced motion. */
body[data-page="home"] .hero-cursor-glow{display:block;z-index:0;background:radial-gradient(circle,rgba(52,224,214,.20) 0%,rgba(52,224,214,.12) 24%,rgba(52,224,214,.05) 46%,transparent 66%);mix-blend-mode:screen}
body[data-page="home"] .hero>*:not(.hero-cursor-glow){position:relative;z-index:1}
@media (prefers-reduced-motion:reduce){body[data-page="home"] .hero-cursor-glow{display:none}}
.hero .hero-eyebrow,.hero-detail,.hero-bottom{color:var(--ink-muted)}
.hero h1,.hero-text-link{color:var(--ink)}
.hero-accent{color:var(--fairway)}
.hero .lead{color:#ccd2d6}
.hero .btn-primary{background:var(--cta-btn);color:var(--cta-btn-ink)}
.hero .btn-primary:hover{background:var(--fairway-deep);box-shadow:none}
.hero-text-link:hover{color:var(--fairway)}
.hero-bottom{border-top-color:rgba(226,232,236,.12)}
.motion-toggle{color:var(--ink-muted)} .motion-toggle:hover{color:var(--ink)}
.hero :focus-visible{outline-color:var(--fairway)}

/* Surfaces that were hard-coded light */
.project-showcase{background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-lift)}
.showcase-intro{background:#111112;color:var(--ink)} .showcase-intro h2{color:var(--ink)}
.project-controls{background:var(--mist);border-bottom-color:var(--line)}
.project-switcher button[aria-pressed="true"],.build-filter .chip[aria-pressed="true"]{background:var(--fairway);color:var(--on-fairway);border-color:var(--fairway)}
.project-switcher button:hover{border-color:var(--line-strong)}
.project-caption{color:var(--ink-muted);border-bottom-color:var(--line);background:var(--surface)}
.project-frame{background:var(--mist)}
.btn-ghost{background:transparent;border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--line-strong);color:var(--ink)}

/* Photos: a touch of cinematic grading so mixed sources read as one set */
main img:not([src$=".svg"]):not(.no-grade){filter:saturate(.88) contrast(1.04)}

@media print{:root,:root[data-theme="dark"],:root:not([data-theme="light"]){--paper:#fff;--surface:#fff;--ink:#111;--ink-muted:#444;--line:#ccc;color-scheme:light} body{background:#fff;color:#111}}
@media (prefers-reduced-motion:reduce){body[data-page="home"] .hero::before{animation:none}}

/* Finish (2026-10-29): remaining hard-coded greens, quieter hovers, AA contrast */
:root,:root[data-theme="dark"],:root:not([data-theme="light"]){
  --accent-line:color-mix(in srgb,var(--fairway) 38%,var(--line));
  --ease-cine:cubic-bezier(.2,.7,.2,1);
}
.showcase-intro .label,.showcase-intro>p{color:var(--ink-muted)}
.project-switcher button{color:var(--ink-muted)}
.project-switcher button:hover{color:var(--ink)}
.project-expand{color:var(--fairway)} .project-expand:hover{color:var(--fairway-deep)}
.cta p.label,.cta .label{color:var(--ink-muted);opacity:1}
.t-input:focus-within{box-shadow:var(--shadow-focus)}

/* Hovers: a slow lift and a warm hairline, no glow */
.door,.build,.entry,.card{transition:transform .5s var(--ease-cine),border-color .4s ease,box-shadow .5s ease}
.door:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.build:hover,.door:hover{border-color:var(--accent-line)}
.door-img img,.entry-img img{transition:transform 1s var(--ease-cine),filter .6s ease}
.nav-links a{transition:color .25s ease,background .25s ease}
.btn:hover{transform:translateY(-1px)}
.reveal{transition:transform 1s var(--ease-cine)}
.reveal.pending{transform:translateY(20px)}
@media (prefers-reduced-motion:reduce){
  .door:hover,.btn:hover,.door:hover .door-img img{transform:none}
  .reveal.pending{opacity:1;transform:none}
}

/* PW-081: on phones the glow box (600px min) is wider than the viewport. Size it to the hero (an inset slab) and pin its x so its own box never passes the right edge. Still transform-only; y follows the pointer as before. */
@media (max-width:760px){body[data-page="home"] .hero-cursor-glow{width:100%;transform:translate3d(0,var(--glow-y,300px),0) translateY(-50%)}}
