.team-page-body {
  margin: 0;
  color: #11283a;
  background: var(--team-background, #f3efe7);
}

.team-page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(132px, 11vw, 178px) clamp(20px, 4.8vw, 82px) 110px;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--team-secondary) 17%, transparent), transparent 29%),
    radial-gradient(circle at 4% 48%, color-mix(in srgb, var(--team-accent) 12%, transparent), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 28%);
}

.team-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(17, 40, 58, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 40, 58, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 64%);
}

.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--team-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.team-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 12%, transparent);
}

.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  width: min(100%, 1460px);
  margin: 0 auto;
  padding-bottom: clamp(88px, 10vw, 150px);
}

.team-hero-copy h1,
.team-section-heading h2,
.team-cta h2 {
  margin: 0;
  color: #10283a;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.team-hero-copy h1 {
  max-width: 900px;
  margin-top: 25px;
  font-size: clamp(4rem, 8.4vw, 9.4rem);
  line-height: 0.84;
}

.team-hero-copy h1 em,
.team-section-heading h2 em {
  display: block;
  color: var(--team-secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.team-hero-copy > p {
  max-width: 760px;
  margin: 32px 0 0;
  color: #617486;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.8;
}

.team-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 12px 16px;
  border: 1px solid rgba(17, 40, 58, 0.1);
  border-radius: 999px;
  color: #324e61;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 46px rgba(17, 40, 58, 0.06);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 750;
}

.team-hero-note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25a86b;
  box-shadow: 0 0 0 6px rgba(37, 168, 107, 0.12);
}

.team-hero-art {
  position: relative;
  min-height: 610px;
}

.team-hero-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 40, 58, 0.16);
  font-size: clamp(8rem, 15vw, 15rem);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 1;
}

.team-orbit {
  position: absolute;
  border: 1px solid rgba(17, 40, 58, 0.12);
  border-radius: 50%;
}

.team-orbit::before,
.team-orbit::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--team-accent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--team-accent) 13%, transparent);
}

.team-orbit-one {
  inset: 7% 7% 9% 8%;
  animation: teamOrbitSpin 18s linear infinite;
}

.team-orbit-one::before {
  top: 20%;
  right: -7px;
}

.team-orbit-one::after {
  bottom: 13%;
  left: -7px;
  background: var(--team-secondary);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--team-secondary) 13%, transparent);
}

.team-orbit-two {
  inset: 20% 20% 22% 21%;
  animation: teamOrbitSpinReverse 13s linear infinite;
}

.team-orbit-two::before {
  left: 18%;
  top: -7px;
}

.team-orbit-two::after {
  right: 8%;
  bottom: -7px;
  background: var(--team-secondary);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--team-secondary) 13%, transparent);
}

@keyframes teamOrbitSpin {
  to { transform: rotate(360deg); }
}

@keyframes teamOrbitSpinReverse {
  to { transform: rotate(-360deg); }
}

.team-art-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(17, 40, 58, 0.1);
  background: color-mix(in srgb, var(--team-surface) 85%, transparent);
  box-shadow: 0 30px 80px rgba(17, 40, 58, 0.12);
  backdrop-filter: blur(18px);
}

.team-art-card-primary {
  top: 6%;
  right: 0;
  width: min(290px, 54%);
  padding: 28px;
  border-radius: 28px 28px 8px 28px;
}

.team-art-card-primary strong {
  display: block;
  color: var(--team-accent);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.team-art-card-primary span {
  display: block;
  margin-top: 18px;
  color: #607486;
  font-size: 0.82rem;
  line-height: 1.6;
}

.team-art-card-secondary {
  left: 0;
  bottom: 6%;
  width: min(330px, 64%);
  padding: 26px;
  border-radius: 8px 28px 28px 28px;
  background: #10283a;
  color: #fff;
}

.team-art-card-secondary small {
  display: block;
  color: #9db0bf;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.team-art-card-secondary b {
  display: block;
  margin-top: 16px;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.team-members-section {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: clamp(54px, 6vw, 86px);
  border: 1px solid rgba(17, 40, 58, 0.09);
  border-radius: clamp(28px, 4vw, 54px);
  background: color-mix(in srgb, var(--team-surface) 90%, transparent);
  box-shadow: 0 42px 120px rgba(17, 40, 58, 0.1);
}

.team-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(44px, 6vw, 74px);
}

.team-section-heading h2 {
  max-width: 920px;
  margin-top: 20px;
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: 0.9;
}

.team-section-heading p {
  margin: 0;
  color: #6b7c8c;
  font-size: 1rem;
  line-height: 1.8;
}

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


.team-member-card {
  min-width: 0;
  min-height: 650px;
  perspective: 1600px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  min-height: 650px;
  transform-style: preserve-3d;
  transition: transform 0.74s cubic-bezier(0.2, 0.78, 0.2, 1);
}

.team-member-card.is-flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(26, 61, 84, 0.10);
  border-radius: 30px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.team-card-front {
  color: #112c3f;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 156, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow:
    0 28px 70px rgba(25, 63, 87, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    border-color 0.32s ease;
}

.team-member-card:not(.is-flipped):hover .team-card-front {
  transform: translateY(-6px);
  border-color: rgba(68, 143, 226, 0.24);
  box-shadow:
    0 38px 90px rgba(25, 63, 87, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.team-card-back {
  transform: rotateY(180deg);
  padding: 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 97, 255, 0.42), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(54, 190, 232, 0.18), transparent 34%),
    linear-gradient(150deg, #0f2f44 0%, #10263a 52%, #111d35 100%);
  box-shadow:
    0 32px 82px rgba(12, 35, 52, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.team-card-index {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  padding-inline: 9px;
  border: 1px solid rgba(26, 61, 84, 0.08);
  border-radius: 999px;
  color: #8da1b1;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 24px rgba(25, 63, 87, 0.07);
  backdrop-filter: blur(10px);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.team-portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: 306px;
  margin-bottom: 25px;
  border: 1px solid rgba(27, 61, 83, 0.08);
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--team-secondary) 10%, white),
      color-mix(in srgb, var(--team-accent) 7%, white)
    );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.92);
}

.team-portrait-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 29, 44, 0.12), transparent);
}

.team-portrait-frame.shape-circle {
  width: min(84%, 285px);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
}

.team-portrait-frame.shape-square {
  border-radius: 22px;
}

.team-portrait-frame.shape-curve {
  border-radius: 46% 46% 24px 24px / 31% 31% 24px 24px;
}

.team-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.team-member-card:hover .team-portrait-frame img {
  transform: scale(1.035);
}

.team-portrait-frame > span {
  color: var(--team-secondary);
  font-size: 6rem;
  font-weight: 900;
}

.team-card-copy {
  padding: 0 7px;
}

.team-card-copy small {
  display: inline-block;
  color: #ff6748;
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.team-card-copy h3,
.team-back-copy h3 {
  margin: 10px 0 0;
  letter-spacing: -0.045em;
}

.team-card-copy h3 {
  color: #153247;
  font-size: clamp(1.75rem, 2.3vw, 2.25rem);
  line-height: 1.02;
}

.team-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 13px 0 0;
  color: #718595;
  font-size: 0.87rem;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.team-skills span {
  padding: 7px 10px;
  border: 1px solid rgba(36, 77, 102, 0.09);
  border-radius: 999px;
  color: #4f6a7d;
  background: #f3f8fb;
  font-size: 0.64rem;
  font-weight: 800;
}

.team-more-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: calc(100% - 14px);
  min-height: 58px;
  margin: auto 7px 2px;
  padding: 9px 10px 9px 19px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: #ffffff !important;
  background:
    linear-gradient(120deg, #102f45 0%, #123b57 54%, #174665 100%);
  box-shadow:
    0 15px 32px rgba(17, 48, 70, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.08);
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.team-more-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(120deg, #1b70a2, #6358d8);
  transition: opacity 0.24s ease;
}

.team-more-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px rgba(17, 48, 70, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.12);
}

.team-more-button:hover::before {
  opacity: 1;
}

.team-more-button span {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0.015em !important;
  text-transform: none !important;
  opacity: 1 !important;
}

.team-more-button i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  color: #12334b;
  background: #ffffff;
  box-shadow: 0 9px 20px rgba(8, 33, 50, 0.13);
  font-style: normal;
  font-size: 1rem;
  font-weight: 900;
  transition: transform 0.24s ease;
}

.team-more-button:hover i {
  transform: translate(2px, -2px);
}

.team-back-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.team-back-topline > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: calc(100% - 56px);
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(151, 218, 255, 0.16);
  border-radius: 999px;
  color: #111111;
  background: #dff4ff;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-back-topline button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.team-back-topline button:hover {
  transform: rotate(4deg);
  background: rgba(255, 255, 255, 0.13);
}

.team-back-copy {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin: 30px 3px 18px;
  padding-right: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(153, 215, 246, 0.42) transparent;
}

.team-back-copy small {
  color: #7fdcff;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-back-copy h3 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.team-back-copy p {
  margin: 20px 0 0;
  color: #d2e0e8;
  font-size: 0.9rem;
  line-height: 1.82;
}

.team-signature-block {
  position: relative;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 16px 18px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  color: #163248;
  background:
    radial-gradient(circle at 95% 10%, rgba(73, 158, 255, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow:
    0 18px 42px rgba(3, 20, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.team-signature-block::before {
  content: "SIGNATURE";
  display: block;
  margin-bottom: 8px;
  color: #8da0ad;
  font-size: 0.53rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.team-signature-block img {
  display: block;
  width: min(210px, 72%);
  height: 66px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: left center;
  filter: none !important;
  mix-blend-mode: multiply;
}

.team-signature-block strong {
  display: block;
  min-height: 54px;
  color: #142d40;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.1;
}

.team-signature-block span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 9px;
  padding: 6px 9px;
  overflow: hidden;
  border-radius: 999px;
  color: #557083;
  background: #eaf3f8;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-empty-state {
  padding: 70px 28px;
  border: 1px dashed rgba(17, 40, 58, 0.18);
  border-radius: 26px;
  color: #687a88;
  text-align: center;
}

.team-quote-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  width: min(100%, 1180px);
  margin: clamp(84px, 10vw, 150px) auto;
}

.team-quote-section > span {
  color: var(--team-accent);
  font-family: Georgia, serif;
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.7;
}

.team-quote-section blockquote {
  margin: 0;
  color: #153044;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.8vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.team-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 66px);
  border-radius: clamp(28px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--team-secondary) 70%, transparent), transparent 38%),
    linear-gradient(135deg, #10283a, #0d2131);
  box-shadow: 0 34px 100px rgba(17, 40, 58, 0.18);
}

.team-cta .team-eyebrow {
  color: #8bdcff;
}

.team-cta h2 {
  margin-top: 17px;
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 5.2rem);
  line-height: 0.96;
}

.team-cta p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #b4c4cf;
  line-height: 1.75;
}

.team-cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 220px;
  padding: 17px 20px;
  border-radius: 16px;
  color: #10283a;
  background: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.team-cta > a:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1120px) {
  .team-hero {
    grid-template-columns: 1fr;
  }

  .team-hero-art {
    min-height: 520px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .team-page {
    padding: 118px 14px 82px;
  }

  .team-hero {
    padding-inline: 6px;
    padding-bottom: 76px;
  }

  .team-hero-copy h1 {
    font-size: clamp(3.6rem, 16vw, 6rem);
  }

  .team-hero-art {
    min-height: 430px;
  }

  .team-art-card-primary {
    width: 58%;
  }

  .team-art-card-secondary {
    width: 70%;
  }

  .team-members-section {
    padding: 32px 14px;
    border-radius: 30px;
  }

  .team-section-heading {
    grid-template-columns: 1fr;
  }

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

  .team-member-card,
  .team-card-inner {
    min-height: 620px;
  }

  .team-quote-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 8px;
  }

  .team-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .team-cta > a {
    width: 100%;
  }
}

@media (max-width: 470px) {
  .team-hero-art {
    min-height: 380px;
  }

  .team-art-card-primary {
    top: 3%;
    width: 68%;
    padding: 20px;
  }

  .team-art-card-secondary {
    width: 78%;
    padding: 20px;
  }

  .team-card-face {
    padding: 16px;
    border-radius: 24px;
  }

  .team-portrait-frame {
    height: 285px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-orbit,
  .team-card-inner {
    animation: none !important;
    transition: none !important;
  }
}


/* Premium team-card responsive alignment */
@media (max-width: 760px) {
  .team-member-card,
  .team-card-inner {
    min-height: 640px;
  }

  .team-card-face {
    padding: 15px;
    border-radius: 25px;
  }

  .team-card-index {
    top: 23px;
    right: 23px;
  }

  .team-portrait-frame {
    height: 292px;
    margin-bottom: 22px;
  }

  .team-card-copy {
    padding-inline: 5px;
  }

  .team-card-copy h3 {
    font-size: 1.85rem;
  }

  .team-card-copy p {
    -webkit-line-clamp: 4;
  }

  .team-more-button {
    width: calc(100% - 10px);
    margin-inline: 5px;
  }

  .team-card-back {
    padding: 17px;
  }

  .team-back-copy {
    margin-top: 25px;
  }

  .team-signature-block {
    padding: 14px 15px 13px;
  }

  .team-signature-block img {
    width: min(190px, 78%);
    height: 58px;
  }
}
