/* DMS Europe — team page */
.team-hero {
  padding: 64px 0 92px;
}

.team-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(370px, .78fr) minmax(560px, 1.22fr);
  gap: 58px;
  align-items: center;
}

.team-hero-copy h1 {
  max-width: 680px;
  font-size: clamp(46px, 5.35vw, 74px);
}

.team-hero-copy > p {
  max-width: 630px;
}

.team-hero-visual {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 34px 95px rgba(2,15,29,.36);
  transform: rotate(1.25deg);
}

.team-hero-visual::before,
.team-hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 26px;
}

.team-hero-visual::before {
  inset: 28px -18px -18px 34px;
  background: rgba(116,240,235,.16);
}

.team-hero-visual::after {
  width: 120px;
  height: 120px;
  top: -24px;
  right: -26px;
  background: #f38b73;
  opacity: .82;
}

.team-hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
}

.team-hero-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: -29px;
  display: block;
  max-width: 215px;
  padding: 14px 18px;
  color: var(--primary-strong);
  border: 1px solid rgba(8,43,75,.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(2,15,29,.25);
  transform: rotate(-1.25deg);
}

.team-hero-visual figcaption span {
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.team-hero-visual figcaption strong {
  display: none !important;
}

.team-facts {
  position: relative;
  z-index: 3;
  margin-top: -30px;
}

.team-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(9,39,70,.12);
}

.team-facts article {
  padding: 24px 28px;
}

.team-facts article + article {
  border-left: 1px solid var(--line);
}

.team-facts strong {
  display: block;
  color: var(--primary-strong);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.team-facts span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.team-intro-section {
  padding-bottom: 90px;
}

.team-section-heading {
  margin-bottom: 54px;
}

.team-departments-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 18px;
}

.team-department-card {
  grid-column: span 2;
  position: relative;
  min-height: 292px;
  padding: 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #f7faff);
  box-shadow: 0 12px 30px rgba(10,43,79,.055);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.team-department-card:nth-child(5) {
  grid-column: 2 / span 2;
}

.team-department-card:nth-child(6) {
  grid-column: 4 / span 2;
}

.team-department-card:nth-child(7) {
  grid-column: 6 / span 2;
}

.team-department-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18,163,168,.32);
  box-shadow: 0 22px 45px rgba(10,43,79,.11);
}

.team-department-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(18,163,168,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(18,163,168,.025);
}

.team-department-card-featured {
  color: #fff;
  border-color: transparent;
  background: radial-gradient(circle at 92% 4%, rgba(116,240,235,.2), transparent 34%), linear-gradient(135deg, #0a2b4f, #0b5263);
  box-shadow: 0 22px 52px rgba(10,43,79,.18);
}

.team-department-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  color: var(--accent-strong);
  border-radius: 15px;
  background: rgba(18,163,168,.1);
}

.team-department-icon svg {
  width: 25px;
  height: 25px;
}

.team-department-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--primary-strong);
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.team-department-card p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.68;
}

.team-department-card-featured .team-department-icon {
  color: #74f0eb;
  background: rgba(116,240,235,.11);
}

.team-department-card-featured h3 {
  color: #fff;
}

.team-department-card-featured p {
  color: rgba(255,255,255,.72);
}

.team-life-section {
  padding: 0 0 105px;
  background: #fff;
}

.team-life-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 40px;
}

.team-life-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--primary-strong);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
}

.team-life-heading > p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.72;
}

.team-life-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-life-photo {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #dce8ef;
  box-shadow: 0 20px 48px rgba(10,43,79,.12);
}

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

.team-life-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(4,22,39,.78));
  pointer-events: none;
}

.team-life-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 27px;
  right: 27px;
  bottom: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.team-culture-section {
  color: #fff;
  background: #f1f6fd;
}

.team-culture-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
  gap: 70px;
  align-items: center;
  padding: 70px;
  border-radius: 38px;
  background: radial-gradient(circle at 13% 0%, rgba(116,240,235,.16), transparent 25%), linear-gradient(135deg, #081f39, #0b4f61);
  box-shadow: 0 28px 75px rgba(10,43,79,.2);
}

.team-culture-copy .company-kicker {
  color: #74f0eb;
}

.team-culture-copy h2 {
  margin: 0 0 24px;
  color: #fff;
}

.team-culture-copy > p {
  color: rgba(255,255,255,.7);
  font-size: 17px;
  line-height: 1.72;
}

.team-culture-copy blockquote {
  margin: 29px 0 0;
  padding: 23px 0 0 24px;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.15);
  border-left: 3px solid #74f0eb;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.48;
}

.team-principles {
  display: grid;
}

.team-principles article {
  padding: 23px 0;
  border-top: 1px solid rgba(255,255,255,.14);
}

.team-principles article:last-child {
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.team-principles h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.035em;
}

.team-principles p {
  margin: 0;
  color: rgba(255,255,255,.63);
  font-size: 14px;
  line-height: 1.55;
}

.team-europe-section {
  padding: 95px 0;
  background: #f1f6fd;
}

.team-europe-panel {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(320px, 1.05fr) auto;
  gap: 52px;
  align-items: center;
  padding: 45px 50px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(10,43,79,.08);
}

.team-europe-panel h2 {
  margin: 0;
  color: var(--primary-strong);
  font-size: clamp(34px, 3.7vw, 50px);
  line-height: 1;
  letter-spacing: -.055em;
}

.team-europe-panel > p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.7;
}

.team-country-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 10px;
}

.team-country-list span {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 10px 12px;
  color: var(--primary-strong);
  border: 1px solid rgba(18,163,168,.22);
  border-radius: 17px;
  background: rgba(18,163,168,.07);
}

.team-country-list svg {
  width: 42px;
  height: 28px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(10,43,79,.14);
}

.team-country-list small {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.team-final-section {
  padding-top: 100px;
}

@media (max-width: 1180px) {
  .team-hero-grid {
    grid-template-columns: minmax(330px, .8fr) minmax(500px, 1.2fr);
    gap: 38px;
  }

  .team-culture-grid {
    padding: 55px;
  }

  .team-europe-panel {
    grid-template-columns: minmax(280px, .9fr) minmax(300px, 1.1fr);
  }

  .team-country-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
  }
}

@media (max-width: 940px) {
  .team-hero-grid,
  .team-culture-grid,
  .team-europe-panel {
    grid-template-columns: 1fr;
  }

  .team-hero-copy {
    max-width: 760px;
  }

  .team-hero-visual {
    width: min(100%, 860px);
  }

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

  .team-department-card,
  .team-department-card:nth-child(5),
  .team-department-card:nth-child(6),
  .team-department-card:nth-child(7) {
    grid-column: auto;
  }

  .team-department-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }

  .team-life-heading,
  .team-life-gallery {
    grid-template-columns: 1fr;
  }

  .team-life-heading {
    gap: 25px;
  }

  .team-life-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .team-culture-grid {
    gap: 40px;
  }

  .team-country-list {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .team-hero {
    padding: 48px 0 73px;
  }

  .team-hero-grid {
    gap: 42px;
  }

  .team-hero-copy h1 {
    font-size: clamp(42px, 13vw, 59px);
  }

  .team-hero-visual {
    padding: 7px;
    border-radius: 23px;
    transform: none;
  }

  .team-hero-visual::before {
    inset: 18px -9px -10px 22px;
  }

  .team-hero-visual::after {
    width: 75px;
    height: 75px;
    top: -15px;
    right: -8px;
  }

  .team-hero-visual img {
    border-radius: 17px;
  }

  .team-hero-visual figcaption {
    right: 17px;
    bottom: -40px;
    padding: 11px 14px;
    transform: none;
  }

  .team-facts {
    margin-top: -12px;
  }

  .team-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  .team-facts article {
    padding: 18px;
  }

  .team-facts article:nth-child(3) {
    border-left: 0;
  }

  .team-facts article:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .team-facts strong {
    font-size: 20px;
  }

  .team-intro-section {
    padding-bottom: 65px;
  }

  .team-section-heading {
    margin-bottom: 35px;
  }

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

  .team-department-card-featured {
    grid-column: auto;
  }

  .team-department-card:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .team-department-card {
    min-height: 0;
    padding: 25px;
    border-radius: 22px;
  }

  .team-department-icon {
    margin-bottom: 24px;
  }

  .team-life-section {
    padding-bottom: 70px;
  }

  .team-life-heading {
    margin-bottom: 28px;
  }

  .team-life-heading h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .team-life-gallery {
    gap: 13px;
  }

  .team-life-photo {
    border-radius: 22px;
  }

  .team-life-photo figcaption {
    left: 18px;
    right: 18px;
    bottom: 16px;
    font-size: 12px;
  }

  .team-culture-grid {
    padding: 35px 23px;
    border-radius: 28px;
  }

  .team-culture-copy blockquote {
    padding-left: 17px;
    font-size: 17px;
  }

  .team-europe-section {
    padding: 65px 0;
  }

  .team-europe-panel {
    gap: 30px;
    padding: 30px 23px;
    border-radius: 24px;
  }

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

  .team-country-list span {
    width: auto;
  }

  .team-final-section {
    padding-top: 65px;
  }
}
