:root {
  --bg: #03050a;
  --panel: rgba(12, 16, 28, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f3f6ff;
  --muted: #aeb8cc;
  --red: #ff314f;
  --red-soft: rgba(255, 49, 79, 0.24);
  --blue: #32a8ff;
  --blue-soft: rgba(50, 168, 255, 0.24);
  --glow: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 49, 79, 0.18), transparent 34%),
    radial-gradient(circle at 78% 24%, rgba(50, 168, 255, 0.20), transparent 36%),
    linear-gradient(135deg, #02030a 0%, #070a12 52%, #020309 100%);
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 0 55%, transparent 84%);
}

.page {
  width: min(1180px, calc(100vw - 32px));
  padding: clamp(28px, 4vw, 56px);
  text-align: center;
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.72), rgba(5, 7, 14, 0.82));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 var(--glow);
  backdrop-filter: blur(10px);
}

.teams-pane {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  gap: clamp(28px, 7vw, 112px);
}

.team-card {
  flex: 1 1 0;
  max-width: 500px;
  min-width: 0;
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  justify-items: center;
}

.team-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-wrap: balance;
}

.red-card h2 {
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 49, 79, 0.42);
}

.blue-card h2 {
  color: var(--blue);
  text-shadow: 0 0 20px rgba(50, 168, 255, 0.42);
}

.image-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 34px);
  border-radius: clamp(22px, 3vw, 34px);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 var(--glow), 0 16px 42px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.red-frame {
  outline: 1px solid rgba(255, 49, 79, 0.18);
  box-shadow: 0 0 42px var(--red-soft), inset 0 1px 0 var(--glow);
}

.blue-frame {
  outline: 1px solid rgba(50, 168, 255, 0.18);
  box-shadow: 0 0 42px var(--blue-soft), inset 0 1px 0 var(--glow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.48));
}

.contact {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 6vw, 78px);
}

.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.10);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.email-link:hover,
.email-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.10);
  outline: none;
}

.email-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .page {
    width: min(680px, calc(100vw - 24px));
    border-radius: 24px;
  }

  .teams-pane {
    flex-direction: column;
    align-items: center;
    gap: 38px;
  }

  .team-card {
    width: min(100%, 440px);
  }
}
