:root {
  --bg: #090909;
  --bg-soft: #151515;
  --panel: rgba(18, 18, 18, 0.78);
  --panel-strong: rgba(10, 10, 10, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8f4ee;
  --muted: rgba(248, 244, 238, 0.76);
  --red: #da1118;
  --red-soft: #ff564f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  overflow: hidden;
  font-family: "Barlow", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(218, 17, 24, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 18%),
    linear-gradient(135deg, #070707 0%, #151515 45%, #0b0b0b 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: clamp(18px, 2vw, 28px);
}

.page-glow {
  position: absolute;
  width: 28vw;
  height: 28vw;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.32;
  pointer-events: none;
}

.page-glow-left {
  top: -10vw;
  left: -8vw;
  background: rgba(218, 17, 24, 0.34);
}

.page-glow-right {
  right: -8vw;
  bottom: -11vw;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 20px;
  min-height: calc(100vh - clamp(36px, 4vw, 56px));
}

.hero-copy,
.team-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.eyebrow,
.modal-kicker {
  margin: 0;
  color: var(--red-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

h1,
.team-name {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin: 10px 0 14px;
  max-width: 10ch;
  font-size: clamp(3.6rem, 7vw, 7rem);
  line-height: 0.9;
}

.hero-title span {
  display: block;
}

.hero-title span:first-child {
  margin-bottom: 0.12em;
}

.intro {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.45;
}

.quick-facts {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.quick-facts div {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--red-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-tabs {
  display: none;
  gap: 8px;
  margin-top: 18px;
}

.mobile-tab {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  font-weight: 700;
}

.mobile-tab.is-active {
  background: linear-gradient(135deg, var(--red), #9a0d12);
  border-color: transparent;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.team-card {
  display: grid;
  grid-template-rows: minmax(180px, 42%) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
}

.team-image {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background-color: #151515;
}

.team-card[data-team="d2"] .team-image {
  --team-image-position: center 22%;
}

.team-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--team-image-position, center);
  display: block;
}

.team-image-low {
  z-index: 0;
}

.team-image-high {
  z-index: 1;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.team-image.is-ready .team-image-high {
  opacity: 1;
}

.team-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.78) 100%);
}

.team-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.95), rgba(14, 14, 14, 0.88)),
    linear-gradient(120deg, rgba(218, 17, 24, 0.14), transparent 50%);
}

.team-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.team-name {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.team-copy {
  min-height: 3.8em;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.team-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.95rem;
}

.team-points li {
  position: relative;
  padding-left: 16px;
}

.team-points li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-soft);
}

.team-cta,
.primary-action,
.secondary-action,
.modal-close {
  cursor: pointer;
}

.team-cta,
.primary-action {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), #930c11);
  color: white;
  font-weight: 800;
}

.team-cta {
  margin-top: auto;
  padding: 14px 16px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.98), rgba(20, 20, 20, 0.94)),
    linear-gradient(135deg, rgba(218, 17, 24, 0.12), transparent 60%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
}

.modal-dialog h2 {
  margin: 8px 0 10px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.9;
}

.modal-copy {
  max-width: 48ch;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 86, 79, 0.85);
  box-shadow: 0 0 0 3px rgba(218, 17, 24, 0.18);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 13px 16px;
  font-weight: 700;
}

.primary-action {
  padding: 13px 18px;
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    gap: 18px;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .team-card {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-shell {
    min-height: auto;
    padding: 12px;
    padding-bottom: 24px;
  }

  .page-glow {
    display: none;
  }

  .hero {
    gap: 12px;
    min-height: auto;
  }

  .hero-copy,
  .team-card,
  .modal-dialog {
    border-radius: 22px;
  }

  .hero-copy {
    justify-content: flex-start;
    padding: 18px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .intro {
    max-width: none;
    font-size: 0.98rem;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .mobile-tabs {
    display: flex;
  }

  .team-grid {
    display: block;
    min-height: 0;
  }

  .team-card {
    display: none;
    grid-template-rows: minmax(260px, 37vh) minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }

  .team-card.is-active {
    display: grid;
  }

  .team-card[data-team="d2"] .team-image {
    --team-image-position: center 18%;
  }

  .team-content {
    gap: 10px;
    padding: 16px;
  }

  .team-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-name {
    font-size: 2.4rem;
  }

  .team-copy {
    min-height: auto;
    font-size: 0.94rem;
  }

  .team-points {
    gap: 6px;
    font-size: 0.9rem;
  }

  .team-cta {
    padding: 13px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions button {
    width: 100%;
  }
}
