/* =========================================================
   MEENA PHOTOGRAPHY
   MEET SECTION
   CLEAN / CONSOLIDATED / PERFORMANCE-FIRST CSS
========================================================= */

.meet-section {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 3vw, 32px);
}

.meet-container {
  position: relative;
  width: min(100%, 1400px);
  margin: 0 auto;
}

/* =========================================================
   HEADER
========================================================= */

.meet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: clamp(50px, 6vw, 80px);
}

.meet-title {
  margin: 0;
  color: var(--blk);
  font-family: var(--fh);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.meet-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--blk);
  color: var(--blk);
  font-family: var(--fb);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s ease, border-color .3s ease;
}

.meet-link:hover {
  color: var(--go);
  border-color: var(--go);
}

/* =========================================================
   DECORATIVE SPARKLES
========================================================= */
.s-sparkle {
  position: relative;
  width: 44px;
  height: 44px;
  animation: pulse 3s infinite
}

.s-sparkle {
  top: 10%;
  left: 5%;
}

.sp-meet-2 {
  top: 15%;
  right: 10%;
}

.s-sparkle {
  animation: meetSparkle 4s ease-in-out infinite;
}

@keyframes meetSparkle {
  0%, 100% {
    opacity: .2;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* =========================================================
   MASONRY GRID
========================================================= */

.meet-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.mm-col {
  display: flex;
  flex-direction: column;
  gap: 80px;
  min-width: 0;
}

.mm-item {
  width: 100%;
  min-width: 0;
}

/* =========================================================
   IMAGE
========================================================= */

.mm-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
  transform: translate3d(0, 0, 0);
  transition:
    transform .55s cubic-bezier(.22, .61, .36, 1),
    box-shadow .4s ease;
}

.mm-item:hover img {
  transform: scale(1.025);
}

/* =========================================================
   IMAGE HEIGHTS
========================================================= */

.mm-img-tall {
  height: 600px;
}

.mm-img-sq {
  height: 400px;
}

.mm-img-sq-large {
  height: 500px;
}

.mm-img-horiz {
  height: 300px;
}

/* =========================================================
   TEXT
========================================================= */

.mm-text {
  max-width: 350px;
  color: rgba(34, 34, 34, .8);
  font-family: var(--fb);
  font-size: 1.05rem;
  line-height: 1.8;
}

.mm-text-top {
  margin-top: 80px;
}

.mt-40 {
  margin-top: 40px;
}

.mm-spacer {
  height: 100px;
}

/* =========================================================
   BUTTON
========================================================= */

.btn-outline-rect {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 15px 30px;
  overflow: hidden;
  border: 1px solid var(--go);
  border-radius: 40px;
  color: var(--blk);
  font-family: var(--fb);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background .3s ease,
    box-shadow .3s ease,
    color .3s ease;
}

.btn-outline-rect::before {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .7),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.btn-outline-rect:hover {
  background: var(--iv);
  box-shadow: 0 10px 20px rgba(217, 167, 122, .15);
}

.btn-outline-rect:hover::before {
  animation: meetButtonShine .9s forwards;
}

@keyframes meetButtonShine {
  to {
    left: 180%;
  }
}

/* =========================================================
   SCROLL REVEAL
   JS adds .meet-show.
========================================================= */

.meet-header,
.mm-item {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity .75s ease,
    transform .75s cubic-bezier(.22, .61, .36, 1);
}

.meet-header {
  transform: translate3d(0, 45px, 0);
}

.mm-col:nth-child(1) .mm-item {
  transform: translate3d(-50px, 0, 0);
}

.mm-col:nth-child(2) .mm-item {
  transform: translate3d(0, 55px, 0);
}

.mm-col:nth-child(3) .mm-item {
  transform: translate3d(50px, 0, 0);
}

.meet-show {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/*
 * Do not transform the image from the reveal rule.
 * This prevents JS/scroll reveal from fighting with
 * image hover/parallax transforms.
 */
.meet-show img {
  transform: translate3d(0, 0, 0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .meet-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-col:last-child {
    display: none;
  }

  .mm-col {
    gap: 55px;
  }

  .mm-img-tall {
    height: 520px;
  }

  .mm-img-sq-large {
    height: 440px;
  }
}

@media (max-width: 900px) {
  .meet-title {
    font-size: 4rem;
  }

  .meet-header {
    margin-bottom: 55px;
  }
}

@media (max-width: 768px) {
  .meet-section {
    padding: 70px 20px;
  }

  .meet-header {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 45px;
  }

  .meet-title {
    font-size: 3.2rem;
  }

  .meet-masonry {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .mm-col {
    gap: 30px;
  }

  .mm-col:last-child {
    display: flex;
  }

  .mm-text {
    max-width: 100%;
    padding: 15px 5px;
  }

  .mm-text-top {
    margin-top: 0;
  }

  .mt-40 {
    margin-top: 20px;
  }

  .mm-spacer {
    height: 20px;
  }

  /*
   * Mobile: no image transform animation.
   * This prevents scroll hitching and image/text
   * transform conflicts.
   */
  .meet-header,
  .mm-item {
    opacity: 1;
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .mm-item img {
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .mm-item:hover img {
    transform: none !important;
  }

  .s-sparkle {
    animation: none;
  }

  .btn-outline-rect:hover::before {
    animation: none;
  }
}

@media (max-width: 600px) {
  .meet-title {
    font-size: 3rem;
  }

  .meet-link {
    font-size: .75rem;
  }

  .mm-img-tall {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .mm-img-sq,
  .mm-img-sq-large {
    height: auto;
    aspect-ratio: 1;
  }

  .mm-img-horiz {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .mm-text {
    font-size: .98rem;
    line-height: 1.75;
  }
}

@media (max-width: 400px) {
  .meet-section {
    padding: 60px 15px;
  }

  .meet-title {
    font-size: 2.5rem;
  }

  .mm-col {
    gap: 25px;
  }

  .btn-outline-rect {
    padding: 13px 22px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .meet-section *,
  .meet-section *::before,
  .meet-section *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .meet-header,
  .mm-item,
  .mm-item img {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto !important;
  }
}
