/*
 * Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4
 * Hallmark · genre: modern-minimal · macrostructure: Operating Roster
 * Design system: Esotech Signal Field · enrichment: authored personnel schematic
 * Contrast: pass (40–41) · nav: N11 · footer: Ft1 · slop: pass (42–45)
 * Honest: pass (46) · chrome: pass (47) · tokens: pass (48) · icons: pass (30)
 * Responsive: pass (49) · mobile: pass (34, 49–57)
 */

html,
.team-page {
  overflow-x: clip;
}

.team-page {
  background: var(--surface-deep);
}

.team-page section[id],
.team-page header[id] {
  scroll-margin-top: 5rem;
}

.team-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: 6.5rem 0 8.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(90deg, transparent 0 64%, color-mix(in oklch, var(--brand-blue) 5%, transparent) 64%),
    radial-gradient(circle at 79% 42%, color-mix(in oklch, var(--brand-blue) 12%, transparent), transparent 29%),
    color-mix(in oklch, var(--surface-deep) 96%, transparent);
}

.team-hero::before,
.team-hero::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand-blue-bright);
  pointer-events: none;
}

.team-hero::before {
  top: 6.4rem;
  left: max(1.25rem, calc((100% - 90rem) / 2));
  border-top: 1px solid;
  border-left: 1px solid;
}

.team-hero::after {
  right: max(1.25rem, calc((100% - 90rem) / 2));
  bottom: 2.1rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.team-hero__meta,
.team-hero__scale {
  position: absolute;
  right: max(1.5rem, calc((100% - 90rem) / 2));
  left: max(1.5rem, calc((100% - 90rem) / 2));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: color-mix(in oklch, var(--brand-blue-bright) 78%, var(--ink-soft));
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-hero__meta {
  top: 6.65rem;
  padding-left: 2rem;
}

.team-hero__scale {
  bottom: 1.9rem;
  color: var(--ink-muted);
}

.team-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(24rem, 5fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: end;
}

.team-hero__copy {
  position: relative;
  z-index: 2;
}

.team-kicker,
.team-section-head > p,
.team-department__head > span,
.team-department__head > p,
.roster-index,
.team-member__index,
.contact-person__story span,
.accountability-ledger article > span {
  color: var(--brand-blue-bright);
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-kicker {
  margin: 0 0 1.5rem;
}

.team-hero h1 {
  min-width: 0;
  max-width: 9ch;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-heading);
  font-size: clamp(4.25rem, 7.4vw, 7.5rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.team-hero h1 span {
  display: block;
}

.team-hero h1 span + span {
  margin-top: 0.1em;
}

.team-hero h1 em {
  color: var(--brand-blue-bright);
  font-style: normal;
}

.team-hero__copy > p:not(.team-kicker) {
  max-width: 51ch;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.65vw, 1.25rem);
  line-height: 1.62;
}

.team-hero__route {
  margin-top: 2rem;
}

.team-map {
  position: relative;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.team-map::before {
  content: "PLATE / P-01";
  position: absolute;
  top: 1.25rem;
  left: 0;
  z-index: 1;
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.team-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.team-map path,
.team-map circle {
  vector-effect: non-scaling-stroke;
}

.team-map__measure {
  fill: none;
  stroke: color-mix(in oklch, var(--brand-blue-bright) 28%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.team-map__routes {
  fill: none;
  stroke: color-mix(in oklch, var(--ink-strong) 64%, var(--brand-blue));
  stroke-width: 1.25;
  stroke-dasharray: 780;
  stroke-dashoffset: 780;
  animation: team-route-draw 1.45s var(--ease-out) 0.2s forwards;
}

.team-map__nodes {
  fill: var(--brand-blue-bright);
  stroke: var(--surface-deep);
  stroke-width: 4;
}

.team-map__mark {
  fill: color-mix(in oklch, var(--surface-deep) 74%, transparent);
  stroke: var(--ink-strong);
  stroke-width: 2.6;
}

.team-map__core {
  fill: var(--brand-blue);
  stroke: var(--brand-blue-bright);
}

.team-map__labels {
  fill: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.team-map figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-block: 1px solid var(--rule);
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-map figcaption span {
  color: var(--ink-strong);
}

@keyframes team-route-draw {
  to { stroke-dashoffset: 0; }
}

.team-leadership,
.team-access {
  padding: clamp(7rem, 11vw, 11rem) 0;
  background: color-mix(in oklch, var(--surface-raised) 92%, transparent);
}

.team-operating {
  padding: clamp(7rem, 11vw, 11rem) 0;
  border-block: 1px solid var(--rule);
  background:
    radial-gradient(circle at 17% 22%, color-mix(in oklch, var(--brand-blue) 8%, transparent), transparent 24%),
    var(--surface-deep);
}

.team-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: clamp(4rem, 7vw, 7rem);
}

.team-section-head > p {
  margin: 0;
}

.team-section-head h2 {
  min-width: 0;
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(3.1rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.founder-roster-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1.5fr) minmax(16rem, 3.25fr) minmax(20rem, 5fr) minmax(10rem, 2fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-block: 1px solid var(--rule);
}

.roster-identity h3,
.contact-person__identity h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.roster-identity p,
.contact-person__identity p {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.founder-roster-row > p,
.leadership-ledger article > p,
.team-member > p,
.contact-person__story > p:first-child {
  max-width: 58ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.founder-roster-row > .text-action {
  justify-self: end;
}

.leadership-ledger {
  border-bottom: 1px solid var(--rule);
}

.leadership-ledger article {
  display: grid;
  grid-template-columns: minmax(8.5rem, 2fr) minmax(16rem, 4fr) minmax(20rem, 6fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: baseline;
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}

.leadership-ledger .roster-identity h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
}

.team-department {
  display: grid;
  grid-template-columns: minmax(17rem, 4fr) minmax(0, 8fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.team-department + .team-department {
  margin-top: clamp(7rem, 11vw, 11rem);
}

.team-department__head {
  position: sticky;
  top: 7rem;
  min-width: 0;
}

.team-department__head > span,
.team-department__head > p {
  display: block;
  margin: 0;
}

.team-department__head h3 {
  max-width: 11ch;
  margin: 1.25rem 0 3rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.team-department__head > p {
  color: var(--ink-muted);
  font-size: 0.67rem;
}

.team-department__head strong {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.team-department__head a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  color: var(--brand-blue-bright);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.team-department__people {
  min-width: 0;
  border-bottom: 1px solid var(--rule);
}

.team-member {
  display: grid;
  grid-template-columns: 3.5rem minmax(12rem, 4fr) minmax(0, 6fr);
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: baseline;
  min-width: 0;
  padding: 1.8rem 0;
  border-top: 1px solid var(--rule);
}

.team-member__index {
  color: var(--ink-muted);
}

.team-member h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.team-member > div > p {
  margin: 0.45rem 0 0;
  color: var(--brand-blue-bright);
  font-family: var(--font-data);
  font-size: 0.69rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.team-subgroup-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 1.15rem 0;
  border-top: 1px solid var(--brand-blue-bright);
  color: var(--ink-strong);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-subgroup-title small {
  color: var(--ink-muted);
  font: inherit;
}

.contact-ledger {
  border-bottom: 1px solid var(--rule);
}

.contact-person {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1.5fr) minmax(16rem, 3fr) minmax(20rem, 5fr) minmax(11rem, 2.5fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-top: 1px solid var(--rule);
}

.contact-person__story > p:last-child {
  margin: 1.4rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-person__story span {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-person__links {
  display: grid;
  align-content: start;
}

.contact-person__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.contact-person__links a:first-child {
  border-top: 1px solid var(--rule-soft);
}

.contact-person__links a:hover {
  color: var(--brand-blue-bright);
}

.team-accountability {
  padding: clamp(7rem, 11vw, 11rem) 0;
  color: var(--ink-dark);
  background: var(--surface-mist);
}

.team-section-head--light > p,
.accountability-ledger article > span {
  color: var(--brand-blue-dark-label);
}

.accountability-ledger {
  border-bottom: 1px solid color-mix(in oklch, var(--ink-dark) 24%, transparent);
}

.accountability-ledger article {
  display: grid;
  grid-template-columns: minmax(8.5rem, 2fr) minmax(16rem, 4fr) minmax(20rem, 6fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: baseline;
  padding: 2.4rem 0;
  border-top: 1px solid color-mix(in oklch, var(--ink-dark) 24%, transparent);
}

.accountability-ledger h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.accountability-ledger p {
  max-width: 58ch;
  margin: 0;
  color: color-mix(in oklch, var(--ink-dark) 78%, transparent);
  line-height: 1.65;
}

.accountability-ledger a {
  color: var(--brand-blue-dark-label);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.team-contact {
  margin-top: 0;
}

.team-contact .walkthrough__signal {
  left: 58%;
  width: min(48rem, 52vw);
}

.team-page :where(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 70rem) {
  .team-hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(22rem, 6fr);
    gap: 3rem;
  }

  .founder-roster-row,
  .contact-person {
    grid-template-columns: minmax(7.5rem, 1.5fr) minmax(14rem, 3fr) minmax(0, 5fr);
  }

  .founder-roster-row > .text-action,
  .contact-person__links {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .contact-person__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
  }

  .contact-person__links a,
  .contact-person__links a:first-child {
    border-top: 0;
  }

  .team-department {
    grid-template-columns: minmax(15rem, 4fr) minmax(0, 8fr);
    gap: 3rem;
  }
}

@media (max-width: 56rem) {
  .leadership-ledger article,
  .accountability-ledger article {
    grid-template-columns: minmax(8rem, 2fr) minmax(0, 4fr);
  }

  .leadership-ledger article > p,
  .accountability-ledger article > p {
    grid-column: 2;
  }

  .team-department {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.5rem;
  }

  .team-department__head {
    position: static;
  }

  .team-department__head h3 {
    max-width: 13ch;
    margin-bottom: 2rem;
  }
}

@media (max-width: 48rem) {
  .team-hero {
    min-height: auto;
    padding: 9rem 0 5rem;
    background:
      radial-gradient(circle at 72% 76%, color-mix(in oklch, var(--brand-blue) 10%, transparent), transparent 26%),
      var(--surface-deep);
  }

  .team-hero__meta span:last-child,
  .team-hero__scale span:nth-child(2) {
    display: none;
  }

  .team-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .team-hero h1 {
    max-width: 10ch;
    font-size: clamp(3.5rem, 15vw, 5.5rem);
  }

  .team-map {
    width: min(100%, 36rem);
  }

  .team-leadership,
  .team-operating,
  .team-access,
  .team-accountability {
    padding: clamp(6rem, 18vw, 8rem) 0;
  }

  .team-section-head h2 {
    font-size: clamp(2.9rem, 13vw, 4.7rem);
  }

  .founder-roster-row,
  .contact-person {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .founder-roster-row > p,
  .founder-roster-row > .text-action,
  .contact-person__story,
  .contact-person__links {
    grid-column: 2;
  }

  .leadership-ledger article,
  .accountability-ledger article {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .leadership-ledger article > p,
  .accountability-ledger article > p {
    grid-column: auto;
  }

  .team-member {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.9rem 1rem;
  }

  .team-member > p {
    grid-column: 2;
  }

  .contact-person__links {
    display: grid;
    width: 100%;
    gap: 0;
  }

  .contact-person__links a,
  .contact-person__links a:first-child {
    border-top: 0;
    border-bottom: 1px solid var(--rule-soft);
  }

  .contact-person__links a:first-child {
    border-top: 1px solid var(--rule-soft);
  }

  .team-subgroup-title {
    align-items: flex-start;
  }
}

@media (max-width: 30rem) {
  .team-page .shell {
    width: min(90rem, calc(100% - 1.5rem));
  }

  .team-hero__meta,
  .team-hero__scale {
    right: 0.75rem;
    left: 0.75rem;
  }

  .team-hero::before {
    left: 0.75rem;
  }

  .team-hero::after {
    right: 0.75rem;
  }

  .team-hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.4rem);
  }

  .team-map__labels {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .team-map figcaption small {
    text-align: right;
  }

  .founder-roster-row,
  .contact-person {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .founder-roster-row > p,
  .founder-roster-row > .text-action,
  .contact-person__story,
  .contact-person__links {
    grid-column: auto;
  }

  .team-department__head h3 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  .team-member {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .team-subgroup-title {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-map__routes {
    stroke-dashoffset: 0;
    animation: none;
  }
}
