/* =========================================================
   DHANDANG STUDIO / HERO BLEND REDESIGN
   Loaded after css/style.css so this remains a reversible patch.
   ========================================================= */

/* A calmer brand background with depth rather than a flat orange field. */
.hero{
  --hero-max:clamp(1540px,86vw,1840px);
  --hero-bleed:max(var(--gutter),calc((100vw - var(--hero-max))/2));
  background:
    radial-gradient(circle at 91% 16%,rgba(255,244,218,.22) 0 10%,rgba(255,244,218,0) 31%),
    radial-gradient(circle at 69% 84%,rgba(111,55,9,.10),rgba(111,55,9,0) 34%),
    linear-gradient(108deg,#f2a00d 0%,#f4a30f 37%,#f6aa18 64%,#eda00f 100%);
  padding-top:0;
  border-bottom:0;
}
.hero .brand-grid{opacity:.42}
.hero .orb{opacity:.46}
.hero .orb-a{right:-145px;top:-175px;width:470px;height:470px}
.hero .orb-b{opacity:.24}
.hero .cross-a{right:7%;top:10%}
.hero .cross-c{opacity:.72}

/* Wider editorial composition. The featured work behaves like part of the hero,
   not a separate card placed next to it. */
.hero-inner{
  width:min(var(--hero-max),100%);
  min-height:clamp(570px,33vw,710px);
  grid-template-columns:minmax(420px,.76fr) minmax(0,1.24fr);
  gap:0;
  align-items:stretch;
}
.hero-copy{
  position:relative;
  z-index:6;
  align-self:center;
  max-width:620px;
  padding:70px 34px 70px 0;
}
.hero .kicker{margin-bottom:18px;color:#66431d}
.hero h1{
  max-width:620px;
  font-size:clamp(39px,3.15vw,55px);
  line-height:1.23;
  text-wrap:balance;
}
.hero h1 span{
  display:block;
  overflow-wrap:normal;
  word-break:normal;
}
html[lang="id"] .hero h1{
  max-width:620px;
  font-size:clamp(34px,2.75vw,48px);
}
.hero-text{max-width:470px;margin-top:23px}

/* Featured work is now a cinematic visual plane. */
.showcase{
  position:relative;
  z-index:2;
  min-width:0;
  width:auto;
  max-width:none;
  min-height:clamp(570px,33vw,710px);
  justify-self:stretch;
  align-self:stretch;
  --hero-overlap:clamp(62px,4vw,104px);
  width:calc(100% + var(--hero-overlap) + var(--hero-bleed));
  margin-left:calc(var(--hero-overlap) * -1);
  margin-right:calc(var(--hero-bleed) * -1);
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:hidden;
  isolation:isolate;
}
.showcase-stage{
  position:absolute;
  inset:0;
  min-height:100%;
  aspect-ratio:auto;
  background:#1d1a17;
}
.showcase-slide{isolation:isolate}
.showcase-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.012);
  filter:saturate(.96) contrast(1.02);
  transition:opacity .38s ease,transform 7s ease;
}
.showcase-slide.active img{transform:scale(1.045)}

/* The left side of every image dissolves into the orange brand field. */
.showcase-slide::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      #f4a30f 0%,
      rgba(244,163,15,.94) 5%,
      rgba(244,163,15,.68) 13%,
      rgba(244,163,15,.30) 22%,
      rgba(244,163,15,.08) 32%,
      rgba(20,18,16,0) 43%),
    linear-gradient(0deg,rgba(17,15,13,.48) 0%,rgba(17,15,13,.06) 34%,rgba(17,15,13,.02) 100%);
}

/* Small glass labels replace the former window chrome. */
.showcase-bar{
  position:absolute;
  z-index:7;
  top:30px;
  right:34px;
  width:auto;
  height:auto;
  min-height:0;
  padding:10px 12px;
  gap:14px;
  background:rgba(31,28,25,.66);
  border:1px solid rgba(255,255,255,.18);
  border-radius:2px;
  box-shadow:0 8px 28px rgba(18,15,12,.16);
  backdrop-filter:blur(10px);
}
.viewer-label b{color:#ffb427}
.viewer-count{color:#ded6ce}

.showcase-caption{
  z-index:6;
  left:auto;
  right:36px;
  bottom:91px;
  width:min(460px,64%);
  padding:0;
  gap:8px;
  text-align:right;
  align-items:flex-end;
  background:none;
  color:#fff;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.62));
}
.showcase-caption span{
  color:#ffc24b;
  font-size:7px;
  letter-spacing:.25px;
}
.showcase-caption strong{
  max-width:430px;
  font-size:clamp(19px,1.45vw,25px);
  line-height:1.22;
  color:#fff;
}

.showcase-controls{
  position:absolute;
  z-index:8;
  right:34px;
  bottom:29px;
  width:auto;
  height:auto;
  padding:0;
  gap:10px;
  background:none;
  border:0;
}
.showcase-controls button{
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(24,22,20,.62);
  color:#fff;
  backdrop-filter:blur(9px);
  transition:background .18s ease,transform .18s ease,border-color .18s ease;
}
.showcase-controls button:hover{
  background:#f5a313;
  border-color:#f5a313;
  color:#252321;
  transform:translateY(-2px);
}
.showcase-dots{gap:7px}
.showcase-dots i{
  width:18px;
  height:3px;
  background:rgba(255,255,255,.32);
  transition:width .18s ease,background .18s ease;
}
.showcase-dots i.active{width:28px;background:#f5a313}

/* The capability rail now feels like the intentional end of the composition. */
.capability-strip{
  margin-top:0;
  border-top:1px solid rgba(255,255,255,.06);
  box-shadow:0 -1px 0 rgba(37,35,33,.12);
}

/* Large desktop / 2K / ultrawide: keep the composition full-bleed instead of
   allowing a hard orange cliff to appear after the featured image. */
@media(min-width:1800px){
  .hero-copy{max-width:670px;padding-right:48px}
  .hero h1{font-size:clamp(48px,2.7vw,60px)}
  html[lang="id"] .hero h1{font-size:clamp(41px,2.35vw,53px)}
  .showcase-bar{right:clamp(34px,2.1vw,54px)}
  .showcase-caption{right:clamp(36px,2.25vw,60px);width:min(500px,58%)}
  .showcase-controls{right:clamp(34px,2.1vw,54px)}
}

/* Tablet: stack naturally and blend from orange into the image vertically. */
@media(max-width:1120px){
  .hero-inner{
    min-height:0;
    grid-template-columns:1fr;
    gap:0;
  }
  .hero-copy{
    width:min(760px,100%);
    max-width:none;
    padding:62px 0 30px;
  }
  .hero h1,html[lang="id"] .hero h1{max-width:700px}
  .showcase{
    width:calc(100% + (var(--gutter) * 2));
    min-height:clamp(390px,52vw,560px);
    margin-left:calc(var(--gutter) * -1);
    margin-right:calc(var(--gutter) * -1);
  }
  .showcase-slide::after{
    background:
      linear-gradient(180deg,
        #f4a30f 0%,
        rgba(244,163,15,.90) 7%,
        rgba(244,163,15,.46) 19%,
        rgba(244,163,15,.10) 35%,
        rgba(244,163,15,0) 49%),
      linear-gradient(0deg,rgba(17,15,13,.50) 0%,rgba(17,15,13,.04) 46%,rgba(17,15,13,0) 100%);
  }
}

/* Phones: keep the cinematic image, but simplify overlays and controls. */
@media(max-width:720px){
  .hero-copy{padding:48px 0 24px}
  .hero h1,html[lang="id"] .hero h1{
    max-width:100%;
    font-size:clamp(27px,8vw,39px);
    line-height:1.29;
  }
  html[lang="id"] .hero h1{font-size:clamp(24px,7.1vw,35px)}
  .hero-text{max-width:540px}
  .showcase{
    width:calc(100% + 36px);
    min-height:390px;
    margin-left:-18px;
    margin-right:-18px;
  }
  .showcase-bar{top:18px;right:18px;padding:8px 9px}
  .viewer-label>span:last-child{max-width:130px}
  .showcase-caption{
    left:18px;
    right:18px;
    bottom:75px;
    width:auto;
    align-items:flex-start;
    text-align:left;
  }
  .showcase-caption strong{font-size:18px}
  .showcase-controls{right:18px;bottom:20px}
}

@media(max-width:480px){
  .hero-copy{padding-top:42px}
  .showcase{min-height:330px}
  .showcase-bar .viewer-label>span:nth-child(2),
  .showcase-bar .viewer-label>span:last-child{display:none}
  .showcase-bar{top:14px;right:14px;padding:8px 10px}
  .showcase-caption{left:14px;right:14px;bottom:66px}
  .showcase-caption span{font-size:6px}
  .showcase-caption strong{font-size:16px}
  .showcase-controls{right:14px;bottom:16px;gap:8px}
  .showcase-controls button{width:34px;height:34px}
  .showcase-dots i{width:12px}
  .showcase-dots i.active{width:20px}
}

@media(prefers-reduced-motion:reduce){
  .showcase-slide img,.showcase-slide.active img{transform:none!important}
}

/* Keep the hero visually clean even if an older index.html still contains
   the legacy DHANDANG / FEATURED WORK / 01-04 bar. */
.showcase-bar{
  display:none!important;
}

/* =========================================================
   MOBILE HERO COMPOSITION POLISH
   Reduce vertical density and keep the featured work compact.
   ========================================================= */
@media(max-width:720px){
  .hero-copy{
    padding:38px 0 18px;
  }

  .hero .kicker{
    margin-bottom:12px;
  }

  .hero-text{
    margin-top:17px;
    margin-bottom:0;
    font-size:15px;
    line-height:1.5;
  }

  .showcase{
    min-height:270px;
  }

  .showcase-slide::after{
    background:
      linear-gradient(180deg,
        #f4a30f 0%,
        rgba(244,163,15,.74) 5%,
        rgba(244,163,15,.30) 13%,
        rgba(244,163,15,.08) 20%,
        rgba(244,163,15,0) 28%),
      linear-gradient(0deg,
        rgba(17,15,13,.58) 0%,
        rgba(17,15,13,.18) 34%,
        rgba(17,15,13,0) 62%);
  }

  .showcase-caption{
    left:14px;
    right:92px;
    bottom:54px;
    gap:5px;
  }

  .showcase-caption span{
    font-size:5.8px;
    line-height:1.5;
  }

  .showcase-caption strong{
    font-size:15px;
    line-height:1.25;
  }

  .showcase-controls{
    right:14px;
    bottom:13px;
    gap:7px;
  }

  .showcase-controls button{
    width:32px;
    height:32px;
  }

  .showcase-dots{
    gap:5px;
  }

  .showcase-dots i{
    width:11px;
    height:2px;
  }

  .showcase-dots i.active{
    width:18px;
  }

  /* Keep capabilities to one compact line instead of wrapping to two rows. */
  .capability-strip{
    min-height:48px;
    flex-wrap:nowrap!important;
    justify-content:flex-start;
    gap:0 12px;
    padding:13px 18px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .capability-strip::-webkit-scrollbar{
    display:none;
  }

  .capability-strip > *{
    flex:0 0 auto;
  }
}

@media(max-width:480px){
  .hero-copy{
    padding-top:34px;
    padding-bottom:16px;
  }

  .showcase{
    min-height:250px;
  }

  .showcase-caption{
    left:12px;
    right:80px;
    bottom:49px;
  }

  .showcase-controls{
    right:12px;
    bottom:11px;
  }

  .capability-strip{
    min-height:46px;
    padding:12px 14px;
    gap:0 10px;
    font-size:5.6px;
  }
}

/* Hero featured work: title only. Hide category / service subtitle such as
   ENVIRONMENT · LIGHTING · ATMOSPHERE while keeping the project title. */
.showcase-caption span{
  display:none!important;
}

.showcase-caption{
  gap:0!important;
}

/* =========================================================
   HERO END TRANSITION
   Remove the keyword capability rail and let the hero dissolve
   naturally into the cream Selected Work section.
   ========================================================= */
.capability-strip{
  display:none!important;
}

.hero{
  position:relative;
}

/* Soft transition instead of a hard edge between the hero artwork
   and the cream content section below. Controls/caption stay above it. */
.hero::after{
  content:"";
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  bottom:-1px;
  height:clamp(58px,5vw,92px);
  pointer-events:none;
  background:linear-gradient(
    180deg,
    rgba(255,250,242,0) 0%,
    rgba(255,250,242,.08) 28%,
    rgba(255,250,242,.34) 58%,
    rgba(255,250,242,.78) 84%,
    #fffaf2 100%
  );
}

@media(max-width:1120px){
  .hero::after{
    height:68px;
  }
}

@media(max-width:720px){
  .hero::after{
    height:48px;
    background:linear-gradient(
      180deg,
      rgba(255,250,242,0) 0%,
      rgba(255,250,242,.10) 30%,
      rgba(255,250,242,.48) 70%,
      #fffaf2 100%
    );
  }
}


/* FINAL HERO POLISH: short, crisp transition into Selected Work */
.hero::after{
  content:"";
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  bottom:-1px;
  height:26px!important;
  pointer-events:none;
  background:linear-gradient(
    180deg,
    rgba(255,250,242,0) 0%,
    rgba(255,250,242,.10) 48%,
    rgba(255,250,242,.46) 80%,
    #fffaf2 100%
  )!important;
}

@media(max-width:720px){
  .hero::after{
    height:18px!important;
    background:linear-gradient(
      180deg,
      rgba(255,250,242,0) 0%,
      rgba(255,250,242,.12) 52%,
      #fffaf2 100%
    )!important;
  }
}
