/* pages/about.html */

.about-page .nav a[href="about.html"],
.about-page .nav a[href="/about"],
.about-page .nav a[aria-current="page"] {
  color: #ececec;
}

.about-page-hero {
  padding-block: clamp(2.5rem, 8vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(
    ellipse 80% 60% at 50% -20%,
    rgba(172, 200, 83, 0.08),
    transparent 55%
  );
}

.about-page-hero .container {
  max-width: 62rem;
}

.about-page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ececec;
}

.about-page-hero .about-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #acc853;
}

.about-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: flex-start;
  margin: 1.5rem 0 1.75rem;
}

/* Section titles = tabs: left-aligned with body copy; inactive grey, active green; no borders */
.about-tab {
  margin: 0;
  padding: 0.35rem 0;
  font-family: inherit;
  font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #6e6e6e;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.about-tab:hover {
  color: #9b9b9b;
}

.about-tab[aria-selected="true"] {
  color: #acc853;
  background: transparent;
}

.about-tab[aria-selected="true"]:hover {
  color: #b8c95f;
}

.about-tab:focus-visible {
  outline: 2px solid #acc853;
  outline-offset: 2px;
}

.about-tabpanel {
  text-align: left;
}

.about-panel-copy {
  margin: 0 0 1.15rem;
  font-size: clamp(1.02rem, 1.9vw, 1.1rem);
  line-height: 1.7;
  color: #9b9b9b;
}

.about-panel-copy:last-child {
  margin-bottom: 0;
}

.about-story {
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

.about-story .container {
  max-width: 42rem;
}

.about-story h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: #ececec;
}

.about-story p {
  margin: 0 0 1.1rem;
  color: #9b9b9b;
  line-height: 1.65;
  font-size: 1.0625rem;
}

.about-story p:last-child {
  margin-bottom: 0;
}

.about-pillars {
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

.about-pillars .container {
  max-width: 72rem;
}

.about-pillars h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: #ececec;
  text-align: center;
}

.about-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.about-pillar {
  margin: 0;
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1a;
}

.about-pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #acc853;
  letter-spacing: -0.01em;
}

.about-pillar p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #9b9b9b;
}

.about-team {
  padding-block: clamp(2.5rem, 7vw, 4rem);
}

.about-team .container {
  max-width: 72rem;
}

.about-team h2 {
  margin: 0 0 1.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: #ececec;
  text-align: center;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.about-team-member {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.about-team-member-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  overflow: visible;
}

.about-team-member-media {
  flex: 0 0 8.5rem;
  width: 8.5rem;
  height: 8.5rem;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

.about-team-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Parker / Jason: stack = square3D stage + range scrubber */
.about-team-media-stack {
  flex: 0 0 auto;
  width: 8.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
}

.about-team-flip-stage {
  width: 8.5rem;
  height: 8.5rem;
  flex-shrink: 0;
  perspective: 38rem;
  perspective-origin: 50% 50%;
}

.about-team-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.about-team-flip-inner.is-scrubbing {
  transition: none;
}

.about-team-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.about-team-flip-face--back {
  transform: rotateY(180deg);
}

.about-team-photo-scrub {
  width: 100%;
  margin: 0;
  cursor: pointer;
  accent-color: #acc853;
}

.about-team-photo-scrub:focus-visible {
  outline: 2px solid #acc853;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .about-team-flip-stage {
    perspective: none;
  }

  .about-team-flip-inner {
    transition: none !important;
    transform: rotateY(0deg) !important;
  }

  .about-team-flip-inner.is-scrubbing {
    transition: none !important;
  }

  .about-team-flip-face--back {
    display: none;
  }

  .about-team-photo-scrub {
    display: none;
  }
}

.about-team-member-head {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.about-team-member-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ececec;
}

.about-team-member-head .about-team-role {
  margin-bottom: 0;
}

.about-team-member-info {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-team-affiliation {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #acc853;
}

.about-team-role {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #b8b8b8;
}

.about-team-member .about-team-affiliation + .about-team-role {
  margin-top: 0;
}

.about-team-role-sep {
  color: rgba(172, 200, 83, 0.85);
  padding-inline: 0.2em;
  font-weight: 500;
}

.about-team-bio {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #9b9b9b;
}

.about-team-bio + .about-team-bio {
  margin-top: 0.75rem;
}

.about-team-bio a {
  color: #acc853;
  font-weight: 600;
  text-decoration: none;
}

.about-team-bio a:hover {
  color: #d4e88a;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.about-team-bio a:focus-visible {
  outline: 2px solid #89ae47;
  outline-offset: 2px;
  border-radius: 2px;
}

.about-cta-band {
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

.about-cta-band .container {
  max-width: 40rem;
}

.about-cta-band p {
  margin: 0 0 1.25rem;
  color: #9b9b9b;
  line-height: 1.6;
}

.about-cta-band .about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .about-pillar-grid {
    grid-template-columns: 1fr;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-team-member {
    padding: 1.1rem 1rem;
  }

  .about-team-member-media {
    flex: 0 0 8.5rem;
    width: 8.5rem;
    height: 8.5rem;
  }

  .about-team-media-stack {
    width: 8.5rem;
    align-items: center;
  }

  .about-team-flip-stage {
    width: 8.5rem;
    height: 8.5rem;
  }

  .about-team-member-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .about-team-member-head {
    flex: none;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .about-team-member-top {
    gap: 0.75rem;
  }

  .about-team-member-media {
    flex: 0 0 8rem;
    width: 8rem;
    height: 8rem;
  }

  .about-team-media-stack {
    width: 8rem;
  }

  .about-team-flip-stage {
    width: 8rem;
    height: 8rem;
  }
}
