/* Work gallery and media interactions. */
.work-section {
  background: #171715;
  color: #f8f7f4;
  padding-bottom: 110px;
}
.work-section .section-topline {
  border-top: 4px solid var(--gold);
}
.work-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  padding: 100px 0 66px;
}
.work-intro h2 {
  margin: 0;
  max-width: 770px;
}
.work-intro p {
  max-width: 290px;
  color: #d2cfc7;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.work-controls {
  display: flex;
  gap: 8px;
  border-top: 1px solid #53514c;
  padding-top: 18px;
  margin-bottom: 38px;
}
.filter-button {
  border: 1px solid #5b574f;
  background: transparent;
  color: #ddd9d2;
  border-radius: 100px;
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}
.filter-button span {
  font-size: 10px;
  opacity: 0.55;
  margin-left: 7px;
}
.filter-button.active,
.filter-button:hover {
  background: var(--gold);
  color: #171715;
  border-color: var(--gold);
}
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 28px;
}
.video-card {
  display: block;
  min-width: 0;
  cursor: pointer;
}
.video-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #27231d, #5b4a32);
  border: 1px solid #544a3b;
  border-radius: var(--content-radius);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.video-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.media-type {
  position: absolute;
  left: 20px;
  top: 20px;
  background: #171715dc;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 8px;
  z-index: 2;
}
.video-caption {
  position: relative;
  padding: 19px 50px 22px 0;
}
.project-number {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.video-caption h3 {
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.video-caption p {
  color: #c3bfb7;
  margin: 0;
  font-size: 13px;
}
.project-arrow {
  position: absolute;
  right: 4px;
  top: 29px;
  color: var(--gold);
  font-size: 28px;
}
.reels-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin: 100px 0 30px;
}
.reels-heading h3 {
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: -0.07em;
  line-height: 1;
  margin: 14px 0 0;
}
.reels-heading p {
  max-width: 280px;
  color: #bcb7ae;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.reels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.reel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, #765f3d 0, #2b2721 40%, #111 100%);
  border: 1px solid #756344;
  color: #f7f3e9;
  padding: 20px;
  cursor: pointer;
  aspect-ratio: 9 / 16;
  border-radius: var(--content-radius);
}
.reel-two {
  background: radial-gradient(circle at 25% 75%, #6a583b 0, #282923 44%, #111 100%);
}
.reel-three {
  background: radial-gradient(circle at 80% 70%, #56503e 0, #242523 48%, #111 100%);
}
.reel-bottom {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  background: #171715;
}
.reel-bottom b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  font-size: 12px;
  line-height: 1;
  color: var(--gold);
}
.reels-carousel {
  container-type: inline-size;
}
.reels-carousel:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: var(--content-radius);
}
.reels-carousel.is-ready .reels-grid {
  position: relative;
  display: block;
  margin-inline: auto;
  height: 49.78cqw;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* Start at the outer cards' visible edges and reach full opacity toward the center. */
  --reel-fade-edge: 2.92%;
  --reel-fade-full: 28%;
  clip-path: inset(0 2.92%);
  mask-image: linear-gradient(90deg, transparent var(--reel-fade-edge), #000 var(--reel-fade-full), #000 calc(100% - var(--reel-fade-full)), transparent calc(100% - var(--reel-fade-edge)));
  -webkit-mask-image: linear-gradient(90deg, transparent var(--reel-fade-edge), #000 var(--reel-fade-full), #000 calc(100% - var(--reel-fade-full)), transparent calc(100% - var(--reel-fade-edge)));
}
.reels-carousel.is-ready .reel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28cqw;
  box-sizing: border-box;
  will-change: transform;
  transition: none;
  cursor: grab;
  background: #171715;
  border-color: color-mix(in srgb, var(--gold) calc(var(--reel-focus, 0) * 100%), #756344);
  box-shadow:
    0 18px 54px rgb(0 0 0 / calc(var(--reel-focus, 0) * .33)),
    0 0 0 1px rgb(232 177 26 / calc(var(--reel-focus, 0) * .125));
}
.reels-carousel.is-ready .reel-bottom {
  opacity: clamp(0, calc((var(--reel-focus, 0) - .5) * 2), 1);
  pointer-events: none;
}
.reels-carousel.is-ready .reel-thumbnail {
  opacity: 1;
}
/* Spare wrapping copies must not peek through the outer cards' rounded corners. */
.reels-carousel.is-ready .reel-card[aria-hidden="true"] {
  visibility: hidden;
}
.reels-carousel.is-ready .is-moving .reel-card[aria-hidden="true"],
.reels-carousel.is-ready .is-dragging .reel-card[aria-hidden="true"] {
  visibility: visible;
}
.reels-carousel.is-ready .reel-card.is-active {
  cursor: pointer;
}
.reels-carousel.is-ready .is-dragging,
.reels-carousel.is-ready .is-dragging .reel-card {
  cursor: grabbing;
}
.reels-carousel.is-ready .reel-card::after,
.reels-carousel.is-ready .reel-card:focus-visible::after {
  opacity: 0;
}
.reels-carousel.is-ready .reel-card:focus-visible {
  outline-offset: -5px;
}
.reels-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.reels-arrows, .reels-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reels-arrows button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #756344;
  border-radius: 50%;
  color: #f8f7f4;
  background: transparent;
  font-size: 23px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.reels-arrows button:hover {
  background: var(--gold);
  color: #171715;
}
.reels-status {
  margin: 0;
  color: #bcb7ae;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.reels-dots {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
  gap: 2px;
}
.reels-dots button {
  width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.reels-dots button::before {
  content: "";
  display: block;
  margin: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #756344;
}
.reels-dots button[aria-pressed="true"]::before {
  width: 20px;
  border-radius: 8px;
  background: var(--gold);
}
.reels-navigation button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .reels-carousel.is-ready .reels-grid {
    --reel-fade-edge: 0%;
    --reel-fade-full: 22%;
    height: 99.56cqw;
    clip-path: none;
  }
  .reels-carousel.is-ready .reel-card {
    width: 56cqw;
    padding: 10px;
  }
  .reels-carousel.is-ready .reel-bottom {
    font-size: 7px;
    letter-spacing: .04em;
    padding: 7px;
  }
  .reels-carousel.is-ready .reel-bottom b {
    width: 11px;
    height: 11px;
    font-size: 10px;
  }
  .reels-navigation {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
  }
  .reels-status {
    order: 3;
    width: 100%;
  }
}
.video-cursor-active .video-media {
  cursor: none;
}
.video-hover-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 144px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  color: #171715;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0s linear 0.18s;
}
.video-hover-cursor.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.video-hover-cursor span:last-child {
  font-size: 18px;
  font-weight: 400;
}
.see-video-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #171715;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}
.video-card:focus-visible .see-video-hint {
  opacity: 1;
}
.video-card:focus-visible {
  outline: 2px solid #e8b11a;
  outline-offset: 6px;
  border-radius: var(--content-radius);
}
.reel-card:focus-visible {
  outline: 2px solid #e8b11a;
  outline-offset: 6px;
  border-radius: var(--content-radius);
  border-color: #e8b11a;
  box-shadow:
    0 0 0 1px #e8b11a66,
    0 0 22px #e8b11a30;
}
.reel-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Reframe the published covers without baking player controls into the thumbnails. */
.reel-card-dreams .reel-thumbnail {
  scale: 1.8;
  transform-origin: 65% 50%;
}
.reel-card-enjoy-life::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: linear-gradient(#17171566, #171715f5), url("../images/instagram-enjoy-life-thumbnail.jpg") center / cover;
  filter: blur(14px);
  pointer-events: none;
}
.reel-card-enjoy-life .reel-thumbnail {
  top: 10%;
  bottom: auto;
  height: 56%;
  object-fit: cover;
  object-position: 30% 50%;
  mask-image: linear-gradient(transparent, #000 8%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 90%, transparent);
}
.reel-cover-title {
  position: absolute;
  top: 69%;
  left: 10%;
  color: #f8f7f4;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(28px, 3cqw, 46px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  pointer-events: none;
}
.reel-cover-title em {
  color: var(--gold);
  font-style: normal;
}
.video-media::after,
.reel-card::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: inherit;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.video-card:focus-visible .video-media {
  border-color: #e8b11a;
  box-shadow:
    0 0 0 1px #e8b11a66,
    0 0 22px #e8b11a30;
}
.video-card:focus-visible .video-media::after,
.reel-card:focus-visible::after {
  opacity: 0.4;
}
@media (max-width: 1050px) {
  .work-intro {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  .work-intro p {
    max-width: 550px;
  }
  .reels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .work-section {
    padding-bottom: 76px;
  }
  .work-intro {
    padding: 72px 0 36px;
  }
  .work-intro h2 {
    font-size: 56px;
  }
  .work-intro p {
    font-size: 15px;
  }
  .youtube-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }
  .video-caption h3 {
    font-size: 24px;
  }
  .reels-heading {
    margin: 75px 0 24px;
    display: block;
  }
  .reels-heading h3 {
    font-size: 42px;
  }
  .reels-heading p {
    margin-top: 14px;
  }
  .reels-grid {
    gap: 10px;
  }
  .reel-card {
    padding: 13px;
  }
  .reel-bottom {
    font-size: 8px;
  }
  .work-controls {
    gap: 6px;
  }
  .filter-button {
    padding: 9px 12px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-hover-cursor {
    transition: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .see-video-hint {
    opacity: 1;
  }
}
@media (min-width: 1051px) {
  .reels-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (hover: hover) {
  .video-media:hover {
    border-color: #e8b11a;
    box-shadow:
      0 0 0 1px #e8b11a66,
      0 0 22px #e8b11a30;
  }
  .video-media:hover::after {
    opacity: 0.4;
  }
  .video-media:hover img {
    transform: scale(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-media,
  .video-media img,
  .reel-card,
  .reel-thumbnail,
  .video-media::after,
  .reel-card::after {
    transition: none;
  }
  .video-media:hover img {
    transform: none;
  }
}
