/* ───────── Scroll-built 3D hero ───────── */
.hb{position:relative;height:calc(100svh * 7.2);background:#0a101d}
.hb-stage{position:sticky;top:0;height:100svh;min-height:560px;overflow:hidden;isolation:isolate;
  background:radial-gradient(120% 70% at 66% 78%,#26324a 0,#121a2b 45%,#0a101d 80%)}
.hb-gl{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1s;touch-action:pan-y}
.hb.ready .hb-gl{opacity:1}
.hb-nogl .hb-gl{display:none}
.hb-stage::after{content:"";position:absolute;z-index:5;left:0;bottom:0;height:2px;width:100%;pointer-events:none;
  background:linear-gradient(90deg,transparent,var(--gold-hi),transparent) no-repeat;background-size:40% 100%;animation:hbLoad 1.2s linear infinite;transition:opacity .6s}
.hb.ready .hb-stage::after{opacity:0;animation:none}
@keyframes hbLoad{from{background-position:-60% 0}to{background-position:160% 0}}
.hb-shade{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(8,13,24,.82) 0,rgba(8,13,24,.5) 30%,rgba(8,13,24,0) 58%),
             linear-gradient(180deg,rgba(8,13,24,.5) 0,rgba(8,13,24,0) 20%,rgba(8,13,24,0) 72%,rgba(8,13,24,.82) 100%)}

/* copy */
.hb-copy{position:absolute;z-index:3;left:var(--gut,40px);top:50%;transform:translateY(-52%);width:min(520px,42vw);pointer-events:none}
.hb-copy a,.hb-copy button{pointer-events:auto}
.hb-copy .kicker{margin-bottom:clamp(10px,2.2vh,20px)}
.hb-title{font-family:var(--serif);font-weight:500;font-size:clamp(34px,min(4.7vw,8.4vh),80px);line-height:1.02;letter-spacing:.005em;text-wrap:balance;text-shadow:0 2px 30px rgba(8,12,22,.6)}
.hb-title em{font-style:normal;background:linear-gradient(180deg,#fbe9b0,#d4a84b 60%,#9a7424);-webkit-background-clip:text;background-clip:text;color:transparent}
.hb-in{opacity:0;animation:hbRise 1s cubic-bezier(.2,.8,.2,1) forwards}
.hb-top .hb-in:nth-child(1){animation-delay:.15s}.hb-top .hb-in:nth-child(2){animation-delay:.3s}.hb-top .hb-in:nth-child(3){animation-delay:.5s}
@keyframes hbRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

.hb-card{position:relative;margin-top:clamp(18px,3.4vh,34px);padding:clamp(14px,2.2vh,22px) clamp(16px,1.6vw,24px);border-radius:20px;
  border:1px solid rgba(255,255,255,.14);background:linear-gradient(160deg,rgba(255,255,255,.1),rgba(255,255,255,.03));
  backdrop-filter:blur(16px) saturate(1.2);-webkit-backdrop-filter:blur(16px) saturate(1.2);box-shadow:0 24px 60px -30px rgba(0,0,0,.7);
  transition:opacity .3s,transform .3s}
.hb-card::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:2px;border-radius:2px;background:linear-gradient(var(--gold-hi),var(--gold-lo))}
.hb.swap .hb-card{opacity:0;transform:translateY(8px)}
.hb-num{display:flex;align-items:baseline;gap:8px;font-family:var(--serif)}
.hb-num b{font-size:clamp(26px,3.6vh,34px);font-weight:700;color:var(--gold-hi);letter-spacing:.04em}
.hb-num span{font-size:12px;letter-spacing:.2em;color:rgba(238,241,247,.5)}
.hb-stage-title{font-family:var(--serif);font-weight:500;font-size:clamp(20px,3.1vh,28px);letter-spacing:.06em;text-transform:uppercase;margin-top:6px}
.hb-stage-text{margin-top:8px;font-size:clamp(13px,1.9vh,15.5px);line-height:1.65;font-weight:300;color:rgba(238,241,247,.82);min-height:3.3em}

.hb-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:clamp(16px,3vh,28px);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .6s,transform .6s}
.hb[data-stage="7"] .hb-cta{opacity:1;transform:none}
.hb[data-stage="7"] .hb-cta a,.hb[data-stage="7"] .hb-cta button{pointer-events:auto}

/* scroll hint */
.hb-hint{position:absolute;z-index:3;left:50%;bottom:clamp(86px,13vh,120px);transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;
  font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:rgba(238,241,247,.7);transition:opacity .5s;pointer-events:none}
.hb-hint i{width:22px;height:36px;border:1.5px solid rgba(255,255,255,.5);border-radius:14px;position:relative}
.hb-hint i::after{content:"";position:absolute;left:50%;top:7px;width:3px;height:7px;margin-left:-1.5px;border-radius:2px;background:var(--gold-hi);animation:hbWheel 1.6s ease-in-out infinite}
@keyframes hbWheel{0%{opacity:0;transform:translateY(0)}30%{opacity:1}100%{opacity:0;transform:translateY(12px)}}
.hb.moved .hb-hint{opacity:0}

/* stage stepper */
.hb-steps{position:absolute;z-index:4;left:var(--gut,40px);right:var(--gut,40px);bottom:clamp(18px,3.6vh,34px)}
.hb-bar{height:2px;border-radius:2px;background:rgba(255,255,255,.16);overflow:hidden;margin-bottom:12px}
.hb-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold-lo),var(--gold-hi))}
.hb-steps ol{list-style:none;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}
.hb-steps button{display:flex;align-items:baseline;gap:8px;width:100%;padding:4px 0;text-align:left;color:rgba(238,241,247,.45);transition:color .3s}
.hb-steps b{font-family:var(--serif);font-size:12px;letter-spacing:.14em;font-weight:600}
.hb-steps span{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-steps button:hover{color:#fff}
.hb-steps li.done button{color:rgba(238,241,247,.72)}
.hb-steps li.on button{color:var(--gold-hi)}
.hb-steps li.on b{text-shadow:0 0 14px rgba(243,217,142,.6)}

@media (min-width:1001px) and (min-height:600px){ body.home .hb{scroll-snap-align:start} }
@media (max-height:700px) and (min-width:1001px){ .hb-stage-text{font-size:13px} .hb-card{padding:12px 16px} }
@media (max-width:1180px) and (min-width:1001px){ .hb-copy{width:min(440px,44vw)} .hb-steps span{font-size:10.5px} }

/* ── phone & tablet: scene fills the screen, copy sits on top, stepper becomes a compact bar ── */
@media (max-width:1000px){
  .hb{height:calc(100svh * 6.4)}
  .hb-stage{min-height:520px}
  .hb-shade{background:linear-gradient(180deg,rgba(8,13,24,.9) 0,rgba(8,13,24,.55) 34%,rgba(8,13,24,0) 52%),linear-gradient(0deg,rgba(8,13,24,.85) 0,rgba(8,13,24,0) 20%)}
  .hb-copy{position:static;transform:none;width:auto}
  .hb-top{position:absolute;z-index:3;left:0;right:0;top:calc(var(--nav-h,56px) + var(--safe-t,0px) + 14px);padding:0 var(--gut,20px);pointer-events:none}
  .hb-title{font-size:clamp(28px,8.2vw,46px)}
  .hb-copy .kicker{margin-bottom:8px;font-size:10.5px}
  .hb-card{margin-top:12px;padding:12px 14px;border-radius:16px;max-width:520px}
  .hb-num b{font-size:22px}
  .hb-stage-title{font-size:17px;margin-top:2px}
  .hb-stage-text{font-size:12.5px;line-height:1.55;min-height:3.1em;margin-top:5px}
  .hb-cta{position:absolute;z-index:4;left:var(--gut,20px);right:var(--gut,20px);bottom:calc(var(--tab-h,0px) + var(--safe-b,0px) + 78px);margin:0;justify-content:center}
  .hb-cta .btn{flex:1 1 150px;justify-content:center;padding:0 16px}
  .hb-hint{bottom:calc(var(--tab-h,0px) + var(--safe-b,0px) + 74px)}
  .hb-steps{left:var(--gut,20px);right:var(--gut,20px);bottom:calc(var(--tab-h,0px) + var(--safe-b,0px) + 30px)}
  .hb-steps ol{display:block;position:relative;height:20px}
  .hb-steps li{display:none;position:absolute;inset:0}
  .hb-steps li.on{display:block}
  .hb-steps button{pointer-events:none;justify-content:center;font-size:12px}
  .hb-steps li.on span{font-size:12px}
}
@media (max-width:1000px) and (max-height:640px){ .hb-stage-text{display:none} }
@media (prefers-reduced-motion:reduce){ .hb-in{animation:none;opacity:1} .hb-hint i::after{animation:none} }
