/* ============================================================
   HERO.CSS — Video Hero Section
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* ============================================================
   VIDEO BACKGROUND
   ============================================================ */

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep);
}

.hero-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Ensures 16:9 covers viewport */
  width: calc(100vh * 16 / 9);
  height: calc(100vw * 9 / 16);
  min-width: 100%;
  min-height: 100%;
  border: 0;
  pointer-events: none;
}

/* Fallback bg colour when iframe blocked */
.hero-video-fallback {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
  z-index: -1;
}

/* ============================================================
   OVERLAYS
   ============================================================ */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* General dimming */
.hero-overlay--dim {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 8, 0.15) 0%,
    rgba(10, 10, 8, 0.75) 100%
  );
}

/* Left gradient for text readability */
.hero-overlay--left {
  background: linear-gradient(
    to right,
    rgba(10, 10, 8, 0.88) 0%,
    rgba(10, 10, 8, 0.60) 40%,
    transparent 70%
  );
}

/* ============================================================
   HERO CONTENT
   ============================================================ */

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 48px) clamp(60px, 8vh, 100px);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  /* compensate for fixed nav */
  padding-top: 80px;
}

/* Hero text column */
.hero-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

/* Brand tag */
.hero-brand-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Headline */
.hero-headline {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-primary);
}

/* Subtext with left border */
.hero-subtext {
  border-left: 2px solid var(--orange);
  padding-left: 16px;
  margin-top: 4px;
}

.hero-subtext p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================================
   AVATAR (bottom-right)
   ============================================================ */

.hero-avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.avatar-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(20%) contrast(1.05);
  display: block;
}

.avatar-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.avatar-role {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
    align-items: flex-end;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 48px;
  }

  .hero-avatar {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .avatar-img-wrap {
    width: 72px;
    height: 72px;
  }

  .avatar-info {
    align-items: flex-start;
  }

  .hero-overlay--left {
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(10, 10, 8, 0.7) 60%,
      rgba(10, 10, 8, 0.95) 100%
    );
  }
}

@media (max-width: 600px) {
  .hero-headline {
    font-size: clamp(24px, 6vw, 36px);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}
