/* WeForm V6 / Actual hosted portfolio, balanced bento, premium small product tiles.
   Design tokens and the approved warm-white / lime art direction remain unchanged. */
:root { --rf-gap: 14px; --rf-hover-ease: cubic-bezier(.22,1,.36,1); }

/* Product tiles: compact, tactile, and visibly purchasable rather than oversized panels. */
.deliverables-grid { gap: 12px !important; }
.deliverables-section { padding-top: 66px !important; padding-bottom: 82px !important; }
.product-tile.deliverable-card {
  min-height: 182px !important;
  padding: 17px 18px 15px !important;
  gap: 4px !important;
  border: 1px solid #dce5d7 !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg,#fffefb,#f4f8f0) !important;
  box-shadow: 0 4px 17px rgba(28,43,28,.04), inset 0 1px 0 #fff;
  transition: transform .48s var(--rf-hover-ease), box-shadow .48s ease, border-color .4s ease !important;
}
.product-tile:nth-child(2),.product-tile:nth-child(5) {
  background:linear-gradient(145deg,#f8fbff,#edf7f8) !important;
}
.product-tile:nth-child(3),.product-tile:nth-child(6) {
  background:linear-gradient(145deg,#fffdf9,#ffffff) !important;
}
.product-tile::before {
  width:125px !important;height:125px !important;right:-35px !important;top:-55px !important;
  background: radial-gradient(circle,#5df7b2aa,transparent 70%) !important;
  filter: blur(13px) !important;
}
.product-tile::after {
  content:'';position:absolute;right:47px;top:12px;width:94px;height:78px;
  border:1px solid rgba(52,85,37,.06);border-radius:17px;transform:rotate(-14deg);
  box-shadow:0 8px 24px #08163708;pointer-events:none;
}
.product-tile:hover,.product-tile:focus-visible {
  border-color:#5df7b2!important;
  transform:translateY(-5px)!important;
  box-shadow:0 20px 32px rgba(26,63,34,.13), inset 0 1px 0 #fff!important;
}
.product-tile .deliverable-top { min-height:36px!important;display:flex;align-items:center;justify-content:space-between;z-index:2; }
.product-tile .product-glyph {
  display:grid;place-items:center; width:38px;height:38px;flex:0 0 38px;
  border-radius:12px;background:#eaf8ff;color:#081637;border:1px solid #eaf8ff;
  box-shadow:0 4px 12px rgba(73,117,33,.08);
}
.product-tile:nth-child(2) .product-glyph,.product-tile:nth-child(5) .product-glyph{ background:#eaf8ff;color:#1d55e6;border-color:#eaf8ff; }
.product-tile:nth-child(3) .product-glyph,.product-tile:nth-child(6) .product-glyph{ background:#ffffff;color:#081637;border-color:#eaf8ff; }
.product-tile .product-glyph svg {width:23px;height:23px;}
.product-tile .deliverable-arrow {background:#fff!important;border:1px solid #e2e6df;width:29px;height:29px;}
.product-tile:hover .deliverable-arrow {background:#5df7b2!important;transform:translate(2px,-2px)!important;}
.product-tile .deliverable-main {padding:9px 0 8px!important;justify-content:flex-end!important;}
.product-tile .deliverable-main h3 {font-size:clamp(18px,1.62vw,22px)!important;max-width:300px;letter-spacing:-.052em;line-height:1.15;margin:0 0 5px!important;}
.product-tile .deliverable-main p {font-size:11.4px!important;color:#6d7a70!important;line-height:1.4!important;max-width:260px;}
.product-tile .deliverable-meta {border-top:1px solid #e4eae0;padding-top:9px!important;align-items:center;}
.product-tile .deliverable-meta .deliverable-duration {font-size:11px!important;font-weight:650;color:#081637;}
.product-tile .deliverable-meta .deliverable-credits {
  padding:6px 10px!important;border-radius:999px;
  background:#eaf8ff;border:1px solid #eaf8ff;
}
.product-tile .deliverable-meta .deliverable-credits strong {font-size:12px!important;color:#081637!important;font-weight:850;}
.product-tile:hover .deliverable-credits {background:#5df7b2;}

/* Hosted source videos appear only after the third-party player has loaded.
   Posters always remain underneath as a graceful fallback. */
.hero-video-card.rf-real-video,.project-card { position:relative;isolation:isolate; }
.hero-video-card.rf-real-video > .rf-inline-player,
#workGallery .project-card > .rf-inline-player {
  display:block;position:absolute;inset:0;width:100%;height:100%;border:0;
  z-index:1;opacity:0;pointer-events:none;
  transition:opacity .52s ease;
}
.hero-video-card.rf-live-ready > .rf-inline-player,
#workGallery .project-card.rf-live-ready > .rf-inline-player { opacity:1; }
.hero-video-card.rf-live-ready .hero-play,
#workGallery .project-card.rf-live-ready .play-icon { opacity:0!important; }
.hero-video-card.rf-real-video > img { z-index:0; }
.hero-video-card.rf-real-video .poster-caption { pointer-events:none;z-index:3;max-width:calc(100% - 24px); }
.hero-video-card.rf-real-video .poster-caption strong {white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%;}
.hero-video-card.rf-real-video .hero-play {font-size:17px;z-index:4;}
#workGallery .project-card .play-icon {z-index:4;transition:opacity .32s ease,transform .32s ease;}
#workGallery .project-card .card-bottom {z-index:3;}
#workGallery .project-card .card-bottom strong {max-width:100%;font-size:clamp(13px,1.1vw,17px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#workGallery .project-card .card-bottom small {font-size:11px;}

/* Work: identical horizontal sizes inside every desktop group, and a matching
   portrait width that yields exactly two horizontal row-heights at 9:16. */
#workGallery {
  display:flex!important;flex-direction:column!important;gap:var(--rf-gap)!important;
  column-count:initial!important;grid-template-columns:none!important;
  grid-auto-flow:initial!important;align-items:stretch!important;
}
#workGallery > div {min-width:0;}
#workGallery .portfolio-item {
  width:100%!important;min-width:0!important;display:block!important;
  grid-column:auto!important;grid-row:auto!important;
  margin:0!important;break-inside:auto!important;
}
#workGallery .portfolio-item .project-card {width:100%!important;aspect-ratio:16/9!important;height:auto!important;border-radius:15px!important;}
#workGallery .portfolio-item.portrait-item .project-card {aspect-ratio:9/16!important;height:auto!important;}
#workGallery .portfolio-item .project-card > img {width:100%;height:100%;object-fit:cover;}
#workGallery .portfolio-item-meta {display:none!important;}
#workGallery .rf-bento-5 {
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.65fr)!important;
  grid-template-rows:auto auto;gap:var(--rf-gap);
  align-items:start;width:100%;
}
#workGallery .rf-bento-5 > article:nth-child(1) {grid-column:1!important;grid-row:1!important;}
#workGallery .rf-bento-5 > article:nth-child(2) {grid-column:2!important;grid-row:1!important;}
#workGallery .rf-bento-5 > article:nth-child(3) {grid-column:1!important;grid-row:2!important;}
#workGallery .rf-bento-5 > article:nth-child(4) {grid-column:2!important;grid-row:2!important;}
#workGallery .rf-bento-5 > article:nth-child(5) {grid-column:3!important;grid-row:1/3!important;}
#workGallery .rf-bento-creative {
  display:grid!important;
  grid-template-columns:minmax(0,1.54fr) minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto;gap:var(--rf-gap);align-items:start;
}
#workGallery .rf-bento-creative > article:nth-child(1) {grid-column:1!important;grid-row:1!important;}
#workGallery .rf-bento-creative > article:nth-child(2) {grid-column:1!important;grid-row:2!important;}
#workGallery .rf-bento-creative > article:nth-child(3) {grid-column:2!important;grid-row:1/3!important;}
#workGallery .rf-bento-creative > article:nth-child(4) {grid-column:3!important;grid-row:1/3!important;}
#workGallery .rf-bento-pair {
  display:grid!important;grid-template-columns:minmax(0,1.54fr) minmax(0,1fr)!important;
  gap:var(--rf-gap);align-items:start;width:min(785px,100%);
}
#workGallery .rf-wide-strip {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:var(--rf-gap);align-items:start;
}
#workGallery .rf-portrait-strip {
  display:flex!important;flex-wrap:wrap;gap:var(--rf-gap);align-items:flex-start;
}
#workGallery .rf-portrait-strip > article {width:min(28%,345px)!important;}
#workGallery .rf-mobile-wide,#workGallery .rf-mobile-portrait {display:none;}
#workGallery .portfolio-item[hidden] {display:none!important;}
#previewArt > iframe.rf-full-embed {border:0!important;display:block;width:100%;height:100%;min-height:0;aspect-ratio:inherit;}
.preview-case-study[hidden] {display:none!important;}
.preview-bottom-actions a:not(.preview-contact-link) {font-weight:650;text-decoration:underline;text-underline-offset:3px;}

@media(max-width:900px) {
 .product-tile.deliverable-card {min-height:177px!important;}
 #workGallery .rf-bento-5,#workGallery .rf-bento-creative {gap:11px;}
 :root {--rf-gap:11px;}
}
@media(max-width:700px) {
 /* Deliberately abandon desktop bento on small screens; reels get two neat columns. */
 #workGallery {display:flex!important;gap:15px!important;column-count:initial!important;}
 #workGallery .rf-mobile-wide {
   display:grid!important;grid-template-columns:1fr!important;gap:13px!important;
 }
 #workGallery .rf-mobile-portrait {
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
 }
 #workGallery .rf-mobile-wide > article,#workGallery .rf-mobile-portrait > article {max-width:none!important;width:100%!important;margin:0!important;}
 .deliverables-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
 .product-tile.deliverable-card {min-height:184px!important;padding:13px!important;}
 .product-tile .product-glyph {width:35px;height:35px;flex-basis:35px;}
 .product-tile .deliverable-main h3 {font-size:19px!important;}
 .product-tile .deliverable-main p {font-size:11px!important;}
 .product-tile .deliverable-meta {flex-wrap:wrap;gap:5px;}
}
@media(max-width:390px){
 .deliverables-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .product-tile.deliverable-card {min-height:184px!important;padding:11px!important;}
 .product-tile .deliverable-main h3 {font-size:17px!important;}
 .product-tile .deliverable-meta .deliverable-duration {font-size:10px!important;}
 .product-tile .deliverable-meta .deliverable-credits {padding:5px 8px!important;}
 .product-tile .deliverable-meta .deliverable-credits strong {font-size:11px!important;}
}
@media(prefers-reduced-motion:reduce) {
 .product-tile.deliverable-card {transition:none!important;transform:none!important;}
 .rf-inline-player {display:none!important;}
}
/* Closed double-bento: two side-by-side wide/reel stacks, no empty bottom row. */
#workGallery .rf-bento-5 { width:min(1100px,100%)!important; margin-inline:auto; }
#workGallery .rf-wide-strip {width:min(1200px,100%)!important;margin-inline:auto;}
#workGallery .rf-bento-double {
  display:grid!important; width:100%!important;
  grid-template-columns:minmax(0,1.54fr) minmax(0,1fr) minmax(0,1.54fr) minmax(0,1fr)!important;
  grid-template-rows:auto auto;
  gap:var(--rf-gap);
  align-items:start;
}
#workGallery .rf-bento-double > article:nth-child(1) {grid-column:1!important;grid-row:1!important;}
#workGallery .rf-bento-double > article:nth-child(2) {grid-column:1!important;grid-row:2!important;}
#workGallery .rf-bento-double > article:nth-child(3) {grid-column:3!important;grid-row:1!important;}
#workGallery .rf-bento-double > article:nth-child(4) {grid-column:3!important;grid-row:2!important;}
#workGallery .rf-bento-double > article:nth-child(5) {grid-column:2!important;grid-row:1/3!important;}
#workGallery .rf-bento-double > article:nth-child(6) {grid-column:4!important;grid-row:1/3!important;}
@media(max-width:700px) {
  #workGallery .rf-mobile-portrait > article.portfolio-item.portrait-item {
    min-width:0!important; max-width:100%!important; width:100%!important;margin:0!important;
    display:block!important;
  }
}
