/* H&H branded presentation of the original DBH before/after component.
   Mechanics and data hooks are unchanged from DBH; no universal style rules. */
.hnh-transformation {
  background: #292b29;
  color: #f7f3ed;
  padding: clamp(66px,8vw,108px) 0 clamp(70px,8vw,110px);
  --position: 50%;
}
.hnh-transformation .transformation-inner {
  width: min(calc(100% - 44px), 1130px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hnh-transformation .compare-intro { text-align:center; max-width:760px; }
.hnh-transformation .compare-intro .eyebrow {
  color:#ceb996;
  font-family:var(--sans, 'Jost',sans-serif);
  font-size:11px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-bottom:17px;
}
.hnh-transformation .compare-intro h2 {
  color: #f7f3ed;
  font-family: var(--serif, 'Cormorant Garamond', Georgia,serif);
  font-weight:500;
  letter-spacing:-.025em;
  font-size:clamp(43px,5.5vw,72px);
  line-height:1.04;
  margin:0 0 18px;
}
.hnh-transformation .compare-intro p {
  font-family: var(--sans, 'Jost',sans-serif);
  font-size:clamp(15px,1.6vw,18px);
  font-weight:400;
  line-height:1.7;
  color:#dcd8d1;
  margin:0 auto 14px;
  max-width:715px;
}
.hnh-transformation .compare-style-switcher {
  display:flex; flex-wrap:wrap; gap:10px;
  justify-content:center; align-items:center; margin:0 auto 5px;
}
.hnh-transformation .style-pill {
  appearance:none; border:1px solid rgba(255,255,255,.48);
  background:transparent; color:#f7f3ed; border-radius:2px;
  min-width:128px; min-height:45px;
  padding:10px 19px;
  font-family:var(--sans, 'Jost',sans-serif);
  font-size:11px; font-weight:500; letter-spacing:.11em;
  cursor:pointer; transition:background .2s,color .2s,border-color .2s;
}
.hnh-transformation .style-pill.active,
.hnh-transformation .style-pill[aria-pressed="true"] {
  background:#f7f3ed; color:#2c2b28; border-color:#f7f3ed;
}
.hnh-transformation .style-pill:focus-visible,
.hnh-transformation .compare input[type=range]:focus-visible {
  outline: 3px solid #e8c991; outline-offset:3px;
}
/* Directly from the DBH compare behavior: same --position, overlay, controls. */
.hnh-transformation .compare {
  position:relative;
  width:100%;
  aspect-ratio: 4 / 3;
  border-radius:4px;
  overflow:hidden;
  background:#ddd;
  box-shadow:0 24px 54px rgba(0,0,0,.19);
  --position:50%;
}
.hnh-transformation .compare img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hnh-transformation .compare .after {
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  opacity:0; pointer-events:none; z-index:1;
  transition:opacity .24s ease;
}
.hnh-transformation .compare .after.active { opacity:1; z-index:2; }
.hnh-transformation .compare .compare-line {
  position:absolute; left:var(--position); top:0; bottom:0;
  width:2px; background:white; transform:translateX(-1px);
  box-shadow:0 0 0 1px rgba(0,0,0,.1); z-index:4;
}
.hnh-transformation .compare .handle {
  position:absolute; left:var(--position); top:50%;
  transform:translate(-50%,-50%); width:46px; height:46px;
  border-radius:50%; background:white; color:#292826;
  display:grid; place-items:center;
  box-shadow:0 8px 30px rgba(0,0,0,.18);
  font-weight:700; pointer-events:none; z-index:4;
}
.hnh-transformation .compare .tag {
  position:absolute; bottom:13px; z-index:4;
  padding:7px 11px; border-radius:2px;
  background:rgba(34,35,32,.84); color:#fff;
  font:500 10px/1.4 var(--sans, 'Jost',sans-serif);
  letter-spacing:.12em; text-transform:uppercase;
}
.hnh-transformation .compare .tag.before { left:13px; }
.hnh-transformation .compare .tag.after-tag { right:13px; }
.hnh-transformation .compare input[type=range] {
  position:absolute; inset:0; z-index:5;
  width:100%; height:100%; opacity:0;
  cursor:ew-resize; touch-action:pan-y;
}
.hnh-transformation .compare-caption {
  margin:8px 0 0; max-width:700px;
  text-align:center; color:#cfcac3;
  font:400 12px/1.65 var(--sans, 'Jost',sans-serif);
}
.hnh-transformation[data-hnh-local-sample="true"] { display:none; }
.hnh-transformation[data-hnh-local-sample="true"].hnh-local-preview { display:block; }
@media(max-width:700px) {
  .hnh-transformation .transformation-inner {width:min(calc(100% - 28px),1130px);gap:21px}
  .hnh-transformation .compare {aspect-ratio: 4 / 3;}
  .hnh-transformation .compare .tag {bottom:8px;padding:5px 7px;font-size:9px}
  .hnh-transformation .compare .tag.before {left:7px}
  .hnh-transformation .compare .tag.after-tag {right:7px}
}
