/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE
   Depends on css/main.css (shared base: tokens, reset, nav, footer).
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   17. ABOUT PAGE
   ═══════════════════════════════════════════════════════════ */

/* ─── 17.1 ABOUT HERO ─────────────────────────────────── */
/* Compact text-only banner: emerald background, centered copy, no photos.
   Distinct from the home hero on purpose: this is a section banner, not a landing impression. */
.about-hero {
  position: relative;
  background: var(--color-emerald);
  color: var(--color-offwhite);
  overflow: hidden;
  isolation: isolate;
}

.about-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin-inline: auto;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.about-hero__overline {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-lime);
}

.about-hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--color-offwhite);
  text-wrap: balance;
  margin: 0;
}

.about-hero__title-accent {
  color: var(--color-lime);
  font-weight: inherit;
  font-style: normal;
}

.about-hero__lead {
  max-width: 640px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.86);
  margin: 0;
}

@media (min-width: 768px) {
  .about-hero__inner {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .about-hero__inner {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

/* ─── 17.2 THE TEAM ───────────────────────────────────── */
.team {
  background: var(--bg-page);
  position: relative;
}

.team__header {
  margin-bottom: var(--space-12);
  text-align: center;
}

@media (min-width: 1024px) {
  .team__header {
    margin-bottom: var(--space-16);
  }
}

.team__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 1080px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .team__list {
    gap: var(--space-20);
  }
}

/* Bio container — editorial layout (no card border). The visual divider between bios
   is a header (photo + name). Each bio's height varies with content; the per-item
   numbered design keeps the eye on individual stories instead of comparing block heights. */
.bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(23, 23, 57, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: 0 10px 28px rgba(23, 23, 57, 0.06);
}

.bio + .bio {
  padding-top: var(--space-6);
  border-top: none;
}

@media (min-width: 1024px) {
  .bio + .bio {
    padding-top: var(--space-6);
  }
}

/* Bio header: small photo + name + meta. Compact on mobile, side-by-side on tablet+. */
.bio__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .bio__header {
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }
}

.bio__photo {
  width: clamp(112px, 22vw, 144px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-offwhite) 0%, var(--color-surface-muted) 100%);
  box-shadow:
    0 12px 28px rgba(23, 23, 57, 0.10),
    0 3px 8px rgba(23, 23, 57, 0.05);
  position: relative;
  flex-shrink: 0;
}

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

.bio__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(23, 23, 57, 0.18);
}

.bio__photo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-3);
  color: var(--text-secondary);
}

.bio__photo-inner svg {
  width: 32px;
  height: 32px;
  color: var(--color-emerald);
  stroke-width: 1.5;
  opacity: 0.7;
}

.bio__photo-inner figcaption {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.85;
  line-height: 1.3;
}

.bio__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.bio__name {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--text-primary);
}

.bio__name-alias {
  color: var(--color-emerald);
  font-weight: 700;
}

.bio__meta {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-emerald);
}

/* Bio story — editorial numbered list. Each item: big number + resume + voice quote. */
.bio__story {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .bio__story {
    gap: var(--space-6);
  }
}

/* Mobile: 2-col [num | content stacked]. Tablet+: editorial 3-col with staggered spacing. */
.bio-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-2) var(--space-4);
  align-items: start;
  padding: var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color 150ms ease-out, background-color 150ms ease-out;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

@media (min-width: 640px) {
  .bio-item {
    grid-template-columns: clamp(52px, 5vw, 72px) minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-rows: auto;
    align-items: center;
    gap: var(--space-3) var(--space-8);
    padding: var(--space-5);
  }
}

.bio-item__num {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.7vw, 56px);
  font-weight: 800;
  color: var(--color-emerald);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  grid-row: span 2;
  align-self: start;
  padding-top: var(--space-1);
  user-select: none;
  min-width: clamp(56px, 6vw, 72px);
  min-height: clamp(56px, 6vw, 72px);
  border-radius: var(--radius-full);
  background: rgba(9, 108, 41, 0.09);
  border: 1px solid rgba(9, 108, 41, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .bio-item__num {
    grid-row: auto;
    align-self: start;
  }
}

.bio-item__resume {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
  max-width: 52ch;
}

.bio-item__voice {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  padding-left: var(--space-4);
  border-left: 2px solid rgba(180, 154, 253, 0.55);
  max-width: 46ch;
}

@media (min-width: 640px) {
  .bio-item__voice {
    padding-left: var(--space-4);
    border-left: 1px solid rgba(23, 23, 57, 0.14);
    padding-top: 0;
    align-self: center;
  }
}

.bio-item__voice em {
  font-style: italic;
}

.bio-item__pending {
  display: inline-block;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-disabled);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(23, 23, 57, 0.04);
}

.bio-item--pending .bio-item__num {
  opacity: 0.4;
}

.bio-item--pending .bio-item__voice {
  border-left-color: rgba(180, 154, 253, 0.25);
}

/* Table column label row — hidden on mobile, revealed on tablet+. Columns mirror bio-item grid. */
.bio__table-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.bio__table-head {
  display: none;
}

@media (min-width: 640px) {
  .bio__table-head {
    display: grid;
    grid-template-columns: clamp(52px, 5vw, 72px) minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-3) var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-default);
    margin-bottom: var(--space-6);
  }

  .bio__table-head span {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-disabled);
  }

  .bio__table-head span:nth-child(2),
  .bio__table-head span:nth-child(3) {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }

  .bio__table-head span:nth-child(2)::before,
  .bio__table-head span:nth-child(3)::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    display: inline-block;
  }

  .bio__table-head span:nth-child(2)::before {
    background: rgba(9, 108, 41, 0.55);
    box-shadow: 0 0 0 3px rgba(9, 108, 41, 0.12);
  }

  .bio__table-head span:nth-child(3)::before {
    background: rgba(23, 23, 57, 0.45);
    box-shadow: 0 0 0 3px rgba(23, 23, 57, 0.08);
  }
}

/* Sticky photo column on desktop — header left (sticky), table-wrap right. */
@media (min-width: 1024px) {
  .bio {
    display: grid;
    grid-template-columns: clamp(204px, 17vw, 260px) 1fr;
    gap: var(--space-12);
    align-items: start;
    padding: var(--space-8);
  }

  .bio__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    position: sticky;
    top: calc(72px + var(--space-6));
  }

  .bio__photo {
    width: clamp(172px, 16vw, 224px);
  }
}

/* Desktop compact mode for bios: reduce vertical density while preserving hierarchy. */
@media (min-width: 1024px) {
  .team__header {
    margin-bottom: var(--space-12);
  }

  .team__list {
    gap: var(--space-16);
  }

  .bio {
    grid-template-columns: clamp(196px, 15vw, 236px) 1fr;
    gap: var(--space-10);
    padding: var(--space-8);
  }

  .bio + .bio {
    padding-top: var(--space-6);
  }

  .bio__header {
    gap: var(--space-5);
    top: calc(72px + var(--space-4));
  }

  .bio__photo {
    width: clamp(152px, 13.6vw, 196px);
  }

  .bio--mirror {
    grid-template-columns: 1fr clamp(196px, 15vw, 236px);
  }

  .bio--mirror .bio__table-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .bio--mirror .bio__header {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    text-align: left;
  }

  .bio--mirror .bio__intro {
    align-items: flex-start;
  }

  .bio__name {
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.1;
  }

  .bio__meta {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .bio__table-head {
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .bio__story {
    gap: var(--space-4);
  }

  .bio-item {
    grid-template-columns: clamp(44px, 4.4vw, 60px) minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--space-3) var(--space-6);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-color: rgba(23, 23, 57, 0.06);
  }

  .bio-item__num {
    font-size: clamp(28px, 3.2vw, 42px);
    padding-top: 0;
  }

  .bio-item__resume {
    font-size: 15px;
    line-height: 1.5;
    max-width: 50ch;
  }

  .bio-item__voice {
    font-size: 15px;
    line-height: 1.55;
    max-width: 42ch;
    padding-left: var(--space-3);
  }
}

.bio-item:nth-child(odd),
.bio-item:nth-child(even) {
  background: rgba(23, 23, 57, 0.016);
}

.bio-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(9, 108, 41, 0.5), rgba(9, 108, 41, 0.2));
  z-index: 0;
}

.bio-item::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 0;
}

.bio-item:nth-child(odd)::before {
  right: -44px;
  top: -56px;
  background: radial-gradient(circle, rgba(9, 108, 41, 0.09), rgba(9, 108, 41, 0.02) 52%, transparent 72%);
}

.bio-item:nth-child(even)::before {
  left: -52px;
  bottom: -62px;
  background: radial-gradient(circle, rgba(180, 154, 253, 0.09), rgba(180, 154, 253, 0.02) 50%, transparent 70%);
}

.bio-item > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .bio-item:hover {
    border-color: rgba(9, 108, 41, 0.24);
    background: rgba(9, 108, 41, 0.09);
  }
}

.team__action {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .team__action {
    margin-top: var(--space-16);
  }
}

.team__download {
  gap: var(--space-3);
  transition:
    background-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
    color 150ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 150ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team__download svg {
  width: 18px;
  height: 18px;
  transition: transform 150ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .team__download:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 20px rgba(23, 23, 57, 0.1);
  }

  .team__download:hover svg {
    transform: translateY(1px);
  }
}

.team__download:active {
  transform: translateY(0) scale(0.97);
}

.team__download:focus-visible {
  outline-offset: 3px;
}

/* ─── 17.3 WORKING WITH US ────────────────────────────── */
.about-cta {
  position: relative;
  background: var(--color-navy);
  padding-block: var(--space-16);
  padding-inline: var(--space-4);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .about-cta {
    padding-block: var(--space-20);
  }
}

@media (min-width: 1024px) {
  .about-cta {
    padding-block: var(--space-24);
  }
}

.about-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.about-cta__card {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .about-cta__card {
    gap: var(--space-6);
  }
}

.about-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-offwhite);
  margin: 0;
  text-wrap: balance;
}

.about-cta__copy {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: rgba(247, 244, 238, 0.92);
  text-wrap: balance;
  max-width: 600px;
  margin: 0;
}

.about-cta__btn {
  margin-top: var(--space-2);
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-cta .btn:focus-visible {
  outline: 2px solid var(--color-offwhite);
  outline-offset: 3px;
}

