body.team-page{
  --team-accent: #9e1825;
  --team-accent-deep: #69111a;
  --team-ink: #171214;
  --team-muted: #5c5f69;
  --team-surface: rgba(255, 250, 247, 0.84);
  --team-line: rgba(23, 18, 20, 0.08);
  --team-gold: #b78b43;
  background:
    radial-gradient(circle at 12% 12%, rgba(158, 24, 37, 0.16), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(10, 64, 77, 0.12), transparent 22%),
    linear-gradient(180deg, #fff9f5 0%, #fff 32%, #fff7f3 100%);
  color: var(--team-ink);
}

.team-page .u-header{
  position: relative;
  z-index: 30;
}

.team-page .page-wrap,
.team-main{
  padding-bottom: 56px;
}

.team-main{
  position: relative;
}

.team-main::before{
  content: "";
  position: fixed;
  inset: auto auto 4% -8%;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(183, 139, 67, 0.12) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.team-hero,
.team-hierarchy,
.team-branches{
  position: relative;
  z-index: 1;
}

.team-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: stretch;
  padding-top: 32px;
  margin-bottom: 34px;
}

.team-hero-panel,
.team-hero-aside,
.team-hierarchy,
.branch-card{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--team-line);
  border-radius: 32px;
  background: var(--team-surface);
  box-shadow: 0 28px 72px rgba(35, 18, 18, 0.10);
  backdrop-filter: blur(18px);
}

.team-hero-panel,
.team-hero-aside,
.team-hierarchy,
.branch-card{
  padding: 30px;
}

.team-hero-panel::before,
.team-hero-aside::before,
.team-hierarchy::before,
.branch-card::before{
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.16;
}

.team-hero-panel::before{
  top: -90px;
  right: -50px;
  background: radial-gradient(circle, rgba(158, 24, 37, 0.95) 0%, transparent 68%);
}

.team-hero-aside::before{
  bottom: -110px;
  right: -40px;
  background: radial-gradient(circle, rgba(10, 64, 77, 0.9) 0%, transparent 70%);
}

.team-hierarchy::before{
  top: -110px;
  left: -70px;
  background: radial-gradient(circle, rgba(183, 139, 67, 0.75) 0%, transparent 70%);
}

.branch-card::before{
  top: -120px;
  right: -70px;
  background: radial-gradient(circle, rgba(158, 24, 37, 0.7) 0%, transparent 70%);
}

.team-eyebrow,
.team-section-kicker,
.team-note-kicker,
.branch-kicker,
.branch-block-kicker{
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.team-eyebrow,
.team-section-kicker,
.team-note-kicker,
.branch-kicker,
.branch-block-kicker{
  color: var(--team-accent);
}

.team-title,
.team-section-head h2,
.branch-title,
.team-card-name,
.featured-heading h4,
.aux-team-card h4,
.branch-block h4,
.team-hero-note h2{
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
}

.team-title{
  margin: 14px 0 0;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--team-ink);
  max-width: 10ch;
}

.team-lead,
.team-section-head p,
.team-card-summary,
.branch-description{
  color: var(--team-muted);
  line-height: 1.75;
  font-size: 12px;
}

.team-lead{
  margin: 18px 0 0;
  max-width: 62ch;
}

.team-hero-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.team-stat-card{
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 238, 233, 0.88));
  border: 1px solid rgba(23, 18, 20, 0.06);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-stat-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(23, 18, 20, 0.08);
}

.team-stat-card strong{
  display: block;
  font-size: 22px;
  line-height: 1;
  color: var(--team-accent-deep);
}

.team-stat-card span{
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--team-muted);
  font-weight: 600;
  line-height: 1.5;
}

.team-hero-aside{
  display: grid;
  gap: 22px;
  align-content: space-between;
}

.team-orbit{
  position: relative;
  min-height: 290px;
  border-radius: 28px;
  border: 1px dashed rgba(158, 24, 37, 0.22);
  background:
    radial-gradient(circle at center, rgba(158, 24, 37, 0.08) 0%, transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 237, 232, 0.82));
}

.team-orbit::before,
.team-orbit::after{
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(23, 18, 20, 0.08);
}

.team-orbit::before{
  width: 74%;
  height: 74%;
}

.team-orbit::after{
  width: 42%;
  height: 42%;
}

.team-orbit-node{
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 18, 20, 0.08);
  box-shadow: 0 10px 24px rgba(23, 18, 20, 0.08);
  color: var(--team-ink);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.team-orbit-node-chief{
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--team-accent), var(--team-accent-deep));
  border-color: transparent;
  color: #fff;
}

.team-orbit-node-tech{
  top: 94px;
  left: 28px;
}

.team-orbit-node-it{
  top: 94px;
  right: 28px;
}

.team-orbit-node-barcelona{
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(158, 24, 37, 0.12), rgba(183, 139, 67, 0.15));
}

.team-orbit-node-san-antonio{
  bottom: 78px;
  left: 18px;
}

.team-orbit-node-boquemonte{
  bottom: 78px;
  right: 18px;
}

.team-hero-note{
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 239, 234, 0.88));
  border: 1px solid rgba(23, 18, 20, 0.08);
}

.team-hero-note h2{
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.08;
}

.team-hero-note p{
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--team-muted);
  line-height: 1.7;
}

.team-hierarchy{
  margin-bottom: 34px;
}

.team-section-head{
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.team-section-head h2{
  margin: 12px 0 0;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.02;
  color: var(--team-ink);
}

.team-section-head p{
  margin: 14px 0 0;
  max-width: 70ch;
}

.team-flow{
  position: relative;
  display: grid;
  gap: 22px;
}

.team-flow-layer-chief{
  display: flex;
  justify-content: center;
}

.team-flow-connector{
  display: flex;
  justify-content: center;
}

.team-flow-connector span{
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, var(--team-accent), rgba(158, 24, 37, 0.04));
}

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

.team-card{
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(23, 18, 20, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 239, 235, 0.92));
  box-shadow: 0 16px 34px rgba(23, 18, 20, 0.06);
}

.team-card-chief{
  width: min(100%, 880px);
  padding-top: 54px;
  background:
    linear-gradient(135deg, rgba(158, 24, 37, 0.95), rgba(77, 12, 20, 0.98));
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.team-card-chief .team-card-role,
.team-card-chief .team-card-name,
.team-card-chief .team-card-summary,
.team-card-chief .team-list{
  color: #fff;
}

.team-card-chief .team-card-role{
  color: rgba(255, 240, 240, 0.78);
}

.team-card-support{
  padding-top: 52px;
}

.team-card-mark{
  position: absolute;
  top: 18px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 18, 20, 0.08);
  color: var(--team-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card-chief .team-card-mark{
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.team-media{
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(23, 18, 20, 0.08);
  background: linear-gradient(135deg, #f3ddd2, #edd9cf);
}

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

.team-media-person{
  width: 124px;
  height: 150px;
}

.team-media-chief{
  width: 124px;
  height: 160px;
}

.team-media-branch{
  width: 138px;
  height: 138px;
}

.team-media-group{
  width: 100px;
  height: 100px;
}

.team-media.is-placeholder{
  display: grid;
  place-items: center;
  color: var(--team-accent);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.team-card-chief .team-media.is-placeholder{
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
}

.team-media.is-placeholder span{
  font-size: 22px;
}

.team-card-body{
  display: grid;
  gap: 10px;
  align-content: start;
}

.team-card-role{
  margin: 0;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--team-accent);
}

.team-card-name{
  margin: 0;
  font-size: 20px;
  line-height: 1.04;
}

.team-card-summary{
  margin: 0;
}

.team-list{
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.team-list li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.6;
}

.team-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--team-accent), var(--team-gold));
  transform: translateY(-50%);
}

.team-card-chief .team-list li::before{
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.6));
}

.branch-layout{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.branch-card{
  grid-column: span 4;
}

.branch-card-featured{
  grid-column: span 8;
  border-color: rgba(158, 24, 37, 0.18);
  box-shadow: 0 30px 78px rgba(158, 24, 37, 0.14);
}

.branch-shell{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.branch-header{
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.branch-header-copy{
  position: relative;
}

.branch-title{
  margin: 12px 0 0;
  font-size: clamp(21px, 2.2vw, 31px);
  line-height: 1.02;
  color: var(--team-ink);
}

.branch-description{
  margin: 12px 0 0;
}

.branch-kicker-highlight{
  color: var(--team-gold);
}

.branch-meta-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.branch-meta-card{
  padding: 16px;
  border-radius: 22px;
  background: rgba(23, 18, 20, 0.03);
  border: 1px solid rgba(23, 18, 20, 0.05);
}

.branch-meta-label{
  display: block;
  margin-bottom: 8px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--team-accent);
}

.branch-meta-card strong{
  display: block;
  font-size: 12px;
  color: var(--team-ink);
  line-height: 1.55;
}

.branch-content{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.branch-card-featured .branch-content{
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
}

.branch-block,
.aux-team-card,
.featured-card{
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 239, 235, 0.90));
  border: 1px solid rgba(23, 18, 20, 0.08);
}

.branch-block h4,
.aux-team-card h4,
.featured-heading h4{
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.08;
  color: var(--team-ink);
}

.aux-team-head{
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.featured-team{
  display: grid;
  gap: 14px;
}

.featured-heading h4{
  margin-top: 10px;
}

.featured-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.featured-card{
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
}

.featured-card .team-card-name{
  font-size: 16px;
}

[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px){
  .branch-card,
  .branch-card-featured{
    grid-column: span 12;
  }

  .branch-card-featured .branch-content{
    grid-template-columns: 1fr;
  }
}

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

  .team-hero-stats,
  .team-flow-layer-support,
  .branch-meta-grid,
  .featured-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .team-hero-panel,
  .team-hero-aside,
  .team-hierarchy,
  .branch-card{
    padding: 22px;
    border-radius: 26px;
  }

  .team-card,
  .team-card-chief,
  .team-card-support,
  .branch-header,
  .aux-team-head,
  .featured-card{
    grid-template-columns: 1fr;
  }

  .team-media-chief,
  .team-media-person,
  .team-media-branch,
  .team-media-group{
    width: 100%;
    height: 220px;
  }

  .team-orbit{
    min-height: 360px;
  }

  .team-orbit-node-tech{
    top: 102px;
    left: 16px;
  }

  .team-orbit-node-it{
    top: 102px;
    right: 16px;
  }

  .team-orbit-node-san-antonio{
    left: 10px;
  }

  .team-orbit-node-boquemonte{
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce){
  [data-reveal],
  .team-stat-card{
    transition: none;
    transform: none;
  }
}
