/* Claimtorch homepage hero · r3 B "atmosphere" r2 · DRAFT 17 Nov 2026
   Self-contained: every rule is scoped to .hx. Needs site.css (fonts, .wrap, .btn, .btn-amber, .nav).
   CSP-safe: no inline styles, no data: URIs (grain is /assets/hero/hx-grain-256.png).
   Ember = layered radial gradients + grain overlay (the grain dithers the gradients, so no banding). No beam, cone or spotlight. */

.hero.hx{
  --hx-bg:#0C0D10; --hx-cream:#FBF6EE; --hx-amber:#FFB627; --hx-deep:#C98300;
  --hx-sub:#B4B7BE; --hx-mute:#7C818B; --hx-rule:rgba(251,246,238,.08);
  position:relative; isolation:isolate; overflow:hidden;
  display:flex; flex-direction:column;
  min-height:max(640px, 100svh);
  background:var(--hx-bg); color:var(--hx-cream);
}
/* ---------- atmosphere ---------- */
.hx .hx-ember,.hx .hx-grain,.hx .hx-vig{position:absolute;inset:0;pointer-events:none}
.hx .hx-ember{z-index:-3;transform-origin:46% 100%;
  background:
    /* hot core, a little right of centre, sitting just under the horizon */
    radial-gradient(34% 15% at 57% 101%, rgba(255,182,39,.20) 0%, rgba(255,182,39,.07) 45%, rgba(255,182,39,0) 100%),
    /* deep amber body, left of centre */
    radial-gradient(70% 34% at 41% 106%, rgba(201,131,0,.34) 0%, rgba(201,131,0,.14) 42%, rgba(201,131,0,0) 100%),
    /* wide warm-brown wash that carries it to the edges, asymmetric */
    radial-gradient(110% 52% at 30% 112%, rgba(110,58,12,.30) 0%, rgba(110,58,12,.10) 48%, rgba(110,58,12,0) 100%),
    radial-gradient(80% 40% at 86% 110%, rgba(90,48,14,.20) 0%, rgba(90,48,14,0) 100%);
  animation:hx-breathe 10s ease-in-out infinite}
.hx .hx-vig{z-index:-2;background:
    radial-gradient(120% 90% at 50% 40%, rgba(12,13,16,0) 55%, rgba(6,7,9,.55) 100%),
    linear-gradient(180deg, rgba(12,13,16,.0) 0%, rgba(12,13,16,0) 100%)}
.hx .hx-grain{z-index:-1;background:url(/assets/hero/hx-grain-256.png) repeat;background-size:256px 256px;opacity:.55}
@keyframes hx-breathe{0%,100%{opacity:.82;transform:scale(1)}50%{opacity:1;transform:scale(1.035,1.06)}}

/* ---------- layout ---------- */
.hx .hx-body{flex:1;display:flex;align-items:center;text-align:center;padding:clamp(48px,7.5vh,104px) 0 clamp(40px,6vh,80px)}
.hx .hx-body>.wrap{width:100%}
.hx h1{margin:0 auto;font-family:"Nunito",system-ui,sans-serif;font-weight:800;font-feature-settings:"kern","liga";
  font-size:clamp(52px, 1.25rem + 6vw, 116px);line-height:1;letter-spacing:-.036em;white-space:nowrap;color:var(--hx-cream);
  text-wrap:balance}
.hx h1 .hx-l{display:block}
.hx h1 .hx-m{display:none}
.hx h1 .hx-fade{padding-bottom:.08em;/* room for descenders under background-clip */
  background:linear-gradient(180deg,#F3EEE6 0%,#B9B4AC 52%,#6F6C68 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.hx .hx-sub{margin:clamp(32px,4.2vh,48px) auto 0;max-width:44em;font-size:clamp(17px, .9rem + .35vw, 21px);line-height:1.55;
  letter-spacing:-.005em;color:var(--hx-sub);text-wrap:pretty}
.hx .hx-cta{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:clamp(32px,4.4vh,48px)}
.hx .hx-ghost{background:rgba(251,246,238,.035);color:var(--hx-cream);box-shadow:inset 0 0 0 1px rgba(251,246,238,.22)}
.hx .hx-ghost:hover{box-shadow:inset 0 0 0 1px rgba(251,246,238,.6)}
.hx .btn-amber{box-shadow:0 1px 0 rgba(255,255,255,.25) inset}

/* ---------- horizon + proof row ---------- */
.hx .hx-proof{position:relative;z-index:1}
.hx .hx-proof::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,rgba(255,182,39,0) 4%,rgba(255,182,39,.18) 26%,rgba(255,196,90,.42) 52%,rgba(255,182,39,.16) 78%,rgba(255,182,39,0) 96%)}
.hx .hx-proof ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;
  min-height:72px;gap:8px 0;font-size:13.5px;letter-spacing:.005em;color:#9EA2AA}
.hx .hx-proof li{display:inline-flex;align-items:center}
.hx .hx-proof li+li::before{content:"";width:3px;height:3px;border-radius:50%;background:#5A5F69;margin:0 18px}

/* ---------- motion (load) ---------- */
@keyframes hx-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes hx-in{from{opacity:0}to{opacity:1}}
.hx h1 .hx-l{animation:hx-up 1.1s both cubic-bezier(.2,.7,.1,1)}
.hx h1 .hx-l:nth-child(1){animation-delay:.08s}
.hx h1 .hx-l:nth-child(2){animation-delay:.24s}
.hx .hx-sub{animation:hx-up 1s .46s both cubic-bezier(.2,.7,.1,1)}
.hx .hx-cta{animation:hx-up 1s .6s both cubic-bezier(.2,.7,.1,1)}
.hx .hx-proof{animation:hx-in 1.4s .85s both ease-out}
@media (prefers-reduced-motion:reduce){
  .hx .hx-ember,.hx h1 .hx-l,.hx .hx-sub,.hx .hx-cta,.hx .hx-proof{animation:none}
}

/* ---------- large screens ---------- */

/* ---------- mobile: left-aligned statement ---------- */
@media (max-width:760px){
  .hero.hx{min-height:max(600px, 100svh)}
  .hx .hx-body{text-align:left;align-items:center;padding:56px 0 40px}
  .hx h1{font-size:clamp(40px, 12.6vw, 60px);line-height:1;letter-spacing:-.04em;margin:0;text-wrap:nowrap;white-space:nowrap}
  .hx h1 .hx-l{display:inline}
  .hx h1 .hx-m{display:inline}
  .hx .hx-sub{margin:28px 0 0;font-size:17px;max-width:none}
  .hx .hx-cta{flex-direction:column;align-items:stretch;gap:12px;margin-top:36px}
  .hx .hx-cta .btn{justify-content:center}
  .hx .hx-ember{transform-origin:40% 100%;background:
    radial-gradient(60% 13% at 60% 101%, rgba(255,182,39,.20) 0%, rgba(255,182,39,0) 100%),
    radial-gradient(130% 30% at 38% 106%, rgba(201,131,0,.34) 0%, rgba(201,131,0,.12) 45%, rgba(201,131,0,0) 100%),
    radial-gradient(180% 44% at 30% 110%, rgba(110,58,12,.30) 0%, rgba(110,58,12,0) 100%)}
  .hx .hx-proof ul{flex-direction:column;align-items:flex-start;justify-content:center;padding:20px 0 24px;gap:8px;font-size:13px}
  .hx .hx-proof li::before,.hx .hx-proof li+li::before{content:"";display:block;flex:none;width:3px;height:3px;border-radius:50%;background:#6A6F79;margin:0 12px 0 0}
}
