@font-face {
  font-family: Montserrat;
  src: url("media/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url("media/montserrat-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
#our-services {
  --service-ink: #f6f3eb;
  --service-link: #ffca16;
  --service-accent: #ffca16;
  scroll-margin-top: 95px;
  padding-block: clamp(20px, 2.3vw, 32px) 25px;
  background: #000;
}
body.home .elementor-top-section:has(.ypn-testimonial-carousel) {
  padding-block-end: clamp(20px, 2vw, 30px);
}
body.home :is(#our-services, #our-team) .elementor-widget-yprm_heading > .elementor-widget-container {
  margin-block-end: 5px;
}
#our-team .team-items { margin-block-start: 0; }
#our-services .heading-block .h,
#our-services .elementor-widget-yprm_heading h2 { color: var(--service-ink); }
#our-services .elementor-widget-yprm_heading h2 span { color: var(--service-link); }
.ypn-service-strip {
  width: min(1344px, calc(100% - 128px));
  margin-inline: auto;
  text-align: center;
}
.ypn-service-cards:not(.owl-loaded) {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.ypn-service-cards:not(.owl-loaded) > * { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
.ypn-service-cards.owl-loaded { display: block; }
.ypn-service-cards .owl-stage-outer { overflow: hidden; }
.ypn-service-cards .owl-stage { display: flex; }
.ypn-service-cards .owl-item { flex: none; min-width: 0; }
.ypn-service-cards.owl-drag .owl-item { touch-action: pan-y; }
.ypn-service-strip .ypn-service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #393730;
  background: #1d1d1d;
  color: var(--service-ink);
  text-align: left;
  text-decoration: none;
  transition: border-color .25s ease;
}
.ypn-service-strip .ypn-service-card:focus-visible { outline: 2px solid var(--service-link); outline-offset: -3px; }
.ypn-service-card-image { display: block; overflow: hidden; aspect-ratio: 16 / 8.7; }
.ypn-service-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ypn-service-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(16px, 2.1vw, 29px); }
.ypn-service-strip .ypn-service-card h3 { margin: 0; color: var(--service-ink); font: inherit; font-size: clamp(1.19rem, 2.3vw, 1.94rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.ypn-service-strip .ypn-service-card p { margin: 0; color: #cec9bd; font: inherit; font-size: clamp(.85rem, 1.45vw, 1.09rem); line-height: 1.52; }
.ypn-service-cta { margin-top: auto; padding-top: 16px; color: var(--service-link); font-weight: 750; }
.ypn-service-cta span, .ypn-service-index span { margin-inline-start: 8px; }
.ypn-service-strip .ypn-service-index { display: inline-flex; align-items: center; min-height: 44px; color: var(--service-link); font-weight: 700; }
.ypn-service-dots { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 15px; }
.ypn-service-dots .ypn-service-dot { appearance: none; display: grid; place-items: center; width: 27px; height: 34px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.ypn-service-dot span { width: 11px; height: 11px; border: 1px solid var(--service-ink); border-radius: 50%; box-sizing: border-box; }
.ypn-service-dot.active span { border-color: var(--service-link); background: radial-gradient(circle, var(--service-accent) 0 2.6px, transparent 3px); }
.ypn-service-dot:focus-visible { outline: 2px solid var(--service-link); outline-offset: 1px; }

/* Keep the light on the edges, outside the film and card copy. */
#ypn-film-reel .ypn-reel-window > .ypn-reel-hover-video {
  display: block;
  /* Overlap fractional pixel edges inside the already clipped video window. */
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}
#ypn-film-reel .ypn-reel-window:has(> .ypn-reel-hover-video.is-playing) > .ypn-reel-cover {
  visibility: hidden;
  transition: visibility 0s 140ms;
}

#ypn-film-reel .ypn-reel-frame::before,
#ypn-film-reel .ypn-reel-frame::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffc32455 32%, #ffe0a0a6 52%, #ffc32433 76%, transparent);
}
#ypn-film-reel .ypn-reel-frame::before { top: 0; }
#ypn-film-reel .ypn-reel-frame::after { bottom: 0; opacity: .5; }

.ypn-service-strip .ypn-service-card,
.ypn-testimonial-carousel .ypn-card { position: relative; }

.ypn-service-strip .ypn-service-card::after,
.ypn-testimonial-carousel .ypn-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #ffca1690, #ffca1628 62%, transparent) top left / 82% 1px no-repeat,
    linear-gradient(#ffca1680, transparent) top left / 1px 48px no-repeat;
  opacity: .82;
}
.ypn-service-strip .ypn-service-card:focus-visible::after,
.ypn-testimonial-carousel .ypn-card:focus-within::after { opacity: 1; }

#our-team .team-item .image { box-shadow: 0 0 0 1px #ffca1660; }
body.home .elementor-element-6d508fc2 .side-img { position: relative; outline: 1px solid #ffca1652; outline-offset: -1px; }

.ypn-service-strip .ypn-service-card::before,
.ypn-testimonial-carousel .ypn-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 30%;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffda72, transparent);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (mask-composite: exclude) {
    #our-team .team-item .image::after {
      content: ""; position: absolute; inset: 0; z-index: 1;
      box-sizing: border-box; padding: 2px; border-radius: 50%; pointer-events: none;
      background: conic-gradient(from -55deg, transparent 0deg, #f6c34c 45deg, #ffe3a0 58deg, transparent 80deg);
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
      animation: ypn-portrait-light 12s linear infinite;
    }
    #our-team .team-item:nth-child(even) .image::after { animation-delay: -4s; }
    @keyframes ypn-portrait-light { to { transform: rotate(1turn); } }
  }
  @supports (offset-path: inset(1px)) {
    body.home .elementor-element-6d508fc2 .side-img::after {
      content: ""; position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;
      width: 26%; height: 2px; border-radius: 2px;
      background: linear-gradient(90deg, transparent, #ffda72, transparent);
      offset-path: inset(1px round 1px);
      animation: ypn-photo-edge-light 13s linear infinite;
    }
    @keyframes ypn-photo-edge-light { to { offset-distance: 100%; } }
  }
  .ypn-testimonial-carousel .ypn-card::before,
  .ypn-service-cards .owl-item.active .ypn-service-card::before,
  .ypn-service-cards:not(.owl-loaded) .ypn-service-card:first-child::before {
    animation: ypn-card-edge-sweep 8s linear var(--edge-delay, 0s) infinite;
  }
  .ypn-testimonial-carousel .ypn-card:nth-child(3n + 2) { --edge-delay: .7s; }
  .ypn-testimonial-carousel .ypn-card:nth-child(3n) { --edge-delay: 1.4s; }
  .ypn-service-strip .ypn-service-card { --edge-delay: 1s; }
  @keyframes ypn-card-edge-sweep {
    0% { opacity: 0; transform: translateX(0); }
    5% { opacity: .9; }
    25% { opacity: .9; }
    32%, 100% { opacity: 0; transform: translateX(233%); }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #ypn-film-reel .ypn-reel-frame::before { animation: ypn-frame-light 1.4s ease-out both; }
  .ypn-service-strip .ypn-service-card:hover::after,
  .ypn-testimonial-carousel .ypn-card:hover::after { animation: ypn-card-light .55s ease-out both; }
  @keyframes ypn-frame-light {
    from { opacity: 0; transform: scaleX(.1); transform-origin: left; }
    52% { opacity: 1; }
    to { opacity: .72; transform: scaleX(1); transform-origin: left; }
  }
  @keyframes ypn-card-light {
    from { opacity: .68; }
    48% { opacity: 1; }
    to { opacity: .85; }
  }
}

@media (hover: hover) and (pointer: fine) {
  .ypn-service-card img, .ypn-service-cta span { transition: transform .35s ease; }
  .ypn-service-cta span { display: inline-block; }
  .ypn-service-strip .ypn-service-card:hover { border-color: var(--service-accent); color: var(--service-ink); }
  .ypn-service-card:hover img { transform: scale(1.035); }
  .ypn-service-card:hover .ypn-service-cta span { transform: translateX(4px); }
  .ypn-testimonial-carousel .ypn-card { transition: background-color .25s ease, border-color .25s ease; }
  .ypn-testimonial-carousel .ypn-card .ypn-face { transition: scale .28s ease; }
  .ypn-testimonial-carousel .ypn-card:hover { background: #1e1b15; border-color: #94752a; }
  .ypn-testimonial-carousel .ypn-card:hover .ypn-face { scale: 1.06; }
}
@media (max-width: 991px) { .ypn-service-strip { width: calc(100% - 48px); } }
@media (max-width: 767px) { .ypn-service-cards:not(.owl-loaded) > * { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 575px) {
  body.home .elementor-top-section:has(.ypn-testimonial-carousel) { padding-block-end: 10px; }
  #our-services { scroll-margin-top: 72px; }
  body.home #our-team { padding-block-start: 5px; }
  .ypn-service-strip { width: calc(100% - 28px); }
  .ypn-service-cards:not(.owl-loaded) > * { flex-basis: 100%; }
  .ypn-service-card-copy { gap: 9px; }
  .ypn-service-cta { padding-top: 8px; }
  .ypn-service-dots .ypn-service-dot { width: 20px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ypn-service-strip .ypn-service-card, .ypn-service-card img, .ypn-service-cta span,
  .ypn-testimonial-carousel .ypn-card, .ypn-testimonial-carousel .ypn-card .ypn-face { transition: none; }
  .ypn-service-card:hover img, .ypn-service-card:hover .ypn-service-cta span { transform: none; }
  .ypn-testimonial-carousel .ypn-card:hover .ypn-face { scale: 1; }
}
@media (min-width: 1081px) {
  .desktop-main-bar-right .navigation > .menu > .site-account-link { margin-inline-start: clamp(8px, 1vw, 16px); }
}
