/* ─── About + Stats Section ─── */

.section-about {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
  overflow-x: clip; /* prevent marquee track from causing horizontal scroll */
}

/* ════════════════════════════════
   HERO — full-width image + tagline
════════════════════════════════ */

.about__hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: clamp(300px, 44vw, 852px);
}

.about__hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Gradient: top and bottom identical fade — solid → dark → transparent → transparent → dark → solid */
.about__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-bg)       0%,
    rgba(8,8,8,0.80)     22%,
    transparent          45%,
    transparent          55%,
    rgba(8,8,8,0.80)     78%,
    var(--color-bg)      100%
  );
}

/* Tagline — bottom-left over hero image */
.about__tagline {
  position: absolute;
  bottom: clamp(28px, 4.5vw, 80px);
  left: clamp(20px, 2.8vw, 54px);
  width: clamp(280px, 58vw, 920px);
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 70px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
  z-index: 1;
}

/* ════════════════════════════════
   CONTENT — two equal columns
════════════════════════════════ */

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch; /* both columns match height */
  padding: clamp(40px, 3.5vw, 56px) clamp(20px, 2.7vw, 52px) clamp(80px, 8vw, 140px);
  gap: clamp(24px, 2.2vw, 40px);
  overflow: hidden;
}

/* ════════════════════════════════
   LEFT COLUMN — information
   Figma: 898×550px, absolute positions:
     subheading  → top: 52px (center), translate-y-50%
     upwork link → top: 174px
     linkedin    → top: 234px
     clients     → top: 410px
════════════════════════════════ */

.about__left {
  display: flex;
  flex-direction: column;
  min-width: 0; /* essential: prevents grid blowout */
  overflow: hidden;
}

/* Subheading — DM Mono, 40px, uppercase */
.about__subheading {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
  max-width: 589px;
}

/* Social links — each is a direct child of about__left */
.about__link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--color-white);
  transition: opacity 0.25s ease;
  width: fit-content;
}

.about__link:first-of-type {
  margin-top: clamp(40px, 5vw, 70px); /* subheading → upwork gap */
}

.about__link + .about__link {
  margin-top: clamp(16px, 4.2vw, 60px); /* upwork → linkedin gap */
}

.about__link:hover { opacity: 0.65; }

.about__link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
}

.about__link-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.about__link-label {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}

.about__link-arrow {
  font-size: clamp(13px, 1.4vw, 20px);
  line-height: 1;
}

/* ── Clients / logo strip ── */
.about__clients {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: clamp(60px, 12.2vw, 176px); /* linkedin → clients gap */
}

.about__clients-label {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.1vw, 30px);
  font-weight: 500;
  color: var(--color-white);
  text-align: center;
  margin: 0;
}

.about__clients-divider {
  height: 1px;
  background: linear-gradient(
    -82deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
}

/* Marquee container */
.about__logos-wrap {
  position: relative;
  overflow: hidden;
  height: 40px;
  width: 100%;
}

/* Fade edges */
.about__logos-wrap::before,
.about__logos-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 1;
  pointer-events: none;
}

.about__logos-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.about__logos-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

/* Scrolling track — two identical sets, animate by -50% for seamless loop */
.about__logos-track {
  display: flex;
  align-items: center;
  animation: about-marquee 28s linear infinite;
  will-change: transform;
}

.about__logos-wrap:hover .about__logos-track {
  animation-play-state: paused;
}

/* Each set: fixed gap so both halves are exactly equal width */
.about__logos-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px; /* trailing space = gap before next set */
  flex-shrink: 0;      /* CRITICAL: prevents flex compression, keeps -50% accurate */
}

/* Logos are white SVG/PNG — no colour filter */
.about__logos-set img {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  opacity: 0.85;
}

@keyframes about-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════
   RIGHT COLUMN — bio + stats
   Figma: flex-col, gap-40px
════════════════════════════════ */

.about__right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0; /* essential: prevents grid blowout */
  justify-content: space-between;
}

/* Bio paragraph — Aktiv Grotesk Medium, 30px */
.about__bio {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.1vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0;
}

/* ── Stats rows ── */
.about__stats {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Each row — border-top white, py:20px, flex space-between */
.about__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,1);
  width: 100%;
}

/* Last row also gets border-bottom */
.about__stat--last {
  border-bottom: 1px solid rgba(255,255,255,1);
}

/* Stat label — Aktiv Grotesk Medium, 24px */
.about__stat-label {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-white);
}

/* Stat number — DM Mono, 60px */
.about__stat-num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-white);
  flex-shrink: 0;
  white-space: nowrap;
}

/* Infinity icon — 72×72px image */
.about__stat-infinity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
}

.about__stat-infinity img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

@media (max-width: 1024px) {
  .about__content {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 64px;
  }
}

@media (max-width: 768px) {
  .about__tagline {
    font-size: clamp(26px, 7vw, 44px);
  }

  .about__content {
    padding: 40px 20px 80px;
  }

  .about__subheading {
    width: 100%;
  }

  .about__link:first-of-type {
    margin-top: 32px;
  }

  .about__link + .about__link {
    margin-top: 16px;
  }

  .about__clients {
    margin-top: 48px;
  }
}
