/* Glowcraft Films · additions on top of the Webflow styles (webflow.css + custom.css).
   Only what the move to Netlify needs, plus a few light touches (Yong, 16 Oct 2026). */

:root { --gc-gold: #a88549; --gc-deep: #02161e; }

/* honeypot field for Netlify Forms */
.gc-hp { display: none !important; }

/* readable focus on every control */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gc-gold); outline-offset: 3px; }

/* long card titles and blurbs: clamp to whole lines instead of cutting mid-word */
[data-truncate-text] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
p[data-truncate-text] { -webkit-line-clamp: 5; line-clamp: 5; }

/* ---------- mobile menu (replaces webflow.js) ---------- */
button.hambrger { border: 0; cursor: pointer; font: inherit; }
@media screen and (max-width: 991px) {
  .main_header { position: relative; }
  .main_header.gc-open .menu_nav { display: block !important; position: absolute; top: 100%; left: 0; right: 0; z-index: 60; margin: 0; padding: 0.5rem 15px 1.25rem; background: var(--gc-deep); box-shadow: 0 18px 30px rgba(2, 22, 30, 0.25); }
  .main_header.gc-open .menu_nav_lstng { flex-direction: column; margin: 0; }
  .main_header.gc-open .menu_nav_item { padding: 0; }
  .main_header.gc-open .menu_lnk { display: block; padding: 0.9rem 0; font-size: 18px; }
  .main_header.gc-open .menu_nav_item + .menu_nav_item { border-top: 1px solid rgba(255, 255, 255, 0.14); }
}

/* ---------- click-to-play videos ---------- */
.gc-lite { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.gc-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.33, 1, 0.68, 1); }
.gc-play { position: absolute; left: 50%; top: 50%; width: clamp(56px, 7vw, 86px); height: clamp(56px, 7vw, 86px); transform: translate(-50%, -50%); border-radius: 50%; background: var(--gc-gold); color: #fff; display: grid; place-items: center; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease; }
.gc-play svg { width: 36%; height: 36%; margin-left: 6%; }
@media (hover: hover) and (pointer: fine) {
  .gc-lite:hover .gc-play { transform: translate(-50%, -50%) scale(1.08); background: var(--gc-deep); }
  .gc-lite:hover img { transform: scale(1.03); }
}
.w-video iframe, .gc-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* the contact reel pop-up (replaces Fancybox) */
.gc-popup { width: min(1100px, calc(100vw - 2rem)); padding: 0; border: 0; background: #000; overflow: visible; }
.gc-popup::backdrop { background: rgba(2, 22, 30, 0.85); }
.gc-popup__screen { position: relative; aspect-ratio: 16 / 9; }
.gc-popup__close { position: absolute; right: 0; top: -3rem; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 6px; background: var(--gc-gold); color: #fff; font-family: inherit; font-size: 16px; cursor: pointer; }

/* ---------- portfolio: one featured video at a time ---------- */
.js .ftrd_video_item:not(.active) { display: none; }
.prflio_indvdl_item { cursor: pointer; }
.prflio_indvdl_item.active .title_h2, .prflio_indvdl_item.active [fs-list-field="title"] { color: var(--gc-gold); }
.prflio_indvdl_item[hidden] { display: none !important; }

/* ---------- light motion (content stays visible without JavaScript or with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .gc-reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--gc-i, 0) * 80ms); }
  .js .gc-reveal.gc-in { opacity: 1; transform: none; }
  .js .bnnr_txt_box > * { animation: gc-rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .js .bnnr_txt_box > :nth-child(2) { animation-delay: 90ms; }
  .js .bnnr_txt_box > :nth-child(3) { animation-delay: 180ms; }
  .bnnr_img { animation: gc-glow 9s ease-in-out infinite alternate; }
  .prjcts_img, .mmbr_img, .mndte_img { transition: transform 700ms cubic-bezier(0.33, 1, 0.68, 1); }
  .prjcts_img_lnk:hover .prjcts_img, .mndte_img_box:hover .mndte_img { transform: scale(1.04); }
}
@keyframes gc-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes gc-glow { from { transform: scale(1); } to { transform: scale(1.02); } }
.prjcts_img_box, .mndte_img_box { overflow: hidden; }

/* ---------- testimonials slider (replaces Slick). Without JavaScript: a swipeable scroll-snap row.
   With it (.gc-carousel): an infinite auto-playing carousel that stops while hovered or focused. ---------- */
.tstmnl_sldr { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 20px 2px 28px; margin: -20px -2px -28px; scrollbar-width: none; }
.tstmnl_sldr::-webkit-scrollbar { display: none; }
.tstmnl_sldr_item { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
@media screen and (max-width: 991px) { .tstmnl_sldr_item { flex-basis: calc((100% - 20px) / 2); } }
@media screen and (max-width: 575px) { .tstmnl_sldr_item { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .tstmnl_sldr { scroll-behavior: auto; } }
.arrw_hldr { visibility: visible; pointer-events: none; }
button.sldr_arrw { pointer-events: auto; background-color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background-color 0.3s ease-in-out; }
button.sldr_arrw:hover img { filter: brightness(1000%); }
.gc-carousel .w-dyn-list { overflow: hidden; padding: 20px 2px 28px; margin: -20px -2px -28px; touch-action: pan-y; }
.gc-carousel .tstmnl_sldr { overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; transition: transform 650ms cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.gc-carousel .tstmnl_sldr.gc-jump { transition: none; }
@media (prefers-reduced-motion: reduce) { .gc-carousel .tstmnl_sldr { transition: none; } }

/* ---------- IMDb buttons on the team cards ---------- */
.gc-imdb { display: inline-block; line-height: 0; border-radius: 4px; transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease; }
.gc-imdb svg { display: block; }
.gc-imdb:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(2, 22, 30, 0.18); }
.gc-imdb:active { transform: scale(0.97); }
