:root {
  --green: #14532d;
  --green-2: #166534;
  --green-soft: #e8f2ec;
  --ink: #10231b;
  --muted: #65736c;
  --paper: #f7faf8;
  --white: #ffffff;
  --line: #dce7e1;
  --line-strong: #bfd2c6;
  --shadow: 0 18px 50px rgba(16, 35, 27, .08);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}
/* Hero */
.team-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 28%, rgba(20,83,45,.09), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f2f7f4 100%);
  border-bottom: 1px solid var(--line);
}
.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20,83,45,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,83,45,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}
.team-hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  padding: 84px 0 94px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.team-hero h1,
.section-heading h2,
.team-cta h2,
.modal-panel h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.05em;
  line-height: 1.05;
  margin: 0;
}
.team-hero h1 { max-width: 720px; font-size: clamp(3.2rem, 6vw, 5.8rem); }
.team-hero h1 span,
.section-heading h2 span,
.team-cta h2 span { color: var(--green); }
.hero-lead {
  max-width: 670px;
  margin: 26px 0 0;
  color: #4c5d54;
  font-size: 1.12rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(16,35,27,.08); }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: #0e4525; }
.button-ghost { background: rgba(255,255,255,.6); color: var(--green); }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 32px;
  color: #516159;
  font-size: .85rem;
}
.hero-proof b { color: var(--green); margin-right: 5px; }

.org-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(540px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(20,83,45,.12);
  border-radius: 38px;
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.org-preview::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(20,83,45,.14);
  border-radius: 50%;
}
.org-orbit {
  position: absolute;
  border: 1px solid rgba(20,83,45,.11);
  border-radius: 50%;
  inset: 24%;
}
.org-orbit-one { transform: rotate(8deg); }
.org-orbit-two { inset: 15%; transform: rotate(-28deg); border-style: dashed; }
.org-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150px; height: 150px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px rgba(20,83,45,.11);
}
.org-core i { color: var(--green); font-size: 1.5rem; margin-bottom: 5px; }
.org-core strong { font-family: "Manrope", sans-serif; font-size: .95rem; }
.org-core small { color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.org-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #33423a;
  box-shadow: 0 8px 22px rgba(16,35,27,.05);
  font-size: .78rem;
  font-weight: 700;
}
.org-node i { color: var(--green); }
.org-node-a { top: 11%; left: 10%; }
.org-node-b { top: 20%; right: 7%; }
.org-node-c { bottom: 20%; left: 6%; }
.org-node-d { bottom: 11%; right: 8%; }

/* Sections */
.section { padding: 104px 0; }
.team-section { background: #f9fbfa; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 46px;
}
.section-heading h2 { font-size: clamp(2.3rem, 4.1vw, 4.2rem); max-width: 700px; }
.section-heading > p { margin: 0; color: var(--muted); }
.team-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 52px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #506059;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 700;
  transition: .2s ease;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--green); }
.filter-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* Org chart */
.org-chart { position: relative; }
.org-level { display: grid; gap: 20px; }
.org-level-executive { max-width: 500px; margin: 0 auto; }
.org-level-leads { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.org-level-specialists { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.connector { position: relative; height: 68px; }
.connector-main::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: var(--line-strong);
}
.connector-main span,
.connector-branch span {
  position: absolute;
  top: calc(50% - 1px);
  left: 50%;
  width: min(70%, 720px);
  height: 1px;
  transform: translateX(-50%);
  background: var(--line-strong);
}
.connector-branch::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: var(--line-strong);
}

.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 13px 35px rgba(16,35,27,.05);
  transition: transform .22s ease, box-shadow .22s ease, opacity .2s ease;
}
.person-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(16,35,27,.10); }
.person-card:focus-visible { outline: 3px solid rgba(20,83,45,.18); outline-offset: 3px; }
.person-card.is-hidden { display: none; }
.person-card-executive { border-color: rgba(20,83,45,.25); }
.person-visual {
  position: relative;
  min-height: 165px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.person-visual::before,
.person-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.42);
  z-index: -1;
}
.person-visual::before { width: 205px; height: 205px; }
.person-visual::after { width: 125px; height: 125px; }
.person-visual-green { background: linear-gradient(135deg, #dbeee1, #b9d9c2); }
.person-visual-blue { background: linear-gradient(135deg, #e0eef5, #b8d5e4); }
.person-visual-purple { background: linear-gradient(135deg, #eee9f8, #d9cbef); }
.person-visual-orange { background: linear-gradient(135deg, #fff1e5, #f1d4b8); }
.person-visual-teal { background: linear-gradient(135deg, #d9f0ec, #b4d9d1); }
.person-visual-indigo { background: linear-gradient(135deg, #e5eaf9, #c4cfe9); }
.person-visual-slate { background: linear-gradient(135deg, #e8edf0, #cdd5da); }
.person-visual-green-soft { background: linear-gradient(135deg, #e8f2ea, #cce3d1); }
.avatar-initials {
  width: 86px; height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.95);
  color: var(--green);
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 15px 30px rgba(16,35,27,.07);
}
.person-status {
  position: absolute;
  left: 14px; top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #31423a;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.person-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.person-level {
  margin: 0 0 5px;
  color: var(--green);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.person-body h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  line-height: 1.15;
}
.person-role { margin: 7px 0 13px; color: #516159; font-size: .86rem; font-weight: 700; }
.person-summary { margin: 0; color: #69776f; font-size: .83rem; line-height: 1.7; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.skill-tags span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: #55635d;
  font-size: .67rem;
  font-weight: 700;
  background: #fafcfb;
}
.profile-trigger {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: .8rem;
  font-weight: 800;
}
.profile-trigger i { transition: transform .2s ease; }
.profile-trigger:hover i { transform: translateX(4px); }

.team-note {
  margin-top: 34px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  color: #5e6b65;
  font-size: .81rem;
}
.team-note i { color: var(--green); margin-top: 4px; }
.team-note p { margin: 0; }
.team-note code { padding: 2px 5px; border-radius: 5px; background: var(--green-soft); color: var(--green); }

/* Capabilities */
.capabilities { background: #fff; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.capability-card {
  position: relative;
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
  background: #fbfdfc;
}
.capability-card::after {
  content: "";
  position: absolute;
  width: 130px; height: 130px;
  right: -55px; bottom: -55px;
  border: 1px solid rgba(20,83,45,.08);
  border-radius: 50%;
}
.capability-number { color: #9aaba1; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.capability-icon { display: block; margin: 34px 0 14px; color: var(--green); font-size: 1.25rem; }
.capability-card h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.15rem; }
.capability-card p { margin: 8px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.7; }

/* CTA */
.team-cta { background: var(--green); color: #fff; }
.team-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; }
.team-cta .eyebrow { color: #bfe4ca; }
.team-cta h2 { font-size: clamp(2.3rem, 4vw, 4.2rem); max-width: 730px; }
.team-cta h2 span { color: #c6eed0; }
.team-cta p:not(.eyebrow) { max-width: 720px; margin: 18px 0 0; color: rgba(255,255,255,.78); }
.team-cta .button-primary { background: #fff; color: var(--green); border-color: #fff; white-space: nowrap; }
.team-cta .button-primary:hover { background: #f5f9f6; }

/* Modal */
.profile-modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.profile-modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,22,14,.56); backdrop-filter: blur(7px); }
.modal-panel {
  position: relative;
  width: min(660px, calc(100% - 30px));
  max-height: min(720px, calc(100vh - 30px));
  overflow: auto;
  margin: 15px auto;
  top: 50%;
  transform: translateY(-50%);
  padding: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}
.modal-close {
  position: absolute;
  top: 17px; right: 17px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.modal-topline { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.modal-topline span { padding: 5px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .68rem; font-weight: 800; }
.modal-panel h2 { padding-right: 50px; font-size: clamp(2rem, 4vw, 3.3rem); }
.modal-role { margin: 8px 0 0; color: #52625a; font-weight: 700; }
.modal-divider { width: 60px; height: 2px; margin: 23px 0; background: var(--green); }
.modal-summary { margin: 0; color: #536159; line-height: 1.85; }
.modal-focus { margin-top: 28px; }
.modal-focus p { margin: 0; font-size: .78rem; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1050px) {
  .team-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .team-hero-copy { text-align: center; }
  .team-hero h1, .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .org-preview { width: min(520px, 100%); }
  .org-level-leads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-level-specialists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .container { width: min(var(--max), calc(100% - 30px)); }
  .brand-info { display: none; }
  .team-hero-grid { min-height: auto; padding: 72px 0 74px; }
  .team-hero h1 { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .org-preview { width: min(460px, 100%); border-radius: 28px; }
  .org-node { font-size: .7rem; padding: 8px 10px; }
  .org-node-a { top: 8%; left: 4%; }
  .org-node-b { top: 14%; right: 3%; }
  .org-node-c { bottom: 16%; left: 2%; }
  .org-node-d { bottom: 8%; right: 3%; }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .org-level-leads, .org-level-specialists { grid-template-columns: 1fr; }
  .connector { display: none; }
  .team-controls { margin-bottom: 30px; }
  .team-note { flex-direction: column; }
  .team-cta-inner { grid-template-columns: 1fr; gap: 25px; }
  .footer-network { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions .button { width: 100%; justify-content: center; }
  .hero-proof { display: grid; justify-items: center; }
  .org-preview { aspect-ratio: .98 / 1; }
  .org-core { width: 125px; height: 125px; }
  .org-node { transform: scale(.94); }
  .person-visual { min-height: 145px; }
  .person-body { padding: 19px; }
  .capability-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 26px 21px; }
}
