.team-hero__area { min-height: 650px; display: flex; align-items: center; text-align: center; }
.team-hero__eyebrow, .team-label { color: var(--rr-theme-primary, #e32119); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.team-hero__title { max-width: 1050px; margin: 28px auto 24px; color: var(--rr-common-white, #fff); font-size: clamp(54px, 8vw, 124px); line-height: .98; }
.team-hero__intro { max-width: 620px; margin: 0 auto; color: var(--rr-text-body, #b7b7b7); font-size: 18px; line-height: 1.6; }
.team-hero__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.team-hero__chips span, .team-card__body > span, .team-founder__role { display: inline-flex; padding: 9px 16px; border-radius: 50px; background: #a30e01; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.team-hero__chips span:nth-child(even) { background: #fff; color: #131313; }
.team-hero__breadcrumb { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 55px; color: #999; font-size: 13px; }
.team-hero__breadcrumb a { color: #fff; }
.team-founder__portrait { min-height: 650px; background: #a30e01; }
.team-founder__portrait img { width: 100%; height: 650px; object-fit: cover; transform: scale(1.02); }
.team-founder__portrait::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 16px; pointer-events: none; }
.team-founder__badge { position: absolute; right: 24px; top: 24px; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; color: #131313; font-size: 10px; font-weight: 700; text-align: center; }
.team-founder__role { position: absolute; left: 24px; bottom: 24px; z-index: 2; }
.team-founder__copy h2 { margin: 14px 0 8px; color: #fff; font-size: clamp(48px, 6vw, 88px); line-height: 1; }
.team-founder__copy h3 { color: #e32119; font-size: 18px; margin-bottom: 30px; }
.team-founder__bio { max-width: 650px; color: #c2c2c2; font-size: 17px; line-height: 1.7; white-space: pre-line; }
.team-founder__copy blockquote { display: flex; gap: 18px; align-items: flex-start; margin: 32px 0; padding-left: 18px; border-left: 2px solid #e32119; color: #fff; font-size: 20px; line-height: 1.45; }
.team-founder__copy blockquote img { width: 24px; height: auto; }
.team-founder__highlights { display: flex; gap: 38px; margin: 34px 0; }
.team-founder__highlights strong { display: block; color: #fff; font-size: 34px; line-height: 1; }
.team-founder__highlights span { display: block; margin-top: 8px; color: #999; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.team-founder__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.team-socials, .team-card__socials { display: flex; gap: 8px; }
.team-socials a, .team-card__socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; transition: .3s ease; }
.team-socials a:hover, .team-card__socials a:hover { background: #e32119; border-color: #e32119; }
.team-section-heading { max-width: 700px; margin-bottom: 55px; }
.team-section-heading h2 { margin: 14px 0 12px; color: #fff; font-size: clamp(40px, 5vw, 72px); line-height: 1.03; }
.team-section-heading p { color: #aaa; font-size: 17px; }
.team-grid { row-gap: 48px; }
.team-card { height: 100%; }
.team-card__image { position: relative; aspect-ratio: 4 / 5; background: #242424; }
.team-card__image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.team-card__hover-image { position: absolute; inset: 0; opacity: 0; }
.team-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(163,14,1,.9)); opacity: 0; transition: opacity .4s ease; }
.team-card__socials { position: absolute; left: 20px; bottom: 20px; z-index: 2; opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.team-card__body { padding-top: 18px; }
.team-card__body h3 { margin: 0 0 5px; color: #fff; font-size: 25px; }
.team-card__body p { margin: 0 0 12px; color: #aaa; }
.team-card__body > span { padding: 6px 10px; font-size: 10px; background: #242424; color: #fff; }
.team-card:hover .team-card__image > img, .team-card:focus-within .team-card__image > img { transform: scale(1.06); }
.team-card:hover .team-card__hover-image, .team-card:focus-within .team-card__hover-image { opacity: 1; }
.team-card:hover .team-card__overlay, .team-card:focus-within .team-card__overlay, .team-card:hover .team-card__socials, .team-card:focus-within .team-card__socials { opacity: 1; transform: translateY(0); }
.team-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 55px 65px; border-radius: 20px; background: #161616; }
.team-cta h2 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(35px, 5vw, 68px); line-height: 1.05; }
.team-cta > div { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.team-cta__link { color: #fff; white-space: nowrap; }
.team-cta__link:hover { color: #e32119; }
.team-card:focus-within { outline: 2px solid #e32119; outline-offset: 6px; }
@media (max-width: 991px) { .team-founder__portrait, .team-founder__portrait img { min-height: 520px; height: 520px; } .team-cta { display: block; padding: 40px 30px; } .team-cta > div { margin-top: 28px; } }
@media (max-width: 575px) { .team-hero__area { min-height: 560px; } .team-founder__portrait, .team-founder__portrait img { min-height: 420px; height: 420px; } .team-founder__highlights { gap: 18px; } .team-founder__highlights strong { font-size: 26px; } .team-founder__actions { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .team-card__image > img, .team-card__overlay, .team-card__socials, .team-card__hover-image, .team-socials a, .team-card__socials a { transition: none; } }

/* Premium hero and the scroll-driven team orbit. */
[data-team-hero-pin] { position: relative; z-index: 1; }
.team-hero__area { --team-hero-height: max(640px, 100svh); position: relative; min-height: var(--team-hero-height); height: var(--team-hero-height); display: block; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #050505 0%, #0b0b0b 100%); }
.team-hero__area::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center bottom, transparent 42%, rgba(0,0,0,.62) 100%); }
.team-hero__glow { position: absolute; z-index: -2; width: 72vw; height: 52vh; left: 14vw; bottom: -25vh; border-radius: 50%; background: radial-gradient(ellipse, rgba(163,14,1,.35) 0%, rgba(163,14,1,.12) 36%, transparent 72%); filter: blur(18px); transform: scale(1.12); }
.team-hero__rings { position: absolute; z-index: -1; width: 120vw; height: 120vw; left: -10vw; top: 54%; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.team-hero__rings span { position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.team-hero__rings span:last-child { inset: 18%; border-color: rgba(163,14,1,.22); }
.team-hero__grain { position: absolute; inset: 0; z-index: 0; opacity: .055; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.team-hero__content { position: relative; z-index: 4; height: 100%; margin-top: 450px; padding-top: 0; text-align: center; }
.team-hero__breadcrumb { position: absolute; top: -42px; left: 0; justify-content: flex-start; margin: 0; color: rgba(255,255,255,.55); }
.team-hero__eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; letter-spacing: .24em; }
.team-hero__eyebrow::before, .team-hero__eyebrow::after { content: ''; width: clamp(28px, 7vw, 105px); height: 1px; background: rgba(255,255,255,.25); transform-origin: center; }
.team-hero__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #e32119; box-shadow: 0 0 18px rgba(227,33,25,.8); }
.team-hero__title { max-width: 900px; margin: clamp(18px, 2.5vh, 30px) auto 18px; font-size: clamp(40px, min(7.2vw, 12.5vh), 120px); line-height: .96; letter-spacing: -.02em; }
.team-hero__title span { display: block; background: linear-gradient(180deg, #fff 10%, #bdbdbd 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.team-hero__title strong { font-weight: inherit; color: transparent; -webkit-text-stroke: 1px #e32119; -webkit-text-fill-color: transparent; }
.team-hero__intro { max-width: 34rem; margin: 0 auto; color: rgba(255,255,255,.76); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.6; }
.team-hero__actions { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 22px; }
.team-hero__team-link { color: #fff; font-size: 14px; }
.team-hero__team-link i { margin-left: 8px; color: #e32119; }
.team-hero__chips { position: static; display: block; margin: 0; }
.team-hero__chips span { position: absolute; z-index: 5; box-shadow: 0 12px 28px rgba(0,0,0,.3); pointer-events: none; }
.team-hero__chips span:nth-child(1) { left: 8%; top: 35%; transform: rotate(-8deg); }
.team-hero__chips span:nth-child(2) { left: 17%; top: 52%; transform: rotate(7deg); }
.team-hero__chips span:nth-child(3) { right: 14%; top: 35%; transform: rotate(7deg); }
.team-hero__chips span:nth-child(4) { right: 6%; top: 52%; transform: rotate(-8deg); }
.team-hero__hud { position: absolute; z-index: 5; right: 0; bottom: 25px; left: 0; display: flex; justify-content: space-between; align-items: flex-end; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .18em; }
.team-hero__hud > span { display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; transform: rotate(180deg); }
.team-hero__hud > span i { width: 1px; height: 38px; background: #e32119; }
.team-hero__hud strong { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.team-hero__hud b { color: #e32119; }
.team-arc { position: absolute; z-index: 3; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.team-arc__slot { position: absolute; left: 50%; top: var(--team-wheel-y, 100%); width: 0; height: 0; transform-origin: center center; }
.team-arc__card { position: absolute; left: 0; bottom: 0; width: clamp(150px, 17vw, 260px); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: #181818; box-shadow: 0 18px 44px rgba(0,0,0,.42); transform: translate(-50%, -100%) translateY(var(--team-radius, -210px)); }
.team-arc__card::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,var(--team-dim, .22)); }
.team-arc__card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.team-arc__card figcaption { position: absolute; right: 16px; bottom: 14px; left: 16px; z-index: 2; opacity: var(--team-caption, 0); color: #fff; transition: opacity .25s ease; }
.team-arc__card figcaption strong, .team-arc__card figcaption span { display: block; }
.team-arc__card figcaption strong { font-size: 16px; }
.team-arc__card figcaption span { margin-top: 4px; color: #e32119; font-size: 11px; }
.team-arc__founder-badge { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 6px 9px; border-radius: 999px; background: #e32119; color: #fff; font-size: 9px; letter-spacing: .12em; }
.team-grid__area { scroll-margin-top: 50px; }
.team-section-heading { max-width: 680px; margin-right: auto; margin-left: auto; text-align: center; }
.team-section-heading h2 { font-size: clamp(42px, 5vw, 72px); }
.team-section-heading p { max-width: 590px; margin-right: auto; margin-left: auto; line-height: 1.6; }
.team-card__image { border: 1px solid rgba(255,255,255,.13); transition: transform .5s ease, border-color .5s ease; }
.team-card__body { padding: 16px 4px 0; }
.team-card__body h3 { font-size: 18px; }
.team-card__body p { margin-bottom: 7px; color: #e32119; font-size: 13px; }
.team-card__body small { display: -webkit-box; min-height: 58px; overflow: hidden; color: #999; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.team-card__body > span { display: none; }
.team-card:hover .team-card__image, .team-card:focus-within .team-card__image { border-color: #e32119; transform: translateY(-6px); }
@media (max-width: 1199px) { .team-hero__chips { display: none; } .team-hero__rings { width: 150vw; height: 150vw; left: -25vw; } }
@media (max-width: 767px) { .team-hero__area { min-height: 640px; height: 100svh; } .team-hero__content { padding-top: 84px; } .team-hero__breadcrumb { left: 18px; } .team-hero__actions { gap: 16px; flex-wrap: wrap; } .team-hero__hud { right: 18px; left: 18px; } .team-arc__card { width: 42vw; border-radius: 16px; } .team-hero__rings { top: 62%; } }
@media (prefers-reduced-motion: reduce) { .team-hero__glow { transform: none; } .team-hero__chips span { transform: none !important; } .team-arc__card { transition: none; } }
@media (max-width: 767px) { .team-hero__area + .team-founder__area { margin-top: 0; } }

/* Team page mobile layout ------------------------------------------------- */
@media (max-width: 767px) {
  .team-hero__area {
    --team-hero-height: max(680px, 100svh);
    min-height: var(--team-hero-height);
    height: var(--team-hero-height);
  }

  .team-hero__content {
    height: 100%;
    margin-top: clamp(340px, 98vw, 390px);
    padding: 0 15px 96px;
  }

  .team-hero__breadcrumb {
    top: -34px;
    right: 18px;
    left: 18px;
    gap: 9px;
    overflow: hidden;
    white-space: nowrap;
  }

  .team-hero__eyebrow {
    gap: 9px;
    font-size: 10px;
  }

  .team-hero__eyebrow::before,
  .team-hero__eyebrow::after {
    width: clamp(24px, 10vw, 42px);
  }

  .team-hero__title {
    max-width: 100%;
    margin: 16px auto 14px;
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: .98;
    letter-spacing: -.025em;
  }

  .team-hero__intro {
    max-width: 340px;
    padding: 0 5px;
    font-size: 15px;
    line-height: 1.5;
  }

  .team-hero__actions {
    flex-direction: column;
    gap: 12px;
    width: min(100%, 300px);
    margin: 20px auto 0;
  }

  .team-hero__founder-link {
    width: 100%;
    justify-content: center;
  }

  .team-hero__team-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 5px 12px;
  }

  .team-hero__rings {
    width: 190vw;
    height: 190vw;
    left: -45vw;
    top: 58%;
  }

  .team-arc__card {
    width: min(38vw, 150px);
    border-radius: 14px;
  }

  .team-arc__card figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .team-arc__card figcaption strong {
    font-size: 13px;
  }

  .team-arc__founder-badge {
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    font-size: 8px;
  }

  .team-hero__hud {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .team-founder__area.section-space,
  .team-grid__area.section-space,
  .team-cta__area.section-space {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  #founder,
  #team {
    scroll-margin-top: 160px;
  }

  .team-founder__area .custom-row,
  .team-grid__area .custom-row {
    margin-right: -15px;
    margin-left: -15px;
  }

  .team-founder__area .custom-row {
    --bs-gutter-x: 30px;
    --bs-gutter-y: 34px;
  }

  .team-founder__portrait,
  .team-founder__portrait img {
    min-height: clamp(350px, 112vw, 440px);
    height: clamp(350px, 112vw, 440px);
  }

  .team-founder__badge {
    top: 16px;
    right: 16px;
    width: 72px;
    height: 72px;
    font-size: 8px;
  }

  .team-founder__role {
    right: 16px;
    bottom: 16px;
    left: 16px;
    justify-content: center;
    padding: 8px 12px;
    text-align: center;
  }

  .team-founder__copy h2 {
    margin-top: 12px;
    overflow-wrap: anywhere;
    font-size: clamp(38px, 12vw, 58px);
  }

  .team-founder__copy h3 {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .team-founder__bio {
    font-size: 15px;
    line-height: 1.65;
  }

  .team-founder__copy blockquote {
    gap: 12px;
    margin: 25px 0;
    padding-left: 14px;
    font-size: 17px;
  }

  .team-founder__copy blockquote img {
    width: 20px;
    flex: 0 0 auto;
  }

  .team-founder__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 28px 0;
    text-align: center;
  }

  .team-founder__highlights strong {
    font-size: clamp(24px, 8vw, 32px);
  }

  .team-founder__highlights span {
    font-size: 9px;
    letter-spacing: .06em;
  }

  .team-founder__actions {
    gap: 16px;
  }

  .team-section-heading {
    margin-bottom: 34px;
    padding: 0 4px;
  }

  .team-section-heading h2 {
    margin-top: 10px;
    font-size: clamp(38px, 12vw, 52px);
  }

  .team-section-heading p {
    font-size: 15px;
  }

  .team-grid {
    row-gap: 38px;
  }

  .team-card__body {
    padding: 15px 2px 0;
  }

  .team-card__body h3 {
    font-size: 22px;
  }

  .team-card__body small {
    min-height: 0;
  }

  .team-cta {
    padding: 32px 22px;
    border-radius: 16px;
  }

  .team-cta h2 {
    font-size: clamp(31px, 10vw, 44px);
  }

  .team-cta > div {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .team-cta .rr-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .team-cta__link {
    display: inline-flex;
    justify-content: center;
    padding: 8px;
  }
}

@media (max-width: 420px) {
  .team-hero__content {
    padding-top: 0;
  }

  .team-hero__title {
    font-size: clamp(32px, 10.5vw, 42px);
  }

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

  .team-founder__actions > .rr-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .team-hero__area {
    --team-hero-height: 700px;
  }

  .team-hero__content {
    padding-top: 0;
  }

  .team-hero__breadcrumb {
    top: -30px;
  }

  .team-hero__title {
    margin-top: 12px;
    font-size: clamp(31px, 9.8vw, 40px);
  }

  .team-hero__intro {
    font-size: 14px;
  }

  .team-hero__actions {
    margin-top: 14px;
  }
}

@media (hover: none) and (max-width: 991px) {
  .team-card__overlay {
    opacity: .48;
  }

  .team-card__socials {
    opacity: 1;
    transform: none;
  }

  .team-card:hover .team-card__image > img,
  .team-card:focus-within .team-card__image > img,
  .team-card:hover .team-card__image,
  .team-card:focus-within .team-card__image {
    transform: none;
  }
}

/* Department stories: Design, Development and Client Success. */
.team-department-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .6fr);
  align-items: end;
  gap: clamp(30px, 7vw, 120px);
  margin-bottom: clamp(54px, 8vw, 112px);
}

.team-department-heading h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(54px, 8vw, 126px);
  line-height: .88;
  letter-spacing: -.055em;
}

.team-department-heading > p {
  max-width: 540px;
  margin: 0 0 5px;
  color: #aaa;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
}

.team-department-empty {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 28px 30px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 16px;
  color: #999;
}

/* Design department / connected tree. */
.team-design {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0b0b0b;
}

.team-design__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.team-design__canvas::before,
.team-design__canvas::after,
.team-design__canvas i {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
}

.team-design__canvas::before { width: 36vw; height: 36vw; top: -17vw; right: -6vw; }
.team-design__canvas::after { width: 24vw; height: 24vw; bottom: 4vw; left: -9vw; border-color: rgba(227,33,25,.14); }
.team-design__canvas i:nth-child(1) { width: 9px; height: 9px; top: 22%; left: 8%; border: 0; background: #e32119; box-shadow: 0 0 24px rgba(227,33,25,.75); }
.team-design__canvas i:nth-child(2) { width: 70px; height: 70px; top: 12%; right: 18%; border-radius: 4px; transform: rotate(18deg); }
.team-design__canvas i:nth-child(3) { width: 18px; height: 18px; bottom: 20%; right: 7%; border-color: #e32119; }

.team-tree {
  --tree-line: rgba(227,33,25,.68);
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
}

.team-tree__lead-wrap {
  display: flex;
  justify-content: center;
}

.team-tree__trunk {
  width: 1px;
  height: 78px;
  margin: 0 auto;
  background: linear-gradient(180deg, #e32119, var(--tree-line));
  transform-origin: top;
}

.team-tree__members {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(22px, 3vw, 48px);
  padding-top: 66px;
}

.team-tree__members::before {
  content: '';
  position: absolute;
  top: 0;
  right: calc(50% / var(--tree-count, 3));
  left: calc(50% / var(--tree-count, 3));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tree-line) 8%, var(--tree-line) 92%, transparent);
  transform-origin: center;
}

.team-tree__branch {
  position: relative;
}

.team-tree__branch::before {
  content: '';
  position: absolute;
  top: -66px;
  left: 50%;
  width: 1px;
  height: 66px;
  background: var(--tree-line);
  transform-origin: top;
}

.team-tree__branch::after {
  content: '';
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 11px;
  height: 11px;
  border: 2px solid #0b0b0b;
  border-radius: 50%;
  background: #e32119;
  box-shadow: 0 0 0 1px rgba(227,33,25,.4), 0 0 20px rgba(227,33,25,.65);
}

.team-person-card {
  position: relative;
  height: 100%;
  padding: 10px 10px 25px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(20,20,20,.9);
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  text-align: center;
  transition: border-color .4s ease, transform .5s cubic-bezier(.2,.75,.25,1), box-shadow .4s ease;
}

.team-person-card--lead {
  width: min(100%, 340px);
  border-color: rgba(227,33,25,.55);
  background: linear-gradient(145deg, #1d1d1d, #101010);
}

.team-person-card__badge {
  position: absolute;
  top: 23px;
  left: 23px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e32119;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.team-person-card__photo {
  position: relative;
  aspect-ratio: 4 / 4.25;
  overflow: hidden;
  border-radius: 15px;
  background: #252525;
}

.team-person-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.48));
}

.team-person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(.88);
  transition: transform .8s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}

.team-person-card__copy { padding: 22px 10px 0; }
.team-person-card__copy h3 { margin: 0 0 4px; color: #fff; font-size: clamp(21px, 2vw, 27px); }
.team-person-card__copy p { margin: 0 0 12px; color: #e32119; font-size: 14px; font-weight: 700; }
.team-person-card__copy small { display: block; min-height: 44px; color: #929292; font-size: 13px; line-height: 1.55; }
.team-person-card:hover { border-color: rgba(227,33,25,.72); box-shadow: 0 28px 75px rgba(0,0,0,.45); transform: translateY(-9px); }
.team-person-card:hover .team-person-card__photo img { transform: scale(1.055); filter: saturate(1); }

/* Development department / technical system. */
.team-development {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #030404;
}

.team-development::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(227,33,25,.025), transparent 30%, rgba(227,33,25,.04));
}

.team-development__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.team-development__orb {
  position: absolute;
  top: 2%;
  right: -12%;
  z-index: -1;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(163,14,1,.2), transparent 68%);
  filter: blur(28px);
}

.team-code-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8d8d8d;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: .12em;
}

.team-code-label i,
.team-dev-card__top i,
.team-csr-card__portrait span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #37d67a;
  box-shadow: 0 0 12px rgba(55,214,122,.85);
}

.team-development__heading h2 { font-family: var(--rr-ff-heading, sans-serif); }
.team-development__heading h2 span { display: inline-block; color: #e32119; animation: team-caret 1s steps(1) infinite; }

@keyframes team-caret { 50% { opacity: 0; } }

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

.team-dev-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #292929;
  border-radius: 8px;
  background: rgba(10,11,11,.92);
  box-shadow: 0 20px 80px rgba(0,0,0,.38);
  transition: border-color .35s ease, transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .35s ease;
}

.team-dev-card--lead { border-color: rgba(227,33,25,.55); }
.team-dev-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 45px rgba(227,33,25,.025); }

.team-dev-card__top,
.team-dev-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid #252525;
  color: #777;
  font: 11px/1.2 monospace;
  letter-spacing: .06em;
}

.team-dev-card__top span { color: #e32119; }
.team-dev-card__top i { margin-left: auto; }
.team-dev-card__main { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; align-items: center; gap: clamp(20px, 3vw, 42px); padding: clamp(18px, 3vw, 38px); }
.team-dev-card__photo { aspect-ratio: 1; overflow: hidden; border: 1px solid #2d2d2d; border-radius: 4px; background: #161616; clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%); }
.team-dev-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1) contrast(1.05); transition: filter .4s ease, transform .65s ease; }
.team-dev-card__status { display: inline-flex; margin-bottom: 12px; color: #37d67a; font: 10px/1 monospace; letter-spacing: .13em; }
.team-dev-card__main h3 { margin: 0 0 5px; color: #fff; font-size: clamp(24px, 2.3vw, 36px); }
.team-dev-card__main p { margin: 0 0 15px; color: #e32119; font: 13px/1.4 monospace; }
.team-dev-card__main small { display: block; color: #929292; font-size: 13px; line-height: 1.55; }
.team-dev-card__footer { justify-content: space-between; border-top: 1px solid #252525; border-bottom: 0; color: #555; }
.team-dev-card__footer span { color: #888; }
.team-dev-card__scan { position: absolute; z-index: 3; top: -20%; right: 0; left: 0; height: 75px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(227,33,25,.09), transparent); }
.team-dev-card:hover { border-color: #e32119; box-shadow: 0 25px 85px rgba(163,14,1,.16); transform: translateY(-7px); }
.team-dev-card:hover .team-dev-card__photo img { filter: grayscale(0); transform: scale(1.045); }
.team-dev-card:hover .team-dev-card__scan { opacity: 1; animation: team-scan 1.5s linear infinite; }

@keyframes team-scan { to { top: 110%; } }

/* CSR / warm, human conversation system. */
.team-csr {
  position: relative;
  overflow: hidden;
  color: #161616;
  background: #f3eee7;
}

.team-csr::before {
  content: 'HELLO';
  position: absolute;
  top: -4vw;
  right: -1vw;
  color: rgba(163,14,1,.055);
  font-size: clamp(160px, 28vw, 520px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

.team-csr__heading h2 { color: #151515; font-size: clamp(48px, 7.2vw, 112px); }
.team-csr__heading > p { color: #5c5651; }
.team-csr__kicker { display: inline-flex; align-items: center; gap: 9px; color: #a30e01; font-size: 12px; font-weight: 800; letter-spacing: .14em; }

.team-csr__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 42px);
}

.team-csr__rail::before {
  content: '';
  position: absolute;
  top: -22px;
  right: 0;
  left: 0;
  border-top: 1px dashed rgba(163,14,1,.28);
}

.team-csr-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(125px, 42%) 1fr;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(18,18,18,.12);
  border-radius: 28px 28px 28px 4px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 24px 65px rgba(52,35,23,.08);
  transition: transform .5s cubic-bezier(.2,.75,.25,1), box-shadow .4s ease;
}

.team-csr-card--lead { background: #a30e01; color: #fff; }
.team-csr-card__number { position: absolute; top: 16px; right: 20px; z-index: 2; color: rgba(20,20,20,.3); font: 12px/1 monospace; }
.team-csr-card--lead .team-csr-card__number { color: rgba(255,255,255,.45); }
.team-csr-card__portrait { position: relative; min-height: 330px; overflow: hidden; }
.team-csr-card__portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.44)); }
.team-csr-card__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .8s cubic-bezier(.2,.75,.25,1); }
.team-csr-card__portrait span { position: absolute; z-index: 2; right: 12px; bottom: 13px; left: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border-radius: 999px; background: rgba(8,8,8,.78); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .1em; backdrop-filter: blur(8px); }
.team-csr-card__copy { display: flex; flex-direction: column; justify-content: center; padding: 44px clamp(20px, 2.5vw, 38px) 30px; }
.team-csr-card__copy > span { margin-bottom: 14px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.team-csr-card__copy h3 { margin: 0 0 5px; color: #161616; font-size: clamp(25px, 2.2vw, 34px); }
.team-csr-card--lead .team-csr-card__copy h3 { color: #fff; }
.team-csr-card__copy p { margin: 0 0 16px; color: #a30e01; font-size: 14px; font-weight: 800; }
.team-csr-card--lead .team-csr-card__copy p { color: #fff; }
.team-csr-card__copy small { color: #69615b; font-size: 13px; line-height: 1.58; }
.team-csr-card--lead .team-csr-card__copy small { color: rgba(255,255,255,.72); }
.team-csr-card__links { display: flex; gap: 8px; margin-top: 24px; }
.team-csr-card__links a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(20,20,20,.2); border-radius: 50%; color: #181818; }
.team-csr-card--lead .team-csr-card__links a { border-color: rgba(255,255,255,.45); color: #fff; }
.team-csr-card__links a:hover { border-color: #e32119; background: #e32119; color: #fff; }
.team-csr-card:hover { box-shadow: 0 34px 80px rgba(52,35,23,.14); transform: translateY(-9px); }
.team-csr-card:hover .team-csr-card__portrait img { transform: scale(1.055); }
.team-department-empty--light { border-color: rgba(20,20,20,.22); color: #625d58; }

@media (max-width: 991px) {
  .team-department-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 62px; }
  .team-department-heading > p { max-width: 650px; }
  .team-dev-card__main { grid-template-columns: 120px 1fr; }
  .team-csr__rail { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .team-department-heading h2 { font-size: clamp(48px, 17vw, 76px); }
  .team-tree__trunk { height: 54px; }
  .team-tree__members { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; }
  .team-tree__members::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--tree-line), rgba(227,33,25,.08)); }
  .team-tree__branch { width: min(88%, 360px); margin: 0 auto; padding-top: 30px; }
  .team-tree__branch::before { top: 0; left: 50%; height: 30px; }
  .team-tree__branch::after { top: 25px; }
  .team-dev-grid { grid-template-columns: 1fr; }
  .team-dev-card__main { grid-template-columns: 110px 1fr; gap: 18px; padding: 18px; }
  .team-dev-card__footer { align-items: flex-start; flex-direction: column; justify-content: center; min-height: 64px; padding-block: 12px; }
  .team-csr-card { grid-template-columns: minmax(115px, 38%) 1fr; min-height: 300px; }
  .team-csr-card__portrait { min-height: 300px; }
}

@media (max-width: 480px) {
  .team-design__canvas i:nth-child(2) { display: none; }
  .team-person-card--lead { width: min(88%, 340px); }
  .team-person-card__copy small { min-height: 0; }
  .team-dev-card__main { grid-template-columns: 1fr; }
  .team-dev-card__photo { max-width: 180px; }
  .team-csr__rail { grid-template-columns: minmax(0, 1fr); }
  .team-csr-card { grid-template-columns: 1fr; }
  .team-csr-card__portrait { min-height: 330px; }
  .team-csr-card__copy { min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-development__heading h2 span,
  .team-dev-card:hover .team-dev-card__scan { animation: none; }
  .team-person-card,
  .team-person-card__photo img,
  .team-dev-card,
  .team-dev-card__photo img,
  .team-csr-card,
  .team-csr-card__portrait img { transition: none; }
}

/* Premium data-driven department system. */
.team-dept {
  --team-dark: #0a0a0a;
  --team-dark-alt: #111;
  --team-red: #e32119;
  --team-red-deep: #a30e01;
  --team-white: #fff;
  --team-muted: rgba(255,255,255,.68);
  --team-line: rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--team-dark);
}

.team-dept--development { background: var(--team-dark-alt); }
.team-dept--client { background: radial-gradient(circle at 88% 15%, rgba(163,14,1,.2), transparent 34%), var(--team-dark); }
.team-dept--generic:nth-of-type(even) { background: var(--team-dark-alt); }

/* Prevent the removed legacy client section from restoring its old cream surface. */
.team-csr { background: #0a0a0a; }

.team-dept__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .45;
  background-image: radial-gradient(rgba(255,255,255,.07) .7px, transparent .7px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 70%, transparent);
}

.team-dept--development .team-dept__ambient {
  opacity: .32;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 48px 48px;
}

.team-dept__header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .62fr);
  align-items: end;
  gap: clamp(32px, 8vw, 130px);
}

.team-dept__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--team-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.team-dept__eyebrow i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--team-red);
  box-shadow: 0 0 16px rgba(227,33,25,.75);
}

.team-dept__header h2 {
  margin: 15px 0 0;
  color: var(--team-white);
  font-size: clamp(54px, 8vw, 126px);
  line-height: .9;
  letter-spacing: -.055em;
}

.team-dept__header > p {
  max-width: 540px;
  margin: 0 0 5px;
  color: rgba(255,255,255,.74);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
}

.team-dept__hairline {
  margin: clamp(36px, 5vw, 66px) 0 clamp(58px, 8vw, 110px);
  overflow: hidden;
}

.team-dept__hairline span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--team-red), rgba(255,255,255,.15) 22%, rgba(255,255,255,.07));
  transform-origin: left center;
}

.team-dept-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--team-line);
  background: rgba(20,20,20,.94);
  box-shadow: 0 20px 65px rgba(0,0,0,.26);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.team-dept-card:hover,
.team-dept-card:focus-within {
  border-color: var(--team-red);
  box-shadow: 0 24px 70px rgba(163,14,1,.2);
  transform: translateY(-6px);
}

.team-dept-card__image { position: relative; overflow: hidden; background: rgba(255,255,255,.06); }
.team-dept-card__image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.54)); }
.team-dept-card__image img,
.team-dev__portrait img,
.team-client__image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .4s ease; }
.team-dept-card:hover img,
.team-dept-card:focus-within img { transform: scale(1.04); }

.team-dept-card__body { padding: 22px; text-align: left; }
.team-dept-card__body h3,
.team-dev__content h3,
.team-client__panel h3 { margin: 0 0 7px; color: var(--team-white); font-size: clamp(20px, 1.6vw, 26px); font-weight: 800; line-height: 1.1; }
.team-dept-card__body > p,
.team-dev__content > p,
.team-client__panel > p { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: var(--team-white); font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.team-dept-card__body > p::before,
.team-dev__content > p::before,
.team-client__panel > p::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--team-red); }
.team-dept-card__body small,
.team-dev__content small,
.team-client__panel small { display: block; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; }

.team-dept-card__socials { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.team-dept-card__socials:empty { display: none; }
.team-dept-card__socials a { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: var(--team-white); font-size: 12px; transition: border-color .3s ease, background-color .3s ease, color .3s ease; }
.team-dept-card__socials a:hover,
.team-dept-card__socials a:focus-visible { border-color: var(--team-red); background: var(--team-red); color: var(--team-white); outline: none; }

/* Design: an animated organisation tree. */
.team-dept__tree { position: relative; max-width: 1280px; margin: 0 auto; }
.team-dept__lead { position: relative; z-index: 3; display: flex; justify-content: center; }
.team-dept-card--lead { width: min(100%, 350px); border-color: rgba(227,33,25,.48); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); }
.team-dept-card--lead .team-dept-card__image { aspect-ratio: 4 / 4.25; }
.team-dept-card__lead-tag { position: absolute; top: 20px; left: 20px; z-index: 2; padding: 8px 13px; border-radius: 999px; background: var(--team-red-deep); color: var(--team-white); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.team-dept__reports { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); justify-content: center; gap: clamp(20px, 3vw, 42px); margin-top: 150px; }
.team-dept__reports .team-dept-card { width: 100%; max-width: 340px; justify-self: center; }
.team-dept__reports .team-dept-card__image { aspect-ratio: 4 / 4.2; }
.team-dept__connectors { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.team-dept__connector-path { fill: none; stroke: rgba(227,33,25,.58); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.team-dept__connector-signal { fill: none; stroke: var(--team-red); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(227,33,25,.78)); }

/* Development: substantial editor cards that fill the available width. */
.team-dev__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: clamp(18px, 2.1vw, 32px); }
.team-dev__grid > :only-child { width: min(100%, 520px); justify-self: center; }
.team-dev__card { display: flex; min-height: 540px; flex-direction: column; border-radius: 20px; background: rgba(7,7,7,.96); }
.team-dev__card--lead { border-color: rgba(227,33,25,.5); }
.team-dev__bar { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 17px; border-bottom: 1px solid var(--team-line); color: rgba(255,255,255,.58); font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.team-dev__bar code { max-width: calc(100% - 95px); overflow: hidden; color: rgba(255,255,255,.86); white-space: nowrap; }
.team-dev__bar > span:last-child { margin-left: auto; color: rgba(255,255,255,.7); }
.team-dev__dots { display: flex; gap: 5px; }
.team-dev__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.34); }
.team-dev__dots i:first-child { background: var(--team-red); }
.team-dev__portrait { position: relative; min-height: 275px; flex: 1 1 auto; overflow: hidden; background: rgba(255,255,255,.04); }
.team-dev__portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.08) 5px); mix-blend-mode: overlay; }
.team-dev__portrait img { position: absolute; inset: 0; filter: grayscale(.82) contrast(1.06); }
.team-dev__texture { position: absolute; right: 14px; bottom: 12px; left: 14px; z-index: 2; overflow: hidden; color: rgba(255,255,255,.55); font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3em; white-space: nowrap; }
.team-dev__content { position: relative; min-height: 225px; padding: 25px; }
.team-dev__lead-label { display: inline-flex; margin-bottom: 14px; padding: 7px 10px; border-radius: 999px; background: var(--team-red-deep); color: var(--team-white); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.team-dev__content h3 { display: flex; align-items: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(20px, 1.55vw, 25px); }
.team-dev__content h3 i { width: 2px; height: 1em; margin-left: 7px; background: var(--team-red); opacity: 0; }
.team-dev__content small { min-height: 42px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.team-dev__scan { position: absolute; z-index: 3; top: -18%; right: 0; left: 0; height: 80px; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(227,33,25,.12), transparent); }
.team-dev__card:hover .team-dev__portrait img,
.team-dev__card:focus-within .team-dev__portrait img { filter: grayscale(.15) contrast(1); }
.team-dev__card:hover .team-dev__scan,
.team-dev__card:focus-within .team-dev__scan { animation: team-dev-scan .75s ease-out 1; }
.team-dev__card:hover .team-dev__content h3 i,
.team-dev__card:focus-within .team-dev__content h3 i { animation: team-dev-cursor .65s steps(1) 1; }

@keyframes team-dev-scan { 0% { top: -18%; opacity: 0; } 22% { opacity: 1; } 100% { top: 105%; opacity: 0; } }
@keyframes team-dev-cursor { 0%, 32%, 68% { opacity: 1; } 33%, 67%, 100% { opacity: 0; } }

/* Client success: dark human-centred feature cards / slider. */
.team-client__stage { overflow: visible; }
.team-client__stage--single { width: 100%; }
.team-client__card { display: grid; grid-template-columns: minmax(280px, .92fr) minmax(340px, 1.08fr); min-height: 560px; background: rgba(15,13,13,.96); }
.team-client__image { position: relative; min-height: 560px; overflow: hidden; background: rgba(255,255,255,.05); }
.team-client__image::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(163,14,1,.12), transparent 58%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 42%); mix-blend-mode: multiply; }
.team-client__panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 80px); background: linear-gradient(145deg, rgba(163,14,1,.65), rgba(12,12,12,.96) 72%); }
.team-client__panel > span { margin-bottom: 20px; color: var(--team-white); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.team-client__panel h3 { font-size: clamp(32px, 4vw, 62px); letter-spacing: -.035em; }
.team-client__panel small { max-width: 520px; font-size: 15px; }
.team-client__promise { display: flex; align-items: center; gap: 11px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: var(--team-white); }
.team-client__promise i { color: var(--team-red); }
.team-client__promise em { font-size: 13px; font-style: normal; letter-spacing: .035em; }
.team-client__slider .swiper-slide { width: min(88vw, 1180px); height: auto; }
.team-client__slider .team-client__card { height: 100%; }
.team-client__controls { display: flex; justify-content: flex-end; gap: 9px; margin-top: 26px; }
.team-client__controls button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: transparent; color: var(--team-white); transition: border-color .3s ease, background-color .3s ease; }
.team-client__controls button:hover,
.team-client__controls button:focus-visible { border-color: var(--team-red); background: var(--team-red); outline: none; }

.team-dept__generic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(18px, 2.5vw, 34px); }
.team-dept__generic-grid > :only-child { width: min(100%, 360px); justify-self: center; }
.team-dept__generic-grid .team-dept-card__image { aspect-ratio: 4 / 4.6; }

@media (max-width: 991px) {
  .team-dept__header { grid-template-columns: 1fr; gap: 24px; }
  .team-dept__header > p { max-width: 650px; }
  .team-dept__reports { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 120px; }
  .team-client__card { grid-template-columns: .9fr 1.1fr; min-height: 500px; }
  .team-client__image { min-height: 500px; }
}

@media (max-width: 767px) {
  .team-dept__header h2 { font-size: clamp(46px, 15vw, 72px); }
  .team-dept__hairline { margin-bottom: 58px; }
  .team-dept-card--lead { width: min(88%, 350px); }
  .team-dept__reports { grid-template-columns: 1fr; gap: 25px; margin-top: 84px; }
  .team-dept__reports .team-dept-card { width: min(88%, 350px); }
  .team-dev__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
  .team-dev__card { min-height: 500px; }
  .team-client__card { grid-template-columns: 1fr; min-height: 0; }
  .team-client__image { min-height: 420px; }
  .team-client__panel { min-height: 380px; }
  .team-client__slider .swiper-slide { width: 92%; }
}

@media (max-width: 480px) {
  .team-dept__header h2 { overflow-wrap: anywhere; }
  .team-dept__reports .team-dept-card,
  .team-dept-card--lead { width: 100%; }
  .team-dev__grid { grid-template-columns: 1fr; }
  .team-client__image { min-height: 360px; }
  .team-client__panel { min-height: 360px; padding: 30px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-dept-card,
  .team-dept-card img,
  .team-dept-card__socials a { transition: none; }
  .team-dev__card:hover .team-dev__scan,
  .team-dev__card:focus-within .team-dev__scan,
  .team-dev__card:hover .team-dev__content h3 i,
  .team-dev__card:focus-within .team-dev__content h3 i { animation: none; }
}
