:root {
  --brand-orange: #f15a25;
  --brand-orange-strong: #dd4d1b;
  --brand-cyan: #0ea5e9;
  --brand-teal: #14b8a6;
  --content-max: 1240px;
  --text-strong: #0f172a;
  --text-soft: #475569;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #dbe4ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-strong);
  background:
    radial-gradient(1100px 520px at -8% -10%, rgba(241, 90, 37, 0.2), transparent 55%),
    radial-gradient(920px 520px at 108% 10%, rgba(14, 165, 233, 0.18), transparent 56%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 44%, #ffffff 100%);
  min-height: 100vh;
}

.team-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 78px 0 56px;
  background: white;
}

.team-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  padding: clamp(40px, 8vw, 94px) clamp(16px, 6vw, 96px);
  border: 0;
  background:
    radial-gradient(760px 260px at 0% 0%, rgba(241, 90, 37, 0.26), transparent 62%),
    radial-gradient(700px 280px at 100% 100%, rgba(14, 165, 233, 0.22), transparent 64%),
    linear-gradient(160deg, #fff7f2 0%, #ffffff 52%, #f0f9ff 100%);
  box-shadow: none;
  isolation: isolate;
}

.team-hero__inner {
  width: min(var(--content-max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
}

.team-hero__bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.66;
}

.team-hero__bg--orange {
  width: 290px;
  height: 290px;
  left: -100px;
  top: -95px;
  background: rgba(241, 90, 37, 0.28);
}

.team-hero__bg--cyan {
  width: 310px;
  height: 310px;
  right: -90px;
  bottom: -120px;
  background: rgba(14, 165, 233, 0.24);
}

.team-hero__noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(15, 23, 42, 0.1) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  opacity: 0.2;
  pointer-events: none;
}

.team-hero__content {
  max-width: min(700px, 100%);
  justify-self: start;
}

.team-hero__visual {
  justify-self: end;
  width: min(100%, 520px);
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-network {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(2, 132, 199, 0.18));
}

.network-halo {
  transform-origin: 230px 190px;
  animation: networkHalo 14s linear infinite;
}

.network-orbit {
  transform-origin: 230px 190px;
  animation: networkOrbit 26s linear infinite;
}

.network-links line {
  stroke: url(#networkLinkGrad);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-opacity: 0.52;
  stroke-dasharray: 9 11;
  animation: networkFlow 13s linear infinite;
}

.network-links line:nth-child(odd) {
  animation-duration: 10.5s;
}

.network-core {
  transform-origin: 230px 190px;
  animation: networkCoreFloat 7.4s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(241, 90, 37, 0.35)) drop-shadow(0 0 20px rgba(14, 165, 233, 0.22));
}

.network-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: networkNodePulse 3.8s ease-in-out infinite;
}

.network-node--1 { animation-delay: 0.2s; }
.network-node--2 { animation-delay: 0.7s; }
.network-node--3 { animation-delay: 1.2s; }
.network-node--4 { animation-delay: 1.7s; }
.network-node--5 { animation-delay: 2.2s; }
.network-node--6 { animation-delay: 2.7s; }
.network-node--7 { animation-delay: 3.2s; }
.network-node--8 { animation-delay: 3.7s; }

@keyframes networkHalo {
  0% { opacity: 0.84; transform: rotate(0deg) scale(1); }
  50% { opacity: 1; transform: rotate(180deg) scale(1.025); }
  100% { opacity: 0.84; transform: rotate(360deg) scale(1); }
}

@keyframes networkOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes networkFlow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -210; }
}

@keyframes networkCoreFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}

@keyframes networkNodePulse {
  0%, 100% { opacity: 0.92; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}

.team-hero__eyebrow {
  display: inline-flex;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(241, 90, 37, 0.36);
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.86);
}

.team-hero__title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.16em;
  margin: 14px 0 10px;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: none;
  overflow: visible;
  animation: heroTitleIn 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title-line,
.hero-title-accent {
  display: block;
}

.hero-title-accent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
  background: linear-gradient(90deg, #f15a25 0%, #0ea5e9 55%, #14b8a6 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.16em;
  overflow: visible;
  animation: heroAccentShift 7.2s linear infinite;
}

.hero-title-prefix {
  display: block;
  font-size: 0.54em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.18;
}

.hero-title-xmonks {
  display: block;
  font-size: 1.34em;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  white-space: nowrap;
}

.hero-title-experience {
  display: block;
  font-size: 1.62em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.94;
  white-space: nowrap;
}

.team-hero__title::after {
  content: "";
  margin-top: 12px;
  width: clamp(120px, 22vw, 240px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(241, 90, 37, 0.95), rgba(14, 165, 233, 0.85), rgba(20, 184, 166, 0.8));
  transform-origin: left center;
  animation: heroUnderlineIn 900ms cubic-bezier(0.25, 0.85, 0.25, 1) both;
}

.team-hero__subtitle {
  animation: heroSubtitleIn 820ms ease both;
  animation-delay: 120ms;
}

.team-hero__chips {
  animation: heroSubtitleIn 820ms ease both;
  animation-delay: 180ms;
}

@keyframes heroTitleIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroUnderlineIn {
  0% {
    opacity: 0;
    transform: scaleX(0.15);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes heroSubtitleIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroAccentShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.team-hero__subtitle {
  margin: 0;
  max-width: 64ch;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.5vw, 1.17rem);
  line-height: 1.72;
}

.team-hero__chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.team-chip:first-child {
  border-color: rgba(241, 90, 37, 0.42);
  background: rgba(255, 237, 230, 0.72);
  color: #9a3412;
}

.team-chip--soft {
  color: #1e3a4f;
  border-color: rgba(14, 165, 233, 0.28);
  background: rgba(240, 249, 255, 0.74);
}

.team-grid-section {
  position: relative;
  margin-top: 24px;
  padding: 0 clamp(12px, 3vw, 42px);
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.team-grid-section::before,
.team-grid-section::after {
  content: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
}

.team-grid-section::before {
  content: none;
}

.team-grid-section::after {
  content: none;
}

.team-grid {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 272px));
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.card {
  position: relative;
  isolation: isolate;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s cubic-bezier(0.22, 0.78, 0.28, 1), opacity 0.6s ease;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
}

.card::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -18px;
  height: 42px;
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(241, 90, 37, 0.28), rgba(14, 165, 233, 0.24), rgba(20, 184, 166, 0.22));
  filter: blur(17px);
  opacity: 0.9;
}

.card.animate {
  opacity: 1;
  transform: translateY(0);
}

.card-inner {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
  min-height: 365px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.05);
  transform-style: preserve-3d;
}

.card-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(140px 80px at 10% 0%, rgba(241, 90, 37, 0.32), transparent 70%),
    radial-gradient(140px 80px at 92% 100%, rgba(14, 165, 233, 0.28), transparent 68%);
  opacity: 1;
}

.card-inner::after {
  content: none;
}

.card-image {
  position: relative;
  overflow: hidden;
  height: 255px;
  background: linear-gradient(150deg, #e2e8f0 0%, #f8fafc 70%);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.35s ease;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.58) 100%);
  opacity: 0.64;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 15px 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}

.card-name {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-designation {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
}

.li-badge {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
  border: 0;
  transform: none;
  opacity: 1;
  box-shadow:
    0 6px 16px rgba(10, 102, 194, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: none;
  overflow: hidden;
}

.li-badge svg {
  width: 17px;
  height: 17px;
  display: block;
}

.li-badge--disabled {
  opacity: 0.35;
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(241, 245, 249, 0.8);
  box-shadow: none;
}

.img-loading {
  filter: blur(13px);
  transform: scale(1.03);
}

.img-loaded {
  filter: none;
}

@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(232px, 266px));
  }
}

@media (max-width: 940px) {
  .team-hero__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-hero__visual {
    justify-self: center;
    width: min(72vw, 460px);
    min-width: 0;
  }

  .team-hero__content {
    max-width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  }

  .card-inner {
    min-height: 350px;
  }

  .card-image {
    height: 238px;
  }
}

@media (max-width: 640px) {
  .team-layout {
    padding: 66px 0 32px;
  }

  .team-hero {
    border-radius: 0;
    padding: 28px 14px 30px;
  }

  .team-hero__title {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    max-width: none;
  }

  .hero-title-prefix {
    font-size: 0.56em;
  }

  .hero-title-xmonks {
    font-size: 1.24em;
  }

  .hero-title-experience {
    font-size: 1.34em;
  }

  .team-hero__title::after {
    width: min(180px, 56vw);
    margin-top: 9px;
  }

  .team-hero__visual {
    width: min(92vw, 390px);
  }

  .team-hero__subtitle {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .team-chip {
    font-size: 12px;
    padding: 8px 11px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
  }

  .team-grid-section {
    margin-top: 18px;
    border-radius: 0;
    padding: 0 10px;
  }

  .card-inner {
    min-height: 336px;
    border-radius: 18px;
  }

  .card-image {
    height: 220px;
  }

  .card-content {
    padding: 13px 13px 14px;
  }

  .li-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-halo,
  .network-orbit,
  .network-links line,
  .network-core,
  .network-node {
    animation: none !important;
  }

  .team-hero__title,
  .hero-title-accent,
  .team-hero__title::after,
  .team-hero__subtitle,
  .team-hero__chips {
    animation: none !important;
  }

  .card,
  .card-inner,
  .card-image img,
  .li-badge {
    transition: none !important;
  }
}
