/* ── HOMEPAGE ONLY — the dark "shop floor" layer ──────────────────────────
   Loaded by index.html AFTER site.css and cart.css, and by nothing else.
   Everything here is scoped to `body.home` so it (a) outranks site.css's
   bare selectors without !important, and (b) is provably incapable of
   reaching products/quote/bricks/fidget, which stay cream.

   The nav and footer MARKUP still come from site.css — the mobile drawer,
   the 48px tap targets and the .nav-quote fallback are all shared code.
   This file only recolours them. Do not fork the nav here.
   ──────────────────────────────────────────────────────────────────────── */
body.home{
  --hf-bg:#141311; --hf-bg-2:#1c1a17; --hf-bg-3:#24211d;
  --hf-cream:#f4efe3; --hf-dim:#a49a8b; --hf-dim-2:#6f675c;
  --hf-crimson:#c21b1b; --hf-crimson-d:#990000;
  --hf-gold:#b8893b; --hf-ok:#5fbf7f;
  --hf-line:rgba(244,239,227,.13); --hf-line-2:rgba(244,239,227,.28);
  background:var(--hf-bg);color:var(--hf-cream);
}
body.home ::selection{background:var(--hf-crimson);color:var(--hf-cream)}
/* site.css focuses with #990000, which is nearly invisible on #141311 */
body.home :focus-visible{outline:2px solid var(--hf-gold);outline-offset:3px}
body.home section{padding:clamp(3.6rem,7.5vw,6rem) 0}

/* ── SHARED CHROME, RECOLOURED ──────────────────────────────────────── */
body.home nav[aria-label="Primary"]{
  background:rgba(20,19,17,.86);border-bottom:1px solid var(--hf-line);box-shadow:none;
}
body.home .brand{color:var(--hf-cream)}
body.home .brand small{color:var(--hf-dim-2)}
body.home .nav-links a{color:var(--hf-cream);font-family:var(--mono);font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;font-weight:400}
body.home .nav-links a:hover,body.home .nav-links a:focus-visible{color:var(--hf-crimson)}
body.home .nav-links a::after,body.home .nav-links a[aria-current="page"]::after{background:var(--hf-crimson)}
body.home .nav-links.open{background:rgba(20,19,17,.98);border-bottom-color:var(--hf-line);box-shadow:0 10px 26px -16px rgba(0,0,0,.8)}
body.home .nav-links.open li+li:not(.nav-quote){border-top-color:var(--hf-line)}
body.home .nav-toggle{border-color:var(--hf-line-2);color:var(--hf-cream)}
body.home .nav-cta{background:var(--hf-crimson);color:var(--hf-cream);box-shadow:0 2px 0 var(--hf-crimson-d)}
body.home .nav-cta:hover{box-shadow:0 4px 0 var(--hf-crimson-d)}
/* the cart button cart.js injects into .nav-right */
body.home .cart-btn{border-color:var(--hf-line-2);color:var(--hf-cream)}
body.home .cart-btn:hover{border-color:var(--hf-crimson);color:var(--hf-crimson)}
body.home .cart-btn .cn{background:rgba(244,239,227,.16);color:var(--hf-cream)}
body.home .cart-btn.has .cn{background:var(--hf-crimson);color:var(--hf-cream)}

body.home .btn-primary{background:var(--hf-crimson);color:#fff;box-shadow:none;border-radius:6px}
body.home .btn-primary:hover{background:var(--hf-crimson-d);transform:none}
body.home .btn-ghost{border-color:var(--hf-line-2);color:var(--hf-cream);background:rgba(20,19,17,.4);backdrop-filter:blur(6px);border-radius:6px}
body.home .btn-ghost:hover{border-color:var(--hf-cream);background:rgba(244,239,227,.1);transform:none}

body.home footer{background:var(--hf-bg);border-top:1px solid var(--hf-line);color:var(--hf-dim)}
body.home footer p,body.home .foot-in p{color:var(--hf-dim-2)}
body.home footer a{color:var(--hf-dim)}
body.home footer a:hover{color:var(--hf-cream)}
body.home .fb span{color:var(--hf-crimson)}
body.home .foot-nav{font-family:var(--mono);font-size:.7rem;letter-spacing:.12em;text-transform:uppercase}

/* ── TYPE ── */
body.home .kicker{font-family:var(--mono);font-size:.68rem;letter-spacing:.24em;text-transform:uppercase;color:var(--hf-gold);display:block}
body.home .shead{display:grid;gap:.8rem;margin-bottom:2.4rem;max-width:52rem}
body.home .shead h2{font-size:clamp(1.9rem,4.4vw,3rem);font-weight:900;letter-spacing:-.035em;line-height:1.03}
body.home .shead p{color:var(--hf-dim)}

/* ── HERO (own class: site.css's .hero is the old cream grid) ── */
body.home .hhero{position:relative;overflow:hidden;min-height:clamp(560px,88vh,860px);display:flex;align-items:center;padding:clamp(7.5rem,14vw,9rem) 0 clamp(3rem,7vw,5rem)}
.hhero-media{position:absolute;inset:0;z-index:0;background:#0e0d0c center/cover no-repeat}
.hhero-media video{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.85) contrast(1.04)}
.hhero-scrim{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(20,19,17,.96) 0%,rgba(20,19,17,.88) 32%,rgba(20,19,17,.46) 58%,rgba(20,19,17,.14) 100%),
    linear-gradient(to bottom,rgba(20,19,17,.72) 0%,rgba(20,19,17,.18) 26%,rgba(20,19,17,.55) 78%,#141311 100%);}
.hhero-plate{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.7;
  background-image:linear-gradient(rgba(244,239,227,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(244,239,227,.13) 1px,transparent 1px);
  background-size:44px 44px;mask-image:radial-gradient(90% 70% at 50% 10%,#000 10%,transparent 70%)}
.hhero-in{position:relative;z-index:3;width:100%}
body.home .hhero h1{font-size:clamp(2.9rem,9vw,6.6rem);font-weight:900;letter-spacing:-.045em;line-height:.9;margin:1.3rem 0 1.4rem;max-width:16ch;text-shadow:0 2px 30px rgba(0,0,0,.5)}
body.home .hhero h1 em{font-style:normal;color:var(--hf-crimson)}
.hhero-sub{color:var(--hf-cream);opacity:.86;font-size:clamp(1.02rem,1.7vw,1.22rem);max-width:44ch;text-shadow:0 1px 16px rgba(0,0,0,.6)}
.hhero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin:2.1rem 0 0}
.hhero-now{display:inline-flex;align-items:center;gap:.5rem;margin-top:2.2rem;font-family:var(--mono);font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;color:var(--hf-dim);background:rgba(20,19,17,.55);border:1px solid var(--hf-line);border-radius:999px;padding:.4rem .8rem;backdrop-filter:blur(6px)}
.hhero-now i{width:6px;height:6px;border-radius:50%;background:var(--hf-crimson);animation:hfBlink 1.8s infinite}
@keyframes hfBlink{50%{opacity:.25}}
/* ── FLEET BAR ── */
.fleet{border-block:1px solid var(--hf-line);background:var(--hf-bg-2);position:relative;z-index:4}
.fleet-in{display:grid;grid-template-columns:auto 1fr;gap:clamp(1rem,4vw,3rem);align-items:center;max-width:1200px;margin:0 auto;padding:1.3rem clamp(1.25rem,4vw,2rem)}
.fleet-lab{font-family:var(--mono);font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;color:var(--hf-dim-2);line-height:1.8}
.fleet-lab b{display:block;color:var(--hf-cream);font-size:1.5rem;letter-spacing:-.02em;font-family:var(--sans)}
.bays{display:flex;gap:.55rem;flex-wrap:wrap}
.bay{flex:1 1 92px;min-width:88px;border:1px solid var(--hf-line);border-radius:5px;padding:.55rem .6rem;background:var(--hf-bg-3)}
.bay .id{font-family:var(--mono);font-size:.62rem;letter-spacing:.12em;color:var(--hf-dim-2)}
.bay .st{display:flex;align-items:center;gap:.4rem;font-size:.78rem;font-weight:700;margin-top:.15rem}
.bay .st i{width:7px;height:7px;border-radius:50%;background:var(--hf-ok);flex-shrink:0}

/* ── SPOOL RACK ── */
.rack{overflow:hidden;border-bottom:1px solid var(--hf-line);background:var(--hf-bg)}
.rack-in{display:flex;gap:.5rem;padding:1.05rem 0;width:max-content;animation:hfSlide 46s linear infinite}
@keyframes hfSlide{to{transform:translateX(-50%)}}
.spool{width:30px;height:30px;border-radius:50%;border:1px solid rgba(0,0,0,.4);box-shadow:inset 0 0 0 6px rgba(20,19,17,.9),inset 0 0 0 7px rgba(255,255,255,.18)}

/* ── DOORWAY TILES ── */
.tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:1rem}
.tile{grid-column:span 2;position:relative;display:flex;flex-direction:column;gap:.5rem;text-decoration:none;background:var(--hf-bg-2);border:1px solid var(--hf-line);border-radius:10px;padding:1.6rem 1.5rem 1.4rem;overflow:hidden;transition:transform .18s,border-color .18s,background .18s}
.tile::after{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--hf-crimson);transform:scaleY(0);transform-origin:top;transition:transform .22s}
.tile:hover{transform:translateY(-4px);border-color:var(--hf-line-2);background:var(--hf-bg-3)}
.tile:hover::after,.tile:focus-visible::after{transform:scaleY(1)}
.tile.wide{grid-column:span 6;flex-direction:row;align-items:center;gap:clamp(1.2rem,3vw,2.2rem);padding:1.9rem 1.8rem}
.tile.wide .tbody{flex:1}
.tile .ti{font-size:1.8rem;line-height:1}
.tile.wide .ti{font-size:3rem}
body.home .tile h3{font-size:1.24rem;font-weight:800;letter-spacing:-.02em}
body.home .tile.wide h3{font-size:clamp(1.4rem,2.6vw,1.85rem)}
body.home .tile p{color:var(--hf-dim);font-size:.93rem}
.tile .badge{position:absolute;top:1.15rem;right:1.15rem;font-family:var(--mono);font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--hf-gold);border:1px solid rgba(184,137,59,.42);background:rgba(184,137,59,.1);padding:.24rem .55rem;border-radius:999px;font-weight:700}
.tile.wide .badge{position:static}
.tile .go{margin-top:.4rem;font-weight:800;font-size:.85rem;color:var(--hf-crimson)}
.tile.wide .thead{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;margin-bottom:.3rem}

/* ── PROMISE ── */
.promise{background:var(--hf-bg-2);border-block:1px solid var(--hf-line);padding:clamp(3.6rem,7.5vw,6rem) 0}
.promise-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.8rem,6vw,5rem);align-items:start}
.promise blockquote{font-size:clamp(1.4rem,3.4vw,2.3rem);font-weight:800;letter-spacing:-.03em;line-height:1.18;max-width:26ch;border-left:3px solid var(--hf-crimson);padding-left:1.4rem}
.pf{border-top:1px solid var(--hf-line);padding:1.15rem 0}
.pf b{display:block;font-size:1rem;margin-bottom:.25rem}
.pf p{color:var(--hf-dim);font-size:.9rem}

/* ── MATERIAL TABLE ── */
.tbl-scroll{overflow-x:auto;border:1px solid var(--hf-line);border-radius:8px}
body.home table{width:100%;border-collapse:collapse;min-width:640px;font-size:.92rem}
body.home th,body.home td{text-align:left;padding:.95rem 1.1rem;border-bottom:1px solid var(--hf-line)}
body.home thead th{font-family:var(--mono);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--hf-dim-2);background:var(--hf-bg-2)}
body.home tbody th{font-family:var(--mono);font-weight:700;font-size:1rem;color:var(--hf-cream);width:6.5rem}
body.home tbody tr:last-child th,body.home tbody tr:last-child td{border-bottom:0}
body.home tbody tr:hover{background:rgba(244,239,227,.035)}
body.home td .b{color:var(--hf-dim)}
.bars{display:inline-flex;gap:3px}
.bars i{width:8px;height:16px;border-radius:1px;background:rgba(244,239,227,.16)}
.bars i.on{background:var(--hf-crimson)}

/* ── PROCESS LEDGER ── */
.ledger{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1px;background:var(--hf-line);border:1px solid var(--hf-line);border-radius:8px;overflow:hidden}
.lg{background:var(--hf-bg-2);padding:1.7rem 1.5rem}
.lg .n{font-family:var(--mono);font-size:2.4rem;font-weight:700;color:var(--hf-crimson);line-height:1;opacity:.5}
body.home .lg h3{font-size:1.06rem;font-weight:800;margin:.75rem 0 .35rem}
body.home .lg p{color:var(--hf-dim);font-size:.9rem}

/* ── FAQ (same accordion markup + JS as before, recoloured) ── */
/* site.css owns the accordion mechanics (visibility swap, the + that rotates
   into an x). Only the colours change here — and #faq's cream section
   background, which is an id selector and needs body.home to outrank it. */
body.home #faq{background:transparent}
body.home .faq{border-top:1px solid var(--hf-line);border-bottom-color:var(--hf-line)}
body.home .faq button{background:transparent;color:var(--hf-cream)}
body.home .faq button:hover{color:var(--hf-crimson)}
body.home .faq button .pm{color:var(--hf-crimson)}
body.home .faq .ans p{color:var(--hf-dim)}

/* ── CLOSING CTA ── */
.hcta{background:var(--hf-crimson);text-align:center}
body.home .hcta h2{font-size:clamp(2rem,5.2vw,3.6rem);font-weight:900;letter-spacing:-.035em;line-height:1.02}
body.home .hcta p{color:rgba(255,255,255,.85);margin:1rem auto 2rem;max-width:38ch}
body.home .hcta .btn-primary{background:var(--hf-cream);color:#141311}
body.home .hcta .btn-primary:hover{background:#fff}
body.home .hcta .btn-ghost{border-color:rgba(255,255,255,.5);color:#fff;background:transparent}
body.home .hcta .btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
.hcta-btns{display:flex;gap:.8rem;justify-content:center;flex-wrap:wrap}

@media(max-width:900px){
  body.home .promise-grid{grid-template-columns:1fr}
  body.home .fleet-in{grid-template-columns:1fr}
}
@media(max-width:860px){
  body.home .tiles{grid-template-columns:repeat(2,1fr)}
  body.home .tile{grid-column:span 1}
  body.home .tile.wide{grid-column:span 2;flex-direction:column;align-items:flex-start;gap:.6rem}
  /* the copy sits fully over the footage here, so darken far harder */
  .hhero-scrim{background:linear-gradient(to bottom,rgba(20,19,17,.82) 0%,rgba(20,19,17,.72) 45%,rgba(20,19,17,.88) 80%,#141311 100%)}
}
@media(max-width:560px){
  body.home .tiles{grid-template-columns:1fr}
  body.home .tile.wide{grid-column:span 1}
}
/* Reduced motion kills the CSS animations (the spool marquee, the blinking bay
   dot, the hover transitions). It deliberately does NOT stop the hero film any
   more — joey asked for the clip to play on load, full stop. If that should be
   walked back, the hook is `prefers-reduced-motion` in the hero script in
   index.html, not a `display:none` here: hiding the <video> outright was the
   2026-08-27 bug that left phones with a dead still and no way to start it. */
@media(prefers-reduced-motion:reduce){
  body.home *{animation:none!important;transition:none!important}
}
