
:root{
  --v16-bg:var(--sp-tone-0,#060606);
  --v16-panel:var(--sp-tone-0,#0c0c0c);
  --v16-panel-2:var(--sp-tone-1,#111);
  --v16-line:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.07);
  --v16-line-hot:rgb(var(--sp-accent-rgb,255 126 55) / 0.2);
  --v16-orange:var(--sp-accent,#ff7b36);
  --v16-orange-2:var(--sp-accent-soft,#ff9a5a);
  --v16-text:var(--sp-tone-9,#f4eee8);
  --v16-muted:var(--sp-tone-6,#8c847d);
  --v16-soft:var(--sp-tone-5,#625c57);
  --v16-ease:cubic-bezier(.2,.78,.2,1);
}

html{
  scroll-behavior:smooth;
  background:var(--v16-bg);
}

body{
  background:
    radial-gradient(circle at 10% -4%,rgb(var(--sp-accent-rgb,255 111 31) / 0.07),transparent 34rem),
    radial-gradient(circle at 92% 18%,rgb(var(--sp-accent-rgb,255 70 14) / 0.035),transparent 30rem),
    var(--sp-tone-0,#060606)!important;
}

/* -----------------------------------------
   HEADER / NAV — editorial floating system
   ----------------------------------------- */
.site-header{
  position:fixed!important;
  z-index:1200!important;
  top:12px!important;
  left:50%!important;
  right:auto!important;
  width:min(1180px,calc(100% - 28px))!important;
  height:64px!important;
  min-height:64px!important;
  transform:translateX(-50%)!important;
  padding:0 12px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  border:1px solid var(--v16-line)!important;
  border-radius:20px!important;
  background:rgb(var(--sp-tone-0-rgb,8 8 8) / 0.82)!important;
  backdrop-filter:blur(22px) saturate(1.18)!important;
  box-shadow:
    0 18px 70px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.28),
    inset 0 1px rgb(var(--sp-tone-9-rgb,255 255 255) / 0.025)!important;
  transition:
    width .28s var(--v16-ease),
    top .28s var(--v16-ease),
    background .24s ease,
    border-color .24s ease,
    box-shadow .24s ease!important;
}

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 0%,rgb(var(--sp-accent-rgb,255 126 55) / 0.055),transparent 25%),
    linear-gradient(135deg,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.016),transparent 45%);
}

.site-header.v16-scrolled{
  top:7px!important;
  width:min(1120px,calc(100% - 22px))!important;
  background:rgb(var(--sp-tone-0-rgb,7 7 7) / 0.94)!important;
  border-color:rgb(var(--sp-accent-rgb,255 126 55) / 0.12)!important;
  box-shadow:0 22px 84px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.36)!important;
}

.site-header .brand{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:max-content!important;
  padding:0!important;
  color:var(--v16-text)!important;
  text-decoration:none!important;
}

.site-header .brand::before,
.site-header .brand::after{
  display:none!important;
}

.site-header .brand-mark{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.075)!important;
  border-radius:13px!important;
  background:var(--sp-tone-0,#0b0b0b)!important;
  overflow:hidden!important;
  box-shadow:none!important;
}

.site-header .brand-mark img{
  width:34px!important;
  height:34px!important;
  object-fit:contain!important;
}

.site-header .brand-mark i{display:none!important}

.site-header .brand-copy{
  display:grid!important;
  gap:1px!important;
}

.site-header .brand-copy strong{
  font-size:.86rem!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
  font-weight:950!important;
}

.site-header .brand-copy small{
  color:var(--sp-tone-5,#736b65)!important;
  font-size:.43rem!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}

.site-header .main-nav{
  position:relative!important;
  inset:auto!important;
  z-index:2!important;
  justify-self:center!important;
  width:auto!important;
  max-width:100%!important;
  padding:4px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.045)!important;
  border-radius:15px!important;
  background:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.012)!important;
  box-shadow:none!important;
  overflow:visible!important;
}

.site-header .main-nav a{
  position:relative!important;
  min-height:38px!important;
  padding:0 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  color:var(--sp-tone-6,#89817a)!important;
  font-size:.58rem!important;
  font-weight:850!important;
  letter-spacing:.005em!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  transform:none!important;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s var(--v16-ease)!important;
}

.site-header .main-nav a::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:4px;
  width:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--v16-orange),var(--v16-orange-2));
  transform:translateX(-50%);
  opacity:0;
  transition:width .22s var(--v16-ease),opacity .2s ease;
}

.site-header .main-nav a::after{
  display:none!important;
}

.site-header .main-nav a small{
  color:var(--sp-tone-4,#4f4945)!important;
  font-size:.42rem!important;
  font-weight:950!important;
  transition:color .2s ease!important;
}

.site-header .main-nav a:hover{
  color:var(--sp-tone-9,#e8e1dc)!important;
  background:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.028)!important;
  transform:translateY(-1px)!important;
}

.site-header .main-nav a.is-active{
  color:var(--sp-tone-9,#fff)!important;
  background:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.045)!important;
}

.site-header .main-nav a.is-active::before{
  width:18px;
  opacity:1;
}

.site-header .main-nav a.is-active small{
  color:var(--v16-orange)!important;
}

.nav-toggle{
  position:relative!important;
  z-index:5!important;
  justify-self:end!important;
  width:42px!important;
  height:42px!important;
  padding:0!important;
  display:none!important;
  place-items:center!important;
  border:1px solid var(--v16-line)!important;
  border-radius:13px!important;
  background:var(--sp-tone-0,#0c0c0c)!important;
  color:white!important;
  cursor:pointer!important;
}

.nav-toggle span{
  position:absolute!important;
  left:12px!important;
  width:17px!important;
  height:1.5px!important;
  border-radius:999px!important;
  background:var(--sp-tone-8,#ddd5cf)!important;
  transition:transform .22s ease,opacity .18s ease,top .22s ease!important;
}

.nav-toggle span:nth-child(1){top:14px!important}
.nav-toggle span:nth-child(2){top:20px!important}
.nav-toggle span:nth-child(3){top:26px!important}

body.menu-open .nav-toggle span:nth-child(1){top:20px!important;transform:rotate(45deg)!important}
body.menu-open .nav-toggle span:nth-child(2){opacity:0!important}
body.menu-open .nav-toggle span:nth-child(3){top:20px!important;transform:rotate(-45deg)!important}

.nav-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:1180!important;
  display:block!important;
  pointer-events:none!important;
  opacity:0!important;
  background:rgb(var(--sp-tone-0-rgb,0 0 0) / 0.58)!important;
  backdrop-filter:blur(6px)!important;
  transition:opacity .2s ease!important;
}

body.menu-open .nav-backdrop{
  opacity:1!important;
  pointer-events:auto!important;
}

/* -----------------------------------------
   MAIN SPACING / SECTION HIERARCHY
   ----------------------------------------- */
main#main{
  padding-top:84px!important;
}

.section{
  width:min(1180px,calc(100% - 28px))!important;
  margin-inline:auto!important;
  padding-block:clamp(78px,9vw,120px)!important;
}

.section-heading{
  margin-bottom:28px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(260px,440px)!important;
  gap:28px!important;
  align-items:end!important;
}

.section-heading .eyebrow,
.eyebrow{
  color:var(--v16-orange)!important;
  font-size:.52rem!important;
  font-weight:950!important;
  letter-spacing:.17em!important;
}

.section-heading h2{
  margin-top:8px!important;
  font-size:clamp(2.4rem,5.5vw,4.9rem)!important;
  line-height:.93!important;
  letter-spacing:-.06em!important;
}

.section-heading>p{
  color:var(--sp-tone-6,#817a74)!important;
  font-size:.76rem!important;
  line-height:1.7!important;
}

/* -----------------------------------------
   HERO
   ----------------------------------------- */
.hero{
  width:min(1180px,calc(100% - 28px))!important;
  min-height:min(820px,calc(100dvh - 84px))!important;
  padding-top:clamp(46px,6vw,82px)!important;
  display:grid!important;
  grid-template-columns:minmax(0,.92fr) minmax(360px,.72fr)!important;
  gap:clamp(42px,7vw,92px)!important;
  align-items:center!important;
}

.hero::before{
  inset:10% 48% 8% -25%!important;
  background:radial-gradient(circle,rgb(var(--sp-accent-rgb,255 99 23) / 0.1),transparent 66%)!important;
}

.hero-copy{
  max-width:690px!important;
}

.hero-copy h1{
  margin:10px 0 20px!important;
  font-size:clamp(4rem,8vw,7.8rem)!important;
  line-height:.86!important;
  letter-spacing:-.075em!important;
  text-wrap:balance!important;
}

.hero-text{
  max-width:58ch!important;
  color:var(--sp-tone-6,#9b938c)!important;
  font-size:clamp(.92rem,1.5vw,1.08rem)!important;
  line-height:1.8!important;
}

.hero-meta{
  gap:7px!important;
  margin-top:24px!important;
}

.hero-meta span{
  min-height:32px!important;
  padding:0 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.065)!important;
  border-radius:999px!important;
  background:var(--sp-tone-0,#0b0b0b)!important;
  color:var(--sp-tone-6,#786f69)!important;
  font-size:.55rem!important;
}

.hero-visual{
  min-height:580px!important;
}

.hero-frame{
  width:min(100%,460px)!important;
  border-radius:26px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.085)!important;
  box-shadow:0 38px 100px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.38)!important;
  animation:none!important;
  transform:none!important;
}

.hero-frame:hover{
  transform:translateY(-4px)!important;
  transition:transform .32s var(--v16-ease)!important;
}

.orbit{opacity:.32!important}
.floating-logo{opacity:.22!important}

/* -----------------------------------------
   CARDS / VISUAL CONTENT
   ----------------------------------------- */
.photo-grid{
  gap:16px!important;
}

.home-random-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

.photo-card,
.video-card,
.home-session-card{
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.065)!important;
  border-radius:20px!important;
  background:var(--sp-tone-0,#0b0b0b)!important;
  box-shadow:0 16px 42px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.2)!important;
  overflow:hidden!important;
  transition:
    transform .28s var(--v16-ease),
    border-color .24s ease,
    box-shadow .24s ease!important;
}

.photo-card:hover,
.video-card:hover,
.home-session-card:hover{
  transform:translateY(-4px)!important;
  border-color:rgb(var(--sp-accent-rgb,255 126 55) / 0.18)!important;
  box-shadow:0 26px 66px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.3)!important;
}

.photo-card img,
.video-card img,
.home-session-card img{
  transition:transform .5s var(--v16-ease),filter .3s ease!important;
}

.photo-card:hover img,
.video-card:hover img,
.home-session-card:hover img{
  transform:scale(1.025)!important;
}

.photo-overlay{
  background:linear-gradient(to top,rgb(var(--sp-tone-0-rgb,5 5 5) / 0.92),rgb(var(--sp-tone-0-rgb,5 5 5) / 0.08) 72%)!important;
}

.photo-overlay h3{
  font-size:clamp(1.05rem,2vw,1.45rem)!important;
  letter-spacing:-.035em!important;
}

/* -----------------------------------------
   PANELS / ABOUT / CONTACT / ACCREDITATIONS
   ----------------------------------------- */
.about-panel,
.contact-panel,
.accreditation-card,
.video-feature,
.sessions-panel{
  border:1px solid var(--v16-line)!important;
  border-radius:22px!important;
  background:
    linear-gradient(145deg,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.018),transparent 52%),
    var(--sp-tone-0,#0b0b0b)!important;
  box-shadow:0 20px 62px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.2)!important;
}

.contact-panel{
  min-height:300px!important;
}

/* -----------------------------------------
   FOOTER
   ----------------------------------------- */
.compact-footer{
  width:min(1180px,calc(100% - 28px))!important;
  margin-inline:auto!important;
  border-top:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.055)!important;
  padding:26px 0 34px!important;
}

.compact-footer a{
  transition:color .2s ease!important;
}

.compact-footer a:hover{
  color:var(--v16-orange-2)!important;
}

/* -----------------------------------------
   PORTFOLIO PAGE
   ----------------------------------------- */
.portfolio-header{
  top:12px!important;
  width:min(1180px,calc(100% - 28px))!important;
  min-height:64px!important;
  border-radius:20px!important;
  background:rgb(var(--sp-tone-0-rgb,8 8 8) / 0.86)!important;
  border:1px solid var(--v16-line)!important;
  backdrop-filter:blur(22px) saturate(1.16)!important;
}

.portfolio-gallery-shell{
  width:min(1180px,calc(100% - 28px))!important;
  padding-top:118px!important;
}

.portfolio-cards-intro{
  padding:22px 0 32px!important;
}

.portfolio-cards-intro h1{
  font-size:clamp(3.4rem,8vw,7rem)!important;
  letter-spacing:-.07em!important;
}

/* -----------------------------------------
   REVEALS / MOTION
   ----------------------------------------- */
.v16-reveal{
  opacity:0;
  transform:translateY(18px);
  transition:
    opacity .62s var(--v16-ease),
    transform .62s var(--v16-ease);
}

.v16-reveal.is-visible{
  opacity:1;
  transform:none;
}

.v16-section-line{
  position:absolute;
  left:0;
  top:0;
  width:42px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--v16-orange),transparent);
}

/* -----------------------------------------
   TABLET / MOBILE
   ----------------------------------------- */
@media(max-width:1020px){
  .site-header{
    grid-template-columns:auto 1fr auto!important;
  }

  .site-header .main-nav a{
    padding-inline:8px!important;
  }

  .site-header .main-nav a small{
    display:none!important;
  }

  .hero{
    grid-template-columns:minmax(0,1fr) minmax(310px,.68fr)!important;
    gap:40px!important;
  }

  .hero-copy h1{
    font-size:clamp(3.7rem,8vw,6.1rem)!important;
  }
}

@media(max-width:820px){
  .site-header{
    top:7px!important;
    width:calc(100% - 14px)!important;
    height:60px!important;
    min-height:60px!important;
    padding:0 9px!important;
    border-radius:17px!important;
  }

  .site-header.v16-scrolled{
    width:calc(100% - 14px)!important;
    top:7px!important;
  }

  .site-header .brand-mark{
    width:38px!important;
    height:38px!important;
    flex-basis:38px!important;
    border-radius:12px!important;
  }

  .site-header .brand-mark img{
    width:32px!important;
    height:32px!important;
  }

  .site-header .brand-copy strong{font-size:.82rem!important}
  .site-header .brand-copy small{font-size:.39rem!important}

  .nav-toggle{
    display:grid!important;
  }

  .site-header .main-nav{
    position:fixed!important;
    top:76px!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    max-height:calc(100dvh - 92px)!important;
    padding:10px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
    overflow-y:auto!important;
    border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.08)!important;
    border-radius:18px!important;
    background:rgb(var(--sp-tone-0-rgb,8 8 8) / 0.97)!important;
    box-shadow:0 30px 100px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.58)!important;
    backdrop-filter:blur(24px)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-8px) scale(.99)!important;
    transform-origin:top center!important;
    transition:
      opacity .2s ease,
      transform .24s var(--v16-ease),
      visibility .2s ease!important;
  }

  body.menu-open .site-header .main-nav{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }

  .site-header .main-nav a{
    min-height:48px!important;
    width:100%!important;
    padding:0 13px!important;
    justify-content:flex-start!important;
    border-radius:12px!important;
    font-size:.78rem!important;
  }

  .site-header .main-nav a small{
    display:inline!important;
    width:22px!important;
    color:var(--sp-tone-5,#5c554f)!important;
  }

  .site-header .main-nav a::before{
    left:13px!important;
    bottom:7px!important;
    transform:none!important;
  }

  .site-header .main-nav a.is-active::before{
    width:22px!important;
  }

  main#main{padding-top:72px!important}

  .section{
    width:min(100% - 20px,1180px)!important;
    padding-block:72px!important;
  }

  .section-heading{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  .section-heading>p{
    max-width:640px!important;
  }

  .hero{
    width:min(100% - 20px,1180px)!important;
    grid-template-columns:1fr!important;
    gap:34px!important;
    padding-top:46px!important;
  }

  .hero-copy{
    max-width:760px!important;
  }

  .hero-copy h1{
    max-width:760px!important;
    font-size:clamp(3.6rem,13vw,6rem)!important;
  }

  .hero-visual{
    min-height:500px!important;
  }

  .hero-frame{
    width:min(78vw,440px)!important;
  }

  .home-random-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:560px){
  body{overflow-x:hidden!important}

  .site-header{
    width:calc(100% - 10px)!important;
    top:5px!important;
  }

  .site-header.v16-scrolled{
    width:calc(100% - 10px)!important;
    top:5px!important;
  }

  .site-header .brand-copy small{
    display:none!important;
  }

  .section{
    width:min(100% - 16px,1180px)!important;
    padding-block:60px!important;
  }

  .section-heading{
    margin-bottom:20px!important;
  }

  .section-heading h2{
    font-size:clamp(2.3rem,13vw,3.8rem)!important;
  }

  .hero{
    width:min(100% - 16px,1180px)!important;
    padding-top:38px!important;
  }

  .hero-copy h1{
    font-size:clamp(3rem,16vw,4.7rem)!important;
    line-height:.89!important;
  }

  .hero-text{
    font-size:.9rem!important;
    line-height:1.72!important;
  }

  .hero-meta{
    gap:6px!important;
  }

  .hero-meta span{
    min-height:29px!important;
    font-size:.5rem!important;
  }

  .hero-visual{
    min-height:420px!important;
  }

  .hero-frame{
    width:min(86vw,390px)!important;
    border-radius:22px!important;
  }

  .home-random-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  .home-random-grid .photo-card{
    max-width:360px!important;
    width:100%!important;
    justify-self:center!important;
  }

  .photo-card,
  .video-card,
  .home-session-card{
    border-radius:17px!important;
  }

  .compact-footer{
    width:min(100% - 18px,1180px)!important;
  }

  .portfolio-gallery-shell{
    width:min(100% - 16px,1180px)!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .v16-reveal{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
  }
}


/* =========================================================
   synth.pixel v0.5.17 — 6-CARD COMPACT HOME PORTFOLIO
   ========================================================= */
#portafolio .section-heading{
  margin-bottom:22px!important;
}

#portafolio .home-random-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-rows:280px!important;
  gap:14px!important;
  align-items:stretch!important;
  width:100%!important;
}

#portafolio .home-random-grid .photo-card{
  position:relative!important;
  width:100%!important;
  height:280px!important;
  min-height:0!important;
  max-height:280px!important;
  aspect-ratio:auto!important;
  grid-column:auto!important;
  grid-row:auto!important;
  border-radius:18px!important;
  overflow:hidden!important;
}

#portafolio .home-random-grid .photo-card[hidden]{
  display:none!important;
}

#portafolio .home-random-grid .photo-card > img,
#portafolio .home-random-grid .photo-card .portfolio-photo{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}

#portafolio .home-random-grid .photo-overlay{
  position:absolute!important;
  inset:auto 0 0!important;
  min-height:42%!important;
  padding:52px 14px 14px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  background:linear-gradient(to top,rgb(var(--sp-tone-0-rgb,3 3 3) / 0.94),rgb(var(--sp-tone-0-rgb,3 3 3) / 0.55) 46%,transparent)!important;
}

#portafolio .home-random-grid .photo-overlay p{
  margin:0 0 5px!important;
  color:var(--sp-accent-soft,#ff9558)!important;
  font-size:.48rem!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

#portafolio .home-random-grid .photo-overlay h3{
  margin:0!important;
  color:var(--sp-tone-9,#f3ede8)!important;
  font-size:1rem!important;
  line-height:1.08!important;
  letter-spacing:-.03em!important;
}

#portafolio .home-random-grid .photo-overlay span{
  margin-top:5px!important;
  color:var(--sp-tone-6,#948b84)!important;
  font-size:.58rem!important;
  line-height:1.35!important;
}

#portafolio .portfolio-more{
  margin-top:20px!important;
}

@media(max-width:900px){
  #portafolio .home-random-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-rows:260px!important;
  }

  #portafolio .home-random-grid .photo-card{
    height:260px!important;
    max-height:260px!important;
  }
}

@media(max-width:560px){
  #portafolio .home-random-grid{
    grid-template-columns:1fr!important;
    grid-auto-rows:250px!important;
    gap:10px!important;
  }

  #portafolio .home-random-grid .photo-card{
    width:min(100%,360px)!important;
    height:250px!important;
    max-height:250px!important;
    justify-self:center!important;
  }

  #portafolio .home-random-grid .photo-overlay{
    padding:44px 12px 12px!important;
  }

  #portafolio .home-random-grid .photo-overlay h3{
    font-size:.94rem!important;
  }
}


/* =========================================================
   synth.pixel v0.5.18 — VERTICAL 9:16 HOME PORTFOLIO
   ========================================================= */
#portafolio .home-random-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,250px))!important;
  grid-auto-rows:auto!important;
  justify-content:center!important;
  align-items:start!important;
  gap:18px!important;
}

#portafolio .home-random-grid .photo-card{
  width:100%!important;
  max-width:250px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:9 / 16!important;
  justify-self:center!important;
  grid-column:auto!important;
  grid-row:auto!important;
  border-radius:20px!important;
  overflow:hidden!important;
}

#portafolio .home-random-grid .photo-card > img,
#portafolio .home-random-grid .photo-card .portfolio-photo{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center top!important;
}

#portafolio .home-random-grid .photo-overlay{
  min-height:34%!important;
  padding:70px 13px 13px!important;
  background:linear-gradient(
    to top,
    rgb(var(--sp-tone-0-rgb,3 3 3) / 0.96),
    rgb(var(--sp-tone-0-rgb,3 3 3) / 0.66) 44%,
    rgb(var(--sp-tone-0-rgb,3 3 3) / 0.08) 78%,
    transparent
  )!important;
}

#portafolio .home-random-grid .photo-overlay p{
  font-size:.46rem!important;
}

#portafolio .home-random-grid .photo-overlay h3{
  font-size:1rem!important;
}

#portafolio .home-random-grid .photo-overlay span{
  font-size:.56rem!important;
}

@media(max-width:900px){
  #portafolio .home-random-grid{
    grid-template-columns:repeat(2,minmax(0,235px))!important;
    gap:15px!important;
  }

  #portafolio .home-random-grid .photo-card{
    max-width:235px!important;
    aspect-ratio:9 / 16!important;
  }
}

@media(max-width:560px){
  #portafolio .home-random-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }

  #portafolio .home-random-grid .photo-card{
    width:100%!important;
    max-width:210px!important;
    height:auto!important;
    aspect-ratio:9 / 16!important;
  }

  #portafolio .home-random-grid .photo-overlay{
    min-height:38%!important;
    padding:54px 9px 9px!important;
  }

  #portafolio .home-random-grid .photo-overlay p{
    font-size:.39rem!important;
  }

  #portafolio .home-random-grid .photo-overlay h3{
    font-size:.78rem!important;
  }

  #portafolio .home-random-grid .photo-overlay span{
    font-size:.47rem!important;
  }
}

@media(max-width:350px){
  #portafolio .home-random-grid{
    grid-template-columns:1fr!important;
  }

  #portafolio .home-random-grid .photo-card{
    max-width:220px!important;
  }
}


/* =========================================================
   synth.pixel v0.5.19 — COMPACT SECTION SPACING
   ========================================================= */

/* Reduce el espacio vertical general entre apartados */
.section{
  padding-block:clamp(48px,5.5vw,72px)!important;
}

/* Evita dobles espacios cuando una sección sigue inmediatamente a otra */
.section + .section{
  margin-top:0!important;
}

/* Encabezados de sección más compactos */
.section-heading{
  margin-bottom:20px!important;
}

/* Hero un poco más cercano al primer apartado */
.hero{
  min-height:min(720px,calc(100dvh - 84px))!important;
  padding-bottom:38px!important;
}

/* Primer apartado después del hero */
.hero + .section,
main#main > .section:first-of-type{
  padding-top:52px!important;
}

/* Portafolio, sesiones y videos: menos hueco antes/después */
#portafolio,
#sesiones,
#videos,
#sobre-mi,
#acreditaciones,
#contacto{
  scroll-margin-top:86px!important;
}

/* Separadores visuales más pegados al contenido */
.section::before,
.section::after{
  margin-block:0!important;
}

/* Contacto y footer con cierre más compacto */
#contacto{
  padding-bottom:50px!important;
}

.compact-footer{
  margin-top:0!important;
  padding-top:22px!important;
}

@media(max-width:820px){
  .section{
    padding-block:44px!important;
  }

  .hero{
    min-height:auto!important;
    padding-bottom:28px!important;
  }

  .hero + .section,
  main#main > .section:first-of-type{
    padding-top:42px!important;
  }

  .section-heading{
    margin-bottom:17px!important;
  }

  #contacto{
    padding-bottom:42px!important;
  }
}

@media(max-width:560px){
  .section{
    padding-block:36px!important;
  }

  .hero{
    padding-bottom:22px!important;
  }

  .hero + .section,
  main#main > .section:first-of-type{
    padding-top:34px!important;
  }

  .section-heading{
    margin-bottom:14px!important;
  }

  #contacto{
    padding-bottom:34px!important;
  }

  .compact-footer{
    padding-top:18px!important;
  }
}


/* =========================================================
   synth.pixel v0.5.20 — VISUAL REPAIR / CLEAN REBUILD
   ========================================================= */

/* ---------- HEADER: brand left, clean nav right ---------- */
.site-header{
  width:min(1180px,calc(100% - 24px))!important;
  height:62px!important;
  min-height:62px!important;
  padding:0 12px 0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  border-radius:18px!important;
  background:rgb(var(--sp-tone-0-rgb,7 7 7) / 0.93)!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.07)!important;
  box-shadow:0 14px 48px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.24)!important;
}

.site-header::before{
  background:linear-gradient(90deg,rgb(var(--sp-accent-rgb,255 126 55) / 0.035),transparent 24%)!important;
}

.site-header .brand{
  flex:0 0 auto!important;
}

.site-header .brand-mark{
  width:39px!important;
  height:39px!important;
  flex-basis:39px!important;
  border-radius:12px!important;
}

.site-header .brand-copy strong{
  font-size:.88rem!important;
}

.site-header .brand-copy small{
  font-size:.4rem!important;
}

.site-header .main-nav{
  position:relative!important;
  flex:0 1 auto!important;
  justify-self:auto!important;
  margin-left:auto!important;
  width:auto!important;
  max-width:none!important;
  padding:0!important;
  gap:2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  overflow:visible!important;
}

.site-header .main-nav a{
  min-height:40px!important;
  padding:0 9px!important;
  border-radius:10px!important;
  color:var(--sp-tone-6,#807873)!important;
  font-size:.6rem!important;
  gap:5px!important;
}

.site-header .main-nav a small{
  font-size:.39rem!important;
}

.site-header .main-nav a:hover{
  background:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.025)!important;
}

.site-header .main-nav a.is-active{
  color:var(--sp-tone-9,#fff)!important;
  background:transparent!important;
}

.site-header .main-nav a.is-active::before{
  width:16px!important;
  bottom:3px!important;
  opacity:1!important;
}

.site-header.v16-scrolled{
  width:min(1140px,calc(100% - 18px))!important;
  height:58px!important;
  min-height:58px!important;
}

/* ---------- HERO: remove giant dead space ---------- */
.hero{
  min-height:auto!important;
  padding-top:52px!important;
  padding-bottom:34px!important;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px)!important;
  gap:clamp(34px,5vw,64px)!important;
}

.hero-copy{
  align-self:center!important;
}

.hero-copy h1{
  max-width:780px!important;
  font-size:clamp(3.8rem,7.4vw,7rem)!important;
}

.hero-visual{
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* ---------- FEATURED: completely refreshed ---------- */
.hero-frame.hero-featured{
  position:relative!important;
  width:min(100%,390px)!important;
  aspect-ratio:4/5!important;
  min-height:0!important;
  max-height:none!important;
  border-radius:24px!important;
  overflow:hidden!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.085)!important;
  background:var(--sp-tone-0,#0a0a0a)!important;
  box-shadow:
    0 30px 90px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.38),
    0 0 0 1px rgb(var(--sp-accent-rgb,255 126 55) / 0.025) inset!important;
  animation:none!important;
  transform:none!important;
  isolation:isolate!important;
}

.hero-frame.hero-featured::before{
  content:"FOTOGRAFÍA DESTACADA"!important;
  position:absolute!important;
  z-index:6!important;
  top:12px!important;
  left:12px!important;
  right:auto!important;
  bottom:auto!important;
  width:auto!important;
  height:auto!important;
  padding:7px 9px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.09)!important;
  border-radius:999px!important;
  background:rgb(var(--sp-tone-0-rgb,5 5 5) / 0.64)!important;
  backdrop-filter:blur(12px)!important;
  color:var(--sp-accent-soft,#ff9558)!important;
  font-size:.45rem!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  opacity:1!important;
  filter:none!important;
  animation:none!important;
  pointer-events:none!important;
}

.hero-frame.hero-featured::after{
  content:""!important;
  position:absolute!important;
  z-index:2!important;
  inset:0!important;
  background:
    linear-gradient(to top,rgb(var(--sp-tone-0-rgb,3 3 3) / 0.9),rgb(var(--sp-tone-0-rgb,3 3 3) / 0.08) 44%,transparent 68%),
    linear-gradient(to right,rgb(var(--sp-accent-rgb,255 109 31) / 0.055),transparent 28%)!important;
  opacity:1!important;
  animation:none!important;
  transform:none!important;
  pointer-events:none!important;
}

.hero-featured-photo{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center top!important;
  z-index:1!important;
  filter:none!important;
  transition:transform .55s cubic-bezier(.2,.78,.2,1),filter .3s ease!important;
}

.hero-featured:hover .hero-featured-photo{
  transform:scale(1.025)!important;
  filter:saturate(1.035)!important;
}

.hero-featured-overlay{
  position:absolute!important;
  z-index:5!important;
  inset:auto 0 0!important;
  min-height:112px!important;
  padding:40px 16px 15px!important;
  display:flex!important;
  align-items:end!important;
  justify-content:space-between!important;
  gap:14px!important;
  background:transparent!important;
}

.hero-featured-overlay>div:first-child{
  min-width:0!important;
  display:grid!important;
  gap:4px!important;
}

.hero-featured-overlay .shot-index{
  display:none!important;
}

.hero-featured-overlay strong{
  color:var(--sp-tone-9,#fff)!important;
  font-size:1.5rem!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
}

.hero-featured-overlay small{
  color:var(--sp-tone-7,#a49b94)!important;
  font-size:.62rem!important;
}

.hero-hearts{
  flex:0 0 auto!important;
  min-height:34px!important;
  padding:0 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.09)!important;
  border-radius:999px!important;
  background:rgb(var(--sp-tone-0-rgb,7 7 7) / 0.72)!important;
  backdrop-filter:blur(10px)!important;
  color:var(--sp-accent,#ff8045)!important;
  font-size:.7rem!important;
}

.orbit,
.floating-logo{
  display:none!important;
}

/* ---------- SECTION RHYTHM: genuinely tighter ---------- */
.section{
  padding-block:38px!important;
}

.hero + .section,
main#main > .section:first-of-type{
  padding-top:36px!important;
}

.section-heading{
  margin-bottom:18px!important;
  grid-template-columns:minmax(0,1fr) minmax(220px,360px)!important;
  gap:20px!important;
}

.section-heading h2{
  max-width:100%!important;
  overflow:visible!important;
  white-space:normal!important;
  word-break:normal!important;
  text-wrap:balance!important;
}

/* Accreditation title must never clip */
#acreditaciones .section-heading{
  display:block!important;
}

#acreditaciones .section-heading>div{
  width:100%!important;
}

#acreditaciones .section-heading h2{
  width:100%!important;
  max-width:none!important;
  font-size:clamp(2.8rem,6.8vw,5.4rem)!important;
  line-height:.9!important;
  overflow:visible!important;
}

#acreditaciones .section-heading>p{
  max-width:620px!important;
  margin-top:12px!important;
}

/* Smaller gap around identity/contact zone */
#contacto{
  padding-bottom:30px!important;
}

.identity-strip.section{
  margin-top:24px!important;
  margin-bottom:0!important;
  padding-block:0!important;
}

.identity-strip{
  min-height:0!important;
}

.identity-mark img{
  max-width:320px!important;
}

/* ---------- IDENTITY PANEL: avoid giant heavy block ---------- */
.identity-strip{
  width:min(1120px,calc(100% - 28px))!important;
  padding:34px!important;
  display:grid!important;
  grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr)!important;
  gap:44px!important;
  align-items:center!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.065)!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 10% 50%,rgb(var(--sp-accent-rgb,255 105 28) / 0.055),transparent 30%),
    var(--sp-tone-0,#0b0b0b)!important;
  box-shadow:0 20px 64px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.2)!important;
}

.identity-copy h2{
  margin:8px 0 14px!important;
  font-size:clamp(2.2rem,4.6vw,4.3rem)!important;
  line-height:.94!important;
  letter-spacing:-.055em!important;
}

.identity-copy>p:not(.eyebrow):not(.logo-credit){
  color:var(--sp-tone-6,#908880)!important;
  font-size:.78rem!important;
  line-height:1.65!important;
}

/* ---------- FOOTER: new two-row composition ---------- */
.site-footer.compact-footer{
  width:min(1120px,calc(100% - 28px))!important;
  margin:34px auto 28px!important;
  padding:0!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.065)!important;
  border-radius:20px!important;
  overflow:hidden!important;
  background:
    linear-gradient(135deg,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.014),transparent 48%),
    var(--sp-tone-0,#080808)!important;
  box-shadow:0 18px 54px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.18)!important;
}

.site-footer.compact-footer::before,
.site-footer.compact-footer::after{
  display:none!important;
}

.compact-footer-inner{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
}

.footer-v20-top{
  min-height:86px!important;
  padding:18px 22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  border-bottom:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.055)!important;
}

.footer-v20-brand{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  color:inherit!important;
  text-decoration:none!important;
}

.footer-v20-brand .compact-footer-logo{
  width:42px!important;
  height:42px!important;
  margin:0!important;
  flex:0 0 42px!important;
  border-radius:12px!important;
}

.footer-v20-brand>span:last-child{
  display:grid!important;
  gap:2px!important;
}

.footer-v20-brand strong{
  color:var(--sp-tone-9,#f0e9e4)!important;
  font-size:.84rem!important;
  line-height:1!important;
}

.footer-v20-brand small{
  color:var(--sp-tone-5,#706963)!important;
  font-size:.42rem!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}

.footer-v20-top>p{
  margin:0!important;
  color:var(--sp-tone-6,#989089)!important;
  font-size:.72rem!important;
  font-weight:650!important;
  text-align:right!important;
}

.footer-v20-bottom{
  min-height:48px!important;
  padding:0 22px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  color:var(--sp-tone-5,#635d58)!important;
  font-size:.56rem!important;
}

.footer-v20-bottom span:nth-child(2){
  color:var(--sp-tone-6,#827a73)!important;
}

/* ---------- ANIMATION POLISH ---------- */
.hero-frame.hero-featured{
  animation:v20FeaturedIn .7s cubic-bezier(.2,.78,.2,1) both!important;
}

@keyframes v20FeaturedIn{
  from{opacity:0;transform:translateY(16px) scale(.985)}
  to{opacity:1;transform:none}
}

.site-header{
  animation:v20HeaderIn .45s cubic-bezier(.2,.78,.2,1) both!important;
}

@keyframes v20HeaderIn{
  from{opacity:0;transform:translate(-50%,-8px)}
  to{opacity:1;transform:translate(-50%,0)}
}

/* ---------- TABLET ---------- */
@media(max-width:980px){
  .site-header .main-nav a{
    padding-inline:7px!important;
    font-size:.55rem!important;
  }

  .hero{
    grid-template-columns:minmax(0,1fr) minmax(290px,360px)!important;
  }

  .hero-frame.hero-featured{
    width:min(100%,350px)!important;
  }

  .identity-strip{
    gap:30px!important;
  }
}

/* ---------- MOBILE ---------- */
@media(max-width:820px){
  .site-header{
    width:calc(100% - 12px)!important;
    height:58px!important;
    min-height:58px!important;
    padding:0 8px!important;
  }

  .site-header .main-nav{
    position:fixed!important;
    top:72px!important;
    left:8px!important;
    right:8px!important;
    margin:0!important;
    padding:8px!important;
    display:grid!important;
    gap:4px!important;
    border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.075)!important;
    border-radius:16px!important;
    background:rgb(var(--sp-tone-0-rgb,7 7 7) / 0.98)!important;
  }

  .site-header .main-nav a{
    min-height:46px!important;
    padding:0 12px!important;
    justify-content:flex-start!important;
    font-size:.74rem!important;
  }

  .hero{
    grid-template-columns:1fr!important;
    gap:28px!important;
    padding-top:38px!important;
    padding-bottom:28px!important;
  }

  .hero-frame.hero-featured{
    width:min(86vw,360px)!important;
  }

  .section{
    padding-block:32px!important;
  }

  .hero + .section,
  main#main > .section:first-of-type{
    padding-top:28px!important;
  }

  .section-heading{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-bottom:15px!important;
  }

  #acreditaciones .section-heading h2{
    font-size:clamp(2.6rem,13vw,4rem)!important;
  }

  .identity-strip.section{
    margin-top:20px!important;
  }

  .identity-strip{
    grid-template-columns:1fr!important;
    gap:18px!important;
    padding:24px!important;
    text-align:left!important;
  }

  .identity-mark{
    display:flex!important;
    justify-content:flex-start!important;
  }

  .identity-mark img{
    max-width:180px!important;
  }

  .footer-v20-top{
    align-items:flex-start!important;
    flex-direction:column!important;
  }

  .footer-v20-top>p{
    text-align:left!important;
  }

  .footer-v20-bottom{
    min-height:0!important;
    padding:14px 18px!important;
    flex-direction:column!important;
    align-items:flex-start!important;
  }
}

@media(max-width:560px){
  .section{
    padding-block:28px!important;
  }

  .hero{
    padding-bottom:22px!important;
  }

  .hero + .section,
  main#main > .section:first-of-type{
    padding-top:24px!important;
  }

  .hero-copy h1{
    font-size:clamp(3rem,15vw,4.5rem)!important;
  }

  .hero-frame.hero-featured{
    width:min(90vw,330px)!important;
    border-radius:20px!important;
  }

  .identity-strip{
    width:calc(100% - 16px)!important;
    padding:20px!important;
  }

  .site-footer.compact-footer{
    width:calc(100% - 16px)!important;
    margin-top:24px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .site-header,
  .hero-frame.hero-featured{
    animation:none!important;
  }
}


/* =========================================================
   synth.pixel v0.5.21 — PORTFOLIO REBUILD
   ========================================================= */

/* ---------- SHELL WIDTH ---------- */
body.portfolio-page .portfolio-gallery-shell{
  width:min(1500px,calc(100% - 28px))!important;
  margin:0 auto!important;
  padding:34px 0 54px!important;
}

/* ---------- PORTFOLIO HEADER ---------- */
body.portfolio-page .portfolio-header{
  width:min(1500px,calc(100% - 28px))!important;
  min-height:78px!important;
  margin:8px auto 0!important;
  padding:10px 14px!important;
  display:grid!important;
  grid-template-columns:minmax(240px,1fr) auto auto!important;
  align-items:center!important;
  gap:14px!important;
  border-radius:24px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.07)!important;
  background:rgb(var(--sp-tone-0-rgb,7 7 7) / 0.92)!important;
  box-shadow:0 20px 60px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.24)!important;
  backdrop-filter:blur(16px)!important;
}

body.portfolio-page .portfolio-header::after{
  opacity:.38!important;
}

body.portfolio-page .portfolio-brand{
  min-width:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}

body.portfolio-page .portfolio-brand .brand-mark{
  width:46px!important;
  height:46px!important;
  flex:0 0 46px!important;
  border-radius:14px!important;
}

body.portfolio-page .portfolio-brand .brand-copy{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}

body.portfolio-page .portfolio-brand .brand-copy strong{
  font-size:1rem!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
}

body.portfolio-page .portfolio-brand .brand-copy small{
  color:var(--sp-tone-6,#7c746e)!important;
  font-size:.5rem!important;
  font-weight:900!important;
  letter-spacing:.18em!important;
  text-transform:uppercase!important;
}

body.portfolio-page .portfolio-header-status{
  min-height:48px!important;
  padding:0 16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.08)!important;
  border-radius:999px!important;
  background:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.02)!important;
  color:var(--sp-tone-8,#dad0c9)!important;
  font-size:.74rem!important;
  font-weight:800!important;
  justify-self:center!important;
}

body.portfolio-page .portfolio-header-status i{
  width:8px!important;
  height:8px!important;
  border-radius:50%!important;
  background:var(--sp-accent,#ff7a30)!important;
  box-shadow:0 0 0 4px rgb(var(--sp-accent-rgb,255 122 48) / 0.12)!important;
}

body.portfolio-page .portfolio-back{
  min-height:52px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  border-radius:16px!important;
  border:1px solid rgb(var(--sp-accent-soft-rgb,255 149 79) / 0.16)!important;
  background:linear-gradient(135deg,var(--sp-accent,#ff8b3f),var(--sp-accent-soft,#ffb26b))!important;
  color:var(--sp-tone-0,#180800)!important;
  font-size:.86rem!important;
  font-weight:950!important;
  text-decoration:none!important;
  box-shadow:0 18px 34px rgb(var(--sp-accent-rgb,255 118 33) / 0.18)!important;
  justify-self:end!important;
  transition:transform .25s ease,box-shadow .25s ease,filter .25s ease!important;
}

body.portfolio-page .portfolio-back:hover{
  transform:translateY(-2px)!important;
  filter:saturate(1.03)!important;
  box-shadow:0 24px 44px rgb(var(--sp-accent-rgb,255 118 33) / 0.24)!important;
}

body.portfolio-page .portfolio-back span{
  font-size:1rem!important;
}

/* ---------- INTRO / TITLE BLOCK ---------- */
body.portfolio-page .portfolio-gallery-intro{
  margin:0 0 22px!important;
  padding:28px 30px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:
    "eyebrow count"
    "title count"
    "text count"!important;
  align-items:end!important;
  column-gap:32px!important;
  row-gap:10px!important;
  border-radius:30px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.07)!important;
  background:
    radial-gradient(circle at 90% 15%,rgb(var(--sp-accent-rgb,255 120 34) / 0.05),transparent 22rem),
    linear-gradient(150deg,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.022),rgb(var(--sp-tone-9-rgb,255 255 255) / 0.008)),
    var(--sp-tone-0,#090909)!important;
  box-shadow:0 24px 70px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.22)!important;
}

body.portfolio-page .portfolio-gallery-intro > .eyebrow{
  grid-area:eyebrow!important;
  margin:0!important;
  color:var(--sp-accent-soft,#ff9d55)!important;
  font-size:.58rem!important;
  font-weight:950!important;
  letter-spacing:.18em!important;
}

body.portfolio-page .portfolio-gallery-intro > h1{
  grid-area:title!important;
  margin:0!important;
  max-width:100%!important;
  color:var(--sp-tone-9,#f4ebe4)!important;
  font-size:clamp(3.4rem,7vw,6.3rem)!important;
  line-height:.9!important;
  letter-spacing:-.07em!important;
  text-transform:none!important;
}

body.portfolio-page .portfolio-gallery-intro > p:not(.eyebrow){
  grid-area:text!important;
  max-width:740px!important;
  margin:0!important;
  color:var(--sp-tone-6,#9a9189)!important;
  font-size:1rem!important;
  line-height:1.6!important;
}

body.portfolio-page .portfolio-gallery-intro > .portfolio-gallery-count{
  grid-area:count!important;
  align-self:center!important;
  min-width:220px!important;
  padding:18px 20px!important;
  display:grid!important;
  gap:5px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.075)!important;
  border-radius:22px!important;
  background:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.018)!important;
  color:var(--sp-tone-6,#9a9088)!important;
  box-shadow:inset 0 1px 0 rgb(var(--sp-tone-9-rgb,255 255 255) / 0.03)!important;
}

body.portfolio-page .portfolio-gallery-intro > .portfolio-gallery-count strong{
  color:var(--sp-tone-9,#fff6ef)!important;
  font-size:2rem!important;
  line-height:1!important;
  letter-spacing:-.05em!important;
}

/* ---------- GRID / CARDS ---------- */
body.portfolio-page .portfolio-full-grid{
  margin-top:0!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:dense!important;
  gap:18px!important;
}

body.portfolio-page .portfolio-full-grid .photo-card{
  position:relative!important;
  min-height:0!important;
  height:clamp(330px,31vw,470px)!important;
  border-radius:24px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.075)!important;
  background:var(--sp-tone-0,#0c0c0c)!important;
  overflow:hidden!important;
  box-shadow:0 18px 46px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.22)!important;
  transform:none!important;
  transition:transform .3s cubic-bezier(.2,.78,.2,1),box-shadow .3s ease,border-color .3s ease!important;
}

body.portfolio-page .portfolio-full-grid .photo-card.wide{
  grid-column:span 2!important;
}

body.portfolio-page .portfolio-full-grid .photo-card.tall{
  height:clamp(390px,38vw,560px)!important;
}

body.portfolio-page .portfolio-full-grid .photo-card::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(180deg,transparent 42%,rgb(var(--sp-tone-0-rgb,0 0 0) / 0.14) 58%,rgb(var(--sp-tone-0-rgb,0 0 0) / 0.88) 100%)!important;
  z-index:1!important;
  opacity:1!important;
  pointer-events:none!important;
}

body.portfolio-page .portfolio-full-grid .photo-card::after{
  display:none!important;
}

body.portfolio-page .portfolio-full-grid .photo-card:hover,
body.portfolio-page .portfolio-full-grid .photo-card:focus-visible{
  transform:translateY(-6px)!important;
  border-color:rgb(var(--sp-accent-rgb,255 134 55) / 0.3)!important;
  box-shadow:0 26px 58px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.3),0 8px 18px rgb(var(--sp-accent-rgb,255 105 20) / 0.08)!important;
}

body.portfolio-page .portfolio-full-grid .photo-card .portfolio-photo{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  transform:none!important;
  transition:transform .55s cubic-bezier(.2,.78,.2,1),filter .35s ease!important;
}

body.portfolio-page .portfolio-full-grid .photo-card:hover .portfolio-photo{
  transform:scale(1.04)!important;
  filter:saturate(1.03)!important;
}

body.portfolio-page .portfolio-full-grid .photo-card .photo-overlay{
  position:absolute!important;
  z-index:2!important;
  inset:auto 0 0!important;
  padding:18px 18px 17px!important;
  display:grid!important;
  gap:6px!important;
  background:transparent!important;
  transform:none!important;
}

body.portfolio-page .portfolio-full-grid .photo-card .photo-overlay p{
  margin:0!important;
  color:var(--sp-accent-soft,#ff9d55)!important;
  font-size:.56rem!important;
  font-weight:950!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}

body.portfolio-page .portfolio-full-grid .photo-card .photo-overlay h3{
  margin:0!important;
  color:var(--sp-tone-9,#fff7f0)!important;
  font-size:clamp(1.25rem,1.5vw,1.58rem)!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
}

body.portfolio-page .portfolio-full-grid .photo-card .photo-overlay span{
  margin:0!important;
  color:var(--sp-tone-7,#b3aaa3)!important;
  font-size:.72rem!important;
  line-height:1.35!important;
}

/* ---------- FOOTER ON PORTFOLIO PAGE ---------- */
body.portfolio-page .compact-portfolio-footer{
  width:min(1500px,calc(100% - 28px))!important;
  margin:26px auto 20px!important;
  padding:16px 18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.06)!important;
  border-radius:20px!important;
  background:var(--sp-tone-0,#080808)!important;
}

/* ---------- LIGHTBOX / VIEWER REBUILD ---------- */
body.portfolio-page dialog.session-lightbox{
  padding:14px!important;
  background:rgb(var(--sp-tone-0-rgb,2 2 2) / 0.88)!important;
  backdrop-filter:blur(20px)!important;
}

body.portfolio-page dialog.session-lightbox::backdrop{
  background:rgb(var(--sp-tone-0-rgb,0 0 0) / 0.86)!important;
}

body.portfolio-page dialog.session-lightbox .lightbox-close{
  position:fixed!important;
  top:22px!important;
  right:22px!important;
  width:50px!important;
  height:50px!important;
  border-radius:16px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.085)!important;
  background:rgb(var(--sp-tone-0-rgb,9 9 9) / 0.9)!important;
  color:var(--sp-tone-9,#fff)!important;
  font-size:1.85rem!important;
  line-height:1!important;
  box-shadow:0 14px 40px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.28)!important;
  z-index:50!important;
}

body.portfolio-page dialog.session-lightbox .session-viewer{
  width:min(1500px,calc(100vw - 28px))!important;
  height:min(930px,calc(100dvh - 28px))!important;
  display:grid!important;
  grid-template-rows:auto 1fr auto!important;
  border-radius:30px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.07)!important;
  background:
    radial-gradient(circle at 50% 0%,rgb(var(--sp-accent-rgb,255 122 48) / 0.04),transparent 24rem),
    linear-gradient(160deg,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.02),rgb(var(--sp-tone-9-rgb,255 255 255) / 0.008)),
    var(--sp-tone-0,#090909)!important;
  box-shadow:0 48px 140px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.5)!important;
  overflow:hidden!important;
}

body.portfolio-page dialog.session-lightbox .session-viewer-header{
  min-height:96px!important;
  padding:18px 24px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:22px!important;
  border-bottom:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.055)!important;
  background:rgb(var(--sp-tone-0-rgb,0 0 0) / 0.18)!important;
}

body.portfolio-page dialog.session-lightbox .session-viewer-header::after{
  display:none!important;
}

body.portfolio-page dialog.session-lightbox .session-head-copy{
  min-width:0!important;
  display:grid!important;
  gap:6px!important;
}

body.portfolio-page dialog.session-lightbox #portfolioSessionMeta{
  margin:0!important;
  color:var(--sp-accent-soft,#ff9952)!important;
  font-size:.58rem!important;
  font-weight:950!important;
  letter-spacing:.16em!important;
  text-transform:uppercase!important;
}

body.portfolio-page dialog.session-lightbox #portfolioSessionTitle{
  margin:0!important;
  color:var(--sp-tone-9,#fff5ee)!important;
  font-size:clamp(1.9rem,3vw,3rem)!important;
  line-height:.95!important;
  letter-spacing:-.045em!important;
}

body.portfolio-page dialog.session-lightbox .session-subline{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px 14px!important;
}

body.portfolio-page dialog.session-lightbox #portfolioSessionSubtitle{
  color:var(--sp-tone-7,#c0b7af)!important;
  font-size:.84rem!important;
  font-style:normal!important;
}

body.portfolio-page dialog.session-lightbox .session-hint{
  color:var(--sp-tone-6,#7f7872)!important;
  font-size:.72rem!important;
  font-style:normal!important;
}

body.portfolio-page dialog.session-lightbox .session-head-side{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
}

body.portfolio-page dialog.session-lightbox .session-counter,
body.portfolio-page dialog.session-lightbox .session-chip{
  min-height:40px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.08)!important;
  border-radius:999px!important;
  background:rgb(var(--sp-tone-9-rgb,255 255 255) / 0.018)!important;
  color:var(--sp-tone-8,#d2c9c1)!important;
  font-size:.74rem!important;
  font-weight:850!important;
}

body.portfolio-page dialog.session-lightbox .session-stage{
  position:relative!important;
  min-height:0!important;
  padding:18px 20px!important;
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr) 64px!important;
  align-items:center!important;
  gap:14px!important;
  background:
    radial-gradient(circle at 50% 48%,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.035),transparent 34rem),
    linear-gradient(180deg,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.012),transparent 38%),
    var(--sp-tone-0,#060606)!important;
}

body.portfolio-page dialog.session-lightbox .session-stage::before,
body.portfolio-page dialog.session-lightbox .session-stage::after{
  display:none!important;
}

body.portfolio-page dialog.session-lightbox .session-stage-backdrop{
  position:absolute!important;
  inset:16px!important;
  border-radius:26px!important;
  background:
    radial-gradient(circle at 50% 50%,rgb(var(--sp-tone-9-rgb,255 255 255) / 0.02),transparent 58%),
    linear-gradient(120deg,rgb(var(--sp-accent-rgb,255 119 33) / 0.05),transparent 28%,transparent 72%,rgba(73,100,255,.04))!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.04)!important;
  filter:none!important;
  opacity:1!important;
}

body.portfolio-page dialog.session-lightbox .session-nav{
  position:relative!important;
  z-index:3!important;
  width:54px!important;
  height:54px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:16px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.075)!important;
  background:rgb(var(--sp-tone-0-rgb,8 8 8) / 0.82)!important;
  color:var(--sp-tone-9,#fff)!important;
  font-size:2rem!important;
  box-shadow:0 16px 42px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.22)!important;
  transform:none!important;
}

body.portfolio-page dialog.session-lightbox .session-image-shell{
  position:relative!important;
  z-index:2!important;
  width:min(100%,980px)!important;
  height:100%!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
}

body.portfolio-page dialog.session-lightbox .session-stage > #portfolioSessionImage,
body.portfolio-page dialog.session-lightbox .session-stage > .session-image-shell > #portfolioSessionImage{
  width:auto!important;
  height:auto!important;
  max-width:min(100%,920px)!important;
  max-height:min(calc(100dvh - 270px),100%)!important;
  object-fit:contain!important;
  border-radius:24px!important;
  background:var(--sp-tone-0,#080808)!important;
  box-shadow:0 30px 80px rgb(var(--sp-tone-0-rgb,0 0 0) / 0.32)!important;
}

body.portfolio-page dialog.session-lightbox .media-watermark{
  right:18px!important;
  bottom:18px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.07)!important;
  background:rgb(var(--sp-tone-0-rgb,8 8 8) / 0.72)!important;
  backdrop-filter:blur(10px)!important;
  color:var(--sp-tone-8,#d3cbc5)!important;
  font-size:.64rem!important;
  font-weight:850!important;
}

body.portfolio-page dialog.session-lightbox .session-filmstrip{
  padding:14px 18px 16px!important;
  border-top:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.055)!important;
  background:rgb(var(--sp-tone-0-rgb,0 0 0) / 0.16)!important;
}

body.portfolio-page dialog.session-lightbox .session-filmstrip-head{
  margin-bottom:10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}

body.portfolio-page dialog.session-lightbox .session-filmstrip-head span:first-child{
  color:var(--sp-tone-9,#fff4ed)!important;
  font-size:.68rem!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}

body.portfolio-page dialog.session-lightbox .session-filmstrip-note{
  color:var(--sp-tone-6,#7f7871)!important;
  font-size:.68rem!important;
}

body.portfolio-page dialog.session-lightbox .session-thumbs{
  padding:0!important;
  display:flex!important;
  gap:10px!important;
  overflow:auto!important;
  scroll-snap-type:x proximity!important;
}

body.portfolio-page dialog.session-lightbox .session-thumbs .thumb-btn{
  width:72px!important;
  height:92px!important;
  padding:0!important;
  flex:0 0 auto!important;
  border-radius:16px!important;
  border:1px solid rgb(var(--sp-tone-9-rgb,255 255 255) / 0.08)!important;
  overflow:hidden!important;
  background:var(--sp-tone-1,#0d0d0d)!important;
  opacity:.72!important;
  transform:none!important;
  transition:opacity .2s ease,border-color .2s ease,transform .2s ease!important;
}

body.portfolio-page dialog.session-lightbox .session-thumbs .thumb-btn img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

body.portfolio-page dialog.session-lightbox .session-thumbs .thumb-btn.is-active{
  opacity:1!important;
  border-color:rgb(var(--sp-accent-rgb,255 140 58) / 0.32)!important;
  box-shadow:0 0 0 2px rgb(var(--sp-accent-rgb,255 120 34) / 0.12)!important;
}

body.portfolio-page dialog.session-lightbox .session-thumbs .thumb-btn:hover{
  opacity:1!important;
  transform:translateY(-2px)!important;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1180px){
  body.portfolio-page .portfolio-full-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.portfolio-page .portfolio-full-grid .photo-card.wide{
    grid-column:span 2!important;
  }
}

@media(max-width:920px){
  body.portfolio-page .portfolio-header{
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "brand back"
      "status status"!important;
  }
  body.portfolio-page .portfolio-brand{grid-area:brand!important}
  body.portfolio-page .portfolio-back{grid-area:back!important}
  body.portfolio-page .portfolio-header-status{
    grid-area:status!important;
    justify-self:start!important;
  }

  body.portfolio-page .portfolio-gallery-intro{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "eyebrow"
      "title"
      "text"
      "count"!important;
  }

  body.portfolio-page .portfolio-full-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body.portfolio-page dialog.session-lightbox .session-viewer{
    width:calc(100vw - 18px)!important;
    height:calc(100dvh - 18px)!important;
  }

  body.portfolio-page dialog.session-lightbox .session-viewer-header{
    padding:16px 18px!important;
    flex-direction:column!important;
    align-items:flex-start!important;
  }

  body.portfolio-page dialog.session-lightbox .session-head-side{
    width:100%!important;
    justify-content:flex-start!important;
  }

  body.portfolio-page dialog.session-lightbox .session-stage{
    grid-template-columns:52px minmax(0,1fr) 52px!important;
    padding:14px!important;
  }
}

@media(max-width:640px){
  body.portfolio-page .portfolio-gallery-shell,
  body.portfolio-page .portfolio-header,
  body.portfolio-page .compact-portfolio-footer{
    width:calc(100% - 16px)!important;
  }

  body.portfolio-page .portfolio-header{
    padding:10px!important;
    gap:10px!important;
    border-radius:18px!important;
  }

  body.portfolio-page .portfolio-back{
    min-height:46px!important;
    padding:0 14px!important;
    font-size:.76rem!important;
  }

  body.portfolio-page .portfolio-gallery-intro{
    padding:22px 18px!important;
    border-radius:24px!important;
  }

  body.portfolio-page .portfolio-gallery-intro > h1{
    font-size:clamp(2.7rem,14vw,4.4rem)!important;
  }

  body.portfolio-page .portfolio-gallery-intro > p:not(.eyebrow){
    font-size:.9rem!important;
  }

  body.portfolio-page .portfolio-full-grid{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }

  body.portfolio-page .portfolio-full-grid .photo-card,
  body.portfolio-page .portfolio-full-grid .photo-card.tall,
  body.portfolio-page .portfolio-full-grid .photo-card.wide{
    grid-column:auto!important;
    height:min(72vh,520px)!important;
  }

  body.portfolio-page .compact-portfolio-footer{
    flex-direction:column!important;
    align-items:flex-start!important;
  }

  body.portfolio-page dialog.session-lightbox{
    padding:8px!important;
  }

  body.portfolio-page dialog.session-lightbox .lightbox-close{
    top:14px!important;
    right:14px!important;
    width:44px!important;
    height:44px!important;
    border-radius:14px!important;
  }

  body.portfolio-page dialog.session-lightbox .session-viewer{
    width:calc(100vw - 8px)!important;
    height:calc(100dvh - 8px)!important;
    border-radius:22px!important;
  }

  body.portfolio-page dialog.session-lightbox .session-viewer-header{
    padding:14px 14px 12px!important;
  }

  body.portfolio-page dialog.session-lightbox #portfolioSessionTitle{
    font-size:clamp(1.45rem,7vw,2rem)!important;
  }

  body.portfolio-page dialog.session-lightbox .session-subline{
    gap:8px!important;
  }

  body.portfolio-page dialog.session-lightbox .session-stage{
    grid-template-columns:1fr!important;
    grid-template-rows:auto 1fr auto!important;
    gap:10px!important;
    padding:10px!important;
  }

  body.portfolio-page dialog.session-lightbox .session-stage-backdrop{
    inset:10px!important;
    border-radius:18px!important;
  }

  body.portfolio-page dialog.session-lightbox .session-nav.prev{
    order:2!important;
    justify-self:start!important;
  }

  body.portfolio-page dialog.session-lightbox .session-image-shell{
    order:1!important;
  }

  body.portfolio-page dialog.session-lightbox .session-nav.next{
    order:3!important;
    justify-self:end!important;
  }

  body.portfolio-page dialog.session-lightbox .session-stage > #portfolioSessionImage,
  body.portfolio-page dialog.session-lightbox .session-stage > .session-image-shell > #portfolioSessionImage{
    max-width:100%!important;
    max-height:calc(100dvh - 360px)!important;
    border-radius:18px!important;
  }

  body.portfolio-page dialog.session-lightbox .session-filmstrip{
    padding:12px!important;
  }

  body.portfolio-page dialog.session-lightbox .session-thumbs .thumb-btn{
    width:62px!important;
    height:82px!important;
    border-radius:14px!important;
  }
}
