/* ==========================================================================
   Evidence website - SHARED CHROME (base + nav + footer + subpage hero).
   Linked by every page; the nav/footer markup is injected by site.js.
   Tokens from brand/elevate-tokens.css. Spacing on the 4px grid per the brand rule.
   ========================================================================== */
:root{--dur:.18s;}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{font-family:var(--font-body);color:var(--ink);background:var(--canvas);-webkit-font-smoothing:antialiased;line-height:1.5;font-variant-numeric:tabular-nums;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1200px;margin:0 auto;padding:0 var(--space-md);width:100%;}

/* ---------- line wrapping: sensible breaks site-wide ----------
   balance headline lines (no lonely last words, even line lengths) and avoid body-copy
   orphans - automatic and fully responsive at every width. For an INTENTIONAL break at a
   specific point, use <br class="brk"> in the markup: it only breaks on desktop (>880px)
   so mobile keeps its natural, width-appropriate wrap. */
h1,h2,h3{text-wrap:balance;}
p,li{text-wrap:pretty;}
br.brk{display:none;}
@media(min-width:881px){br.brk{display:inline;}}

/* ---------- deck pages: flow at content height; full-screen is opt-in ----------
   Sections sit at their own (content) height with their own padding, so static sections are
   close together - no screenful of empty space between them. A section that hosts a full-screen
   moment (hero, big canvas/interactive, a deliberately isolated statement) adds .deck-full to
   fill the viewport. Arrow / Page keys still step section-to-section; data-stops sections
   (scroll takeovers) keep their own height. */
body.deck main > section.deck-full{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;}

/* ---------- page closer: room before the pre-footer separator ----------
   Every page's last <main> child is its closer section (verified across all
   pages 2026-07); give it a uniform 120px bottom. This (0,1,2) selector
   outranks the page-level closer rules (all <= (0,1,1)), so it also
   normalizes the product pages' generic 128px section bottoms to 120px. */
main > section:last-child{padding-bottom:120px;}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font-body);font-size:15px;font-weight:600;padding:12px 20px;border:0;border-radius:var(--radius-pill);cursor:pointer;white-space:nowrap;transition:background var(--dur) ease, transform .15s ease;}
.btn--primary{background:var(--slate-950);color:#fff;}
.btn--primary:hover{background:var(--slate-800);}
.btn--tertiary{background:transparent;color:var(--ink);}
.btn--tertiary:hover{background:var(--fill-2);}
.btn--lg{font-size:17px;padding:16px 28px;}

/* ---------- nav ---------- */
/* ---------- adaptive nav: NO bar - the chrome recolors to the surface beneath it ----------
   site.js watches the [data-navtheme] surface under the bar each frame and sets
   data-navtone here. MONOCHROME: the tone system reduces to exactly TWO treatments -
   ink chrome on light surfaces (the defaults below) and light chrome on dark surfaces.
   The attribute API is unchanged: every legacy tone value keeps working - "forest" and
   any "*-dark" value maps to the dark treatment; every other value (lime, lemon,
   blueberry, tangerine, grapefruit, ...) falls through to the ink defaults. */
/* the bar rides ABOVE everything (fixed heroes, globe layers, ribbons) and
   stays fully transparent - the page shows through between the items */
.nav{position:sticky;top:0;z-index:900;background:transparent;transition:transform .3s var(--ease-silk);
  --nav-ink:var(--slate-950);--nav-logo:var(--slate-950);--nav-soft:var(--fill-2);--nav-btn-bg:var(--slate-950);--nav-btn-ink:#fff;--nav-btn-bg-hover:var(--slate-800);}
.nav[data-navtone="forest"],
.nav[data-navtone$="-dark"]{--nav-ink:#fff;--nav-logo:#fff;--nav-soft:rgba(255,255,255,0.14);--nav-btn-bg:#fff;--nav-btn-ink:var(--slate-950);--nav-btn-bg-hover:var(--slate-100);}
.nav--hidden{transform:translateY(-100%);}
.nav__in{max-width:1280px;margin:0 auto;padding:16px 28px;display:flex;align-items:center;gap:28px;background:transparent;}
.nav__logo{position:relative;display:flex;align-items:center;color:var(--nav-logo);transition:color .25s ease;}
.nav__logo-mark{display:flex;transition:opacity .25s var(--ease-silk),transform .25s var(--ease-silk);}
.nav__logo-mark svg{height:26px;width:auto;display:block;}
/* away from home, hovering the BAR morphs the mark into a house - "this takes you home" */
.nav__logo-home{position:absolute;left:50%;top:50%;width:24px;height:24px;opacity:0;transform:translate(-50%,-50%) scale(0.6);transition:opacity .25s var(--ease-silk),transform .25s var(--ease-silk);}
.nav--away:hover .nav__logo-mark{opacity:0;transform:scale(0.6);}
.nav--away:hover .nav__logo-home{opacity:1;transform:translate(-50%,-50%) scale(1);}
@media(prefers-reduced-motion:reduce){.nav__logo-mark,.nav__logo-home{transition:none;}}
.nav__menu{display:flex;align-items:center;gap:8px;}
.nav__item{position:relative;}
.nav__link{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;font-family:var(--font-body);font-size:15px;font-weight:600;color:var(--nav-ink);padding:8px 16px;border-radius:var(--radius-pill);cursor:pointer;transition:color .25s ease,background .25s ease;}
.nav__link:hover{background:var(--nav-soft);}
.nav__chev{width:15px;height:15px;display:inline-flex;transition:transform var(--dur) ease;}
.nav__chev svg{width:15px;height:15px;}
.nav__item.is-open .nav__chev{transform:rotate(180deg);}
.nav__right{margin-left:auto;display:flex;align-items:center;gap:16px;}
.nav__login{font-size:15px;font-weight:600;color:var(--nav-ink);padding:8px 16px;border-radius:var(--radius-pill);transition:color .25s ease,background .25s ease;}
.nav__login:hover{background:var(--nav-soft);}
.nav .btn--primary{background:var(--nav-btn-bg);color:var(--nav-btn-ink);transition:background .25s ease,color .25s ease,transform .15s ease;}
/* the tone rule above outranks the global .btn--primary:hover, so the nav button carries its
   own hover step; tones without a token hover pairing fall back to their resting fill */
.nav .btn--primary:hover{background:var(--nav-btn-bg-hover,var(--nav-btn-bg));}

/* mega-menus */
.mega{position:absolute;top:calc(100% + 12px);left:0;background:#fff;border-radius:var(--radius-card);padding:16px;box-shadow:0 18px 50px rgba(15,23,42,0.13);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity var(--dur) ease, transform var(--dur) ease, visibility var(--dur);z-index:60;}
.nav__item.is-open .mega{opacity:1;visibility:visible;transform:none;}
.mega--products{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:620px;}
.ptile{display:flex;gap:16px;align-items:flex-start;padding:16px;border-radius:var(--radius-input);transition:background var(--dur) ease;}
.ptile:hover{background:var(--fill-1);}
/* MONOCHROME: all product icon chips share the one slate treatment - the legacy
   .ptile__ic--a/--b/--c/--d classes (injected by site.js) remain in the markup
   but no longer carry per-product colors. */
.ptile__ic{flex:none;width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--slate-100);color:var(--slate-950);}
.ptile__ic svg{width:16px;height:16px;}
.ptile__b{display:flex;flex-direction:column;gap:4px;}
.ptile__t{font-size:16px;font-weight:700;color:var(--ink);font-family:var(--font-display);letter-spacing:-.01em;}
.ptile__d{font-size:14px;color:var(--ink);line-height:1.4;}
.mega--res,.mega--sol{display:flex;flex-direction:column;gap:4px;width:380px;}
.rrow{display:flex;gap:16px;align-items:flex-start;padding:16px;border-radius:var(--radius-input);transition:background var(--dur) ease;}
.rrow:hover{background:var(--fill-1);}
.rrow__ic{flex:none;width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:var(--slate-100);color:var(--slate-950);}
.rrow__ic svg{width:18px;height:18px;}
.rrow__b{display:flex;flex-direction:column;gap:4px;}
.rrow__t{font-size:15px;font-weight:700;color:var(--ink);}
.rrow__d{font-size:14px;color:var(--ink);line-height:1.4;}
@media(max-width:880px){.nav__menu{display:none;}}

/* ---------- footer ---------- */
/* the applied stripe (injected by site.js immediately before #site-foot;
   foil styling lives in holo-fallback.css) sits FLUSH between the page's last
   section and the footer - no white gap on either side (Aaron) */
.holo-hr{margin-top:0;}
.holo-hr + .foot{margin-top:0;}
.foot{background:var(--slate-950);color:#fff;padding:var(--space-2xl) 0 var(--space-lg);margin-top:var(--space-2xl);position:relative;z-index:1;}
.foot__in{max-width:1200px;margin:0 auto;padding:0 var(--space-md);display:grid;grid-template-columns:1.2fr 2.4fr;gap:var(--space-xl);align-items:start;}
@media(max-width:880px){.foot__in{grid-template-columns:1fr;gap:var(--space-lg);}}
.foot__brand{isolation:isolate;}
.foot__mark{display:block;color:#fff;margin-bottom:16px;}
.foot__mark svg{height:38px;width:auto;display:block;}
/* the three-word signature: stacked display lines, landing one by one (site.js).
   Each line is a steel foil (.hl--steel): the engine injects a canvas as the
   span's first child, which inherits the span's opacity - so the staggered
   fade below keeps working on the foil itself. */
.foot__tag{font-family:var(--font-display);font-weight:700;font-size:22px;line-height:1.45;color:#fff;margin:0;letter-spacing:-0.01em;}
.foot__tag span{display:block;opacity:0;transform:translateY(20px);transition:opacity .6s var(--ease-silk),transform .6s var(--ease-silk);}
.foot__tag span.in{opacity:1;transform:none;}
/* steel spans on the dark footer: strip the pill fallback chrome so the
   PRE-engine glyphs read as plain white lines (not ink-on-gradient pills);
   display:block outranks .hl.hl-gl{display:inline-block} so the words keep
   stacking after the engine upgrades. POST-engine, the higher-specificity
   .hl.hl--steel.hl-gl{color:transparent} (holo-fallback.css) still wins over
   the color here, so the visible glyphs become the foil canvas. */
/* width:fit-content: the steel glyph raster centers text in the span's box,
   so a full-width block drifts the words toward the column center - hugging
   the text keeps the lines flush-left with the logo */
.foot__tag span.hl{display:block;width:fit-content;background:none;box-shadow:none;padding:0;border-radius:0;z-index:0;color:#fff;}
@media(prefers-reduced-motion:reduce){.foot__tag span{opacity:1;transform:none;transition:none;}}
.foot__cols{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
@media(max-width:680px){.foot__cols{grid-template-columns:repeat(2,1fr);}}
.foot__col h4{font-size:14px;font-weight:700;color:var(--slate-400);margin:0 0 16px;}
.foot__col a{display:block;font-size:15px;color:rgba(255,255,255,0.86);padding:8px 0;}
.foot__col a:hover{color:#fff;}
.foot__legal{max-width:1200px;margin:var(--space-xl) auto 0;padding:var(--space-md) var(--space-md) 0;display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,0.12);font-size:14px;color:rgba(255,255,255,0.5);}

/* ---------- fab tooltips (palette brush + comment bubble) ---------- */
[data-fab-tip]{position:relative;}
[data-fab-tip]::after{content:attr(data-fab-tip);position:absolute;right:56px;top:50%;transform:translateY(-50%);background:var(--ink);color:#fff;font-family:var(--font-body);font-size:14px;font-weight:600;padding:4px 12px;border-radius:var(--radius-pill);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s ease;}
[data-fab-tip]:hover::after{opacity:1;}

/* ---------- deck-scroll: the deck's thin progress line (injected by deck-scroll.js) ----------
   MONOCHROME: ink on light shells, white on dark shells - it follows the concept
   system automatically by reading the page's own ink (--page-ink, concepts.css). */
.scroll-progress{position:fixed;top:0;left:0;height:4px;width:0;background:var(--page-ink,var(--slate-950));z-index:60;pointer-events:none;}

/* ---------- subpage hero scaffold (build each page out in its own [slug].css) ---------- */
.sub{min-height:72vh;display:flex;align-items:center;}
.sub__hero{max-width:1200px;margin:0 auto;padding:96px 24px;text-align:center;}
.sub__h{font-family:var(--font-display);font-weight:700;font-size:clamp(40px,7vw,88px);line-height:1.04;letter-spacing:-0.03em;color:var(--ink);margin:0;}
.sub__lead{font-size:22px;line-height:1.5;color:var(--ink);max-width:42ch;margin:24px auto 32px;}
