/* ===== Team page ===== */

/* Hero */
.team-hero {
  background: var(--navy);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 85% 15%, rgba(216,93,69,0.18), transparent 60%),
    radial-gradient(600px 320px at 15% 90%, rgba(216,93,69,0.10), transparent 60%);
  pointer-events: none;
}
.team-hero .container { position: relative; }
.team-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.team-hero-text .crumbs { margin-bottom: 18px; }
.team-hero-text .h1 { color: #fff; max-width: 14ch; }
.team-hero-text .lede { color: rgba(255,255,255,0.82); margin-top: 18px; max-width: 56ch; }
.team-hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
}
.team-hero-meta strong { color: #fff; font-weight: 600; }
.team-hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #16335f 0%, #0a1f3d 100%);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.team-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.team-hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,61,0.05) 0%, rgba(10,31,61,0.55) 100%);
}
.team-hero-photo .caption {
  position: absolute;
  left: 18px; bottom: 16px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 2;
}
@media (max-width: 900px) {
  .team-hero { padding: 72px 0 56px; }
  .team-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .team-hero-photo { aspect-ratio: 4/3; max-width: 520px; }
}

/* Leadership */
.section-head + .lead-grid { margin-top: 8px; }
.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 767px) {
  .lead-grid { grid-template-columns: 1fr; gap: 20px; }
}
.lead-card {
  background: #fff;
  border: 1px solid rgba(10,31,61,0.08);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
  height: 100%;
}
.lead-card:hover,
.lead-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10,31,61,0.10);
  border-color: rgba(10,31,61,0.14);
}
.lead-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
}
.lead-photo.tone-navy {
  background:
    radial-gradient(80% 60% at 30% 25%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(160deg, #16335f 0%, #0a1f3d 100%);
}
.lead-photo.tone-coral {
  background:
    radial-gradient(80% 60% at 30% 25%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(160deg, #d85d45 0%, #b14a37 100%);
}
.lead-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lead-photo .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.lead-body {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.lead-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
}
.lead-title {
  font-size: 13.5px;
  color: var(--coral);
  font-weight: 600;
  letter-spacing: 0.005em;
  margin-bottom: 4px;
}
.lead-bio {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(10,31,61,0.78);
  margin: 0;
}
.lead-owns {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(10,31,61,0.62);
  border-top: 1px solid rgba(10,31,61,0.08);
  padding-top: 12px;
  margin-top: 4px;
}
.lead-owns .owns-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  font-size: 11px;
  margin-right: 4px;
}
.lead-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.lead-li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(10,31,61,0.55);
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.lead-li:hover { color: var(--coral); background: rgba(216,93,69,0.08); }
.lead-card:hover .lead-li { color: var(--coral); }
.lead-li:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.lead-li-pending {
  cursor: default;
  color: rgba(10,31,61,0.35);
}
.lead-li-pending:hover { color: rgba(10,31,61,0.35); background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .lead-card,
  .lead-li { transition: color .2s ease, background .2s ease; }
  .lead-card:hover, .lead-card:focus-within { transform: none; }
}

/* Stat tiles */
.team-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .team-stats { grid-template-columns: repeat(2, 1fr); } }
.team-stat {
  background: #fff;
  border: 1px solid rgba(10,31,61,0.08);
  border-radius: 14px;
  padding: 24px;
}
.team-stat .num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.team-stat .lbl {
  font-size: 13.5px;
  color: rgba(10,31,61,0.7);
  line-height: 1.45;
}

/* Functional teams */
.func-block { margin-bottom: 64px; }
.func-block:last-child { margin-bottom: 0; }
.func-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(10,31,61,0.08);
}
@media (max-width: 760px) {
  .func-head { grid-template-columns: 1fr; gap: 12px; }
}
.func-head h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0;
  font-weight: 500;
}
.func-head .intro {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(10,31,61,0.72);
}
.func-head .intro strong { color: var(--navy); font-weight: 600; }
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1024px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .member-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .member-grid { grid-template-columns: 1fr 1fr; } }

.member {
  background: #fff;
  border: 1px solid rgba(10,31,61,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
  position: relative;
}
.member:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(10,31,61,0.10);
  border-color: rgba(10,31,61,0.14);
}
.member-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #f4ead4, #e8d9b8);
  position: relative;
  overflow: hidden;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
}
.member-body { padding: 14px 14px 16px; }
.member-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.member-role {
  font-size: 12.5px;
  color: rgba(10,31,61,0.62);
  line-height: 1.4;
}
.member-spec {
  margin-top: 8px;
  font-size: 12px;
  color: var(--coral);
  font-weight: 500;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .2s ease, max-height .2s ease, margin-top .2s ease;
}
.member:hover .member-spec,
.member:focus-within .member-spec {
  opacity: 1;
  max-height: 40px;
}
@media (hover: none) {
  .member-spec { opacity: 1; max-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .member { transition: none; }
  .member-spec { transition: none; }
}

.member-more {
  background: var(--sand);
  border: 1px dashed rgba(10,31,61,0.2);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  min-height: 100%;
  aspect-ratio: 4/5;
}

/* How we hire */
.hire-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 900px) { .hire-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .hire-grid { grid-template-columns: 1fr; } }
.hire-step {
  background: #fff;
  border: 1px solid rgba(10,31,61,0.08);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.hire-step .step-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 10px;
}
.hire-step h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 8px;
}
.hire-step p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10,31,61,0.72);
  margin: 0;
}
.hire-yield {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--sand);
  border-radius: 12px;
  text-align: center;
  font-size: 14.5px;
  color: var(--navy);
}
.hire-yield strong { color: var(--coral); }

/* Where we work */
.where-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .where-grid { grid-template-columns: 1fr; } }
.where-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.where-stat {
  background: var(--sand);
  border-radius: 10px;
  padding: 16px;
}
.where-stat .lbl { font-size: 12px; color: rgba(10,31,61,0.6); margin-bottom: 4px; }
.where-stat .val { font-weight: 600; color: var(--navy); font-size: 15px; }
.world-card {
  background: var(--navy);
  border-radius: 18px;
  padding: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.world-card::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 30% 30%, rgba(216,93,69,0.18), transparent 60%),
    radial-gradient(300px 180px at 80% 70%, rgba(255,255,255,0.06), transparent 60%);
}
.world-card .label { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.world-pin {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
.world-pin .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(216,93,69,0.25);
}
.world-pin.cebu { top: 38%; left: 62%; }
.world-pin.us   { top: 28%; left: 22%; opacity: 0.55; }
.world-pin.eu   { top: 22%; left: 48%; opacity: 0.55; }
.world-pin.au   { top: 70%; left: 78%; opacity: 0.55; }

/* Closing CTA */
.team-cta {
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.team-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 100%, rgba(216,93,69,0.22), transparent 60%);
}
.team-cta > * { position: relative; }
.team-cta h2 { color: #fff; max-width: 18ch; margin: 0 auto 14px; }
.team-cta p { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto 28px; }
.team-cta .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .team-cta { padding: 40px 24px; border-radius: 16px; }
}
