/* Geopolitiks: hero.css (foundation). Pinned, scroll-scrubbed map plate. */
.hero { position: relative; background: var(--bg); }
.hero__track { position: relative; height: 420vh; height: 420svh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__lattice {
  position: absolute; inset: -64px; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 0 0, rgba(217, 179, 108, .55) 0 1px, transparent 1.5px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0 25%, transparent 78%);
}
.hero__vig {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(5, 7, 10, .96) 0, rgba(5, 7, 10, .78) 22%, rgba(5, 7, 10, 0) 52%),
    linear-gradient(to bottom, rgba(5, 7, 10, .72) 0, rgba(5, 7, 10, 0) 18%),
    radial-gradient(ellipse at 50% 42%, rgba(5, 7, 10, 0) 55%, rgba(5, 7, 10, .8) 100%);
}

/* corner registration marks */
.hero__reg { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__reg i { position: absolute; width: 18px; height: 18px; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.hero__reg i:nth-child(1) { top: 76px; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); border-top-width: 1px; border-left-width: 1px; }
.hero__reg i:nth-child(2) { top: 76px; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); border-top-width: 1px; border-right-width: 1px; }
.hero__reg i:nth-child(3), .hero__reg i:nth-child(4) { display: none; }

/* HUD */
.hero__hud { position: absolute; z-index: 3; top: 124px; display: flex; flex-direction: column; gap: var(--s2); pointer-events: none; }
.hero__hud--l { left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
.hero__hud--r { right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); align-items: flex-end; }
.hero__hudt { font-family: var(--f-display); font-weight: 600; font-size: clamp(15px, 1.2vw, 19px); letter-spacing: .06em; color: var(--text); }
.hero__coords { display: flex; gap: var(--s5); }
.hero__coords div { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.hero__coords dt { color: var(--dim); font-size: 11px; }
.hero__coords dd { font-family: var(--f-label); font-size: 15px; font-weight: 500; letter-spacing: .08em; color: var(--text); font-variant-numeric: tabular-nums; }
.hero__meter { width: 100%; min-width: 180px; height: 1px; background: var(--line); position: relative; margin-top: var(--s2); }
.hero__meter i { position: absolute; inset: -1px 0; background: var(--gold); height: 3px; transform: scaleX(0); transform-origin: 0 50%; }

/* copy */
.hero__copy { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding-bottom: var(--s6); margin-inline: auto; pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero__row { will-change: transform; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: var(--s6); }
.hero__txt { grid-column: 1 / span 6; position: relative; }
.hero__cta { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s4); }
.hero__btns { display: flex; gap: var(--s3); }
.hero__plat { color: var(--muted); font-size: 11px; letter-spacing: .26em; }

.hero__intro { will-change: transform, opacity; }
.hero__kicker { margin-bottom: var(--s4); }
.hero__tag { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.4vw + 10px, 52px); line-height: 1.05; letter-spacing: .01em; margin-bottom: var(--s4); }
.hero__lede { font-size: var(--t-lead); line-height: 1.35; color: var(--muted); max-width: 26em; }

.hero__beats { position: absolute; left: 0; top: 0; right: 0; }
.beat { position: absolute; left: 0; top: 0; max-width: 24em; opacity: 0; transform: translateY(24px); will-change: transform, opacity; }
.beat .label { display: block; margin-bottom: var(--s4); }
.beat p { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.6vw + 10px, 34px); line-height: 1.18; }

.hero__markwrap { transform-origin: 0 100%; will-change: transform, opacity; }
.hero__hudt.swap { animation: hudswap .8s var(--ease); }
@keyframes hudswap { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.hero__mark { color: var(--text); font-size: calc((100vw - var(--gutter) * 2) / 8.9); line-height: .84; padding-bottom: .02em; }

@media (max-width: 899px) {
  .hero__reg i:nth-child(1), .hero__reg i:nth-child(2) { top: 68px; }
  .hero__hud { top: 108px; }
  .hero__hud--r .hero__coords div:not(:last-child) { display: none; }
  .hero__hud--r .hero__meter { min-width: 120px; }
  .hero__hudt { font-size: 14px; }
  .hero__row { display: flex; flex-direction: column; align-items: stretch; gap: var(--s5); margin-bottom: var(--s5); }
  .hero__txt { min-height: 138px; }
  .hero__cta { align-items: stretch; gap: var(--s3); }
  .hero__btns { width: 100%; }
  .hero__btns .btn { flex: 1 1 0; }
  .hero__btns .btn > * { padding: 0 var(--s3); }
  .hero__btns .btn .btn__ic { display: none; }
  .hero__plat { display: none; }
  .hero__lede { font-size: 18px; max-width: 22em; }
  .hero__tag { font-size: 26px; margin-bottom: var(--s3); }
  .hero__kicker { margin-bottom: var(--s3); }
  .beat p { font-size: 20px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .hero__lede { display: none; }
  .hero__txt { min-height: 90px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .hero__tag { font-size: 30px; }
  .hero__lede { font-size: 20px; }
}

/* reduced motion: one static frame, nothing pinned */
@media (prefers-reduced-motion: reduce) {
  .hero__track { height: 100vh; height: 100svh; }
  .hero__beats { display: none; }
}
