/* ============================================================
   About page styles.
   Source: /docs/mockups/about.html.

   Patterns shared with homepage already live in components/sections.css
   and pages/homepage.css. Patterns here that may move to shared:
   - .strip + .cert-badges (also on service detail credibility strips —
     extract when we hit Phase D service pages)
   - .modal pattern (variant of consultation modal, tuned for bio content)
   ============================================================ */

/* === HERO === */

.about-hero {
  background:
    radial-gradient(ellipse 700px 450px at 88% 10%, rgba(220, 115, 76, 0.10), transparent 65%),
    radial-gradient(ellipse 600px 420px at 5% 95%, rgba(22, 93, 148, 0.12), transparent 65%),
    linear-gradient(180deg, #100f0e 0%, #15130f 50%, #121110 100%);
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  /* Pull under the transparent nav-wrap--over-hero (driven by --nav-h). */
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
}

.about-hero-inner {
  position: relative;
  padding: 80px 0 88px;
  z-index: 2;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-hero-content { position: relative; z-index: 3; }
.about-hero .eyebrow { color: var(--orange-bright); margin-bottom: 24px; display: block; }
.about-hero h1 {
  font-size: 56px;
  line-height: 1.05;
  color: var(--text-light);
  margin-bottom: 28px;
}

.about-hero-story {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light-2);
}
.about-hero-story p { margin-bottom: 18px; }
.about-hero-story p:last-child { margin-bottom: 0; }

.about-hero-side {
  position: relative;
  z-index: 3;
  padding-top: 12px;
}

.cred-card {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-on-dark);
  border-radius: 12px;
  padding: 28px 28px 24px;
}
.cred-card-label {
  font-size: 11px;
  letter-spacing: var(--tracking-strip);
  text-transform: uppercase;
  color: var(--text-light-3);
  margin-bottom: 22px;
}
.cred-rows { display: grid; gap: 20px; }
.cred-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-on-dark);
}
.cred-row:last-child { border-bottom: none; padding-bottom: 0; }
.cred-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-light);
}
.cred-row:nth-child(odd) .cred-num { color: var(--orange-pale); }
.cred-row:nth-child(even) .cred-num { color: var(--blue-bright); }
.cred-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-light-2);
}

/* === CERTIFICATIONS STRIP ===
   Same skeleton as the homepage social-proof .strip but tuned for cert
   pills. Lives here for now; lift to a shared component when service
   detail pages reuse it in Phase D continued. */

.cert-badges {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  cursor: default;
}
.cert-badge:hover { color: rgba(255, 255, 255, 0.85); }
.cert-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
  flex-shrink: 0;
}
.cert-badge:nth-child(even) .cert-dot { background: var(--blue-bright); }

/* === TEAM GRID === */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--bg-light);
  border: 1px solid var(--border-on-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  padding: 0;
  width: 100%;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong-on-light);
}
.team-card:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(220, 115, 76, 0.2);
}

.team-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-light-2) 0%, #d6d0c0 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-on-light);
}
.team-card:nth-child(3n+1) .team-photo {
  background: linear-gradient(135deg, #e1dccf 0%, #d0c8b3 100%);
}
.team-card:nth-child(3n+2) .team-photo {
  background: linear-gradient(135deg, #ddd6c4 0%, #c8c0aa 100%);
}
.team-card:nth-child(3n) .team-photo {
  background: linear-gradient(135deg, #d6d0c0 0%, #bfb89f 100%);
}

.team-photo-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.04em;
  color: rgba(26, 24, 21, 0.18);
}
.team-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-photo.has-image {
  background: var(--bg-light-2);
}

.team-info {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-h3);
  color: var(--text-dark);
  margin-bottom: 4px;
}
.team-role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  font-weight: var(--weight-medium);
}
.team-card:nth-child(even) .team-role { color: var(--blue); }
.team-bio-card {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark-2);
  flex: 1;
}
.team-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-on-light);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.team-tag {
  font-size: 11px;
  color: var(--text-dark-2);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.team-tenure {
  font-size: 11px;
  color: var(--orange);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.team-tenure::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.team-card:nth-child(even) .team-tenure { color: var(--blue); }
.team-card .read-more {
  font-size: 12px;
  color: var(--orange);
  font-weight: var(--weight-medium);
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
  transition: opacity 0.2s ease, gap 0.3s var(--ease-out);
}
.team-card:nth-child(even) .read-more { color: var(--blue); }
.team-card:hover .read-more { opacity: 1; gap: 10px; }

/* Hidden bio template that the bio modal copies on click. */
.team-bio-full[hidden] { display: none; }

/* Sue's standalone card */
.sue-card {
  margin-top: 32px;
  background: var(--bg-light);
  border: 1px solid var(--border-on-light);
  border-radius: 12px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.sue-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong-on-light);
}
.sue-card:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(220, 115, 76, 0.2);
}
.sue-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8c9a8 0%, #b8a47a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  overflow: hidden;
  flex-shrink: 0;
}
.sue-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sue-text { display: flex; flex-direction: column; gap: 4px; }
.sue-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-h3);
  color: var(--text-dark);
}
.sue-name-role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: var(--weight-medium);
}
.sue-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark-2);
  margin-top: 4px;
}
.sue-tag {
  font-size: 11px;
  color: var(--text-dark-2);
  background: rgba(0, 0, 0, 0.04);
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* === BIO MODAL ===
   Same modal pattern as the consultation modal but tuned for bio
   content (header with photo + name/role/tags). */

.bio-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 14, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.bio-modal.open {
  opacity: 1;
  visibility: visible;
}
.bio-modal-panel {
  background: var(--bg-light);
  border-radius: var(--radius-card-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.4);
}
.bio-modal.open .bio-modal-panel {
  transform: translateY(0) scale(1);
}
.bio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark-2);
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease;
}
.bio-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}
.bio-modal-close svg { width: 18px; height: 18px; }
.bio-modal-header {
  padding: 36px 40px 24px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border-on-light);
}
.bio-modal-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e1dccf 0%, #c8c0aa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.04em;
  color: rgba(26, 24, 21, 0.3);
  flex-shrink: 0;
}
.bio-modal-photo.dog {
  font-size: 44px;
  color: rgba(26, 24, 21, 0.6);
}
.bio-modal-photo.has-image {
  background: var(--bg-light-2);
  overflow: hidden;
}
.bio-modal-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-modal-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-h3);
  color: var(--text-dark);
  margin-bottom: 6px;
}
.bio-modal-role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: var(--weight-medium);
  margin-bottom: 14px;
}
.bio-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bio-modal-tag {
  font-size: 11px;
  color: var(--text-dark-2);
  background: rgba(0, 0, 0, 0.04);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.bio-modal-tenure {
  font-size: 11px;
  color: var(--orange);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: rgba(220, 115, 76, 0.08);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bio-modal-tenure::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.bio-modal-body {
  padding: 28px 40px 36px;
}
.bio-modal-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.bio-modal-body p:last-child { margin-bottom: 0; }

/* === CULTURE / PERKS (DARK SECTION) === */

.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.culture-text h2 {
  font-size: 36px;
  line-height: 1.15;
  margin-top: 14px;
  margin-bottom: 20px;
}
.culture-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light-2);
  margin-bottom: 18px;
}

.perks-list {
  display: grid;
  gap: 2px;
  background: var(--border-on-dark);
  border: 1px solid var(--border-on-dark);
  border-radius: 12px;
  overflow: hidden;
}
.perk {
  background: rgba(255, 255, 255, 0.025);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  align-items: start;
  transition: background 0.2s ease;
}
.perk:hover { background: rgba(255, 255, 255, 0.05); }
.perk-icon {
  width: 32px;
  height: 32px;
  color: var(--blue-bright);
  flex-shrink: 0;
}
.perk:nth-child(even) .perk-icon { color: var(--orange-bright); }
.perk-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--weight-medium);
  color: var(--text-light);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.perk-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-light-2);
}

/* === OPEN ROLES === */

.roles-section {
  background: var(--bg-light-2);
  padding: 80px 0;
}
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.roles-intro h2 {
  font-size: 32px;
  line-height: 1.15;
  margin-top: 14px;
  margin-bottom: 16px;
}
.roles-intro p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark-2);
}
.roles-list { display: grid; gap: 12px; }
.role-item {
  background: var(--bg-light);
  border: 1px solid var(--border-on-light);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.role-item:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}
.role-item-info { flex: 1; }
.role-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-medium);
  color: var(--text-dark);
  letter-spacing: var(--tracking-h3);
  margin-bottom: 4px;
}
.role-meta {
  font-size: 13px;
  color: var(--text-dark-2);
}
.role-arrow {
  color: var(--orange);
  transition: transform 0.3s var(--ease-out);
}
.role-item:hover .role-arrow { transform: translateX(4px); }
.roles-empty {
  background: var(--bg-light);
  border: 1px dashed var(--border-on-light);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dark-3);
}

/* "Send a resume" CTA used when there are no active role cards. */
.roles-cta { align-self: flex-start; }
.roles-list:has(.roles-cta) { justify-items: start; }
.roles-footnote {
  font-size: 14px;
  color: var(--text-dark-2);
  line-height: 1.55;
  margin-top: 4px;
}

/* === CTA SECTION (mirrors homepage CTA) === */
/* The homepage `cta-section` styles cover this. About just reuses. */

/* === RESPONSIVE === */

@media (max-width: 980px) {
  .about-hero-grid,
  .culture-grid,
  .roles-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .about-hero h1 { font-size: 40px; }
  .culture-text h2 { font-size: 30px; }
}

@media (max-width: 760px) {
  .about-hero-inner { padding: 48px 0 64px; }
  .about-hero h1 { font-size: 34px; line-height: 1.1; }
  .team-grid { grid-template-columns: 1fr; }
  .sue-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .sue-card .sue-tag { justify-self: start; }

  .bio-modal {
    padding: 0;
    align-items: flex-end;
  }
  .bio-modal-panel {
    max-height: 92vh;
    border-radius: var(--radius-card-lg) var(--radius-card-lg) 0 0;
  }
  .bio-modal-header {
    padding: 32px 24px 20px;
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }
  .bio-modal-photo {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
  .bio-modal-body { padding: 24px 24px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .bio-modal,
  .bio-modal-panel,
  .team-card { transition-duration: 0.001s; }
}
