/* ============================================================================
   About Us — Dragon Skin v4
   DE-inspired vertical section layout
   ============================================================================ */

/* ─────────────── HERO ─────────────── */
.about-hero {
  position: relative; overflow: hidden;
  min-height: clamp(380px, 60vh, 680px);
  background: linear-gradient(135deg, #0f1a14 0%, #1C1912 40%, #12100A 100%);
  display: flex; flex-direction: column;
}

/* gold glint sweep on load */
.about-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,242,205,0.12) 47%, rgba(226,199,106,0.24) 50%, rgba(255,242,205,0.12) 53%, transparent 68%);
  transform: translateX(-120%); animation: heroSweepAbout 2.4s cubic-bezier(.4,0,.1,1) 0.35s 1 both;
}
@keyframes heroSweepAbout { to { transform: translateX(120%); } }

/* re-use shared hero-overlay & hero-topscrim — just adjust padding for smaller hero */
.about-hero .hero-overlay {
  padding: 100px 20px 80px;
}

/* ─────────────── CONTENT SECTIONS ─────────────── */
.about-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--cm-border-subtle);
}
.about-section:last-of-type {
  border-bottom: none;
}

.section-title {
  font: var(--cm-w-bold) clamp(26px, 4vw, 40px)/1.1 var(--cm-font-display);
  color: var(--cm-text-primary);
  text-align: center;
  margin: 0 0 clamp(24px, 4vw, 40px);
  letter-spacing: 0.02em;
}

.section-body {
  font: var(--cm-w-regular) clamp(15px, 1.8vw, 17px)/1.7 var(--cm-font-ui);
  color: var(--cm-text-secondary);
  max-width: 68ch;
  margin: 0 auto;
}
.section-body p { margin: 0 0 1.2em; }
.section-body p:last-child { margin-bottom: 0; }
.section-body ul {
  margin: 0.5em 0 1em 1.2em;
  padding: 0;
  list-style: none;
}
.section-body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 0.55em;
}
.section-body ul li::before {
  content: '◆';
  position: absolute; left: 0; top: 3px;
  font-size: 7px; line-height: 1.6;
  color: var(--cm-primary);
}
.section-body strong {
  color: var(--cm-text-primary);
  font-weight: var(--cm-w-bold);
}

/* ─────────────── TEAM GRID ─────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 20px;
  margin-top: clamp(8px, 2vw, 16px);
}

/* ─────────────── TEAM CARD ─────────────── */
.team-card {
  position: relative;
  background: var(--cm-bg-surface);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.team-card:hover {
  border-color: color-mix(in srgb, var(--cm-primary) 55%, var(--cm-border));
  transform: translateY(-5px);
  box-shadow: var(--cm-shadow-lg), 0 16px 38px -14px rgba(26,122,82,0.35);
}

/* accent bar at top */
.team-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cm-primary), #2AAE72);
  flex: none;
}

.team-photo {
  height: 200px;
  background-color: var(--cm-bg-elevated);
  background-size: cover;
  background-position: center top;
  flex: none;
  /* subtle inner gradient overlay for photos */
  position: relative;
}
.team-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(18,16,10,0.35) 100%);
  pointer-events: none;
}

.team-info {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-name {
  font: var(--cm-w-bold) 16px/1.2 var(--cm-font-ui);
  color: var(--cm-text-primary);
  margin: 0;
  letter-spacing: 0.01em;
}

.team-title-role {
  font: var(--cm-w-semibold) 12px/1 var(--cm-font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-secondary-text);
  margin: 2px 0 8px;
}

.team-bio {
  font: var(--cm-w-regular) 13px/1.6 var(--cm-font-ui);
  color: var(--cm-text-secondary);
  margin: 6px 0 0;
}

/* ─────────────── SKELETON LOADING ─────────────── */
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.85; }
}

.team-card.skeleton {
  pointer-events: none;
  animation: skeletonPulse 1.6s ease-in-out infinite;
}
.team-card.skeleton::before {
  background: var(--cm-bg-elevated);
}
.team-card.skeleton .team-photo,
.team-card.skeleton::after {
  /* photo placeholder rendered via min-height on the card itself */
  background: var(--cm-bg-elevated);
}
/* render skeleton body blocks */
.team-card.skeleton {
  min-height: 320px;
}

/* ─────────────── EMPTY STATE ─────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  font: italic var(--cm-w-regular) 15px/1.5 var(--cm-font-ui);
  color: var(--cm-text-tertiary);
  padding: clamp(24px, 4vw, 48px) 0;
}

/* ─────────────── CONTACT SECTION ─────────────── */
.contact-section {
  text-align: center;
}
.contact-section .section-body {
  text-align: center;
  font-size: clamp(15px, 1.8vw, 18px);
}
.contact-section a {
  color: var(--cm-text-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.contact-section a:hover {
  color: color-mix(in srgb, var(--cm-text-link) 80%, #fff);
}

/* ─────────────── SCROLL REVEAL ─────────────── */
html.js .about-section .section-title,
html.js .about-section .section-body,
html.js .team-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js .about-section .section-title.is-in,
html.js .about-section .section-body.is-in,
html.js .team-card.is-in {
  opacity: 1;
  transform: none;
}
/* stagger team cards */
html.js .team-card:nth-child(2) { transition-delay: .06s; }
html.js .team-card:nth-child(3) { transition-delay: .12s; }
html.js .team-card:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html.js .about-section .section-title,
  html.js .about-section .section-body,
  html.js .team-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .about-hero::after { animation: none !important; }
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .about-hero .hero-overlay {
    padding: 80px 20px 60px;
  }
}
@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .about-section {
    padding-left: clamp(16px, 5vw, 24px);
    padding-right: clamp(16px, 5vw, 24px);
  }
}
