/* =====================================================================
   HERO — full CSS (replace the whole content of css/01-hero.css)
   Works with js/01-hero.js (3D scene + annotation lines drawn by JS)
   ===================================================================== */

section.hero{height:auto;--red:#e45f07;--red-hi:#ef8c1b;--ink:#04080f;--mute:#93a6b3;
  position:relative;overflow:hidden;color:#fff;min-height:720px;min-height:max(720px,100svh);
  background:radial-gradient(ellipse 55% 70% at 68% 46%,rgba(22,95,175,.30),transparent 70%),linear-gradient(180deg,#050a13,#03060b)}
section.hero svg{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
section.hero .hero-canvas{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}
section.hero .hero-canvas canvas{width:100%;height:100%;display:block}
section.hero .hero-grid{position:absolute;inset:0;width:auto;height:auto;z-index:2;pointer-events:none;
  background-image:linear-gradient(rgba(120,170,220,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(120,170,220,.06) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 75% 85% at 66% 52%,#000,transparent 80%);
  mask-image:radial-gradient(ellipse 75% 85% at 66% 52%,#000,transparent 80%)}

/* --hdr is set by 01-hero.js when the header floats over the hero */
section.hero .hero-in{position:relative;z-index:5;width:min(1600px,calc(100% - 160px));margin:0 auto;
  padding:calc(var(--hdr,0px) + 28px) 0 clamp(150px,20vh,190px)}
section.hero .hero-grid-l{position:static;z-index:5;width:min(700px,100%)}

/* ---------- kicker + eyebrow ---------- */
section.hero .hero-kicker{display:flex;align-items:center;gap:18px;margin:0 0 clamp(36px,7vh,72px);
  font:500 clamp(11px,.85vw,14px) "Space Grotesk",sans-serif;letter-spacing:.24em;text-transform:uppercase;color:#a9b8c2}
section.hero .hero-kicker i{width:30px;height:2px;background:var(--red)}
section.hero .hero-eyebrow{display:flex;align-items:center;gap:14px;margin:0 0 18px;
  font:500 clamp(11px,.85vw,14px) "Space Grotesk",sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#fff}
section.hero .hero-eyebrow i{flex:0 1 180px;height:1px;background:linear-gradient(90deg,var(--red),transparent)}

/* ---------- headline ---------- */
section.hero h1{white-space:normal;color:#fff;font-weight:800;letter-spacing:-.012em;text-shadow:0 2px 24px rgba(0,0,0,.5)}
section.hero h1 .o{color:var(--red)}
section.hero h1 .ln{display:block;overflow:visible;line-height:.98;width:auto;height:auto;flex:none;background:none;position:static}
section.hero h1 .ln>span{display:inline-block}
section.hero .hero-grid-l h1{font-size:clamp(36px,3.8vw,72px);line-height:.98}
section.hero .hero-desc{font-size:clamp(15px,1.1vw,19px);line-height:1.7;color:#d5e0e6;max-width:560px;margin:28px 0 36px}

/* ---------- CTA ---------- */
section.hero .hero-btns{display:flex;gap:21px;align-items:center}
section.hero .hero-btns .btn{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;
  height:clamp(52px,4.2vw,74px);min-width:clamp(210px,17vw,336px);padding:0 clamp(24px,1.9vw,38px);border:0;border-radius:0;
  background:var(--red);color:#fff;text-decoration:none;font:700 clamp(12px,.95vw,16px) "Space Grotesk",sans-serif;
  letter-spacing:.2em;text-transform:uppercase;transition:transform .25s,box-shadow .25s,background .25s}
section.hero .hero-btns .btn span{transition:transform .25s}
section.hero .hero-btns .btn:hover{background:var(--red-hi);transform:translateY(-2px);box-shadow:0 14px 32px rgba(245,18,27,.4)}
section.hero .hero-btns .btn:hover span{transform:translateX(5px)}
section.hero .hero-btns .btn:focus-visible,section.hero .scroll-hint:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* ---------- bottom stats bar ---------- */
section.hero .hero-stats{margin:0;position:relative;z-index:7;display:grid;grid-template-columns:repeat(2,1fr);
  background:linear-gradient(0deg,rgba(3,7,13,.94),rgba(3,7,13,.6));border-top:1px solid rgba(160,190,220,.12);
  padding:0 max(20px,calc((100% - min(1600px,100% - 160px)) / 2))}
section.hero .hero-stats .st{display:flex;align-items:center;gap:18px;padding:22px 24px;border-left:1px solid rgba(255,255,255,.16)}
section.hero .hero-stats .st svg{flex:none;width:40px;height:40px;color:#fff}
section.hero .hero-stats b{display:block;font:700 clamp(16px,1.15vw,21px) "Space Grotesk",sans-serif;letter-spacing:.02em}
section.hero .hero-stats span{display:block;margin-top:6px;font-size:clamp(10px,.75vw,13px);letter-spacing:.14em;text-transform:uppercase;color:var(--mute)}
section.hero .scroll-hint{display:none;align-items:center;gap:22px;color:#fff;text-decoration:none;
  font:600 12px/1 "Space Grotesk",sans-serif;letter-spacing:.28em;text-transform:uppercase}
section.hero .scroll-hint .bar{display:block;width:1px;height:46px;background:rgba(255,255,255,.7)}
section.hero .scroll-hint svg{width:40px;height:40px;transition:transform .3s}
section.hero .scroll-hint:hover svg{transform:translateY(4px)}

/* ---------- annotation labels; lines + dots are drawn by 01-hero.js ---------- */
section.hero .anno{position:absolute;display:none;z-index:6;opacity:0;pointer-events:none;color:#fff;
  font:700 clamp(13px,.85vw,16px)/1 "Space Grotesk",sans-serif;letter-spacing:.06em;text-transform:uppercase}
section.hero .anno .b{display:inline-flex;gap:22px;padding:19px 24px;white-space:nowrap;
  border:1px solid rgba(255,255,255,.2);background:rgba(4,9,17,.72);backdrop-filter:blur(4px)}
section.hero .anno .b em{font-style:normal;color:var(--red)}
section.hero .anno .cap{position:absolute;top:100%;left:0;right:0;margin-top:34px;display:flex;flex-direction:column;
  align-items:center;gap:12px;text-align:center;font:500 clamp(10px,.75vw,13px)/1.5 "Space Grotesk",sans-serif;letter-spacing:.14em;color:var(--mute)}
section.hero .anno .cap svg{width:clamp(40px,3vw,54px);height:clamp(40px,3vw,54px);color:#e6eef3}
section.hero .anno .cap.row{flex-direction:row;justify-content:flex-start;padding-left:22px;text-align:left;gap:22px}
section.hero .anno.a4 .cap{align-items:flex-start;text-align:left;padding-left:34px}
section.hero .hero-links{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;overflow:visible}
section.hero .hero-links .hl-line{fill:none;stroke:var(--red);stroke-width:1.6;opacity:.95}
section.hero .hero-links .hl-dot{fill:var(--red);stroke:none;filter:drop-shadow(0 0 8px rgba(255,30,35,.9))}

/* ---------- wide screens ---------- */
@media(min-width:1400px){
  section.hero .anno{display:block}
  section.hero .anno.a1{left:max(30%,520px);top:calc(var(--hdr,0px) + 12px)}
  section.hero .anno.a2{left:max(36%,560px);top:47%}
  section.hero .anno.a3{right:.7%;top:20%}
  section.hero .anno.a4{right:3%;top:50%}
  section.hero .hero-stats{position:absolute;left:0;right:0;bottom:0;grid-template-columns:1.15fr repeat(4,1fr)}
  section.hero .scroll-hint{display:flex}
  section.hero .hero-in{padding-bottom:clamp(150px,20vh,190px)}
}

/* ---------- smaller screens ---------- */
@media(min-width:1100px) and (max-width:1399px){
  section.hero .hero-stats{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:1399px){
  section.hero .hero-in{width:calc(100% - 64px);padding-bottom:56px}
}
@media(max-width:900px){section.hero .hero-canvas{opacity:.34}}
@media(max-width:600px){
  section.hero .hero-in{width:calc(100% - 40px)}
  section.hero .hero-btns{flex-wrap:wrap}
  section.hero .hero-stats .st{padding:16px 12px;gap:12px}
  section.hero .hero-stats .st svg{width:30px;height:30px}
}

/* ---------- fallback when 3D can't run (no WebGL / CDN blocked) ---------- */
section.hero.no-webgl .hero-canvas{background:url("../assets/hero-fallback.webp") 72% 52%/min(980px,72%) auto no-repeat;opacity:.95}
section.hero.no-webgl .anno{display:none!important}
