/* ============================================================
   HERO — Full-viewport editorial hero
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-12);
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

/* Text side */
.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-8);
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: slideUp 0.8s var(--ease-out) forwards;
}

.hero__title .line:nth-child(2) span {
  animation-delay: 0.15s;
}

.hero__title .line:nth-child(3) span {
  animation-delay: 0.3s;
}

.hero__title .accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  max-width: 480px;
  margin-bottom: var(--space-10);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 0.5s forwards;
}

/* Hero buttons */
.hero__actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 0.7s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--color-accent);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--border-radius-sm);
  transition: all var(--duration-base) var(--ease-out);
}

.btn-primary:hover {
  background: var(--color-accent-soft);
  color: var(--color-black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--border-radius-sm);
  transition: all var(--duration-base) var(--ease-out);
}

.btn-secondary:hover {
  color: var(--color-white);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Image side */
.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    rgba(255,255,255, 0.9) 30%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  scale: 1;
  transition: scale var(--duration-slower) var(--ease-out);
}

.hero__image-wrapper:hover .hero__image {
  scale: 1.03;
}

/* Decorative accent line */
.hero__visual::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -20px;
  width: 1px;
  height: 60%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent-dim),
    transparent
  );
}

/* Stats bar on hero */
.hero__stats {
  position: absolute;
  bottom: var(--space-10);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  padding: var(--space-6) var(--section-pad-x);
  z-index: 3;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1s forwards;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-editorial);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  line-height: 1;
}

.hero__stat-value .accent {
  color: var(--color-accent);
  font-weight: var(--weight-bold);
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-top: var(--space-2);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.2s forwards;
}

.hero__scroll-text {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-dim);
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-accent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

/* Keyframes */
@keyframes slideUp {
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .hero__content {
    margin-top: var(--space-8);
  }

  .hero__image-wrapper {
    height: 100vh;
  }

  .hero__image-wrapper::after {
    background: linear-gradient(
      to bottom,
      var(--color-bg) 0%,
      rgba(255, 255, 255, 0.85) 50%,
      transparent 100%
    );
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__eyebrow {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual::before {
    display: none;
  }
}
