/* ============================================================
   Component · Hero
   Dark section. Tagline + lead + primary CTA + 3D model placeholder.
   The ruled-line page-load sequence is choreographed here:
   - .hero__rule grows from scaleX(0) → 1 (the t=100ms line)
   - .hero__content rises from below the line (t=1000ms)
   ============================================================ */

.hero {
  position: relative;
  padding-block: clamp(7rem, 9rem + 6vw, 14rem) var(--space-3xl);
  background: var(--color-ink);
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
}

/* Faint architectural backdrop — repeating vertical rules */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent calc(100% / 12),
      rgba(255, 255, 255, 0.04) calc(100% / 12),
      rgba(255, 255, 255, 0.04) calc(100% / 12 + 1px)
    );
  pointer-events: none;
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: end;
}
@media (min-width: 1024px) {
  .hero__container {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-3xl);
  }
}

/* Horizontal ruled line that "splits" the hero — referenced by
   page-load animation. Static fallback also visible. */
.hero__rule {
  position: absolute;
  left: var(--grid-gutter);
  right: var(--grid-gutter);
  top: 52%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  transform-origin: left center;
  z-index: 1;
}

.hero__content { display: flex; flex-direction: column; gap: var(--space-lg); }

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.hero__eyebrow-row .rule {
  flex: 0 0 48px;
  background: var(--color-accent);
}
.hero__eyebrow {
  color: color-mix(in srgb, var(--color-white) 60%, transparent);
}

.hero__title {
  color: var(--color-white);
  font-weight: 400;
}
.hero__title em {
  font-style: italic;
  color: color-mix(in srgb, var(--color-accent) 90%, var(--color-white));
}

.hero__lead {
  color: color-mix(in srgb, var(--color-white) 75%, transparent);
  max-width: 50ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-sm);
}

/* === Visual side — 3D model placeholder ================== */
.hero__viewer {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hero__viewer-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}
.hero__viewer-caption::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: breathing 2.4s ease-in-out infinite;
}
.hero__viewer-coords {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
  line-height: 1.6;
}

/* The SVG wireframe inside the viewer — turquoise on dark hero for contrast */
.hero__viewer svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--color-accent);
}

/* Hero scrubber / drawing index in bottom margin */
.hero__meta {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--grid-gutter);
  right: var(--grid-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  z-index: 2;
}
@media (max-width: 768px) {
  .hero__meta { position: static; margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid rgba(255,255,255,0.12); }
}
.hero__meta .dot { width: 4px; height: 4px; background: rgba(255,255,255,0.5); margin-inline: 8px; display: inline-block; transform: translateY(-3px); }

/* model-viewer element inside the hero viewer slot */
.hero__model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
}
