/* =========================================================
   Homepage hero — cinematic image sequence + technical overlay
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy-900); display: flex; flex-direction: column; }
.hero__media { position: absolute; inset: 0; z-index: -3; will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s var(--ease); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 60% 50%; }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: heroKenBurns 11s linear forwards; }
.hero__slide.is-leaving img { transform: scale(1.02); }
@keyframes heroKenBurns { from { transform: scale(1.12) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, 0, 0); } }

.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(12, 13, 26, .94) 0%, rgba(12, 13, 26, .78) 38%, rgba(12, 13, 26, .35) 75%, rgba(12, 13, 26, .25) 100%),
  linear-gradient(0deg, rgba(12, 13, 26, .9) 0%, rgba(12, 13, 26, 0) 40%),
  linear-gradient(180deg, rgba(12, 13, 26, .55) 0%, rgba(12, 13, 26, 0) 22%); }
.hero__grid { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .05; pointer-events: none; }
.hero__drawing { position: absolute; right: -4%; top: 50%; width: min(56vw, 760px); transform: translateY(-46%); z-index: -1; opacity: .32; pointer-events: none; color: #fff; }
.hero__drawing .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.hero.is-ready .hero__drawing .draw { animation: drawLine 3.2s var(--ease-out) forwards; animation-delay: calc(.6s + var(--i, 0) * .18s); }
.hero__drawing .accent { stroke: var(--green); }
.hero__drawing text { font-family: var(--font-mono); font-size: 10px; fill: currentColor; letter-spacing: .12em; opacity: 0; transition: opacity 1.2s 2.4s; }
.hero.is-ready .hero__drawing text { opacity: .85; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.hero__content { flex: 1; display: flex; align-items: center; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
.hero__eyebrow { color: var(--green); }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; max-width: 14ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.1em; }
.hero h1 .line > span { display: block; padding-bottom: .02em; }
.hero h1 .line:last-child > span { color: transparent; -webkit-text-stroke: 0; background: linear-gradient(90deg, #ffffff 0%, #cfe9cf 60%, #9fd49f 100%); -webkit-background-clip: text; background-clip: text; }
.hero__sub { font-size: clamp(17px, 1.45vw, 20px); color: rgba(255, 255, 255, .8); max-width: 54ch; margin: 30px 0 40px; line-height: 1.65; }
.hero .btn-row { gap: 16px; }

.hero__bar { position: relative; border-top: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(0deg, rgba(12, 13, 26, .6), rgba(12, 13, 26, 0)); }
.hero__bar-inner { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: stretch; }
.hero__co { padding: 22px 24px 24px 0; border-right: 1px solid rgba(255, 255, 255, .1); transition: background .3s; display: block; }
.hero__co + .hero__co { padding-left: 24px; }
.hero__co:hover { background: rgba(255, 255, 255, .04); }
.hero__co .mono { color: var(--green); font-size: 10.5px; display: block; margin-bottom: 6px; }
.hero__co strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.hero__co small { display: block; color: rgba(255, 255, 255, .6); font-size: 12.5px; margin-top: 2px; }
.hero__progress { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-left: 28px; min-width: 220px; }
.hero__progress-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); display: flex; justify-content: space-between; gap: 16px; }
.hero__progress-track { display: flex; gap: 6px; }
.hero__progress-track button { flex: 1; height: 2px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; padding: 6px 0; background-clip: content-box; }
.hero__progress-track button span { position: absolute; left: 0; top: 6px; height: 2px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.hero__progress-track button.is-active span { animation: heroProgress var(--slide-ms, 7000ms) linear forwards; }
.hero__progress-track button.is-done span { transform: scaleX(1); }
@keyframes heroProgress { to { transform: scaleX(1); } }

.hero__scroll { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: none; }

/* Initial (pre-animation) state only when JS is available */
.js .hero [data-hero-in] { opacity: 0; transform: translateY(24px); }
.js .hero h1 .line > span { transform: translateY(105%); }
.js .hero.is-ready [data-hero-in] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .hero.is-ready h1 .line > span { transform: none; transition: transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }

@media (max-width: 1024px) {
  .hero__bar-inner { grid-template-columns: repeat(2, 1fr); }
  .hero__co { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 16px 16px 16px 0 !important; }
  .hero__co:nth-child(even) { padding-left: 16px !important; border-right: 0; }
  .hero__progress { grid-column: 1 / -1; padding: 16px 0 20px; min-width: 0; }
  .hero__drawing { opacity: .18; width: 90vw; right: -30%; }
}
@media (max-width: 560px) {
  .hero__co small { display: none; }
  .hero__co strong { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active img { animation: none; transform: scale(1.02); }
  .hero__slide { transition-duration: .01s; }
  .hero__drawing .draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .hero__progress-track button.is-active span { animation: none; transform: scaleX(1); }
}
