:root {
  --team-bg: #020604;
  --team-surface: rgba(7, 15, 11, 0.72);
  --team-text: #f4f7f2;
  --team-muted: rgba(244, 247, 242, 0.72);
  --team-green: #7cff00;
  --team-cyan: #23dfff;
  --team-purple: #b65cff;
  --team-amber: #ffb000;
  --team-container: 1200px;
  --team-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --team-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--team-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 14% 16%, rgba(124, 255, 0, 0.08), transparent 24%),
    radial-gradient(circle at 84% 38%, rgba(35, 223, 255, 0.055), transparent 24%),
    radial-gradient(circle at 48% 78%, rgba(182, 92, 255, 0.05), transparent 28%),
    linear-gradient(180deg, #050a07 0%, var(--team-bg) 46%, #030806 100%);
  color: var(--team-text);
  font-family: var(--team-font);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.team-page__container,
.team-header__inner,
.team-footer__inner {
  width: min(calc(100% - 64px), var(--team-container));
  margin-inline: auto;
}

.team-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(2, 6, 4, 0.78);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.team-header__inner {
  display: grid;
  min-height: 78px;
  place-items: center;
}

.site-logo {
  display: inline-flex;
  width: clamp(132px, 10vw, 188px);
  align-items: center;
  text-decoration: none;
}

.site-logo__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.42));
}

.site-logo__letters {
  fill: url("#logoSilver");
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.75px;
  font-family: "Arial Black", "Montserrat", system-ui, sans-serif;
  font-size: 49px;
  font-weight: 900;
  letter-spacing: -0.08em;
  paint-order: stroke fill;
}

.site-logo__studio {
  fill: rgba(244, 247, 242, 0.78);
  font-family: "Arial Black", "Montserrat", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.44em;
}

.site-logo__x polygon {
  fill: url("#logoGreen");
  stroke: rgba(4, 16, 6, 0.86);
  stroke-width: 1.2px;
}

.site-logo__x path {
  fill: none;
  stroke: rgba(244, 247, 242, 0.46);
  stroke-linecap: round;
  stroke-width: 1.2px;
}

.team-page {
  min-height: calc(100vh - 78px);
}

.team-about {
  position: relative;
  overflow: clip;
  padding: clamp(96px, 9vw, 144px) 0 clamp(64px, 6vw, 84px);
  text-align: center;
}

.team-about::before {
  position: absolute;
  top: 30%;
  left: 50%;
  width: min(760px, 76vw);
  height: 300px;
  background: radial-gradient(ellipse, rgba(90, 255, 0, 0.12), transparent 68%);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.team-about__container {
  position: relative;
  max-width: 980px;
}

.team-about__eyebrow {
  margin: 0 0 22px;
  color: var(--team-amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.38em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 176, 0, 0.22);
}

.team-about__title {
  margin: 0;
  color: var(--team-text);
  font-size: clamp(50px, 5.4vw, 82px);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.62), 0 0 30px rgba(255, 255, 255, 0.04);
}

.team-about__text {
  max-width: 900px;
  margin: 28px auto 0;
  color: var(--team-muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.72;
  text-wrap: pretty;
}

.team-about__note {
  margin: 22px auto 0;
  color: var(--team-amber);
  background: linear-gradient(90deg, var(--team-amber), #d7df00 52%, var(--team-green));
  background-clip: text;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.035em;
  line-height: 1.55;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  text-shadow: 0 0 20px rgba(90, 255, 0, 0.12);
}

.team-section-divider {
  width: min(calc(100% - 64px), 1120px);
  height: 1px;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, rgba(124, 255, 0, 0.28) 14%, rgba(124, 255, 0, 0.64) 32%, rgba(255, 176, 0, 0.88) 50%, rgba(124, 255, 0, 0.64) 68%, rgba(124, 255, 0, 0.28) 86%, transparent);
  box-shadow: 0 0 18px rgba(90, 255, 0, 0.18), 0 0 28px rgba(255, 176, 0, 0.1);
}

.team-hero {
  position: relative;
  padding: clamp(72px, 7vw, 112px) 0 30px;
}

.team-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
}

.team-hero__copy {
  max-width: 760px;
}

.team-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--team-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.team-hero__eyebrow span {
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--team-green));
}

.team-hero__title {
  margin: 0;
  color: var(--team-text);
  font-size: clamp(46px, 4.2vw, 68px);
  font-weight: 760;
  letter-spacing: 0.005em;
  line-height: 0.96;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.64), 0 0 22px rgba(255, 255, 255, 0.045);
}

.team-hero__lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(244, 247, 242, 0.74);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.68;
}

.team-hero__accent {
  margin: 16px 0 0;
  color: var(--team-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.48;
}

.team-signal {
  display: flex;
  width: min(100%, 360px);
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 12px;
  padding: 24px 28px;
  border: 1px solid rgba(124, 255, 0, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 255, 0, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(6, 14, 10, 0.64), rgba(1, 5, 3, 0.44));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  text-align: center;
}

.team-signal__line {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
  transition: filter 250ms ease, opacity 250ms ease, transform 250ms ease;
}

.team-signal__line--green {
  color: var(--team-green);
  text-shadow: 0 0 14px rgba(124, 255, 0, 0.18);
}

.team-signal__line--cyan {
  color: var(--team-cyan);
  text-shadow: 0 0 14px rgba(35, 223, 255, 0.16);
}

.team-signal__line--purple {
  color: var(--team-purple);
  text-shadow: 0 0 14px rgba(182, 92, 255, 0.18);
}

.team-members {
  padding: 18px 0 0;
}

.team-carousel,
.team-carousel__viewport {
  min-width: 0;
}

.team-carousel__viewport {
  overflow: visible;
}

.team-carousel__pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.team-carousel__dot {
  --carousel-dot-accent: var(--team-green);
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.team-carousel__dot:nth-child(2) {
  --carousel-dot-accent: var(--team-cyan);
}

.team-carousel__dot:nth-child(3) {
  --carousel-dot-accent: var(--team-purple);
}

.team-carousel__dot::before {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(244, 247, 242, 0.34);
  border-radius: 50%;
  background: rgba(244, 247, 242, 0.16);
  content: "";
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.team-carousel__dot[aria-current="true"]::before {
  border-color: var(--carousel-dot-accent);
  background: var(--carousel-dot-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--carousel-dot-accent) 58%, transparent);
  transform: scale(1.25);
}

.team-carousel__dot:focus-visible {
  outline: 2px solid var(--carousel-dot-accent);
  outline-offset: 1px;
  border-radius: 50%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.team-card {
  --member-accent: var(--team-green);
  --member-accent-soft: rgba(124, 255, 0, 0.14);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 600px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--member-accent) 28%, transparent);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 22%, var(--member-accent-soft), transparent 34%),
    linear-gradient(180deg, rgba(7, 15, 11, 0.68), rgba(1, 4, 3, 0.58));
  box-shadow:
    0 28px 82px rgba(0, 0, 0, 0.42),
    0 0 34px color-mix(in srgb, var(--member-accent) 10%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 320ms var(--team-ease), box-shadow 320ms var(--team-ease), transform 320ms var(--team-ease);
}

.team-card--jex1k {
  --member-accent: var(--team-green);
  --member-accent-soft: rgba(124, 255, 0, 0.14);
}

.team-card--lex1k {
  --member-accent: var(--team-cyan);
  --member-accent-soft: rgba(35, 223, 255, 0.14);
}

.team-card--rilaine {
  --member-accent: var(--team-purple);
  --member-accent-soft: rgba(182, 92, 255, 0.14);
}

.team-card::before {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 4;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--member-accent), transparent);
  content: "";
  pointer-events: none;
}

.team-card__media {
  position: absolute;
  inset: 34px 28px auto;
  z-index: 1;
  display: flex;
  height: 330px;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.team-card__media::after {
  position: absolute;
  right: -28px;
  bottom: -48px;
  left: -28px;
  z-index: 2;
  height: 170px;
  background: linear-gradient(180deg, transparent, rgba(2, 5, 4, 0.96) 72%);
  content: "";
}

.team-card__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(92%, 360px);
  height: 100%;
  max-height: 330px;
  object-fit: contain;
  object-position: center top;
  filter:
    drop-shadow(0 0 30px color-mix(in srgb, var(--member-accent) 24%, transparent))
    drop-shadow(0 30px 38px rgba(0, 0, 0, 0.52));
  transition: filter 320ms var(--team-ease), transform 320ms var(--team-ease);
}

.team-card--rilaine .team-card__media img {
  transform: translateY(-8px) scale(0.98);
}

.team-card__content {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 0;
  align-content: start;
  padding-top: 260px;
}

.team-card__role {
  margin: 0 0 6px;
  color: var(--member-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-shadow: 0 0 14px color-mix(in srgb, var(--member-accent) 26%, transparent);
}

.team-card__name {
  position: relative;
  margin: 0;
  color: #fff;
  font-family: "Arial Black", Impact, var(--team-font);
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.team-card__name::after {
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: var(--member-accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--member-accent) 60%, transparent);
  content: "";
}

.team-card__text {
  max-width: 94%;
  min-height: 104px;
  margin: 38px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.team-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--member-accent) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--member-accent) 8%, transparent);
  color: rgba(244, 247, 242, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
}

.team-card__tag::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--member-accent);
  box-shadow: 0 0 7px color-mix(in srgb, var(--member-accent) 70%, transparent);
  content: "";
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover {
    border-color: color-mix(in srgb, var(--member-accent) 48%, transparent);
    box-shadow:
      0 34px 96px rgba(0, 0, 0, 0.5),
      0 0 44px color-mix(in srgb, var(--member-accent) 14%, transparent),
      inset 0 1px 0 rgba(255, 255, 255, 0.055);
    transform: translateY(-4px);
  }

  .team-card:hover .team-card__media img {
    filter:
      drop-shadow(0 0 30px color-mix(in srgb, var(--member-accent) 38%, transparent))
      drop-shadow(0 30px 40px rgba(0, 0, 0, 0.54));
    transform: translateY(-4px) scale(1.02);
  }

  .team-card--rilaine:hover .team-card__media img {
    transform: translateY(-12px) scale(1);
  }

  .team-signal:hover .team-signal__line {
    filter: brightness(1.12);
  }
}

.team-values {
  padding: clamp(36px, 4vw, 56px) 0 clamp(88px, 8vw, 130px);
}

.team-value {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.9fr);
  gap: 28px;
  align-items: center;
  min-height: 132px;
  overflow: hidden;
  padding: 22px 28px;
  border: 1px solid rgba(124, 255, 0, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 50%, rgba(124, 255, 0, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(2, 6, 4, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 70px rgba(0, 0, 0, 0.34);
}

.team-value__main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.team-value__icon,
.team-value__item-icon {
  display: block;
  flex: 0 0 auto;
}

.team-value__icon--puzzle {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 0 12px rgba(124, 255, 0, 0.18)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.36));
}

.team-value__copy {
  display: grid;
  gap: 6px;
}

.team-value__copy h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.team-value__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.team-value__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.team-value__item {
  display: grid;
  min-width: 0;
  min-height: 88px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 8px 18px;
  text-align: center;
}

.team-value__item + .team-value__item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.team-value__item-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 12px rgba(124, 255, 0, 0.22));
}

.team-value__item strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.team-value__item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.25;
}

.team-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(1, 4, 3, 0.7);
}

.team-footer__inner {
  display: grid;
  min-height: 110px;
  place-items: center;
  text-align: center;
}

.team-footer p {
  margin: 0;
  color: rgba(244, 247, 242, 0.62);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
