* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(217, 206, 184, 0.46), transparent 30%),
    linear-gradient(180deg, rgba(250, 245, 236, 0.99), rgba(232, 223, 206, 0.92));
  color: #111824;
}

.team-page {
  padding: 12px 20px 96px;
}

.team-stage {
  width: min(100%, 1220px);
  margin: 0 auto;
}

.team-panel {
  position: relative;
  overflow: visible;
  padding: 52px 60px 72px;
}

.team-panel-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(70, 67, 58, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 67, 58, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
}

.team-hero,
.team-callout,
.team-strip-intro {
  position: relative;
  z-index: 1;
}

.team-hero {
  max-width: 760px;
  margin: 44px auto 58px;
  text-align: center;
}

.eyebrow,
.strip-kicker,
.callout-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(18, 25, 36, 0.72);
}

.team-hero h1,
.team-strip-intro h2,
.team-callout h2 {
  margin: 0;
  color: #111824;
  line-height: 0.98;
  font-weight: 600;
}

.team-hero h1 {
  max-width: 14ch;
  margin: 18px auto 0;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  letter-spacing: -0.05em;
}

.lead,
.callout-copy,
.team-member-copy p {
  color: rgba(17, 24, 36, 0.72);
  line-height: 1.7;
}

.lead {
  max-width: 56ch;
  margin: 20px auto 0;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
}

.team-strip-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.team-strip-intro {
  max-width: 620px;
  margin: 0 auto 30px;
  text-align: center;
}

.team-strip-intro h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.team-strip-shell {
  margin-inline: -110px;
}

.team-strip-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 18px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  user-select: none;
}

.team-strip-viewport::-webkit-scrollbar {
  display: none;
}

.team-strip-viewport.is-dragging {
  cursor: grabbing;
}

.team-strip-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding-inline: 22px;
  align-items: stretch;
}

.team-member {
  flex: 0 0 clamp(250px, 23vw, 290px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  color: #111824;
  padding-bottom: 4px;
}

.team-portrait {
  position: relative;
  aspect-ratio: 0.9;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.65), transparent 22%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.08), transparent 45%);
  border: 1px solid rgba(17, 24, 36, 0.05);
}

.team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-7 .team-portrait img {
  object-position: center 32%;
}

.member-8 .team-portrait img {
  object-position: center 14%;
}

.team-portrait::before,
.team-portrait::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.team-portrait.has-photo::before,
.team-portrait.has-photo::after {
  content: none;
}

.team-portrait::before {
  left: 50%;
  bottom: -4%;
  width: 68%;
  height: 60%;
  background: rgba(28, 32, 40, 0.14);
  transform: translateX(-50%);
  filter: blur(0.2px);
}

.team-portrait::after {
  left: 50%;
  top: 18%;
  width: 34%;
  height: 34%;
  background: rgba(28, 32, 40, 0.18);
  transform: translateX(-50%);
}

.portrait-initials {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(17, 24, 36, 0.8);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.member-1 .team-portrait {
  background-color: #dad4e4;
}

.member-2 .team-portrait {
  background-color: #e6dcc2;
}

.member-3 .team-portrait {
  background-color: #e3dccf;
}

.member-4 .team-portrait {
  background-color: #cfe0e7;
}

.member-5 .team-portrait {
  background-color: #ead9a9;
}

.member-6 .team-portrait {
  background-color: #d9d0e3;
}

.member-7 .team-portrait {
  background-color: #d7dfcf;
}

.member-8 .team-portrait {
  background-color: #dfd7cf;
}

.team-member-copy h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.member-role {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(17, 24, 36, 0.92);
}

.team-member-copy p:last-child {
  margin: 8px 0 0;
  font-size: 0.96rem;
}

.drag-hint {
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 24, 36, 0.62);
}

.team-callout {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: center;
}

.callout-rule {
  width: min(100%, 650px);
  height: 1px;
  margin: 0 auto 44px;
  background: rgba(17, 24, 36, 0.14);
}

.team-callout h2 {
  max-width: 12ch;
  margin: 16px auto 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
}

.callout-copy {
  max-width: 54ch;
  margin: 18px auto 0;
  font-size: 1.05rem;
}

.team-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 16px 28px;
  border-radius: 999px;
  background: #111824;
  color: #f5f1e6;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.team-cta:hover,
.team-cta:focus-visible {
  transform: translateY(-1px);
  background: #202a39;
}

@media (max-width: 1100px) {
  .team-panel {
    padding: 44px 34px 60px;
  }

  .team-strip-shell {
    margin-inline: -54px;
  }
}

@media (max-width: 820px) {
  .team-page {
    padding-inline: 0;
    padding-bottom: 76px;
  }

  .team-panel {
    padding: 34px 20px 44px;
  }

  .team-panel-grid {
    background-size: 40px 40px;
  }

  .team-hero {
    margin-top: 28px;
    margin-bottom: 42px;
  }

  .team-strip-shell {
    margin-inline: -20px;
  }

  .team-strip-track {
    gap: 16px;
    padding-inline: 20px;
  }

  .team-member {
    flex-basis: min(75vw, 286px);
  }

  .team-callout {
    margin-top: 48px;
  }
}

@media (max-width: 680px) {
  .team-strip-shell {
    margin-inline: 0;
  }

  .team-strip-viewport {
    padding-bottom: 14px;
  }

  .team-strip-track {
    gap: 14px;
    padding-inline: 0;
  }

  .team-member {
    flex-basis: min(82vw, 280px);
  }

  .team-cta {
    width: 100%;
  }

  .drag-hint {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }
}
