/* Arsiare v3.4 Home layout. Loaded last.
   Hero: centered, no orbit graphic. Stats: editable in Dashboard > Home Stats.
   Focus cards: asymmetric "bento" grid fed by Dashboard > Focus Areas (any number of cards; the pattern repeats every 4). */

/* ---------- Hero: centered, vertically middle ---------- */
html body .hero-v2{min-height:0}
html body .hero-v2 .hero-layout{display:grid;grid-template-columns:1fr;place-items:center;min-height:clamp(460px,70vh,660px);padding-top:72px;padding-bottom:24px;text-align:center}
html body .hero-v2 .hero-copy{display:flex;flex-direction:column;align-items:center;max-width:920px;padding:0}
html body .hero-v2 h1{max-width:none;margin:0 0 24px;text-wrap:balance}
html body .hero-v2 .lead{margin:0 auto;max-width:34em}
html body .hero-v2 .actions{justify-content:center;align-items:center;margin-top:34px}
html body .hero-bottom{justify-content:center}
@media(max-width:820px){
  html body .hero-v2 .hero-layout{min-height:0;padding-top:56px;padding-bottom:40px}
  html body .hero-v2 .actions{flex-direction:column;align-items:stretch;width:100%;max-width:340px}
}

/* ---------- Stats: 1 to 3 numbers, centered under the hero ---------- */
html body .stats{padding:64px 0 0}
html body .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:36px 0}
html body .stat{padding:0 24px;text-align:center}
html body .stat+.stat{padding-left:24px;border-left:1px solid var(--gl-line)}
html body .stat::before{margin-left:auto;margin-right:auto}
@media(max-width:700px){
  html body .stat+.stat{border-left:0;border-top:1px solid var(--gl-line);padding:28px 24px 0}
}

/* ---------- Focus cards: Tangem-style bento (rows alternate wide/narrow, then narrow/wide; repeats every 4) ---------- */
.bento{display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:clamp(300px,31vw,380px);gap:16px}
html body .bento .bn-card{position:relative;display:block;overflow:hidden;padding:0;min-height:0;grid-column:span 5;text-decoration:none;
  background:linear-gradient(150deg,var(--forest-md),var(--forest-dk))!important;border:1px solid rgba(201,162,39,.28)!important;border-radius:28px!important}
html body .bento .bn-card:nth-child(4n+1),html body .bento .bn-card:nth-child(4n+4){grid-column:span 7}
html body .bento .bn-card:last-child:nth-child(odd){grid-column:1/-1}

/* art fills the lower part of the card, text sits on top-left */
html body .bento .eco-art{position:absolute!important;left:0;right:0;bottom:0;top:auto;height:66%;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body .bento .eco-content{position:absolute;inset:0;z-index:2;display:block;padding:26px 28px;pointer-events:none}
html body .bento .eco-content h3{margin:0 0 6px;font-size:1.2rem;font-weight:600;max-width:70%;color:#FBF4DC!important}
html body .bento .eco-content p{margin:0;max-width:min(26em,68%);font-size:.92rem;line-height:1.55;color:rgba(251,244,220,.72)!important}
html body .bento .eco-arrow{position:absolute;right:18px;bottom:18px;width:36px;height:36px;color:#FBF4DC!important;background:rgba(251,244,220,.12);border:1px solid rgba(251,244,220,.28);pointer-events:auto}
html body .bento .bn-card:hover .eco-arrow{background:var(--gold);color:var(--forest-dk)!important}

@media(max-width:1050px){
  .bento{grid-template-columns:repeat(2,1fr);grid-auto-rows:clamp(280px,40vw,340px)}
  html body .bento .bn-card:nth-child(n){grid-column:span 1}
  html body .bento .bn-card:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:700px){
  .bento{grid-template-columns:1fr;grid-auto-rows:300px}
  html body .bento .bn-card:nth-child(n){grid-column:1/-1}
  html body .bento .eco-content h3,html body .bento .eco-content p{max-width:85%}
}

/* ---------- Social + WhatsApp icons ---------- */
html body .ft .ft-social a{width:2.5rem;height:2.5rem}
html body .ft .ft-social a svg{width:18px;height:18px}
html body .lt .lt-social{gap:1.25rem}
html body .lt .lt-social a{display:inline-flex;align-items:center;gap:.45rem}
html body .lt .lt-social a svg{width:18px;height:18px}
html body .lt .lt-btn--wa svg{width:18px;height:18px;flex:none}
html body .lt .lt-btn--wa{gap:.5rem}

/* ---------- v3.5 Hero video: circuit animation behind the text ---------- */
html body .hero-v2{position:relative;isolation:isolate}
html body .hero-v2 .hero-media{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
html body .hero-v2 .hero-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:screen;opacity:.34;filter:sepia(1) hue-rotate(35deg) saturate(1.4) brightness(.95)}
html body .hero-v2 .hero-media::after{content:"";position:absolute;inset:0;background:radial-gradient(70% 55% at 50% 48%,rgba(20,58,38,.78),rgba(20,58,38,0) 72%),linear-gradient(180deg,rgba(20,58,38,.35),rgba(20,58,38,0) 30%,rgba(20,58,38,0) 70%,rgba(20,58,38,.55))}
html body .hero-v2 .hero-layout,html body .hero-v2 .hero-bottom{position:relative;z-index:1}
@media (prefers-reduced-motion:reduce){html body .hero-v2 .hero-media video{display:none}html body .hero-v2 .hero-media{background:url(hero-circuit.jpg) center/cover;opacity:.3;mix-blend-mode:screen}}
@media (max-width:680px){html body .hero-v2 .hero-media video{opacity:.28}}
