/* Modern heritage: heading, product exhibit, then a quiet information bar. */
.home-page .hero.hero-split {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:center;
  gap:0;
  width:100%;
  max-width:1920px;
  height:auto;
  min-height:calc(100svh - 100px);
  margin:0 auto;
  padding:30px clamp(24px,5.4vw,104px) 12px;
  background:#f1eee8;
  color:var(--brown);
  overflow:hidden;
}
.hero-split .hero-copy {
  position:relative;
  order:0;
  width:100%;
  max-width:none;
  padding:0;
  text-align:center;
}
.hero-split .hero-heading {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:138px;
  gap:0;
  margin:0 0 14px;
}
.hero-split .hero-copy h1 {
  margin:-.18em 0 0;
  font-size:clamp(44px,4.6vw,72px);
  line-height:1.2;
  white-space:normal;
  color:var(--brown);
  -webkit-text-stroke:0;
  text-shadow:none;
}
.hero-split .hero-copy h1.is-brand-title {
  margin:0;
  font-size:clamp(28px,2.8vw,42px);
  line-height:1.45;
}
.hero-split .hero-copy p.hero-tagline {
  display:flex;
  align-items:center;
  justify-content:center;
  height:1.6em;
  min-height:0;
  margin:0;
  font-size:clamp(19px,1.8vw,28px);
  font-weight:400;
  line-height:1.6;
  color:var(--brown);
  text-shadow:none;
}
.hero-split .hero-stage {min-width:0;width:100%}
.hero-split .hero-media {
  position:relative;
  inset:auto;
  width:100%;
  height:clamp(270px,47svh,520px);
  aspect-ratio:auto;
  background:transparent;
  overflow:hidden;
}
.hero-split .hero-slide {background:transparent}
.hero-split .hero-slide img {
  display:block;
  width:auto;
  max-width:min(100%,1120px);
  height:100%;
  margin:0 auto;
  object-fit:contain;
  object-position:center;
  transform:none;
}
.hero-split .hero-slide:not(.is-active):not(.is-leaving) {transition:none}
.hero-split .hero-slides.is-reversing .hero-slide {transform:translateX(-100%)}
.hero-split .hero-slides.is-reversing .hero-slide.is-active {transform:translateX(0)}
.hero-split .hero-slides.is-reversing .hero-slide.is-leaving {transform:translateX(100%)}
.hero-split .hero-info {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  min-height:78px;
  margin-top:24px;
  padding:16px 0 8px;
  border-top:1px solid #c7bcad;
}
.hero-split .hero-info .hero-description {
  margin:0;
  color:#564539;
  font-family:'Noto Serif KR',serif;
  font-size:clamp(16px,1.45vw,23px);
  font-weight:400;
  line-height:1.8;
  text-shadow:none;
}
.hero-split .hero-description br {display:none}
.hero-split .hero-description br::after {content:' '}
.hero-split .hero-info .button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  flex-shrink:0;
  gap:38px;
  min-height:48px;
  padding:8px 0 8px 18px;
  border:0;
  border-radius:0;
  color:var(--brown);
  background:transparent;
  font-size:14px;
  font-weight:400;
  box-shadow:none;
}
.hero-split .hero-info .button span {font-size:28px;line-height:1}
.hero-split .hero-info .button:hover {color:#78644e}
.hero-split:not(.is-product-slide) .hero-info {justify-content:center}
.hero-split:not(.is-product-slide) .hero-info .button {display:none}
.hero-split .hero-playback-controls {
  position:static;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  height:52px;
  padding:4px 12px;
  color:var(--brown);
}
.hero-split .hero-playback-controls[hidden],.hero-split .hero-tagline[hidden] {display:none}
.hero-split .hero-playback-controls button {
  position:static;
  display:grid;
  place-items:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--brown);
  transform:none;
  cursor:pointer;
}
.hero-split .hero-playback-controls button:hover {background:#e6e0d7}
.hero-split .hero-playback-controls button:focus-visible {outline:2px solid var(--green);outline-offset:2px}
.hero-split .hero-control-rule {display:none}
.hero-split .hero-counter {color:var(--brown);font-size:12px;letter-spacing:.15em;text-shadow:none;white-space:nowrap}
.hero-split .hero-playback {font-size:13px}
.hero-split .hero-bottom {display:none}
@media(max-width:760px) {
  .home-page .hero.hero-split {min-height:0;padding:28px 20px 14px}
  .hero-split .hero-heading {min-height:112px;margin-bottom:16px}
  .hero-split .hero-copy h1 {font-size:clamp(38px,9vw,56px)}
  .hero-split .hero-copy h1.is-brand-title {font-size:clamp(26px,6vw,36px)}
  .hero-split .hero-copy p.hero-tagline {font-size:clamp(17px,4.3vw,23px)}
  .hero-split .hero-media {height:clamp(220px,65vw,390px)}
  .hero-split .hero-info {flex-direction:column;justify-content:center;gap:12px;margin-top:24px;padding-top:20px;text-align:center}
  .hero-split .hero-info .hero-description {font-size:15px;line-height:1.85;max-width:32em}
  .hero-split .hero-info .button {padding:6px 12px;gap:28px;font-size:13px}
  .hero-split .hero-playback-controls {margin-top:6px;gap:16px}
}

/* Use the opening brand slide's typeface throughout the carousel. */
.hero-split .hero-copy h1,
.hero-split .hero-copy p.hero-tagline,
.hero-split .hero-info .hero-description,
.hero-split .hero-info .button {
  font-family:'Noto Serif KR',serif;
  font-weight:400;
}
.hero-split .hero-copy h1:not(.is-brand-title) {margin:0;line-height:1.12}
.hero-split .hero-copy p.hero-tagline {height:auto;line-height:1.15;letter-spacing:-.035em}
.hero-split.is-golf-slide .hero-copy h1 {font-size:clamp(16px,5.4vw,72px);white-space:nowrap;letter-spacing:-.055em}

/* Product backgrounds share the full carousel canvas with the opening slide. */
.hero-split .hero-showcase {
  position:relative;
  isolation:isolate;
  width:100%;
  min-width:0;
}
.hero-split .hero-product-backdrop::before,
.hero-split .hero-product-backdrop::after {
  content:"";
  position:absolute;
  z-index:-1;
  top:0;
  bottom:0;
  width:50%;
  background-repeat:no-repeat;
  background-size:auto 100%;
  opacity:.35;
  pointer-events:none;
}
.hero-split .hero-product-backdrop::before {left:0;background-position:left center}
.hero-split .hero-product-backdrop::after {right:0;background-position:right center}
.hero-split[data-active-product="agarwood"] .hero-product-backdrop::before,
.hero-split[data-active-product="agarwood"] .hero-product-backdrop::after {
  background-image:url('optimized/agarwood-ink-landscape-945.webp');
}
.hero-split[data-active-product="agarwood"] .hero-product-backdrop::after {
  background-position:right -4px center;
}
.hero-split[data-active-product="gangmaek"] .hero-product-backdrop::before,
.hero-split[data-active-product="gangmaek"] .hero-product-backdrop::after {
  background-image:url('optimized/gangmaek-mountain-landscape-1448.webp');
}

.hero-split .hero-info {position:relative;z-index:1}

/* Matching product taglines and inset descriptions; golf keeps its one-line title. */
.hero-split:is([data-active-product="gangmaek"],[data-active-product="agarwood"],[data-active-product="cheongmyeong"]) .hero-copy h1 {font-size:clamp(40px,4.2vw,66px)}
.hero-split.is-product-slide .hero-copy p.hero-tagline {font-size:clamp(18px,1.66vw,26px)}
.hero-split.is-product-slide .hero-heading {gap:clamp(12px,1vw,16px)}
.hero-split.is-product-slide .hero-info .hero-description {padding-inline-start:2em;color:#000}
@media(max-width:760px) {
  .hero-split:is([data-active-product="gangmaek"],[data-active-product="agarwood"],[data-active-product="cheongmyeong"]) .hero-copy h1 {font-size:clamp(35px,8.3vw,52px)}
  .hero-split.is-product-slide .hero-copy p.hero-tagline {font-size:clamp(16px,4vw,21px)}
}

/* Match visible box height while retaining the wider Agarwood proportions. */
.hero-split .hero-slide[data-hero-product="agarwood"] {
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-split .hero-slide[data-hero-product="agarwood"] img {
  flex:none;
  width:auto;
  height:157%;
  max-width:110%;
  object-fit:contain;
}

/* Place the morning portrait beside the product, softly fading its left edge. */
.hero-split[data-active-product="cheongmyeong"] .hero-product-backdrop::before {
  left:auto;
  right:0;
  width:44%;
  background-image:url('optimized/cheongmyeong-morning-background-1024.webp');
  background-size:cover;
  background-position:center 42%;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 28%);
  mask-image:linear-gradient(to right,transparent,#000 28%);
}
.hero-split[data-active-product="cheongmyeong"] .hero-product-backdrop::after {
  display:block;
  left:0;
  right:auto;
  width:44%;
  background-image:url('optimized/cheongmyeong-sunlit-window-1024.webp');
  background-size:cover;
  background-position:center;
  -webkit-mask-image:linear-gradient(to right,#000 72%,transparent);
  mask-image:linear-gradient(to right,#000 72%,transparent);
}

/* Keep the golfer and ball visible to the right of the product. */
.hero-split[data-active-product="power-your-shot"] .hero-product-backdrop::before {
  left:auto;
  right:0;
  width:44%;
  background-image:url('optimized/power-your-shot-golf-background-1536.webp');
  background-size:cover;
  background-position:62% center;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 28%);
  mask-image:linear-gradient(to right,transparent,#000 28%);
}
.hero-split[data-active-product="power-your-shot"] .hero-product-backdrop::after {
  display:block;
  left:0;
  right:auto;
  width:44%;
  background-image:url('optimized/power-your-shot-golfer-left-1600.webp');
  background-size:cover;
  background-position:45% bottom;
  -webkit-mask-image:linear-gradient(to right,#000 72%,transparent);
  mask-image:linear-gradient(to right,#000 72%,transparent);
}

/* Match Cheongmyeong's visible box height, allowing for cutout canvas margins. */
.hero-split .hero-slide[data-hero-product="power-your-shot"] {
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-split .hero-slide[data-hero-product="power-your-shot"] img {
  flex:none;
  width:auto;
  height:116%;
  max-width:min(117%,1308px);
  object-fit:contain;
  transform:translateY(-1.8%);
}

/* The opening ingredients photograph fills the entire carousel canvas. */
.home-page .hero.hero-split {isolation:isolate}
.home-page .hero.hero-split::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:url('optimized/hero-ingredients-1600.webp') center / cover no-repeat;
  opacity:0;
  transition:opacity .7s ease;
  pointer-events:none;
}
.home-page .hero.hero-split:not(.is-product-slide)::before {opacity:.8}
.hero-split .hero-slide:not([data-hero-product]) img {opacity:0}
.hero-split:not(.is-product-slide) .hero-copy h1.is-brand-title,
.hero-split:not(.is-product-slide) .hero-info .hero-description,
.hero-split:not(.is-product-slide) .hero-counter,
.hero-split:not(.is-product-slide) .hero-playback-controls button {
  color:#332318;
  text-shadow:0 1px 2px rgba(255,251,243,.95),0 0 12px rgba(255,251,243,.9);
}
.hero-split:not(.is-product-slide) .hero-info {border-top-color:rgba(51,35,24,.3)}
.hero-split:not(.is-product-slide) .hero-playback-controls svg {
  filter:drop-shadow(0 1px 3px rgba(255,251,243,.9));
}
.hero-split:not(.is-product-slide) .hero-playback-controls button:hover {background:rgba(255,251,243,.3)}

/* Mobile: contain every product in one predictable frame; desktop zoom stays intact. */
@media(max-width:760px){
 .home-page .hero.hero-split{padding:24px 16px 12px}
 .hero-split .hero-showcase,.hero-split .hero-stage,.hero-split .hero-media{min-width:0;max-width:100%}
 .hero-split .hero-media{height:auto;aspect-ratio:4/3}
 .hero-split .hero-slides{width:100%;height:100%}
 .hero-split .hero-slide.hero-product-slide{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}
 .hero-split .hero-slide.hero-product-slide img{flex:0 1 auto;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;object-fit:contain;object-position:center;transform:none}
 .hero-split .hero-heading{min-height:108px;margin-bottom:12px;padding:0 4px}
 .hero-split.is-product-slide .hero-copy p.hero-tagline{font-size:clamp(16px,4vw,21px);line-height:1.45}
 .hero-split.is-golf-slide .hero-copy h1{font-size:clamp(15px,4.3vw,30px);line-height:1.4;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
 .hero-split.is-product-slide .hero-info .hero-description{padding-inline-start:0;max-width:100%;overflow-wrap:break-word}
 .hero-split .hero-info{margin-top:16px;min-height:78px}
 /* Fade in place on phones so large composited image layers never cross the frame. */
 .hero-split .hero-slide,
 .hero-split .hero-slides.is-reversing .hero-slide{transform:none;opacity:0;transition:opacity .35s ease}
 .hero-split .hero-slide.is-active,
 .hero-split .hero-slides.is-reversing .hero-slide.is-active{transform:none;opacity:1;z-index:2}
 .hero-split .hero-slide.is-leaving,
 .hero-split .hero-slides.is-reversing .hero-slide.is-leaving{transform:none;opacity:0;z-index:1}
 .hero-split .hero-product-backdrop::before,.hero-split .hero-product-backdrop::after{background-size:cover}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){
 .hero-split .hero-slide{transition:none}
}

/* Opening slide: a 70% ivory veil fades from the copy toward the photograph. */
.home-page .hero.hero-split::before {
  background-image:linear-gradient(90deg,rgba(248,246,241,.70) 0%,rgba(248,246,241,.70) 32%,rgba(248,246,241,.18) 52%,rgba(248,246,241,0) 68%,rgba(248,246,241,0) 100%),url('optimized/hero-ingredients-1600.webp');
}
.home-page .hero.hero-split:not(.is-product-slide)::before {opacity:1}
/* Size the opening copy to its headline, then align both final characters. */
.home-page .hero.hero-split:not(.is-product-slide) {grid-template-columns:fit-content(100%)}
.hero-split:not(.is-product-slide) .hero-showcase {display:contents}
.hero-split:not(.is-product-slide) .hero-product-backdrop::before,
.hero-split:not(.is-product-slide) .hero-product-backdrop::after {display:none}
.hero-split:not(.is-product-slide) .hero-stage {position:absolute;inset:0;pointer-events:none}
.hero-split:not(.is-product-slide) .hero-copy {text-align:left;z-index:1}
.hero-split:not(.is-product-slide) .hero-heading {align-items:flex-start;min-height:0;margin:0;padding:0}
.hero-split:not(.is-product-slide) .hero-info {
  justify-content:flex-end;align-items:flex-end;min-height:0;
  margin:24px 0 0;padding:0;border:0;text-align:right;
}
.hero-split:not(.is-product-slide) .hero-info .hero-description {transform:translateX(-13px)}
.hero-split:not(.is-product-slide) .hero-playback-controls {
  position:relative;z-index:1;justify-content:flex-start;
  margin-top:36px;padding-inline:0;
}
.hero-split:not(.is-product-slide) .hero-copy h1.is-brand-title,
.hero-split:not(.is-product-slide) .hero-info .hero-description,
.hero-split:not(.is-product-slide) .hero-counter,
.hero-split:not(.is-product-slide) .hero-playback-controls button {text-shadow:none}
.hero-split:not(.is-product-slide) .hero-playback-controls svg {filter:none}
@media(max-width:760px){
  .home-page .hero.hero-split:not(.is-product-slide){min-height:520px;padding:48px 24px}
  .hero-split:not(.is-product-slide) .hero-info {margin-top:20px}
  .hero-split:not(.is-product-slide) .hero-playback-controls {margin-top:28px}
}

/* Bold Gungsuh for the opening headline; preserve the existing layout and color. */
.hero-split:not(.is-product-slide) .hero-copy h1.is-brand-title {
  font-family:'Gungsuh','궁서','GungSeo','AppleGungseo','Noto Serif KR',serif;
  font-size:clamp(40px,4.2vw,64px);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.035em;
  color:#493021;
  -webkit-text-stroke:0;
}
@media(max-width:760px){
  .hero-split:not(.is-product-slide) .hero-copy h1.is-brand-title {
    font-size:clamp(32px,8vw,46px);
  }
}

/* Agarwood on phones: crop only transparent canvas margins, not the product. */
@media(max-width:760px){
  .hero-split[data-active-product="agarwood"] .hero-media{
    height:auto;
    aspect-ratio:2/1;
  }
  .hero-split .hero-slide[data-hero-product="agarwood"] img{
    flex:none;
    width:100%;
    height:auto;
    max-width:100%;
    max-height:none;
    aspect-ratio:1448/1086;
    object-fit:contain;
    object-position:center;
    transform:none;
  }
  .hero-split[data-active-product="agarwood"] .hero-heading{
    min-height:96px;
    margin-bottom:8px;
  }
  .hero-split[data-active-product="agarwood"] .hero-product-backdrop::before{
    left:0;
    right:0;
    width:100%;
    background-size:100% auto;
    background-position:center bottom;
    opacity:.28;
  }
  .hero-split[data-active-product="agarwood"] .hero-product-backdrop::after{
    display:none;
  }
  .hero-split[data-active-product="agarwood"] .hero-info{
    margin-top:20px;
    gap:10px;
  }
  .hero-split[data-active-product="agarwood"] .hero-info .hero-description{
    max-width:24em;
    text-wrap:balance;
    word-break:keep-all;
    line-height:1.8;
  }
}

/* Every main slide ends with centered navigation, after all copy and links. */
.hero-split.is-product-slide .hero-showcase{order:0}
.home-page .hero.hero-split .hero-playback-controls{
  order:3;
  position:relative;
  justify-content:center;
  width:100%;
  margin:8px 0 0;
  padding:4px 0;
  gap:16px;
}
.home-page .hero.hero-split .hero-playback-controls .hero-counter{
  flex:0 0 72px;
  text-align:center;
}
.home-page .hero.hero-split .hero-playback-controls .hero-playback{
  position:absolute;
  left:calc(50% + 104px);
  right:auto;
  top:4px;
}
.home-page .hero.hero-split .hero-info{order:2}
.hero-split.is-product-slide .hero-info{margin-top:16px}

/* Anchor opening-slide navigation to the image's lower edge, not its short copy. */
.home-page .hero.hero-split:not(.is-product-slide){
  position:relative;
  padding-bottom:84px;
}
.home-page .hero.hero-split:not(.is-product-slide) .hero-playback-controls{
  position:absolute;
  top:auto;
  bottom:12px;
  left:0;
  right:0;
  width:auto;
  margin:0;
  justify-content:center;
}

/* One continuous landscape, without duplicated halves or a center seam. */
.hero-split:is([data-active-product="agarwood"],[data-active-product="gangmaek"]) .hero-product-backdrop::before{
  left:0;
  right:0;
  width:100%;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.hero-split:is([data-active-product="agarwood"],[data-active-product="gangmaek"]) .hero-product-backdrop::after{
  display:none;
  background-image:none;
}

/* All five slides use the opening slide's full-width, stable-height canvas. */
.home-page .hero.hero-split {
  --hero-canvas-height:max(520px,calc(100svh - 100px));
  height:var(--hero-canvas-height);
  min-height:var(--hero-canvas-height);
}
.hero-split .hero-product-backdrop {
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
}
.hero-split:not(.is-product-slide) .hero-product-backdrop {display:none}
.home-page .hero.hero-split.is-product-slide {
  display:flex;
  flex-direction:column;
}
.hero-split.is-product-slide .hero-showcase {
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
}
.hero-split.is-product-slide .hero-copy {flex:none}
.hero-split.is-product-slide .hero-stage {
  flex:1 1 auto;
  min-height:0;
}
.hero-split.is-product-slide .hero-media {
  height:100%;
  aspect-ratio:auto;
}
.hero-split.is-product-slide .hero-info,
.home-page .hero.hero-split .hero-playback-controls {flex:none}
.hero-split:is([data-active-product="cheongmyeong"],[data-active-product="power-your-shot"]) .hero-product-backdrop::before,
.hero-split:is([data-active-product="cheongmyeong"],[data-active-product="power-your-shot"]) .hero-product-backdrop::after {width:50%}
@media(max-width:760px) {
  .home-page .hero.hero-split {--hero-canvas-height:520px}
}
