/* =============================================================================
   About us + showreel — Framer desktop layout (imTheo)
   Header → 4 cards in a row → full-width showreel
   ============================================================================= */

.about-showreel {
  --about-ink: #0a0a0a;
  --about-muted: rgba(10, 10, 10, 0.6);
  --about-soft: #e9e9e9;
  background: #fff;
  color: var(--about-ink);
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.25rem, 3.5vw, 2.75rem);
  font-family: var(--font, var(--font-system));
  position: relative;
  z-index: 7;
  border-radius: 2rem;
  margin: -1.5rem 0;
}

.about-showreel__inner {
  width: 100%;
  max-width: min(100%, 1280px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.about-showreel__top {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  max-width: 42rem;
}

.about-showreel__badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.about-showreel__badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-showreel__badge-plus {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
}

.about-showreel__badge-plus::before,
.about-showreel__badge-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #0a0a0a;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.about-showreel__badge-plus::before {
  width: 100%;
  height: 1.5px;
}

.about-showreel__badge-plus::after {
  width: 1.5px;
  height: 100%;
}

.about-showreel__badge-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--about-ink);
}

.about-showreel__brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--about-ink);
}

.about-showreel__copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-showreel__heading {
  margin: 0;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--about-ink);
}

.about-showreel__heading span {
  color: var(--about-muted);
}

.about-showreel__subtitle {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.9375rem, 1.45vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--about-muted);
}

/* Stack: cards row, then full-width media */
.about-showreel__body {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vw, 1.35rem);
}

.about-showreel__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 0.9rem);
}

.about-step {
  background: #fff;
  border-radius: 18px;
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.06);
  min-height: 100%;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.about-step:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(10, 10, 10, 0.08),
    0 12px 28px rgba(10, 10, 10, 0.06);
}

.about-step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.about-step__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.about-step__dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 100%;
  background: var(--about-soft);
  transform: scale(0.85);
  transition:
    background 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.about-step__dots span.is-on {
  background: #0a0a0a;
  transform: scale(1);
}

.about-step__dots span:nth-child(1) {
  transition-delay: 0ms;
}
.about-step__dots span:nth-child(2) {
  transition-delay: 70ms;
}
.about-step__dots span:nth-child(3) {
  transition-delay: 140ms;
}
.about-step__dots span:nth-child(4) {
  transition-delay: 210ms;
}

/* When scroll animation is armed, hold progress dots until the card goes live */
.about-steps-animate-init .about-step:not(.is-live) .about-step__dots span.is-on {
  background: var(--about-soft);
  transform: scale(0.85);
}

.about-steps-animate-init .about-step.is-live .about-step__dots span.is-on {
  background: #0a0a0a;
  transform: scale(1);
}

.about-step__num {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.1;
  color: #090909;
  opacity: 0.5;
  transition: opacity 0.45s ease 0.12s;
}

.about-step.is-live .about-step__num {
  opacity: 0.5;
}

.about-step__body {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.about-step__thumb {
  position: relative;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    opacity 0.45s ease 0.08s;
}

.about-steps-animate-init .about-step:not(.is-live) .about-step__thumb {
  transform: scale(0.92);
  opacity: 0.65;
}

.about-steps-animate-init .about-step.is-live .about-step__thumb {
  transform: scale(1);
  opacity: 1;
}

.about-step__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-step__text {
  margin: 0;
  font-size: clamp(0.8125rem, 1.15vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--about-muted);
  transition:
    opacity 0.5s ease 0.14s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.about-steps-animate-init .about-step:not(.is-live) .about-step__text {
  opacity: 0.55;
  transform: translateY(6px);
}

.about-steps-animate-init .about-step.is-live .about-step__text {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-triggered card entrance */
.about-steps-animate-init .about-step--prep {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.about-steps-animate-init .about-step--prep:nth-child(1) {
  transition-delay: 0ms;
}
.about-steps-animate-init .about-step--prep:nth-child(2) {
  transition-delay: 90ms;
}
.about-steps-animate-init .about-step--prep:nth-child(3) {
  transition-delay: 180ms;
}
.about-steps-animate-init .about-step--prep:nth-child(4) {
  transition-delay: 270ms;
}

.about-steps-animate-init .about-step--prep.is-live {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about-steps-animate-init .about-step--prep.is-live:hover {
  transform: translate3d(0, -3px, 0);
}

/* Full-width showreel */
.about-showreel__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: clamp(28px, 3.5vw, 48px);
  overflow: hidden;
  min-height: clamp(460px, 68vw, 760px);
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.about-showreel__media-img {
  position: absolute;
  inset: 0;
}

.about-showreel__media-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-showreel__noise {
  position: absolute;
  inset: -200%;
  width: 400%;
  height: 400%;
  opacity: 0.05;
  pointer-events: none;
  background: url('https://framerusercontent.com/images/rR6HYXBrMmX4cRpXfXUOvpvpB0.png') repeat;
}

/* White play circle + white text (no dark pill) */
.about-showreel__play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-showreel__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.about-showreel__play-icon svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.12rem;
}

.about-showreel__play-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}

.about-showreel__play-title {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.about-showreel__play-meta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.72);
}

.about-showreel__media:hover .about-showreel__media-img img,
.about-showreel__media:focus-visible .about-showreel__media-img img {
  transform: scale(1.035);
}

.about-showreel__media:hover .about-showreel__play,
.about-showreel__media:focus-visible .about-showreel__play {
  transform: scale(1.04);
}

.about-showreel__media:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .about-showreel__steps {
    grid-template-columns: 1fr 1fr;
  }

  .about-showreel__media {
    min-height: clamp(380px, 72vw, 560px);
  }
}

@media (max-width: 560px) {
  .about-showreel {
    border-radius: 1.25rem;
    padding: clamp(3rem, 10vw, 4rem) 1rem;
  }

  .about-showreel__steps {
    grid-template-columns: 1fr;
  }

  .about-showreel__play-icon {
    width: 3rem;
    height: 3rem;
  }

  .about-showreel__media {
    border-radius: 24px;
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-showreel__media-img img,
  .about-showreel__play,
  .about-step,
  .about-step__dots span,
  .about-step__thumb,
  .about-step__text {
    transition: none !important;
  }

  .about-showreel__media:hover .about-showreel__media-img img,
  .about-showreel__media:hover .about-showreel__play {
    transform: none;
  }

  .about-steps-animate-init .about-step--prep {
    opacity: 1;
    transform: none;
  }

  .about-step:hover {
    transform: none;
  }

  .about-step__dots span.is-on {
    background: #0a0a0a;
    transform: scale(1);
  }

  .about-step__thumb,
  .about-step__text {
    opacity: 1;
    transform: none;
  }
}
