/* =============================================
   ABOUT SECTION — PULSO DIGITAL
   ============================================= */

.about {
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: visible;
}

.about-header {
  max-width: 700px;
  margin-bottom: var(--space-4xl);
}

/* ---- Mission Block ---- */
.about-mission {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-5xl);
  overflow: visible;
}

.about-mission-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-mission-quote {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
}

.about-mission-quote span {
  color: var(--accent);
}

.about-mission-body {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-mission-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  margin-right: -320px;
}

/* Mockup wrapper — floating effect */
.about-mockup-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  animation: mockupFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.65))
          drop-shadow(0 0 48px rgba(251, 53, 2, 0.18));
}

@keyframes mockupFloat {
  0%,  100% { transform: translateY(0);    }
  50%        { transform: translateY(-10px); }
}

.about-mockup-img {
  width: 125%;
  max-width: none !important;
  height: auto;
  display: block;
  border-radius: 20px;
  user-select: none;
  pointer-events: none;
}


/* ---- Bento Grid (Values) ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--space-md);
  margin-bottom: var(--space-5xl);
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: transform var(--dur-base) var(--ease-apple),
              box-shadow var(--dur-base) var(--ease-apple),
              border-color var(--dur-base) var(--ease-apple);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(251,53,2,0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-apple);
}

.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.12); }
.bento-card:hover::before { opacity: 1; }

/* Grid positioning */
.bento-card:nth-child(1) { grid-column: span 5; grid-row: 1; }
.bento-card:nth-child(2) { grid-column: span 7; grid-row: 1; }
.bento-card:nth-child(3) { grid-column: span 4; grid-row: 2; }
.bento-card:nth-child(4) { grid-column: span 4; grid-row: 2; }
.bento-card:nth-child(5) { grid-column: span 4; grid-row: 2; }
.bento-card:nth-child(6) { grid-column: span 12; grid-row: 3; flex-direction: row; align-items: center; gap: var(--space-2xl); }

.bento-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.bento-card-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.bento-card:nth-child(6) .bento-card-text { flex: 1; }

.bento-number {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

/* ---- Stats ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-5xl);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition: transform var(--dur-base) var(--ease-apple),
              border-color var(--dur-base) var(--ease-apple);
}

.stat-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.12); }

.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-number-accent { color: var(--accent); }

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: var(--space-xl);
  justify-content: center;
}

/* ─── Team Card Wrapper (anchors peek card) ─────────────── */
.team-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;  /* stretch card to fill grid row height */
  overflow: visible;
}


/* Team card: sits above the peek card */
/* (already defined below, just ensure z-index + border-radius transition) */

/* ─── Instagram Peek Card ────────────────────────────────── */
.team-hover-card {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;                       /* below main card (z-index 2) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: none;                 /* seamless join with main card */
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  transform: translateY(-100%);     /* hidden behind main card */
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.25s ease;
  pointer-events: none;
  overflow: hidden;
}

/* Peek card slides down on wrapper hover */
.team-card-wrapper:hover .team-hover-card {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Main card: flatten bottom corners when peeked to look connected */
.team-card-wrapper:hover .team-card {
  border-bottom-left-radius:  4px;
  border-bottom-right-radius: 4px;
}

/* ── Touch device: push next card below the absolute Instagram peek card ── */
@media (hover: none) {
  .team-card-wrapper {
    margin-bottom: 72px;  /* height of the absolute peek card (~44px icon + 12+10px padding + border) */
  }
}

/* ─── Instagram icon-only link ───────────────────────────── */
.insta-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition:
    color      0.25s ease,
    background 0.25s ease,
    transform  0.2s ease;
}

.insta-icon-link:hover {
  color: white;
  background: rgba(188, 24, 136, 0.18);
  transform: scale(1.12);
}

/* ─── Instagram SVG — AnimateIcons variants ──────────────── */
.insta-svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
  transform-origin: center;
}

/* iconVariants: scale [1→1.06→1] */
@keyframes igIconScale {
  0%   { transform: scale(1);    }
  45%  { transform: scale(1.06); }
  100% { transform: scale(1);    }
}

/* frameVariants: pathLength [0.2→1], opacity [0.6→1], 0.55s ease-in-out */
@keyframes igFrameDraw {
  0%   { stroke-dashoffset: 64; opacity: 0.6; }
  100% { stroke-dashoffset: 0;  opacity: 1;   }
}

/* lensVariants: scale [0.85→1.05→1], pathLength [0→1], 0.5s ease-out, delay 0.1s */
@keyframes igLensDraw {
  0%   { stroke-dashoffset: 26; transform: scale(0.85); opacity: 0.5; }
  60%  { stroke-dashoffset: 0;  transform: scale(1.05); opacity: 1;   }
  100% { stroke-dashoffset: 0;  transform: scale(1);    opacity: 1;   }
}

/* dotVariants: scale [1→1.5→1], opacity [1→0.4→1], 0.35s ease-in-out, delay 0.2s */
@keyframes igDotPop {
  0%   { transform: scale(1);   opacity: 1;   }
  50%  { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1);   opacity: 1;   }
}

/* Base rest state */
.ig-frame {
  fill: none;
  stroke-dasharray: 80;
  stroke-dashoffset: 0;
  opacity: 1;
  transform-origin: center;
}

.ig-lens {
  fill: none;
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  opacity: 1;
  transform-origin: 12px 11px;
}

.ig-dot {
  stroke-linecap: round;
  transform-origin: 17.5px 6.5px;
}

/* Play on .is-playing (added by JS on mouseenter) */
.insta-svg.is-playing {
  animation: igIconScale 0.4s ease-out forwards;
}
.insta-svg.is-playing .ig-frame {
  animation: igFrameDraw 0.55s ease-in-out forwards;
}
.insta-svg.is-playing .ig-lens {
  animation: igLensDraw 0.5s ease-out forwards;
  animation-delay: 0.1s;
}
.insta-svg.is-playing .ig-dot {
  animation: igDotPop 0.35s ease-in-out forwards;
  animation-delay: 0.2s;
}




.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition:
    transform var(--dur-base) var(--ease-apple),
    box-shadow var(--dur-base) var(--ease-apple),
    border-bottom-left-radius  0.3s ease,
    border-bottom-right-radius 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  position: relative;
  z-index: 2;
  flex: 1;  /* fill wrapper height so both cards match */
}

/* Hover: subtle box-shadow only — no translateY (would detach from peek card) */
.team-card-wrapper:hover .team-card { box-shadow: var(--shadow-lg); }

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-apple),
              border-color var(--dur-base) var(--ease-apple),
              box-shadow var(--dur-base) var(--ease-apple);
  flex-shrink: 0;
  position: relative;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(251, 53, 2, 0.3);
}

.team-avatar-initials {
  position: relative;
  z-index: 1;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.team-avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  z-index: 1;
}

.team-avatar-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(251,53,2,0.2), transparent 60%);
}

.team-name {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Section separator ---- */
.about-section-sep {
  margin: var(--space-4xl) 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

@media (max-width: 1024px) {
  .bento-card:nth-child(1) { grid-column: span 6; grid-row: auto; }
  .bento-card:nth-child(2) { grid-column: span 6; grid-row: auto; }
  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5) { grid-column: span 4; grid-row: auto; }
  .bento-card:nth-child(6) { grid-row: auto; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-mission { grid-template-columns: 1fr; }
  .about-mission-visual {
    height: 280px;
    margin-right: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
  }
  .about-mockup-img {
    width: 100%;
    max-width: 100% !important;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  /* Force all bento cards to single full-width column — reset grid-row too! */
  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5),
  .bento-card:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .bento-card:nth-child(6) {
    flex-direction: column;
    gap: var(--space-lg);
  }
  .bento-card { padding: var(--space-xl); }
  .bento-number { font-size: clamp(2.5rem, 10vw, 4rem); }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .about-mission {
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
  }
  .about-mission-visual {
    height: 220px;
    margin-right: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
  }
  .about-mockup-wrap { animation: none; }
  .about-mockup-img {
    width: 100%;
    max-width: 100% !important;
    object-fit: cover;
    border-radius: 16px;
  }
  .about-mission-quote { font-size: clamp(var(--text-xl), 6vw, var(--text-3xl)); }
  .about-mission-body { font-size: var(--text-base); }
}

@media (max-width: 480px) {
  .bento-card { padding: var(--space-lg); }
  .stats-row { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
  .stat-card { padding: var(--space-xl) var(--space-md); }
  .stat-number { font-size: clamp(2rem, 8vw, 2.8rem); }
  .team-grid { max-width: 100%; }
  .about-mission-visual { height: 180px; }
}
