/* ==========================================================================
   ZettaFort — Piece 01: hero + page chrome
   Extends assets/css/system.css. Defines no tokens, no radii, no font sizes.
   Type is carried entirely by .t-statement / .t-sub / .t-lead / .t-meta.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shell — full bleed, full viewport
   -------------------------------------------------------------------------- */
.hero{
  position:relative;
  display:flex;
  width:100%;
  min-height:100vh;
  min-height:100svh;
  overflow:hidden;
  isolation:isolate;
  border-bottom:1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   Media — the loop. Framed so the fort sits right of the statement column.
   -------------------------------------------------------------------------- */
/* Bounded slab, not atmosphere. design-system.md section 4: every image sits
   inside a hard-edged container with a terminating edge; violet must not
   diffuse behind body copy. Round 1's craft verdict was that our graphics were
   atmosphere where the reference's were structure — this is that correction. */
.hero__media{
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  left:46%;
  z-index:0;
  border-left:1px solid rgba(232,230,239,.24);
  overflow:hidden;
}
@media (max-width:980px){ .hero__media{left:0;border-left:0;opacity:.5} }
.hero__media::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,0) 34%);
}
.hero__media video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:52% 46%;
  background:var(--void);
}

/* Two-axis scrim. Horizontal keeps the statement column legible; vertical
   seats the nav and the stat rail back into the void. */
.hero__scrim{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  /* Vertical only. A horizontal wash is what made the slab dissolve into the
     page instead of terminating against it. The statement column sits on pure
     void; the slab keeps its hairline edge. */
  background:linear-gradient(180deg,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.20) 22%,
    rgba(0,0,0,.20) 60%,
    rgba(0,0,0,.90) 100%);
}

/* --------------------------------------------------------------------------
   The rig — the logo's rings, extracted and counter-rotating.
   Procedural, infinite, zero bytes. This is what keeps the frame alive
   before the clip exists.
   -------------------------------------------------------------------------- */
.hero__rig{
  position:absolute;
  z-index:1;
  right:clamp(24px,6vw,96px);
  top:50%;
  transform:translateY(-50%);
  width:clamp(220px,26vw,392px);
  aspect-ratio:1/1;
  pointer-events:none;
}
.hero__rig svg{width:100%;height:100%;overflow:visible}

/* --------------------------------------------------------------------------
   Frame — three rails: label, statement, instrument panel
   -------------------------------------------------------------------------- */
.hero__frame{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-rows:auto 1fr auto;
  width:100%;
  padding-inline:var(--gutter);
  padding-top:calc(var(--nav-h) + 44px);
  padding-bottom:76px;
}

.hero__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--gutter);
}
.hero__index{text-align:right}

.hero__body{
  align-self:end;
  padding-block:120px 64px;
}
.hero__h{
  max-width:min(940px,64vw);
  text-wrap:balance;
}
.hero__lead{
  max-width:min(720px,50vw);
  margin-top:28px;
}
.hero__actions{margin-top:36px}

/* Trailing glyph in the primary button rides on the system's 600ms ease. */
.hero__actions .btn svg{opacity:.9}

/* --------------------------------------------------------------------------
   Stat rail — hairline instrument panel, seated above the persistent control
   -------------------------------------------------------------------------- */
.hero__stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--hairline);
  margin:0;
}
.hero__stat{
  padding:26px 24px 0 0;
  transition:border-color 720ms var(--ease);
}
.hero__stat + .hero__stat{
  border-left:1px solid rgba(232,230,239,.24);
  padding-left:24px;
}
.hero__stat-v{
  margin:14px 0 0;
  color:var(--primary);
}

/* --------------------------------------------------------------------------
   Chrome adjustments — hero sits under a transparent nav
   -------------------------------------------------------------------------- */
.nav .brand-mark{
  transition:transform 900ms var(--ease);
}
.brand:hover .brand-mark{transform:rotate(-30deg)}

/* --------------------------------------------------------------------------
   1024 and below
   -------------------------------------------------------------------------- */
@media (max-width:1180px){
  .hero__h{max-width:min(760px,74vw)}
  .hero__lead{max-width:min(640px,64vw)}
}

@media (max-width:980px){
  .hero__media{transform:scale(1.24) translate(6%,-4%)}
  .hero__rig{
    top:auto;
    bottom:calc(50% + 8px);
    right:calc(var(--gutter) * -1);
    width:clamp(180px,34vw,260px);
  }
  .hero__index{display:none}
  .hero__body{padding-block:96px 56px}
  .hero__h{max-width:none}
  .hero__lead{max-width:56ch}
  .hero__stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero__stat:nth-child(3),
  .hero__stat:nth-child(4){
    margin-top:24px;
    padding-top:24px;
    border-top:1px solid var(--hairline);
  }
  .hero__stat:nth-child(3){border-left:0;padding-left:0}
}

/* --------------------------------------------------------------------------
   640 and below
   -------------------------------------------------------------------------- */
@media (max-width:640px){
  .hero{min-height:100vh;min-height:100svh}
  .hero__media{transform:scale(1.1) translate(2%,-6%)}
  .hero__media video{object-position:56% 38%}
  .hero__scrim{
    background:
      linear-gradient(180deg,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.42) 16%,
        rgba(0,0,0,.16) 34%,
        rgba(0,0,0,.78) 62%,
        rgba(0,0,0,.97) 88%),
      linear-gradient(90deg,
        rgba(0,0,0,.72) 0%,
        rgba(0,0,0,.34) 60%,
        rgba(0,0,0,.52) 100%);
  }
  .hero__rig{
    right:-64px;
    bottom:auto;
    top:calc(var(--nav-h) + 40px);
    width:200px;
  }
  .hero__frame{
    padding-top:calc(var(--nav-h) + 32px);
    padding-bottom:72px;
  }
  .hero__body{padding-block:200px 44px}
  .hero__lead{max-width:none;margin-top:22px}
  .hero__actions{margin-top:28px;gap:10px}
  .hero__actions .btn{width:100%}
  .hero__stat{padding:20px 16px 0 0}
  .hero__stat + .hero__stat{padding-left:16px}
  .hero__stat:nth-child(3),
  .hero__stat:nth-child(4){margin-top:20px;padding-top:20px}
  .hero__stat-v{margin-top:10px}
}

/* --------------------------------------------------------------------------
   Short viewports — never let the statement collide with the rail
   -------------------------------------------------------------------------- */
@media (max-height:720px) and (min-width:981px){
  .hero__body{padding-block:64px 44px}
}
