/* WEFORM V3 / structured 3D gallery + consistently sized work cards.
   This small focused stylesheet intentionally overrides only V2 components. */
:root {
  --weform-ink:#110d19;--weform-deep:#0c0814;--weform-violet:#1d55e6;
  --weform-iris:#2f8dfe;--weform-lavender:#eaf8ff;--weform-mist:#f6f1fa;
  --weform-card-radius:16px;
}

/* Hero: real depth, 100% predictable vertical alignment, and safe pointer hit areas. */
.hero-media {
  overflow:hidden!important;
  padding-top:64px!important;padding-bottom:66px!important;
  margin-top:37px!important;
  perspective:1300px!important;
  transform-style:preserve-3d;
}
.hero-media::before,.hero-media::after {pointer-events:none!important;}
.hero-media .marquee-viewport {
  overflow:visible!important;
  padding-top:34px!important;padding-bottom:34px!important;
  pointer-events:none;
  transform-style:preserve-3d!important;
}
.hero-media .marquee-viewport + .marquee-viewport {margin-top:12px!important;}
.hero-media .marquee-track,.hero-media .marquee-group {pointer-events:none;transform-style:preserve-3d!important;}
.hero-media .marquee-group {gap:clamp(35px,3.4vw,52px)!important;padding-right:clamp(35px,3.4vw,52px)!important;align-items:center!important;}
.hero-media .hero-video-card {
  --lift:0px!important;
  --angle:0deg!important;
  --hover-depth:0px!important;
  --hover-scale:1;
  --parallax:.45!important;
  pointer-events:auto!important;
  cursor:pointer;
  position:relative;
  flex-shrink:0;
  overflow:hidden;
  border-radius:var(--weform-card-radius)!important;
  transform:translate3d(calc(var(--pointer-x,0px) * var(--parallax)),calc(var(--pointer-y,0px) * var(--parallax)),calc(var(--depth) + var(--hover-depth))) rotateY(calc(var(--pointer-rotate-y,0deg) * .35)) scale(var(--hover-scale))!important;
  transition:transform .38s cubic-bezier(.22,.72,.3,1),box-shadow .35s ease,border-color .35s ease!important;
  will-change:transform;
}
.hero-media .hero-video-card[data-depth="front"] {
  --depth:82px!important;--parallax:.7!important;z-index:3;
  box-shadow:0 23px 42px #08163770!important;
}
.hero-media .hero-video-card[data-depth="middle"] {
  --depth:15px!important;--parallax:.4!important;z-index:2;
  box-shadow:0 15px 31px #08163751!important;
}
.hero-media .hero-video-card[data-depth="back"] {
  --depth:-62px!important;--parallax:.2!important;z-index:1;
  box-shadow:0 12px 26px #08163739!important;
}
.hero-media .hero-video-card:hover,
.hero-media .hero-video-card.is-focused,
.hero-media .hero-video-card:focus-visible {
  --hover-depth:17px!important;
  --hover-scale:1.035;
  z-index:9!important;
  border-color:#eaf8ff!important;
  box-shadow:0 28px 55px #0816377a,0 0 0 1px #eaf8ff60!important;
}
.hero-media .hero-video-card::after,
.hero-media .hero-video-card .poster-caption,
.hero-media .hero-video-card .hero-play,
.hero-media .hero-video-card > img,
.hero-media .hero-video-card > video,
.hero-media .hero-video-card > iframe {pointer-events:none!important;}
.hero-media .marquee-track {isolation:auto!important;}
.hero-media .marquee-group {isolation:auto!important;}
.hero-media .marquee-group + .marquee-group {margin-left:0!important;}
.hero-media [data-gallery-copy="2"] {pointer-events:none;}
.hero-media [data-gallery-copy="2"] > .hero-video-card {pointer-events:auto!important;}
.hero-video-card.weform-video-playing > .weform-inline-player {pointer-events:none!important;}

/* Selected Work: same width for every landscape; same width for every reel.
   All Work has 3 deliberately even groups, with NO oversized bottom cards. */
.weform-featured-work {
  background:linear-gradient(180deg,#fff 0%,var(--weform-mist) 100%)!important;
  padding:clamp(82px,8vw,120px) 0 clamp(90px,9vw,132px)!important;
}
.weform-featured-grid {display:grid!important;grid-template-columns:minmax(0,1fr);gap:42px!important;}
.weform-featured-group {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(15px,1.7vw,23px)!important;align-items:start;}
.weform-featured-card {
  min-width:0!important;width:100%!important;
  text-align:left;
  gap:10px!important;
  padding:0!important;
  border-radius:15px;
}
.weform-featured-card .weform-featured-poster {
  display:block;width:100%;overflow:hidden;
  aspect-ratio:16/9!important;
  border-radius:var(--weform-card-radius)!important;
  background:#eaf8ff!important;
  border:1px solid #eaf8ff!important;
  box-shadow:0 6px 24px #08163710!important;
}
.weform-featured-card.is-portrait .weform-featured-poster {aspect-ratio:9/16!important;}
.weform-featured-card .weform-featured-poster img {display:block;width:100%;height:100%;object-fit:cover;}
.weform-featured-card:hover .weform-featured-poster img {transform:scale(1.025)!important;}
.weform-featured-card .weform-featured-meta {display:flex;flex-direction:column;gap:2px;align-items:start;}
.weform-featured-meta strong {font-size:clamp(15px,1.2vw,18px)!important;line-height:1.32;}
.weform-featured-meta small {font-size:12px;white-space:normal!important;line-height:1.35;color:#1d55e6!important;}
.weform-featured-group.weform-reel-group {max-width:1150px;width:100%;margin:auto;}
.weform-category-filters {
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  margin:0 0 30px;padding:0;
}
.weform-filter-button {
  background:#fff;border:1px solid #eaf8ff;border-radius:100px;
  color:#081637;font:inherit;font-size:12px;font-weight:650;
  padding:10px 15px;cursor:pointer;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.weform-filter-button:hover {border-color:var(--weform-iris);color:var(--weform-ink);}
.weform-filter-button[aria-pressed="true"] {background:var(--weform-ink);color:#fff;border-color:var(--weform-ink);}
.weform-filter-button:focus-visible {outline:3px solid var(--weform-lavender);outline-offset:3px;}
.weform-work-empty {padding:44px 25px;border-radius:16px;background:#f7f1ff;color:#081637;font-size:15px;line-height:1.6;border:1px solid #eaf8ff;}
.weform-work-empty[hidden] {display:none!important;}

/* Dedicated Work page: a simple uniform responsive grid, not bento/masonry. */
#workGallery.weform-work-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:26px 19px!important;align-items:start;}
#workGallery.weform-work-grid > .portfolio-item {display:block!important;width:100%!important;grid-area:auto!important;min-width:0;max-width:none!important;}
#workGallery.weform-work-grid .project-card {position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;}
#workGallery.weform-work-grid .weform-work-reel .project-card {aspect-ratio:9/16;}
#workGallery.weform-work-grid .project-card > img {width:100%;height:100%;object-fit:cover;}
#workGallery.weform-work-grid .rf-inline-player {pointer-events:none!important;}
#workGallery.weform-work-grid .project-card .card-bottom {pointer-events:none;}

/* Section continuity: modern creative, but still the original layouts. */
.audience-section {
  background:linear-gradient(180deg,var(--weform-mist),#eaf8ff 72%,#fff)!important;
}
.audience-card {border-color:#eaf8ff!important;background:#ffffffed!important;box-shadow:0 14px 45px #0816370b!important;}
.audience-card:nth-child(2) {background:linear-gradient(138deg,#fff 10%,#f6eefc 100%)!important;}
.deliverables-section {background:#fff!important;}
.product-tile {
  background:#faf7fd!important;
  border-color:#eaf8ff!important;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease!important;
}
.product-tile:nth-child(3n+2) {background:#f4edfb!important;}
.product-tile:nth-child(3n+3) {background:#f8f5fc!important;}
.product-tile:hover {transform:translateY(-3px);box-shadow:0 20px 45px #08163713!important;}
.product-tile .service-cta-chip {display:inline-flex!important;min-height:35px!important;align-items:center;justify-content:center;text-wrap:balance;text-align:center;max-width:100%;font-size:12px!important;line-height:1.25;padding:9px 12px!important;}
.product-tile:focus-visible {outline:3px solid var(--weform-violet);outline-offset:4px;}
.contact-closing-section {background:var(--weform-mist)!important;}

@media(max-width:1100px) {
  .hero-media {padding-top:57px!important;padding-bottom:57px!important;}
  .weform-featured-group {grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 18px!important;}
  #workGallery.weform-work-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:680px) {
  .hero-media {--video-h:147px;padding-top:36px!important;padding-bottom:37px!important;margin-top:22px!important;}
  .hero-media .marquee-viewport {padding-block:16px!important;}
  .hero-media .marquee-viewport + .marquee-viewport {margin-top:16px!important;}
  .hero-media .marquee-group {gap:23px!important;padding-right:23px!important;}
  .hero-media .hero-video-card[data-depth="front"] {--depth:43px!important;}
  .hero-media .hero-video-card[data-depth="middle"] {--depth:8px!important;}
  .hero-media .hero-video-card[data-depth="back"] {--depth:-33px!important;}
  .hero-media .hero-video-card:hover,.hero-media .hero-video-card.is-focused {--hover-depth:10px!important;--hover-scale:1.025;}
  .weform-featured-grid {gap:33px!important;}
  .weform-featured-group {grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 12px!important;}
  .weform-featured-card.is-landscape {grid-column:span 2;}
  .weform-featured-meta strong {font-size:16px!important;}
  .weform-featured-card.is-portrait .weform-featured-meta strong {font-size:13px!important;}
  .weform-featured-meta small {font-size:11px;}
  .weform-category-filters {flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;margin-inline:-14px;padding:0 14px 13px;}
  .weform-filter-button {flex:0 0 auto;font-size:11px;padding:10px 13px;}
  #workGallery.weform-work-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px 11px!important;}
  #workGallery.weform-work-grid .weform-work-landscape {grid-column:span 2;}
}
@media(prefers-reduced-motion:reduce) {
  .hero-media .hero-video-card {transform:none!important;transition:none!important;will-change:auto!important;}
  .hero-media .hero-video-card:hover {--hover-scale:1;--hover-depth:0px!important;}
  .weform-featured-poster img,.product-tile {transition:none!important;}
  html {scroll-behavior:auto!important;}
}
