/* V13j layer (13 Nov 2026) */

/* 2) HOME WAVE: panorama now extended on both sides (no AI, see v13g-work/extend_right.py);
      the curl is placed right after the slogan block instead of at the far right edge */
@media (min-width:768px){
  .bm8.dv10.v13-wave.v13g-wave{--wcx:max(calc(var(--px) + var(--wh) * 1.95), 45%)}
  .bm8.dv10.v13-wave.v13g-wave .bm8-ph img{left:calc(var(--wcx) - var(--wh) * 4.469) !important;right:auto !important;
    width:calc(var(--wh) * 7.585) !important;min-width:0 !important}
  .bm8.dv10.v13-wave.v13g-wave .bm8-shade{background:
    linear-gradient(180deg,rgba(11,18,32,.25) 0%,rgba(11,18,32,0) 30%,rgba(11,18,32,0) 60%,rgba(11,18,32,.72) 86%,var(--navy) 100%),
    linear-gradient(90deg,rgba(11,18,32,.42) 0,rgba(11,18,32,.38) calc(var(--wcx) - var(--wh) * 1.6),rgba(11,18,32,.34) calc(var(--wcx) - var(--wh) * .62),rgba(11,18,32,.2) calc(var(--wcx) - var(--wh) * .38),rgba(11,18,32,.06) calc(var(--wcx) - var(--wh) * .18),rgba(11,18,32,0) var(--wcx),rgba(11,18,32,0) calc(var(--wcx) + var(--wh) * 1.2),rgba(11,18,32,.22) 100%) !important}
}

/* 12) TOUCH: native scroll only (Lenis and the pinned hero are off in v7 when pointer is coarse) */
html.bt-touch{scroll-behavior:auto !important}
@media (pointer:coarse){html{scroll-behavior:auto !important}}

/* 4) WE TELL STORIES: the streak texture is part of the design (stronger, wider, long fades, no edges) */
.sv11-entry.v13-stories{overflow:visible}
.sv11-entry.v13-stories .v13-tx{
  inset:-22% calc(-1 * var(--px)) -22% calc(-1 * var(--px)) !important;
  opacity:.64 !important;mix-blend-mode:screen;
  background-position:62% 50% !important;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.55) 14%,#000 30%,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%),linear-gradient(90deg,rgba(0,0,0,.45) 0,rgba(0,0,0,.7) 30%,#000 52%,#000 100%) !important;
  -webkit-mask-composite:source-in;
          mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.55) 14%,#000 30%,#000 66%,rgba(0,0,0,.55) 84%,transparent 100%),linear-gradient(90deg,rgba(0,0,0,.45) 0,rgba(0,0,0,.7) 30%,#000 52%,#000 100%) !important;
          mask-composite:intersect}
.sv11-entry.v13-stories .sv11-entry-c p{color:rgba(255,255,255,.9) !important;text-shadow:0 1px 14px rgba(11,18,32,.85)}
.sv11-entry.v13-stories .sv11-entry-c h2{text-shadow:0 2px 30px rgba(11,18,32,.6)}
@media (max-width:767px){
  .sv11-entry.v13-stories .v13-tx{inset:-10% calc(-1 * var(--px)) !important;opacity:.55 !important}
}

/* 5) PROJECTS (About): no navy box behind the heading; the block sits on the page texture */
.ab11p #s-projects .aw9,#s-projects-inner{background:transparent !important;box-shadow:none !important}

/* 10) MY PASSIONS: the texture overflows into Projects and fades out with a long gradient
       (it used to be cut by the next section's background) */
.ab11p .v13-pas{position:relative;z-index:2}
.ab11p #s-projects{position:relative;z-index:auto !important;isolation:auto !important}
.ab11p #s-projects > *{position:relative;z-index:3}
.ab11p .v13-pas .v13-tx{bottom:calc(-1 * min(70vh,680px)) !important;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 48%,rgba(0,0,0,.7) 62%,rgba(0,0,0,.4) 76%,rgba(0,0,0,.15) 89%,transparent 100%) !important;
          mask-image:linear-gradient(180deg,transparent 0,#000 12%,#000 48%,rgba(0,0,0,.7) 62%,rgba(0,0,0,.4) 76%,rgba(0,0,0,.15) 89%,transparent 100%) !important}

/* 8) ABOUT HERO: Javier's Caribbean aerial (Frame.io DJI_0833, web derivatives only).
      The lockup sits in the deep blue sky; the sea melts into navy with a long gradient. */
.h7.a7h.v13-ah.v13j-ah{background:var(--navy)}
.v13j-ah .h7-frame picture{position:absolute;inset:0;display:block}
.v13j-ah .h7-v.v13j-ah-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 38%}
.h7.a7h.v13-ah.v13j-ah .h7-shade{background:
  linear-gradient(180deg,rgba(11,18,32,.42) 0,rgba(11,18,32,.12) 12%,rgba(11,18,32,0) 22%,rgba(11,18,32,0) 50%,rgba(11,18,32,.1) 58%,rgba(11,18,32,.26) 66%,rgba(11,18,32,.46) 74%,rgba(11,18,32,.68) 82%,rgba(11,18,32,.88) 91%,var(--navy) 100%) !important}
.h7.a7h.v13-ah.v13j-ah .h7-t{padding-bottom:clamp(64px,11vh,130px) !important}
.v13j-ah .v13-ah-w,.v13j-ah .v13-ah-l .v13-blogo{filter:drop-shadow(0 2px 18px rgba(8,30,80,.35))}
@media (max-width:767px){
  .v13j-ah .h7-v.v13j-ah-img{object-position:42% 40%}
}

/* 9b) WHAT IS BEAM FILMS: the name appears once (the title); epic photos of Javier + texture, no empty box */
.ab11p #s-what.v13j-what{-webkit-mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.6) 36px,#000 96px);mask-image:linear-gradient(180deg,transparent 0,rgba(0,0,0,.6) 36px,#000 96px)}
.v13j-what .ab11-ed{align-items:center !important}
.v13j-what .ab11-visual.v13j-wph{position:relative !important;aspect-ratio:auto !important;height:clamp(520px,74vh,820px);overflow:visible !important;background:transparent !important;border-radius:0 !important;margin:0 !important}
.v13j-wph .v13j-wph-tx{inset:-14% -20% -14% -30% !important;opacity:.42 !important;filter:grayscale(.35) sepia(.15) hue-rotate(180deg) brightness(.8);
  -webkit-mask-image:radial-gradient(ellipse 60% 56% at 56% 50%,#000 20%,rgba(0,0,0,.5) 55%,transparent 82%) !important;mask-image:radial-gradient(ellipse 60% 56% at 56% 50%,#000 20%,rgba(0,0,0,.5) 55%,transparent 82%) !important}
.v13j-wph picture{position:absolute !important;display:block;inset:auto !important}
.v13j-wph picture img{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;object-fit:cover !important;animation:none !important;transform:none !important}
.v13j-wph .v13j-wph-a{z-index:1;right:-6% !important;top:-4% !important;width:86% !important;height:108% !important;
  -webkit-mask-image:radial-gradient(ellipse 50% 52% at 52% 46%,#000 34%,rgba(0,0,0,.7) 54%,rgba(0,0,0,.3) 74%,transparent 96%);
          mask-image:radial-gradient(ellipse 50% 52% at 52% 46%,#000 34%,rgba(0,0,0,.7) 54%,rgba(0,0,0,.3) 74%,transparent 96%)}
.v13j-wph .v13j-wph-a img{object-position:50% 30% !important}
.v13j-wph .v13j-wph-b{z-index:2;left:0 !important;bottom:6% !important;width:42% !important;aspect-ratio:890/1100;height:auto !important;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.06);border-radius:3px;overflow:hidden}
@media (max-width:899px){
  .v13j-what .ab11-visual.v13j-wph{height:auto;aspect-ratio:4/5 !important;margin-top:clamp(12px,4vw,28px) !important}
  .v13j-wph .v13j-wph-a{width:86% !important}
  .v13j-wph .v13j-wph-b{width:44% !important;bottom:4% !important}
}

/* 9a) TWO WORLDS, ONE WORD + logo: one centred composition with clear hierarchy and the brand's clear space
       (>= 1 X, the b counter, on every side). White logo on navy: the primary combination. */
.v13-why .ab11-copy.ab11-reveal{display:flex !important;flex-direction:column !important;align-items:center !important;text-align:center !important;
  grid-column:2 / 12 !important;margin:clamp(56px,8vw,128px) auto 0 !important;max-width:980px !important}
.v13-why .ab11-copy > p.v13-why-close.v13j-tw{grid-column:auto !important;grid-row:auto !important;margin:0 !important;max-width:none !important;font-size:inherit !important;color:#fff !important}
.v13j-tw .v13j-tw-h{display:block;font-family:var(--ff);font-weight:700;font-size:clamp(34px,4.6vw,80px);line-height:1;letter-spacing:-.035em;color:#fff;margin:0 0 clamp(18px,1.8vw,28px)}
.v13j-tw .v13j-tw-b{display:block;font-weight:400;font-size:clamp(17px,1.3vw,22px);line-height:1.6;color:rgba(255,255,255,.86);max-width:38ch;margin:0 auto}
.v13-why .ab11-copy .v13-why-lockup.v13j-lock{grid-column:auto !important;align-items:center !important;margin:clamp(48px,5vw,88px) 0 0 !important;
  padding:clamp(28px,2.6vw,44px) clamp(28px,2.6vw,44px) 0 !important;gap:0 !important;position:relative}
.v13j-lock::before{content:"";display:block;width:64px;height:2px;margin:0 auto clamp(40px,3.8vw,64px);background:linear-gradient(90deg,var(--sun),var(--gold))}
.v13-why-lockup.v13j-lock img{width:clamp(240px,24vw,420px) !important;max-width:none !important;margin:0 auto}
.v13-why-lockup.v13j-lock .v13-why-slogan{margin:clamp(26px,2.4vw,40px) 0 0 !important;font-weight:600 !important;letter-spacing:.06em !important;color:#fff !important;text-align:center;font-size:clamp(14px,1.05vw,18px) !important}
@media (max-width:899px){
  .v13-why .ab11-copy.ab11-reveal{grid-column:1 / -1 !important;margin-top:clamp(40px,10vw,64px) !important}
  .v13-why .ab11-copy .v13-why-lockup.v13j-lock{padding:24px 20px 0 !important;width:100% !important}
  .v13-why-lockup.v13j-lock img{width:min(64vw,260px) !important}
}
/* 12) TOUCH (cont.): no fixed backgrounds and no full-screen blend overlays while scrolling on touch screens */
html.bt-touch .ab11p #s-what,html.bt-touch .ab11p #s-why,html.bt-touch .ab11p #s-me,html.bt-touch .ab11p #s-projects{background-attachment:scroll !important}
@media (pointer:coarse),(hover:none){
  .ab11p #s-what,.ab11p #s-why,.ab11p #s-me,.ab11p #s-projects{background-attachment:scroll !important}
  body::after,.a7::before{display:none !important}
}

/* V13k (1): tablets 768 to 1199. The curl sits right of the text (v13j.js) and the linear haze is a little
   denser behind the two lines, so the second line keeps >= 4.5:1. Same shapeless gradient, no oval. */
@media (min-width:768px) and (max-width:1199px){
  .bm8.dv10.v13-wave.v13g-wave .bm8-shade{background:
    linear-gradient(180deg,rgba(11,18,32,.25) 0%,rgba(11,18,32,0) 30%,rgba(11,18,32,0) 60%,rgba(11,18,32,.72) 86%,var(--navy) 100%),
    linear-gradient(90deg,rgba(11,18,32,.52) 0,rgba(11,18,32,.5) calc(var(--wcx) - var(--wh) * 1.6),rgba(11,18,32,.46) calc(var(--wcx) - var(--wh) * .62),rgba(11,18,32,.28) calc(var(--wcx) - var(--wh) * .38),rgba(11,18,32,.08) calc(var(--wcx) - var(--wh) * .18),rgba(11,18,32,0) var(--wcx),rgba(11,18,32,0) 100%) !important}
}

/* V13k (3): About hero on touch screens / phones. The hero is not pinned there, so the frame's parallax
   pushed its navy end out of view and the section ended on teal. The long fade now lives on the section
   itself (it does not move), so the photo always melts into navy. Desktop (pinned) is unchanged. */
html.bt-touch .h7.a7h.v13-ah.v13j-ah::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(11,18,32,0) 0,rgba(11,18,32,.14) 18%,rgba(11,18,32,.34) 36%,rgba(11,18,32,.56) 54%,rgba(11,18,32,.76) 70%,rgba(11,18,32,.92) 86%,var(--navy) 100%)}
html.bt-touch .h7.a7h.v13-ah.v13j-ah .h7-t,html.bt-touch .h7.a7h.v13-ah.v13j-ah .hz{z-index:2}
@media (max-width:767px){
  .h7.a7h.v13-ah.v13j-ah::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46%;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,rgba(11,18,32,0) 0,rgba(11,18,32,.14) 18%,rgba(11,18,32,.34) 36%,rgba(11,18,32,.56) 54%,rgba(11,18,32,.76) 70%,rgba(11,18,32,.92) 86%,var(--navy) 100%)}
  .h7.a7h.v13-ah.v13j-ah .h7-t,.h7.a7h.v13-ah.v13j-ah .hz{z-index:2}
}

/* V13l: iPad portrait only (768 to 1023 wide, portrait). Text block and wave form one centred piece:
   the wave is drawn a little smaller (whole lip and foam inside the frame), placed right after the
   slogan, and the pair is centred in the width. Everything from 1024 up, landscape, phones and desktop
   keep the V13k rules. --wi = wave scale, --pm = left margin of the centred pair (text 432 + gap 28). */
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait){
  .bm8.dv10.v13-wave.v13g-wave{--wi:min(calc(var(--wh) * .8),max(calc(var(--wh) * .66),calc((100% - 460px - var(--px) * 2) / 1.3)));--pm:calc((100% - 460px - var(--wi) * 1.19) / 2);--wcx:calc(var(--pm) + 460px + var(--wi) * .41) !important}
  .bm8.dv10.v13-wave.v13g-wave .bm8-ph img{width:calc(var(--wi) * 7.585) !important;left:calc(var(--wcx) - var(--wi) * 4.469) !important;top:0 !important}
  .bm8.dv10.v13-wave.v13g-wave .bm8-in{left:var(--pm) !important}
}

/* V13m: iPad portrait only (768 to 1023 wide, portrait), two fixes on top of V13l.
   (a) The haze is a little denser right behind the end of the second line (stops follow the wave scale --wi),
       linear and shapeless as before, so the worst stretch stays above 5:1.
   (b) With the smaller wave the photo starts at the top edge, so its orange sky band showed under the hero video.
       The top fade now hides the sky and the mountains and opens just above the waterline, like V13k. */
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait){
  .bm8.dv10.v13-wave.v13g-wave .bm8-ph{-webkit-mask-image:linear-gradient(180deg,transparent 0,transparent calc(var(--wi) * .16),rgba(0,0,0,.28) calc(var(--wi) * .3),rgba(0,0,0,.72) calc(var(--wi) * .42),#000 calc(var(--wi) * .5)) !important;mask-image:linear-gradient(180deg,transparent 0,transparent calc(var(--wi) * .16),rgba(0,0,0,.28) calc(var(--wi) * .3),rgba(0,0,0,.72) calc(var(--wi) * .42),#000 calc(var(--wi) * .5)) !important}
  .bm8.dv10.v13-wave.v13g-wave .bm8-shade{background:
    linear-gradient(180deg,rgba(11,18,32,.25) 0%,rgba(11,18,32,0) 30%,rgba(11,18,32,0) 60%,rgba(11,18,32,.72) 86%,var(--navy) 100%),
    linear-gradient(90deg,rgba(11,18,32,.52) 0,rgba(11,18,32,.5) calc(var(--wcx) - var(--wi) * .9),rgba(11,18,32,.47) calc(var(--wcx) - var(--wi) * .55),rgba(11,18,32,.3) calc(var(--wcx) - var(--wi) * .32),rgba(11,18,32,.1) calc(var(--wcx) - var(--wi) * .12),rgba(11,18,32,0) calc(var(--wcx) + var(--wi) * .05),rgba(11,18,32,0) 100%) !important}
}

/* Archive grid: equal cards, 16 Nov (Javier) */
.md10-vg .vcard,.md10-vg .vcard.plain{align-self:stretch;display:flex;flex-direction:column}
.md10-vg .vcard .th{flex:0 0 auto;aspect-ratio:16/9;height:auto}
.md10-vg .vcard .th img,.md10-vg .vcard .th picture{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.md10-vg .vcard .cap{flex:1 1 auto}
@media (min-width:600px){
 .md10-vg .vcard .cap b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3;min-height:2.6em}
}
