/* =============================================================================
   V13g: Javier's fixes (12-11-2026). Loaded after v13e.css; earlier files untouched.
   ============================================================================= */

/* 1) SHARK CLOSING: clean hierarchy: readable eyebrow, heading on the light water,
      the line sits beside the shark (anchored by v13g.js), never under the outline text */
.contact.ct9.v13e-shk .ct9-sh{background:linear-gradient(180deg,#0B1220 0,rgba(11,18,32,.4) 6%,rgba(11,18,32,0) 13%,rgba(11,18,32,0) 72%,rgba(11,18,32,.45) 88%,#0B1220 100%) !important}
.contact.ct9.v13e-shk .ct9-h .lbl{color:#0B1220 !important;opacity:1 !important;font-weight:600 !important}
.contact.ct9.v13e-shk .ct9-h h2{font-size:clamp(44px,6vw,112px) !important;line-height:1 !important}
.contact.ct9.v13e-shk .ct9-cap{max-width:none !important}
.contact.ct9.v13e-shk .ct9-cap span{white-space:nowrap}
@media (min-width:768px){
  .contact.ct9.v13e-shk.v13g-on .ct9-cap{left:auto !important;right:calc(100% - var(--shx) + clamp(22px,2.2vw,60px)) !important;top:var(--shy) !important;bottom:auto !important;transform:translateY(-50%) !important;flex-direction:row-reverse !important;text-align:right !important;padding:0 !important}
  .contact.ct9.v13e-shk.v13g-on .ct9-cap::before{background:linear-gradient(90deg,#0B1220,rgba(11,18,32,0)) !important}
}
@media (max-width:767px){
  .contact.ct9.v13e-shk .ct9-cap span{white-space:normal}
  .contact.ct9.v13e-shk.v13g-on .ct9-cap{top:calc(var(--shy) + 54px) !important;bottom:auto !important}
}

/* 2) ABOUT 04: big photo fully visible in any orientation, text beside it */
#s-me.v13e-me .v13e-who{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) !important;gap:clamp(36px,4.5vw,104px) !important;align-items:center !important}
#s-me.v13e-me .v13e-j{align-items:stretch !important;width:100% !important}
#s-me.v13e-me .v13e-j .v13j-stage{width:100% !important;height:auto !important;aspect-ratio:5/4 !important;max-height:min(calc(100svh - 290px),1000px) !important;max-width:none !important;overflow:hidden}
#s-me.v13e-me .v13e-j .v13j-big{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;object-fit:contain !important;object-position:50% 100% !important}
#s-me.v13e-me .v13e-j .v13j-thumbs{max-width:none !important;justify-content:center !important;margin-top:14px !important;flex-wrap:nowrap !important;gap:clamp(5px,.5vw,8px) !important}
#s-me.v13e-me .v13e-j .v13j-th{flex:1 1 0 !important;min-width:0 !important;max-width:72px !important;width:auto !important;height:auto !important;aspect-ratio:1 !important}
#s-me.v13e-me .v13e-txt{align-self:center !important;max-width:38em !important}
@media (max-width:899px){
  #s-me.v13e-me .v13e-who{grid-template-columns:1fr !important}
  #s-me.v13e-me .v13e-j .v13j-stage{aspect-ratio:auto !important;max-height:none !important;height:auto !important}
  #s-me.v13e-me .v13e-j .v13j-big{position:static !important;width:100% !important;height:auto !important;max-height:72svh !important}
  #s-me.v13e-me .v13e-j .v13j-thumbs{justify-content:flex-start !important;flex-wrap:wrap !important}
  #s-me.v13e-me .v13e-j .v13j-th{flex:0 0 auto !important;width:48px !important;height:48px !important}
}

/* 3) HOME WAVE: the photo now reaches the full width (extended from its own edge,
      no AI), haze fades in slowly toward the logo, a touch of feather on top */
@media (min-width:768px){
  .bm8.dv10.v13-wave.v13g-wave{--wh:clamp(300px,26vw,520px)}
  .bm8.dv10.v13-wave.v13g-wave .bm8-ph{inset:0 !important;left:0 !important;right:0 !important;width:100% !important;height:100% !important;overflow:hidden;
    -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.35) 0,rgba(0,0,0,.8) 7%,#000 15%) !important;mask-image:linear-gradient(180deg,rgba(0,0,0,.35) 0,rgba(0,0,0,.8) 7%,#000 15%) !important}
  .bm8.dv10.v13-wave.v13g-wave .bm8-ph picture{display:block;position:absolute;inset:0}
  .bm8.dv10.v13-wave.v13g-wave .bm8-ph img{position:absolute !important;right:0 !important;left:auto !important;top:calc(var(--wh) * -0.255) !important;
    width:calc(var(--wh) * 5.33) !important;min-width:100% !important;height:auto !important;max-width:none !important;object-fit:fill !important;transform:none !important}
  .bm8.dv10.v13-wave.v13g-wave .bm8-ph::after{content:"";position:absolute;left:0;right:0;top:0;height:26%;z-index:1;pointer-events:none;
    -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
    -webkit-mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.5) 45%,transparent 100%);mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.5) 45%,transparent 100%)}
  .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,.6) 0%,rgba(11,18,32,.46) 16%,rgba(11,18,32,.3) 30%,rgba(11,18,32,.16) 44%,rgba(11,18,32,.06) 56%,rgba(11,18,32,0) 66%) !important}
}

/* 4) HOME WAVE: second line under the slogan (logo + slogan CSS untouched) */
.v13g-wave .v13g-tx{display:flex;flex-direction:column;align-items:flex-start}
.v13g-wave .v13g-sub{margin:0;padding:.5em 0 0 clamp(16px,1.6vw,28px);border-left:1px solid rgba(255,255,255,.45);
  max-width:30ch;font-weight:400;font-size:clamp(13px,.9vw,16px);line-height:1.45;color:rgba(255,255,255,.8);letter-spacing:.01em;
  text-shadow:0 1px 12px rgba(11,18,32,.5)}
@media (max-width:767px){.v13g-wave .v13g-sub{font-size:11px;max-width:26ch;padding-left:12px}}

/* =============================================================================
   V13h: Rogelio: second line readable (>=4.5:1). Local soft haze behind the
   logo + slogan block (radial, not a box). Logo / slogan / lockup untouched.
   ============================================================================= */
.bm8.dv10.v13-wave.v13g-wave .bm8-in::before{content:"";position:absolute;z-index:-1;pointer-events:none;
  left:-14%;right:-22%;top:-70%;bottom:-70%;
  background:radial-gradient(closest-side,rgba(11,18,32,.88) 0,rgba(11,18,32,.82) 45%,rgba(11,18,32,.55) 72%,rgba(11,18,32,.22) 88%,rgba(11,18,32,0) 100%)}
.v13g-wave .v13g-sub{font-size:clamp(16px,1vw,20px) !important;font-weight:300 !important;color:rgba(255,255,255,.96) !important;text-shadow:0 1px 10px rgba(11,18,32,.75) !important}
@media (max-width:767px){
  .bm8.dv10.v13-wave.v13g-wave .bm8-in::before{left:-30%;right:-24%;top:-55%;bottom:-55%;
    background:radial-gradient(closest-side,rgba(11,18,32,.9) 0,rgba(11,18,32,.86) 50%,rgba(11,18,32,.6) 76%,rgba(11,18,32,.25) 90%,rgba(11,18,32,0) 100%)}
  .v13g-wave .v13g-sub{font-size:14px !important;max-width:24ch !important}
}
/* V13h: About 04 on phones: fixed photo frame so the thumbnails never jump */
@media (max-width:899px){
  #s-me.v13e-me .v13e-j .v13j-stage{aspect-ratio:4/5 !important;height:auto !important;max-height:none !important;position:relative !important}
  #s-me.v13e-me .v13e-j .v13j-big{position:absolute !important;inset:0 !important;width:100% !important;height:100% !important;max-height:none !important;object-fit:contain !important;object-position:50% 100% !important}
}

/* =============================================================================
   V13i: Rogelio: no oval. Shapeless haze = stronger left linear gradient in the
   shade (desktop) and a bottom-up band under the text block (mobile).
   ============================================================================= */
.bm8.dv10.v13-wave.v13g-wave .bm8-in::before{content:none !important;display:none !important}
/* the shade layer was hidden since v12d (display:none); it is the haze carrier now */
.bm8.dv10.v13-wave.v13g-wave .bm8-shade{display:block !important;position:absolute !important;inset:0 !important;z-index:2 !important;pointer-events:none}
@media (min-width:768px){
  .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,.4) 0%,rgba(11,18,32,.38) 14%,rgba(11,18,32,.34) 26%,rgba(11,18,32,.28) 36%,rgba(11,18,32,.2) 46%,rgba(11,18,32,.11) 56%,rgba(11,18,32,.04) 66%,rgba(11,18,32,0) 76%) !important}
}
@media (max-width:767px){
  .bm8.dv10.v13-wave.v13g-wave .bm8-shade{background:
    linear-gradient(180deg,rgba(11,18,32,0) 0%,rgba(11,18,32,0) 24%,rgba(11,18,32,.4) 34%,rgba(11,18,32,.58) 42%,rgba(11,18,32,.63) 52%,rgba(11,18,32,.66) 62%,rgba(11,18,32,.72) 74%,rgba(11,18,32,.84) 88%,var(--navy) 100%) !important;opacity:1 !important}
  .v13g-wave .v13g-sub{font-weight:400 !important}
}
/* V13i: About 04 on phones: lower fixed 1:1 frame, photo centred, blurred same-photo backdrop */
@media (max-width:899px){
  #s-me.v13e-me .v13e-j .v13j-stage{aspect-ratio:1/1 !important;overflow:hidden !important;background:#0B1220 !important}
  #s-me.v13e-me .v13e-j .v13j-bg{display:block !important;position:absolute !important;inset:-40px !important;z-index:0 !important;
    background-image:url(/assets/img/about/portrait.webp);background-size:cover;background-position:center;filter:blur(28px) brightness(.5) saturate(1.05) !important}
  #s-me.v13e-me .v13e-j .v13j-big{z-index:1 !important;object-position:50% 50% !important}
}
