/* V12d: 11 Nov 2026. Additive layer for the home wave, home hero type,
   Contact fill, Gallery collage restore, and the production home mini-gallery.
   Loaded only on the pages that changed. Do not attach site-wide. */

/* ========================================================================
   1. HOME HERO: smaller, discreet slogan; small elements centered;
      type sits in the bottom fade so the video stays open.
      Scoped to the home hero only. Video, copy and controls unchanged.
   ======================================================================== */
.home8 .h7-shade{
  background:linear-gradient(
    180deg,
    rgba(11,18,32,.45) 0%,
    rgba(11,18,32,0) 30%,
    rgba(11,18,32,.12) 58%,
    rgba(11,18,32,.62) 82%,
    #0B1220 100%
  );
}
.home8 .h7-t{
  left:0;right:0;
  bottom:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding-top:0;
  padding-left:max(var(--px), env(safe-area-inset-left, 0px));
  padding-right:max(var(--px), env(safe-area-inset-right, 0px));
  padding-bottom:max(28px, calc(env(safe-area-inset-bottom, 0px) + 20px), 6svh);
  z-index:3;
}
.home8 .h7 h1{
  margin:0 auto;
  max-width:18em;
  text-align:center;
  font-family:var(--ff, Poppins, "Helvetica Neue", Arial, sans-serif);
  font-weight:600;
  letter-spacing:-.03em;
  line-height:1.12 !important;
  font-size:clamp(30px, 3.4vw, 54px) !important;
  padding-bottom:.04em;
}
.home8 .h7 h1 span,
.home8 .h7 h1 span em{
  display:block;
  text-align:center;
}
.home8 .h7 h1 .l1,
.home8 .h7 h1 .l2{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
  width:auto;
  max-width:100%;
  transform:none;
}
.home8 .h7 h1 .l2,
.home8 .h7 h1 .l2 em{
  -webkit-text-stroke-width:1.45px;
  -webkit-text-stroke-color:#fff;
  color:rgba(255,255,255,.3);
  paint-order:stroke fill;
}
.home8 .h7-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:12px;
  width:100%;
  margin-top:clamp(12px, 1.6vw, 20px);
}
.home8 .h9s{
  display:grid;
  justify-items:center;
  margin:0;
  gap:10px;
}
.home8 .h9s-w{
  justify-content:center;
}
.home8 .h9s-sig{
  justify-content:center;
}
.home8 .h7-meta .reelbtn{
  margin:0 auto;
}
@media (max-width:1023px){
  .home8 .h7 h1{font-size:clamp(28px, 5.2vw, 42px) !important}
}
@media (max-width:767px){
  .home8 .h7 h1{font-size:clamp(28px, 7.6vw, 36px) !important}
  .home8 .h7 h1 .l1,
  .home8 .h7 h1 .l2{transform:none}
  .home8 .h7-meta{
    flex-direction:column;
    align-items:center;
  }
}

/* ========================================================================
   2. HOME WAVE: cropped to sky + mountains + curl (no dead lower water).
      Official lockup sits on the mountain band, existing copy under it,
      curl stays clean. Typo in the previous .bm8-txt rule is fixed.
   ======================================================================== */
.bm8.dv10{
  position:relative;
  isolation:isolate;
  display:block;
  min-height:0;
  height:clamp(480px, 78vw, 1500px);
  overflow:hidden;
  margin-bottom:0;
  background:#0B1220;
  align-items:stretch;
  justify-content:flex-start;
}
.bm8.dv10 .bm8-ph{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  line-height:0;
  will-change:auto;
}
.bm8.dv10 .bm8-ph,
.bm8.dv10 .bm8-ph picture,
.bm8.dv10 .bm8-ph img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 0;
  transform:none !important;
  max-width:none;
}
.bm8.dv10 .bm8-shade{
  display:none;
  background:none;
}
.bm8.dv10::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:clamp(72px, 10vw, 150px);
  z-index:2;
  pointer-events:none;
  background:linear-gradient(
    180deg,
    #0B1220 0%,
    rgba(11,18,32,.55) 16%,
    rgba(250,193,121,.32) 52%,
    rgba(250,193,121,.1) 78%,
    transparent 100%
  );
}
.bm8.dv10::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:clamp(100px, 16vw, 220px);
  z-index:2;
  pointer-events:none;
  background:linear-gradient(
    180deg,
    transparent 0%,
    rgba(11,18,32,.12) 32%,
    rgba(11,18,32,.62) 72%,
    #0B1220 100%
  );
}
/* Left stack on the mountain band, below the sky / nav, left of the curl. */
.bm8.dv10 .bm8-in{
  position:absolute;
  left:clamp(20px, 4.2vw, 72px);
  top:32%;
  right:auto;
  bottom:auto;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:clamp(12px, 1.4vw, 20px);
  width:min(440px, 36vw);
  max-width:42%;
  padding:0;
  margin:0;
  text-align:left;
  pointer-events:none;
}
.bm8.dv10 .wm9{
  position:static;
  left:auto;
  top:auto;
  width:min(280px, 24vw);
  height:auto;
  margin:0;
  padding:0;
  opacity:1 !important;
  transform:none !important;
  filter:drop-shadow(0 2px 18px rgba(11,18,32,.35));
  pointer-events:none;
}
.bm8.dv10 .bm8-line{
  display:none;
}
.bm8.dv10 .bm8-txt{
  position:static;
  left:auto;
  top:auto;
  width:100%;
  max-width:none;
  margin:0;
  font-weight:300;
  font-size:clamp(16px, 1.25vw, 22px);
  line-height:1.45;
  letter-spacing:-.01em;
  color:#fff;
  opacity:1 !important;
  transform:none !important;
  text-shadow:0 1px 2px rgba(11,18,32,.5), 0 2px 18px rgba(11,18,32,.45);
  text-align:left;
  pointer-events:none;
}
.bm8.dv10 + .cn9.cn11{
  padding-top:clamp(8px, 1.6vh, 18px);
}
@media (max-width:767px){
  .bm8.dv10{
    height:clamp(480px, 130vw, 580px);
  }
  .bm8.dv10 .bm8-in{
    top:calc(var(--chrome-h, 100px) + 10px);
    left:20px;
    width:min(178px, 48vw);
    max-width:48%;
    gap:8px;
  }
  .bm8.dv10 .wm9{
    width:min(152px, 42vw);
  }
  .bm8.dv10 .bm8-txt{
    font-size:clamp(13px, 3.4vw, 15px);
    line-height:1.4;
  }
}
@media (prefers-reduced-motion:reduce){
  .bm8.dv10 .wm9,
  .bm8.dv10 .bm8-txt{opacity:1;transform:none;transition:none}
}

/* ========================================================================
   3. CONTACT: fill the screen, no dead navy. 50/50 split on desktop.
      Form fills its half (no 560px cap). Ring stays the visual centre
      of the photo half. Form hooks unchanged.
   ======================================================================== */
@media (min-width:1024px) and (min-height:820px){
  html.cq12, body.cq12{
    height:100%;
    overflow:hidden;
  }
  body.cq12 .cq12-page{
    display:grid;
    grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
    flex-direction:row;
    align-items:stretch;
    height:100dvh;
    min-height:100dvh;
    max-height:100dvh;
    overflow:hidden;
  }
  body.cq12 .cq12-visual{
    width:auto;
    min-width:0;
    height:100dvh;
    flex:none;
  }
  body.cq12 .cq12-visual picture,
  body.cq12 .cq12-visual img{
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:53.8% 49.1%;
  }
  body.cq12 .cq12-a,
  body.cq12 .cq12-b{
    font-size:clamp(42px, 4.6vw, 84px);
    left:4%;
    right:4%;
  }
  body.cq12 .cq12-form{
    flex:none;
    width:auto;
    max-width:none;
    height:100dvh;
    margin:0;
    justify-content:center;
    box-sizing:border-box;
    background:#0B1220;
    padding:clamp(96px, 12vh, 128px) clamp(32px, 3.2vw, 64px) 28px;
    padding-right:max(clamp(32px, 3.2vw, 64px), env(safe-area-inset-right, 0px));
  }
  body.cq12 .cq12-form-in{
    width:100%;
    max-width:none;
  }
  body.cq12 .cq12-form h2{font-size:clamp(36px, 3.2vw, 60px);margin:0 0 10px}
  body.cq12 .cq12-lede{max-width:none;margin:0 0 20px;font-size:16px}
  body.cq12 .cq12-form .qform input,
  body.cq12 .cq12-form .qform select,
  body.cq12 .cq12-form .qform textarea{
    min-height:48px;
    font-size:16px;
    padding:10px 14px;
  }
  body.cq12 .cq12-form .qform textarea{min-height:100px;max-height:18vh}
  body.cq12 .cq12-form .qbtns .btn{min-height:48px;padding:10px 24px;font-size:15px}
}
@media (min-width:1024px) and (min-height:1000px){
  body.cq12 .cq12-form{padding-top:clamp(110px, 13vh, 150px)}
  body.cq12 .cq12-form .qform textarea{min-height:130px;max-height:22vh}
  body.cq12 .cq12-a, body.cq12 .cq12-b{font-size:clamp(52px, 5vw, 96px)}
}
@media (min-width:1024px) and (min-height:820px) and (max-height:940px){
  body.cq12 .cq12-form{padding-top:100px;padding-bottom:20px}
  body.cq12 .cq12-form h2{font-size:clamp(34px, 3vw, 48px)}
  body.cq12 .cq12-lede{margin:0 0 14px}
  body.cq12 .cq12-form .qform p{margin:0 0 8px}
  body.cq12 .cq12-form .qform textarea{min-height:72px;max-height:13vh}
  body.cq12 .cq12-a, body.cq12 .cq12-b{font-size:clamp(40px, 4.2vw, 68px)}
}

/* ========================================================================
   4. GALLERY PAGES: restore the V10 collage: native aspect ratios,
      mixed formats, CSS-column masonry, featured gx9 visible, filters on.
      Undo the V11 equal square archive.
   ======================================================================== */
.md10p > section.gx9.gx10{
  display:block !important;
}
.md10p > .md10{
  padding-top:clamp(40px, 8vh, 96px) !important;
}
.md10-bar .tabs.md10-f{
  display:flex !important;
}
.gx9.gx10 .gx9-w{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  column-gap:clamp(14px, 1.6vw, 24px) !important;
  row-gap:clamp(18px, 2.4vw, 32px) !important;
  grid-auto-flow:row !important;
  gap:clamp(18px, 2.4vw, 32px) clamp(14px, 1.6vw, 24px) !important;
  columns:auto !important;
}
.gx9.gx10 .gx9-f,
.gx9.gx10 .gx9-f:nth-child(n){
  grid-column:auto !important;
  margin-top:0 !important;
}
.gx9.gx10 .gx9-f a{
  aspect-ratio:auto !important;
  height:auto;
  display:block;
  overflow:hidden;
}
.gx9.gx10 .gx9-f img,
.gx9.gx10 .gx9-f picture{
  width:100% !important;
  height:auto !important;
  object-fit:unset !important;
  display:block;
}
.md10-pg{
  display:block !important;
  columns:4 240px !important;
  column-gap:clamp(10px, 1.2vw, 18px) !important;
  grid-template-columns:none !important;
  gap:0 !important;
}
.md10-ph,
.md10-ph:nth-child(n){
  aspect-ratio:auto !important;
  display:block !important;
  break-inside:avoid;
  margin:0 0 clamp(10px, 1.2vw, 18px) !important;
  width:100%;
  overflow:hidden;
}
.md10-ph img,
.md10-ph picture{
  width:100% !important;
  height:auto !important;
  object-fit:unset !important;
  display:block;
}
@media (max-width:1023px){
  .md10-pg{columns:3 180px !important}
}
@media (max-width:767px){
  .gx9.gx10 .gx9-w{grid-template-columns:1fr !important}
  .md10-pg{columns:2 140px !important}
}

/* ========================================================================
   5. HOME MINI-GALLERY: exact production (beamfilms.com) collage:
      .home-gallery + two mixed-ratio banner columns. Tokens mapped
      so the block matches the live site inside the current layout.
   ======================================================================== */
.home-gallery{
  background:var(--navy, #0B1220);
  padding:clamp(56px, 8vw, 90px) 0 clamp(50px, 7vw, 80px);
}
.home-gallery .split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(20px, 4vw, 40px);
  align-items:start;
  max-width:calc(var(--w, 1140px) + 2 * var(--pad, 20px));
  margin:0 auto;
  padding:0 max(var(--pad, 20px), var(--sr, 0px)) 0 max(var(--pad, 20px), var(--sl, 0px));
}
.home-gallery .rv,
.home-gallery .rv9{
  opacity:1 !important;
  transform:none !important;
}
.home-gallery .split .txt{
  color:#fff;
  text-align:justify;
  padding-top:12px;
  font-weight:300;
  font-size:clamp(15px, 1.15vw, 18px);
  line-height:1.65;
}
.home-gallery .split .txt p{margin:0 0 12px}
.home-gallery .btn-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  float:right;
  font-size:15px;
  font-weight:600;
  color:#fff;
  padding:0 20px;
  transition:opacity .3s;
}
.home-gallery .btn-link:hover{opacity:.7}
.home-gallery .banners{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  max-width:calc(var(--w, 1140px) + 2 * var(--pad, 20px));
  margin:40px auto 0;
  padding:0 max(var(--pad, 20px), var(--sr, 0px)) 0 max(var(--pad, 20px), var(--sl, 0px));
}
.home-gallery .banners .col{
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}
.home-gallery .banner{
  position:relative;
  overflow:hidden;
  display:block;
  background:#000;
  cursor:zoom-in;
}
.home-gallery .banner img,
.home-gallery .banner picture{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .8s ease;
}
.home-gallery .banner:hover img{transform:scale(1.06)}
.home-gallery .banner.h401{aspect-ratio:550/401}
.home-gallery .banner.h765{aspect-ratio:550/765}
.home-gallery .banner.h926{aspect-ratio:550/926}
.home-gallery .banner.h400{aspect-ratio:550/400}
@media (max-width:1099px){
  .home-gallery .banners,
  .home-gallery .banners .col{gap:12px}
}
@media (max-width:767px){
  .home-gallery .split{
    grid-template-columns:1fr;
    gap:4px;
    text-align:center;
  }
  .home-gallery .split .txt{text-align:center;padding-top:6px}
  .home-gallery .btn-link{float:none}
  .home-gallery .banners{grid-template-columns:1fr;margin-top:24px}
}


/* ========================================================================
   6. PROJECTS: original gold Apex lockup (never recoloured or swapped).
      Same box and centre line as Bubbles; the sun is cropped to the
      side of the mark. No well or drop-shadow on the Apex logo.
   ======================================================================== */
.aw9-c{container-type:size}
.aw9-c.apex .aw9-v video,
.aw9-c.apex .aw9-v img{
  object-fit:cover;
  object-position:0% 46%;
  transform:scale(1.06);
  transform-origin:0% 50%;
  transition:none;
}
.aw9-c.apex:hover .aw9-v video,
.aw9-c.apex:hover .aw9-v img,
.aw9-c.apex:focus-visible .aw9-v video,
.aw9-c.apex:focus-visible .aw9-v img{
  transform:scale(1.09);
  transform-origin:0% 50%;
  transition:transform 1.6s var(--ease);
}
@media (min-width:1600px){
  .aw9-c.apex .aw9-v video,
  .aw9-c.apex .aw9-v img{
    transform:scale(1.14);
    transform-origin:0% 50%;
  }
  .aw9-c.apex:hover .aw9-v video,
  .aw9-c.apex:hover .aw9-v img,
  .aw9-c.apex:focus-visible .aw9-v video,
  .aw9-c.apex:focus-visible .aw9-v img{
    transform:scale(1.18);
    transform-origin:0% 50%;
  }
}
/* No central navy well: it muddied the gold lockup. Keep only a light bottom fade into the navy page. */
.aw9-c.apex::after{
  background:linear-gradient(180deg, rgba(11,18,32,.1) 0%, rgba(11,18,32,0) 32%, rgba(11,18,32,.42) 100%);
}
.aw9-c .aw9-lg,
.aw9-c.apex .aw9-lg,
.aw9-c.bub .aw9-lg,
.ab11 .aw9-lg,
.ab11 .aw9-c.apex .aw9-lg,
.ab11 .aw9-c.bub .aw9-lg{
  position:absolute;
  left:50%;
  top:50%;
  right:auto;
  bottom:auto;
  width:min(52%, 340px);
  max-width:340px;
  height:auto;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  transform:translate(-50%,-50%);
  z-index:2;
}
.aw9-c .aw9-lg img,
.aw9-c.apex .aw9-lg img,
.aw9-c.bub .aw9-lg img,
.ab11 .aw9-lg img{
  display:block;
  box-sizing:border-box;
  flex:0 0 auto;
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
}
/* Keep the official gold lockup unfiltered: no drop-shadow that alters its colour. */
.aw9-c.apex .aw9-lg img,
.ab11 .aw9-c.apex .aw9-lg img{
  filter:none !important;
}
.home9 .aw9{
  padding-bottom:clamp(40px, 6vh, 72px);
}
.aw9-cta{
  margin:0;
  line-height:1;
}

/* ========================================================================
   7. HOME GRID: titles, cards and section padding share --px / --gap.
      No content redesign: only edges and rhythm.
   ======================================================================== */
.home-gallery{
  padding:var(--gap, clamp(96px,14vh,180px)) 0;
}
.home-gallery .split,
.home-gallery .banners{
  max-width:none;
  margin-left:0;
  margin-right:0;
  padding-left:var(--px);
  padding-right:var(--px);
}
.home9 .aw9-head,
.home9 .v9h,
.home9 .sv11 .sv8-head,
.home9 .kt8-in,
.home-gallery .split{
  box-sizing:border-box;
}


/* ========================================================================
   8. GALLERY PAGE: one collage, no second "Gallery" chapter, no fade.
      Featured mega-pair hidden; masonry is the landing view (mixed ratios,
      many photos per screen). Title and filters no longer overlap.
   ======================================================================== */
.md10p > section.gx9.gx10{
  display:block !important;
  min-height:0 !important;
  height:auto !important;
  padding-top:clamp(112px, 16vh, 168px) !important;
  padding-bottom:0 !important;
  margin-bottom:0 !important;
}
.md10p > section.gx9.gx10 .gx9-w,
.md10p > section.gx9.gx10 .gx9-end,
.md10p > section.gx9.gx10 .gx9-more{
  display:none !important;
}
.md10p > .md10{
  padding-top:clamp(16px, 2.4vh, 28px) !important;
  padding-bottom:clamp(64px, 10vh, 120px) !important;
  min-height:0;
}
.md10-bar{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:clamp(16px, 2.2vh, 24px) !important;
  flex-wrap:nowrap !important;
  margin-bottom:clamp(20px, 3vh, 32px) !important;
  position:relative;
}
.md10-bar h2.dual,
.pg7 .md10-bar h2.dual{
  /* The visible page title already lives in the gx9 heading. */
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
  font-size:0 !important;
  line-height:0 !important;
}
.md10-bar .tabs.md10-f{
  display:flex !important;
  flex-wrap:wrap !important;
  width:100%;
  position:static !important;
  top:auto !important;
  margin:0 !important;
  align-items:center;
  gap:8px;
}
.md10-ph,
.md10-ph.rv,
.md10-ph.rv9,
.md10p .rv,
.md10p .rv9,
.md10-pg .md10-ph{
  opacity:1 !important;
  transform:none !important;
  visibility:visible !important;
}
.md10-pg{
  display:block !important;
  columns:4 240px !important;
  column-gap:clamp(10px, 1.2vw, 18px) !important;
}
@media (max-width:1099px){
  .md10-pg{columns:3 180px !important}
}
@media (max-width:767px){
  .md10-pg{columns:2 140px !important}
  .md10p > section.gx9.gx10{padding-top:clamp(96px, 18vw, 128px) !important}
}
