/* Avengers Hero — cinematic dark, red/gold accents */
:root {
  --bg: #0a0a0c;
  --bg-2: #141418;
  --text: #f5f3ee;
  --text-dim: rgba(245, 243, 238, 0.72);
  --text-mute: rgba(245, 243, 238, 0.5);
  --accent: #d8232a;       /* Avengers red */
  --accent-2: #e6b54c;      /* gold */
  --line: rgba(245, 243, 238, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- Background image + cinematic scrim ---- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.25) 35%, rgba(10,10,12,0.92) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(216,35,42,0.18), transparent 55%);
}

/* ---- Nav ---- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  max-height: 80px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav__logo {
  width: 30px;
  height: 30px;
  color: var(--accent);
}
.nav__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--accent-2); }

/* ---- Hero content ---- */
.hero__content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  max-width: 820px;
  margin-top: -2rem;
}
.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.2s forwards;
}
.hero__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}
.hero__title span {
  display: block;
  font-size: clamp(3.2rem, 11vw, 8rem);
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
}
.hero__title span:first-child {
  color: var(--text);
  animation-delay: 0.35s;
}
.hero__title-accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(216, 35, 42, 0.35);
  animation-delay: 0.5s !important;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 36ch;
  margin-bottom: 2.4rem;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.7s forwards;
}

/* ---- CTAs ---- */
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.9s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 8px 30px -8px rgba(216, 35, 42, 0.6);
}
.btn--primary:hover {
  background: #b81d24;
  box-shadow: 0 12px 36px -8px rgba(216, 35, 42, 0.8);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* ---- Bottom meta strip ---- */
.hero__meta {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(10,10,12,0.6));
}
.hero__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero__content { margin-top: 0; }
  .hero__sub { max-width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
@media (max-width: 768px) {
  .hero__meta { font-size: 0.62rem; gap: 0.7rem; }
}

/* ---- Showcase section (team image) ---- */
.showcase {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100dvh;
  background: var(--bg-2);
  overflow: hidden;
}
.showcase__media {
  position: relative;
  flex: 1 1 55%;
  overflow: hidden;
}
.showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.08);
}
.showcase__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, var(--bg-2) 100%),
              linear-gradient(180deg, rgba(10,10,12,0.3), transparent 40%, rgba(10,10,12,0.5));
}
.showcase__content {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(2rem, 5vw, 5rem);
  z-index: 5;
}
.showcase__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.showcase__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.6rem;
}
.showcase__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 40ch;
}

@media (max-width: 900px) {
  .showcase {
    flex-direction: column;
    min-height: auto;
  }
  .showcase__media {
    min-height: 50vh;
    flex: none;
  }
  .showcase__scrim {
    background: linear-gradient(180deg, transparent 50%, var(--bg-2) 100%);
  }
  .showcase__content {
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; transform: none; }
  .hero__eyebrow, .hero__title span, .hero__sub, .hero__cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
