/* ============================================================
   ABOUT.CSS — matches acrobatant-about.html exactly
   ============================================================ */

/* ── Shared utilities ────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.section-label-col h2,
.section-label {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--color-black, #141414);
  letter-spacing: -1px;
  border-left: 4px solid var(--color-red, #ed1c24);
  padding-left: 16px;
}
.body-copy p {
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  color: #333;
  margin-bottom: 24px;
}
.body-copy p:last-child {
  margin-bottom: 0;
}
.body-copy p strong {
  font-weight: 600;
  color: var(--color-black, #141414);
}

.story-opener {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--color-black, #141414);
  line-height: 1.3;
  letter-spacing: -0.2px;
  margin-bottom: 24px;
}

.page-template-template-about .body-copy p em {
  font-family: var(--font-body, "Noto Sans", sans-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--color-black, #141414);
  line-height: 1.5;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ── Hero ────────────────────────────────────────────────── */
.about-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-black, #141414);
}
.about-hero__image {
  width: 100%;
  height: 72vh;
  min-height: 480px;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}
.about-hero__image img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.about-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.3) 55%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.about-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-bottom: 80px;
  z-index: 4;
}
.about-hero__content .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.about-hero__left {
}
.about-hero__eyebrow {
  display: block;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body, "Noto Sans", sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.about-hero__left h1 {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -2px;
  color: #fff;
}
.about-hero__left h1 em {
  color: var(--color-red, #ed1c24);
  font-style: normal;
  display: block;
}
.about-hero__right p {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
}

/* ── Story sections ──────────────────────────────────────── */
.story-section {
  padding: 50px 0;
}

/* ── Beliefs carousel ────────────────────────────────────── */
.values-section {
  background: #fff;
  padding: 50px 0;
}
.values-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.beliefs-carousel {
  background: #fff;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
.bc-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 480px;
}
.bc-belt {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.bc-slide {
  position: absolute;
  top: 50%;
  margin-top: -210px;
  width: 480px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  left: 0;
}
.bc-inner {
  width: 100%;
  border-radius: 4px;
  padding: 3rem 2.5rem;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--color-off, #f8f7f5);
  transition:
    background 0.6s ease,
    box-shadow 0.6s ease;
}
.bc-slide.bc-active .bc-inner {
  background: var(--color-off, #f8f7f5);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
}
.bc-icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-red, #ed1c24);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  transform: scale(0.85);
  opacity: 0.6;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}
.bc-slide.bc-active .bc-icon {
  transform: scale(1);
  opacity: 1;
}
.bc-num {
  display: none;
}
.bc-title {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: 48px;
  font-weight: 900;
  color: var(--color-black, #141414);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.5px;
  max-width: 380px;
  transition:
    font-size 0.5s ease,
    color 0.5s ease;
}
.bc-slide:not(.bc-active) .bc-title {
  font-size: 38px;
  color: rgba(20, 20, 20, 0.5);
  max-width: 340px;
}
.bc-divider {
  width: 80px;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  flex-shrink: 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition:
    opacity 0.5s ease 0.3s,
    transform 0.5s ease 0.3s;
}
.bc-slide.bc-active .bc-divider {
  opacity: 1;
  transform: scaleX(1);
}
.bc-desc {
  font-family: var(--font-body, "Noto Sans", sans-serif);
  font-size: 16px;
  font-weight: 300;
  color: #666;
  line-height: 1.8;
  margin: 0;
  max-width: 320px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.55s ease 0.35s,
    transform 0.55s ease 0.35s;
}
.bc-slide.bc-active .bc-desc {
  opacity: 1;
  transform: translateY(0);
}
.bc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 1.5rem;
}
.bc-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #666;
  transition: background 0.2s;
}
.bc-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
.bc-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
}
.bc-dot.bc-on {
  background: var(--color-red, #ed1c24);
  transform: scale(1.4);
}

/* ── Team ────────────────────────────────────────────────── */
.team-section {
  padding: 50px 0;
}
.team-section .two-col {
  margin-bottom: clamp(40px, 4vw, 64px);
  align-items: end;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: 36px;
}
.team-card {
  display: block;
  text-decoration: none;
}
.team-photo {
  aspect-ratio: 3/4;
  background: var(--color-off, #f8f7f5);
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.team-card:hover .team-photo img {
  transform: scale(1.08);
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #43454b;
}

/* Hover-reveal overlay — name + title slide up over a dark scrim,
   same treatment as Faces of AcrobatAnt's leadership cards */
.team-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    transparent 75%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 4px;
}
.team-card:hover .team-card-info,
.team-card:focus-visible .team-card-info {
  opacity: 1;
}
.team-card-info h4 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: transform 0.35s ease 0.03s;
}
.team-card-info span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-red, #ed1c24);
  transform: translateY(10px);
  transition: transform 0.35s ease 0.06s;
}
.team-card:hover .team-card-info h4,
.team-card:hover .team-card-info span {
  transform: translateY(0);
}

/* ── Culture section ─────────────────────────────────────── */
.culture-section {
  padding: 50px 0;
}
.culture-section .container {
  display: block;
}
.culture-left .section-label-col {
  margin-bottom: 36px;
}

/* ── Gallery — true masonry, works for any number of images
   (the old layout hardcoded exact positions for exactly 7) ──── */
.gallery-section {
  padding: 60px 0;
}
.gallery-grid {
  columns: 4 260px;
  column-gap: 20px;
  padding: 0 var(--pad-x, clamp(20px, 4vw, 48px));
}
.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  border-radius: 4px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(30%);
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(227, 30, 36, 0);
  transition: background 0.35s ease;
  pointer-events: none;
}
.gallery-item:hover::after {
  background: rgba(227, 30, 36, 0.12);
}

/* Gallery reveal on scroll */
.gallery-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .gallery-grid {
    columns: 2 160px;
    column-gap: 12px;
  }
  .gallery-item {
    margin-bottom: 12px;
  }
}

/* ── Gallery Lightbox ────────────────────────────────────── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
}
.gallery-lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: 88vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox__img {
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.gallery-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  transition: opacity 0.18s;
}
.gallery-lightbox__close:hover {
  opacity: 0.7;
}
.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.gallery-lightbox__nav:hover {
  background: var(--color-red, #ed1c24);
  border-color: var(--color-red, #ed1c24);
}
.gallery-lightbox__nav--prev {
  left: 24px;
}
.gallery-lightbox__nav--next {
  right: 24px;
}

@media (max-width: 640px) {
  .gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .gallery-lightbox__nav--prev {
    left: 10px;
  }
  .gallery-lightbox__nav--next {
    right: 10px;
  }
  .gallery-lightbox__close {
    top: 14px;
    right: 14px;
  }
}

/* ── Flexible content sections ──────────────────────────── */
.flexible-section {
  padding: 50px 0;
}
.flexible-section.layout-off {
  background: var(--color-off, #f8f7f5);
}
.flexible-section.layout-dark {
  background: var(--color-dark, #2c2e35);
}
.flexible-section.layout-dark .section-label-col h2,
.flexible-section.layout-dark .body-copy p {
  color: rgba(255, 255, 255, 0.85);
}
.flexible-section.layout-dark .section-label-col h2 {
  border-color: var(--color-red, #ed1c24);
}
.flexible-section.layout-red {
  background: var(--color-red, #ed1c24);
}
.flexible-section.layout-red .section-label-col h2,
.flexible-section.layout-red .body-copy p {
  color: #fff;
}
.flexible-section.layout-red .section-label-col h2 {
  border-color: rgba(255, 255, 255, 0.4);
}

.flex-image-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.flex-image-wrap.image-right {
  direction: rtl;
}
.flex-image-wrap.image-right > * {
  direction: ltr;
}
.flex-image-wrap img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0;
}
.stat-block__num {
  font-family: var(--font-display, "Barlow Condensed", sans-serif);
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 900;
  color: var(--color-red, #ed1c24);
  line-height: 1;
  letter-spacing: -2px;
}
.stat-block__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .about-hero__image {
    height: 75vh;
    min-height: 480px;
  }
  .bc-viewport {
    height: 400px;
  }
  .bc-slide {
    width: 320px;
    margin: 0 16px;
  }
  .bc-inner {
    height: 340px;
    padding: 2rem 1.75rem;
  }
  .bc-title {
    font-size: 28px;
  }
  .flex-image-wrap {
    grid-template-columns: 1fr;
  }
  .flex-image-wrap.image-right {
    direction: ltr;
  }
}
@media (max-width: 480px) {
  .about-hero__left h1 {
    font-size: clamp(44px, 13vw, 64px);
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
