/* ==========================================================
   about.css — Colony Creative
   Center-aligned headline + pulsing play button + video modal
   ========================================================== */

.about {
  position: relative;
  padding-top: clamp(100px, 16vh, 200px);
  padding-bottom: clamp(100px, 16vh, 200px);
  background: var(--bg-elevated);
}

.about__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  will-change: transform, opacity;
}

.about__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0;
}

.about__tm {
  font-size: 0.35em;
  vertical-align: super;
  color: var(--text-muted);
  font-weight: 400;
}

/* Body text */
.about__body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
  will-change: transform, opacity;
}

/* Play Button — subtle pulse, no text label */
.about__play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: none;
  will-change: transform, opacity;
}

@media (hover: none), (max-width: 768px) {
  .about__play-btn { cursor: pointer; }
}

.about__play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  animation: aboutSubtlePulse 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes aboutSubtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.08);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
    transform: scale(1.04);
  }
}

.about__play-icon svg {
  margin-left: 3px;
}

.about__play-btn:hover .about__play-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  animation: none;
}

/* Video Modal */
.about__modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: aboutModalFadeIn 0.3s ease;
  cursor: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about__modal.is-active {
  opacity: 1;
  visibility: visible;
}

@keyframes aboutModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.about__modal-content {
  position: relative;
  width: 90vw;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  cursor: auto;
}

.about__modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.3s ease;
}

.about__modal-close:hover { color: #fff; }

.about__modal-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about__modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.about__modal-iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: none;
  background: #000;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .about__headline { font-size: clamp(2rem, 8vw, 2.8rem); }
  .about__body { font-size: 0.9375rem; }
  .about__play-icon { width: 64px; height: 64px; }

  /* Modal — constrain to viewport on mobile.
     Use min() to pick whichever is smaller: 95vw or the width
     that would produce a 16:9 box fitting in 50vh of height.
     This prevents the white-screen issue where aspect-ratio +
     max-height leaves the container wider than it is tall. */
  .about__modal-content {
    width: min(95vw, calc(50vh * 16 / 9));
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  /* Close button needs to sit inside the frame on smaller screens */
  .about__modal-close {
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__modal { animation: none; }
  .about__play-icon { animation: none; }
}
