:root {
  --primary: #780000;
  --accent: #ffffff;
  --white: #ffffff;
  --bg: #120000;
  --gradient: var(--gradient-main);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --card: #c2a15a;
  --shadow: 0 20px 60px rgba(120, 0, 0, 0.35);
  --radius: 18px;

}

* {
  box-sizing: border-box;
}

body.page-template-page-team {
  background: var(--gradient);
  color: var(--text);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.nemesis-team {
  overflow-x: hidden;
}

.nh-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Hero */
.nh-team-hero {
  position: relative;
  min-height: 400px;
  padding: clamp(80px, 10vw, 150px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  background: var(--gradient-main);
}

.nh-team-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  z-index: 1;
}

.nh-team-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 0;
}

.nh-team-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nh-team-hero__title {
  font-size: clamp(32px, 4vw, 46px);
  margin: 10px 0 12px;
  color: var(--accent);
}

.nh-team-hero__lead {
  color: var(--muted);
  line-height: 1.7;
}

/* Section base */
.nh-section {
  position: relative;
  padding: clamp(56px, 8vw, 120px) 0;
}

.nh-heading {
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 10px 0 16px;
}

.nh-heading--accent {
  color: var(--accent);
  text-align: center;
}

.nh-team-grid {
  background: var(--gradient);
}

.nh-team-grid__header {
  text-align: center;
  margin-bottom: 28px;
}

.nh-team-grid__lead {
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto;
}

.nh-team-grid__cards--stacked {
  margin-top: 32px;
}

.nh-team-grid__cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 22px;
}

.nh-team-grid__cards--stacked {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
}

.nh-team-card {
  width: 100%;
  max-width: 320px;
  grid-column: span 2;
  background: #1c263f;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(194, 161, 90, 0.35);
  height: 100%;
}

.nh-team-card:nth-child(-n+2) {
  grid-column: span 3;
}

.nh-team-card:nth-child(1) {
  justify-self: end;
}

.nh-team-card:nth-child(2) {
  justify-self: start;
}

.nh-team-card__media {
  width: 100%;
  aspect-ratio: 16 / 15; /* consistent height across cards, ~25% shorter than before */
  background: linear-gradient(145deg, rgba(194, 161, 90, 0.2), rgba(120, 0, 0, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}

.nh-team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nh-team-card__text {
  padding: 16px 18px 20px;
  text-align: center;
  background: var(--primary);
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nh-team-card__name {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--accent);
}

.nh-team-card__role {
  margin: 0;
  color: var(--accent) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .nh-container {
    width: min(1200px, 90vw);
  }
  
  .nh-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: rgba(10, 0, 0, 0.96);
    border: 1px solid rgba(194, 161, 90, 0.4);
    border-radius: 12px;
    padding: 14px;
    display: none;
  }

  .nh-menu.is-open {
    display: flex;
  }

  .nh-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nh-nav__inner {
    padding: 12px 18px;
  }

  .nh-team-grid__cards,
  .nh-team-grid__cards--stacked {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .nh-team-card {
    max-width: 100%;
    grid-column: span 1 !important;
    justify-self: center;
  }

  .nh-team-card:nth-child(-n+2) {
    grid-column: span 1 !important;
  }
  
  .nh-team-card:nth-child(1),
  .nh-team-card:nth-child(2) {
    justify-self: center;
  }
  
  .nh-team-hero__title {
    font-size: clamp(26px, 5vw, 36px);
  }
}

@media (max-width: 640px) {
  .nh-container {
    width: min(1200px, 88vw);
  }
  
  .nh-team-hero {
    min-height: auto;
    padding: 60px 0 40px;
  }
  
  .nh-team-hero__title {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.3;
  }

  .nh-team-grid__cards,
  .nh-team-grid__cards--stacked {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nh-team-card {
    max-width: 100%;
    grid-column: span 1 !important;
  }
  
  .nh-team-card__media {
    aspect-ratio: 1 / 1;
  }
  
  .nh-team-card__text {
    padding: 18px 16px;
    min-height: 100px;
  }
  
  .nh-team-card__name {
    font-size: 17px;
  }
  
  .nh-team-card__role {
    font-size: 14px;
  }
  
  .nh-section {
    padding: 50px 0;
  }
}
