/* Shared, page-scoped treatment for Alpha's supplied team portraits. */
.alpha-team-section {
  background: #fff;
  color: #182a36;
  border-block: 1px solid #e4e9ec;
  scroll-margin-top: 120px;
}

.alpha-team-section .team-inner {
  width: min(100% - 64px, 1240px);
  margin-inline: auto;
}

.alpha-team-section .team-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 32px;
}

.alpha-team-section .team-heading .eyebrow {
  margin: 0 0 12px;
  color: #0a7669;
  letter-spacing: 0;
}

.alpha-team-section .team-heading h2 {
  max-width: 650px;
  margin: 0;
  color: #182a36;
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.alpha-team-section .team-heading h2 span {
  color: #205bbd;
}

.alpha-team-section .team-intro {
  margin: 0;
  color: #51606b;
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 600px) {
  .alpha-team-section .team-heading { padding-right: 28px; }
}

.alpha-team-section .team-portraits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.alpha-team-section .team-person {
  --team-accent: #205bbd;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.alpha-team-section .team-person:nth-child(2) { --team-accent: #0a7669; }
.alpha-team-section .team-person:nth-child(3) { --team-accent: #bd4f37; }
.alpha-team-section .team-person:nth-child(4) { --team-accent: #766020; }

.alpha-team-section .team-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0;
  border-radius: 6px;
  background: #eef1f1;
}

.alpha-team-section .team-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 0;
  border-radius: 0;
  transition: transform 350ms ease;
}

.alpha-team-section img[src="assets/team/inka.webp"] { object-position: 50% 39%; }

.alpha-team-section .team-person-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.alpha-team-section .team-person-caption h3 { margin: 0; }
.alpha-team-section .team-profile-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 4px; }
.alpha-team-section .team-profile-link img { width: 24px; height: 24px; }
.alpha-team-section .team-profile-link:hover { background: #edf4ff; }
.alpha-team-section .team-profile-link:focus-visible { outline: 3px solid #205bbd; outline-offset: 3px; }
.alpha-team-section .team-avatar { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #f1f4f3; color: #305b55; }
.alpha-team-section .team-avatar > span { display: grid; place-items: center; width: 55%; aspect-ratio: 1; border: 1px solid #cbd9d5; border-radius: 50%; font-size: 4rem; font-weight: 500; }
.alpha-team-section .team-avatar small { font-size: .75rem; line-height: 1.4; }

.alpha-team-section .team-person h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  color: #182a36;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.alpha-team-section .team-person h3::before {
  content: "";
  flex: 0 0 24px;
  height: 3px;
  background: var(--team-accent);
}

.alpha-team-section .team-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e4e9ec;
}

.alpha-team-section .team-footer p {
  margin: 0;
  color: #51606b;
  font-size: 1rem;
  line-height: 1.65;
}

.alpha-team-section .team-footer a {
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #205bbd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.alpha-team-section .team-footer a:focus-visible {
  outline: 3px solid #205bbd;
  outline-offset: 5px;
  border-radius: 2px;
}

.alpha-team-section .team-functions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 36px 0 0;
  padding-top: 28px;
  border-top: 1px solid #e4e9ec;
}

.alpha-team-section .team-functions div { min-width: 0; }
.alpha-team-section .team-functions dt {
  margin-bottom: 10px;
  color: #182a36;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
}
.alpha-team-section .team-functions dd {
  margin: 0;
  color: #51606b;
  font-size: .9rem;
  line-height: 1.7;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .alpha-team-section .team-person:hover .team-portrait img { transform: scale(1.025); }
}

@media (max-width: 900px) {
  .alpha-team-section .team-heading { gap: 28px; }
  .alpha-team-section .team-heading h2 { font-size: 2rem; }
  .alpha-team-section .team-portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .alpha-team-section .team-functions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .alpha-team-section { scroll-margin-top: 232px; }
  .alpha-team-section .team-inner {
    width: calc(100% - 64px);
    margin-inline: 20px 44px;
  }
  .alpha-team-section .team-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .alpha-team-section .team-heading h2 { font-size: 1.85rem; }
  .alpha-team-section .team-portraits { grid-template-columns: 1fr; gap: 18px; }
  .alpha-team-section .team-person {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e4e9ec;
  }
  .alpha-team-section .team-person:last-child { padding-bottom: 0; border: 0; }
  .alpha-team-section .team-person h3 { display: block; margin: 0; font-size: 1.25rem; }
  .alpha-team-section .team-person h3::before { display: block; width: 24px; margin-bottom: 12px; }
  .alpha-team-section .team-person-caption { margin: 0; flex-direction: column; align-items: flex-start; }
  .alpha-team-section .team-avatar { gap: 8px; }
  .alpha-team-section .team-avatar > span { font-size: 2.5rem; }
  .alpha-team-section .team-avatar small { font-size: .65rem; }
  .alpha-team-section .team-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
  .alpha-team-section .team-functions { gap: 24px 20px; }
}

@media (max-width: 360px) {
  .alpha-team-section .team-person { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; }
  .alpha-team-section .team-functions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .alpha-team-section .team-portrait img { transition: none; transform: none; }
}

/* Owner-supplied company photographs retain their full portrait framing. */
.alpha-culture-section {
  background: #fff;
  color: #182a36;
  border-bottom: 1px solid #e4e9ec;
  scroll-margin-top: 120px;
}

.alpha-culture-inner {
  width: min(100% - 64px, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 48px;
}

.alpha-culture-copy .eyebrow { color: #0a7669; letter-spacing: 0; }
.alpha-culture-copy h2 {
  margin: 12px 0 20px;
  color: #182a36;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}
.alpha-culture-copy h2 span { color: #205bbd; }
.alpha-culture-copy > p:not(.eyebrow) { color: #51606b; line-height: 1.75; }
.alpha-culture-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 12px;
}
.alpha-culture-copy a:focus-visible,
.alpha-company-experience:focus-visible { outline: 3px solid #205bbd; outline-offset: 5px; }

.alpha-culture-gallery,
.alpha-about-real-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.alpha-culture-gallery figure,
.alpha-about-real-photos figure,
.alpha-culture-purpose-photo { margin: 0; min-width: 0; }
.alpha-culture-gallery figure:nth-child(2),
.alpha-about-real-photos figure:nth-child(2) { margin-top: 40px; }
.alpha-culture-gallery img,
.alpha-about-real-photos img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: none;
}
.alpha-culture-gallery figcaption,
.alpha-about-real-photos figcaption,
.alpha-culture-purpose-photo figcaption {
  padding-top: 12px;
  color: #51606b;
  font-size: .875rem;
  line-height: 1.55;
}
.alpha-culture-gallery figcaption span {
  display: block;
  color: #0a7669;
  font-weight: 700;
  margin-bottom: 4px;
}
.alpha-culture-gallery figure:nth-child(2) figcaption span { color: #a84b35; }
#company-photos { scroll-margin-top: 120px; }
body.about-reference-page #company-photos,
body.about-reference-page .alpha-about-purpose-layout {
  width: min(100% - 64px, 1240px);
  margin-inline: auto;
}
.alpha-company-experience {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 16px;
  padding-block: 20px;
  border-top: 1px solid #dce5e7;
  color: #182a36;
  text-decoration: none;
}
.alpha-company-experience strong { color: #0a7669; font-size: 2.2rem; line-height: 1.2; }
.alpha-company-experience > span { font-size: .875rem; line-height: 1.5; }
.alpha-company-experience .alpha-certificate-link {
  grid-column: 1 / -1;
  color: #205bbd;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}
body.about-reference-page .alpha-about-purpose .alpha-culture-purpose-photo img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 560px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: none;
}
.alpha-culture-purpose-photo { width: 100%; max-width: 420px; margin-inline: auto; }
body.about-reference-page .alpha-culture-purpose-photo figcaption { color: #dce9ed; }

@media (max-width: 980px) {
  .alpha-culture-inner { grid-template-columns: 1fr; gap: 28px; }
  .alpha-culture-copy { max-width: 650px; }
  .alpha-culture-copy h2 { font-size: 2rem; }
  .alpha-culture-gallery { max-width: 680px; }
  .alpha-about-real-photos { max-width: 600px; }
}

@media (max-width: 600px) {
  .alpha-culture-section, #company-photos { scroll-margin-top: 232px; }
  .alpha-culture-inner { width: calc(100% - 64px); margin-inline: 20px 44px; }
  .alpha-culture-copy h2 { font-size: 1.85rem; }
  .alpha-culture-gallery { grid-template-columns: 1fr; gap: 24px; }
  .alpha-culture-gallery figure:nth-child(2) { margin-top: 0; }
  .alpha-about-real-photos { gap: 16px; padding-right: 20px; }
  .alpha-about-real-photos figure:nth-child(2) { margin-top: 24px; }
  .alpha-culture-purpose-photo { padding-right: 24px; }
}
