/* ============================================================
    Car Cure - About Page (about.css)
    About Us page specific styles
    ============================================================ */

/* ── About Page Hero ── */
.page-hero--about {
  padding: 0 !important;
  min-height: 90vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Golden Orbit Background Container */
.page-hero--about .page-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center 65%,
      rgba(255, 200, 60, 0.45) 0%,
      rgba(255, 170, 20, 0.22) 22%,
      rgba(120, 70, 0, 0.18) 40%,
      rgba(0, 0, 0, 1) 78%);
  z-index: 1;
}

/* Ambient golden aura */
.page-hero--about .page-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center 70%,
      rgba(255, 220, 120, 0.22),
      transparent 55%);
  filter: blur(100px);
  pointer-events: none;
}

/* Horizon Orbit Styles */
.horizon-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 420px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.horizon-glow {
  position: absolute;
  bottom: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 210, 90, 0.95) 0%,
    rgba(255, 180, 40, 0.5) 25%,
    rgba(255, 160, 20, 0.12) 50%,
    transparent 72%
  );
  filter: blur(70px);
}

.horizon-line {
  position: absolute;
  bottom: -420px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  height: 560px;
  background: #000;
  border-top: 3px solid rgba(255, 220, 120, 0.95);
  border-radius: 50%;
  box-shadow:
    0 -8px 35px rgba(255, 190, 60, 0.9),
    0 -25px 80px rgba(255, 170, 0, 0.35);
}


@media (max-width: 768px) {
  .horizon-container {
    height: 180px;
  }

  .horizon-glow {
    bottom: -140px;
    height: 250px;
  }

  .horizon-line {
    bottom: -220px;
    height: 300px;
  }
}


/* Content */
.page-hero--about .page-hero__content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  padding: 5.5rem 2rem 4.5rem;
  text-align: center;
}

/* Label */
.page-hero--about .page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  position: relative;
  backdrop-filter: blur(4px);
}

.page-hero--about .page-hero__label .label-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Title */
.page-hero--about .page-hero__title {
  font-family: 'Technor', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.page-hero--about .page-hero__title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
}

.page-hero--about .page-hero__title em::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* Subtitle */
.page-hero--about .page-hero__subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 450px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* CTA Button */
.page-hero--about .page-hero__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 4rem;
}

.page-hero--about .page-hero__cta .btn {
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.page-hero--about .page-hero__cta .btn--primary {
  background: var(--gold);
  color: #111;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(201, 166, 79, 0.3);
}

.page-hero--about .page-hero__cta .btn--primary:hover {
  transform: translateY(-2px);
  background: #b8942f;
  border-color: #b8942f;
  box-shadow: 0 8px 30px rgba(201, 166, 79, 0.4);
}

.page-hero--about .page-hero__cta .btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-hero--about .page-hero__cta .btn--outline-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.page-hero--about .page-hero__cta .btn--outline-gold:hover {
  color: #111;
  border-color: var(--gold);
}

.page-hero--about .page-hero__cta .btn--outline-gold:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive About Hero */
@media (max-width: 768px) {
  .page-hero--about {
    min-height: auto !important;
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
   
  .page-hero--about .page-hero__orb--1 {
    width: 250px;
    height: 250px;
    right: -50px;
  }
   
  .page-hero--about .page-hero__orb--2 {
    width: 180px;
    height: 180px;
  }
   
  .page-hero--about .page-hero__content {
    padding: 2.5rem 1.5rem 2rem;
  }
   
  .page-hero--about .page-hero__title {
    font-size: 2.2rem;
  }
   
  .page-hero--about .page-hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .page-hero--about .page-hero__cta {
    padding-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .page-hero--about {
    min-height: auto !important;
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .page-hero--about .page-hero__content {
    padding: 2rem 1.25rem 1.5rem;
  }
  .page-hero--about .page-hero__subtitle {
    font-size: 0.9rem;
  }
  .page-hero--about .page-hero__cta {
    padding-top: 1rem;
  }

  /* Page Container */
  .page-container {
    padding: 2rem 1rem;
  }

  .page-lead {
    font-size: 1.1rem;
  }

  .page-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-card {
    padding: 1.4rem;
  }

  .page-cta {
    padding: 2rem 1.5rem 4rem;
  }

  .page-cta h3 {
    font-size: 1.5rem;
  }

  .page-cta__btns {
    flex-direction: column;
    gap: 0.75rem;
  }

  .page-cta__btns a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================
    About Section Container
    ============================================================ */
.about-section {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  content-visibility: auto;
  contain: content;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.3;
}

.about-section:last-of-type {
  border-bottom: none;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-section .label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  background: rgba(201,168,76,0.04);
  position: relative;
}

.about-section .label::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
  opacity: 0.6;
}

.about-section > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

/* About List Styling */
.about-list {
  list-style: none;
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 0;
}

.about-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-list li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.about-list li strong {
  color: var(--text);
}

/* ============================================================
    Page Lead Text
   ============================================================ */
.page-lead {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* Page Container */
.page-container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Page Section Titles */
.page-container h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  margin: 3rem 0 1.5rem;
  text-align: center;
}

.page-container h2:first-child {
  margin-top: 0;
}

.page-container p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

/* ============================================================
    Page Cards Grid
    ============================================================ */
.page-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.page-cards--services {
  grid-template-columns: repeat(4, 1fr);
}

.page-cards--strengths {
  grid-template-columns: repeat(3, 1fr);
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  contain: layout style;
}

.page-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-card:hover::before {
  opacity: 1;
}

.page-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-2);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  content-visibility: auto;
  contain: layout paint;
}

.page-card__icon img {
  width: 28px;
  height: 28px;
  transform: translateZ(0);
}

.page-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  transform: translateZ(0);
}

.page-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.page-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Page CTA Section
   ============================================================ */
.page-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5rem 2rem;
  min-height: 320px;
  text-align: center;
  margin: 3rem auto;
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--gold-dim), transparent 70%);
  opacity: 0.5;
}

.page-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page-cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.page-cta > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.page-cta__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #d4b366 100%);
  color: var(--black);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-gold:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(201, 168, 76, 0.4);
  filter: brightness(1.08);
}

.btn-gold:hover::before {
  opacity: 1;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.5rem;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-outline-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-outline-gold:hover {
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(201, 168, 76, 0.25);
}

.btn-outline-gold:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.page-cta__btns-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.shuffle-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2);
}

.shuffle-btn:hover {
  background: var(--gold);
  color: var(--black);
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.shuffle-btn:active {
  transform: rotate(180deg) scale(1.05);
}

.page-cta__btns.shuffling {
  opacity: 0.5;
  pointer-events: none;
}

.page-cta__contact {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-muted);
  z-index: 1;
  text-align: center;
}

.page-cta__contact a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.page-cta__contact a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.page-cta__contact a:hover {
  color: #fff;
}

.page-cta__contact a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .page-cta {
    padding: 5rem 1.5rem;
    min-height: 300px;
  }
  
  .page-cta h3 {
    font-size: 1.65rem;
  }
  
  .page-cta > p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .page-cta {
    padding: 2.5rem 1rem 4rem;
    margin: 2rem auto;
    overflow: hidden;
    width: calc(100% - 2rem);
    box-sizing: border-box;
  }
  
  .shuffle-btn {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
  
  .shuffle-btn:hover {
    transform: rotate(180deg) scale(1.1);
  }
  
  .page-cta__btns {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
  
  .page-cta__btns a {
    width: 100%;
    justify-content: center;
    padding: 1rem 1rem;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  .btn-gold,
  .btn-outline-gold {
    padding: 1rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
    Medium Tablet Responsive
    ============================================================ */
@media (max-width: 900px) {
  .page-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .page-cards--services {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-cards--strengths {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-card {
    padding: 1.5rem 1.25rem;
  }

  .page-cta {
    padding: 5rem 1.5rem;
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .page-container {
    padding: 2rem 1rem;
  }

  .page-lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .page-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-cards--services,
  .page-cards--strengths {
    grid-template-columns: 1fr;
  }

  .page-card {
    padding: 1.4rem;
  }

  .page-cta {
    padding: 5rem 1.25rem;
    min-height: 350px;
    margin: 2rem auto;
  }

  .page-cta h3 {
    font-size: 1.5rem;
  }

  .page-cta__btns {
    flex-direction: column;
    gap: 0.75rem;
  }

  .page-cta__btns a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-container {
    width: 94%;
  }

  .page-card__icon {
    width: 48px;
    height: 48px;
  }

  .page-card__icon img,
  .page-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .page-card h3 {
    font-size: 1.05rem;
  }

  .page-card p {
    font-size: 0.85rem;
  }

  .page-cta {
    padding: 4rem 0.5rem 0.5rem;
    min-height: unset;
    margin: 1.5rem auto;
    overflow: visible;
    justify-content: flex-start;
    width: calc(100% - 1rem);
    box-sizing: border-box;
  }

  .page-cta__btns-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.25rem 1.5rem;
    box-sizing: border-box;
  }

  .page-cta__btns {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0;
  }

  .page-cta__contact {
    font-size: 0.8rem;
    margin-top: 0;
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
  }

  .page-cta__btns a {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 0.5rem;
    font-size: 0.85rem;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
  }

  .btn-gold,
  .btn-outline-gold {
    padding: 0.85rem 0.5rem;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .shuffle-btn {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
  }
}

/* ============================================================
   Team Grid — Hover-reveal Profile Cards (gold/black theme)
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 100%;
}

.team-card {
  --tc-bg: #111;
  --tc-gold: var(--gold, #c9a84c);
  --tc-gold-dim: rgba(201, 168, 76, 0.15);
  --tc-text: #fff;
  --tc-muted: rgba(255,255,255,0.6);
  --tc-btn-bg: rgba(201,168,76,0.15);
  --tc-btn-hover: rgba(201,168,76,0.28);

  background: var(--tc-bg);
  border-radius: 0.75rem;
  padding: 0.25rem;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(201,168,76,0.2);
  transition: border-color 0.35s, box-shadow 0.35s;
}

.team-card:hover,
.team-card:focus-within {
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 0 32px rgba(201,168,76,0.12), 0 20px 48px rgba(0,0,0,0.5);
}

/* Frosted blur strip that slides away on hover */
.team-card::before {
  content: "";
  position: absolute;
  width: calc(100% - 0.5rem);
  height: 35%;
  bottom: 0.25rem;
  left: 0.25rem;
  mask: linear-gradient(#0000, #000f 80%);
  backdrop-filter: blur(0.75rem);
  border-radius: 0 0 1rem 1rem;
  translate: 0 0;
  transition: translate 0.3s ease;
  z-index: 1;
}

.team-card:hover::before,
.team-card:focus-within::before {
  translate: 0 100%;
}

/* Photo */
.team-card > img {
  max-width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 5%;
  border-radius: 0.5rem;
  display: block;
  width: 100%;
  height: auto;
  transition: aspect-ratio 0.3s ease, object-position 0.4s ease;
}

.team-card:hover > img,
.team-card:focus-within > img {
  aspect-ratio: 1 / 1;
  object-position: 50% 10%;
}

/* Content section */
.team-card > section {
  margin: 0.35rem;
  height: calc(40% - 0.5rem);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.team-card > section h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tc-text);
  opacity: 1;
  translate: 0 0;
  transition: color 0.4s, margin-block-end 0.25s;
  font-family: var(--font-heading, system-ui);
}

.team-card > section p {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--tc-muted);
  opacity: 1;
  margin: 0;
  translate: 0 0;
  transition: opacity 0.5s 0.15s;
}

.team-card > section > div {
  flex: 1;
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 0.5s 0.2s;
}

/* Role tag - floating pill badge, only on hover */
.team-card__tag {
  display: inline-block !important;
  position: absolute !important;
  top: 0.5rem;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5d642 !important;
  background-color: rgba(0, 0, 0, 0.6) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: 2px solid #f5d642 !important;
  border-radius: 25px !important;
  padding: 0.4rem 0.8rem !important;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000 !important;
}

.team-card:hover .team-card__tag,
.team-card:focus-within .team-card__tag {
  opacity: 1 !important;
}

/* Hover reveal */
.team-card:hover > section h2,
.team-card:focus-within > section h2 {
  margin-block-end: 0.25rem;
  color: var(--tc-gold);
}

.team-card:hover > section > div,
.team-card:focus-within > section > div {
  opacity: 1;
}


/* Responsive */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .team-card > section p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .team-card {
    aspect-ratio: unset;
    height: 400px;
  }

  .team-card > section {
    height: auto;
    min-height: unset;
    position: absolute;
    bottom: 0;
    left: 0.25rem;
    right: 0.25rem;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 10;
  }

  .team-card > section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--tc-gold);
  }

  .team-card > section p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--tc-muted);
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  .team-card__tag {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.65rem !important;
    max-width: 90%;
    white-space: nowrap;
  }

  .team-card::before {
    content: "";
    position: absolute;
    width: calc(100% - 0.5rem);
    height: 50%;
    bottom: 0.25rem;
    left: 0.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    border-radius: 0 0 0.75rem 0.75rem;
    z-index: 5;
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .team-card {
    aspect-ratio: unset;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
  }

  .team-card.reveal {
    height: 400px;
    border-color: rgba(201,168,76,0.55);
    box-shadow: 0 0 32px rgba(201,168,76,0.12), 0 20px 48px rgba(0,0,0,0.5);
  }

  .team-card:hover,
  .team-card:focus-within {
    border-color: rgba(201,168,76,0.55);
    box-shadow: 0 0 32px rgba(201,168,76,0.12), 0 20px 48px rgba(0,0,0,0.5);
  }

  .team-card:hover > section h2,
  .team-card:focus-within > section h2 {
    opacity: 0;
    transform: translateY(10px);
  }

  .team-card:hover > section,
  .team-card:focus-within > section {
    transform: translateY(calc(100% - 1.5rem));
  }

  .team-card:hover > section p,
  .team-card:focus-within > section p {
    opacity: 0;
    transform: translateY(10px);
  }

  .team-card:hover > section > div,
  .team-card:focus-within > section > div {
    opacity: 0;
    transform: translateY(10px);
  }

  .team-card:hover .team-card__tag,
  .team-card:focus-within .team-card__tag {
    opacity: 0 !important;
  }

  .team-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: height 0.8s ease;
  }

  .team-card.reveal > img {
    height: 300px;
  }

  .team-card > section {
    position: absolute;
    bottom: 0;
    left: 0.25rem;
    right: 0.25rem;
    height: auto;
    min-height: unset;
    overflow: visible;
    padding: 0.5rem;
    z-index: 10;
    transform: translateY(calc(100% - 1.5rem));
    transition: transform 0.5s ease-out;
  }

  .team-card.reveal > section {
    transform: translateY(0);
  }

  .team-card > section h2 {
    font-size: 1.15rem;
    color: var(--tc-gold);
    opacity: 0;
    margin-block-end: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  .team-card > section p {
    font-size: 0.95rem;
    color: var(--tc-muted);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
  }

  .team-card > section > div {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
  }

  .team-card.reveal > section h2 {
    opacity: 1;
    margin-block-end: 0.2rem;
    transform: translateY(0);
    color: var(--tc-gold);
  }

  .team-card.reveal > section p {
    opacity: 1;
    transform: translateY(0);
  }

  .team-card.reveal > section > div {
    opacity: 1;
    transform: translateY(0);
  }

  .team-card__tag {
    opacity: 0;
    transition: all 0.5s ease-out;
  }

  .team-card.reveal .team-card__tag {
    opacity: 1 !important;
  }

  .team-card::before {
    content: "";
    position: absolute;
    width: calc(100% - 0.5rem);
    height: 40%;
    bottom: 0.25rem;
    left: 0.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    border-radius: 0 0 0.75rem 0.75rem;
    z-index: 5;
    pointer-events: none;
  }

  .team-card.reveal::before {
    opacity: 0;
    transform: translateY(100%);
  }
}