/* Barbie Mina Hero - Frontend (matching carved right layout + 4 swatches) */
:root{ --bmh-radius: 22px; }

.bmh-hero{
  padding: 32px 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --bmh-orange: #ff9a1f;
}
.bmh-hero *{ box-sizing: border-box; }

.bmh-hero-shell{
  width: min(100%, calc(100% - 32px));
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--bmh-radius);
  border: 1px solid rgba(17,24,39,.08);
  overflow: hidden;
  position: relative;
}

.bmh-main{ display:flex; min-height: 640px; }
.bmh-left{ flex: 1.1; padding: 56px 56px 34px; position: relative; }

.bmh-right{
  flex: .9;
  position: relative;
  background: #0b0f1a;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.bmh-right.is-gradient {
    background: radial-gradient(1000px 700px at 35% 35%, rgba(125, 97, 203, .22), rgba(0, 0, 0, 0) 60%), radial-gradient(900px 600px at 70% 70%, rgba(255, 73, 165, .18), rgba(0, 0, 0, 0) 60%), linear-gradient(135deg, #7d61cb, #0a0d18 45%, #070913);
}
.bmh-right.is-image{
  background: var(--bmh-right-bg);
  background-size: cover;
  background-position: center;
}

.bmh-right::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(0,0,0,.28), rgba(0,0,0,.65));
  pointer-events:none;
  z-index: 0;
}

.bmh-right[data-grid="1"]::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, rgba(255,255,255,0) 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, rgba(255,255,255,0) 1px);
  background-size: 56px 56px;
  opacity:.18;
  z-index: 0;
}

.bmh-right-art{ position:absolute; inset:0; z-index:1; pointer-events:none; }

.bmh-plus{
  position:absolute;
  width: 72px; height: 72px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22) 0 0) center/100% 2px no-repeat,
    linear-gradient(0deg, rgba(255,255,255,.22) 0 0) center/2px 100% no-repeat;
  opacity: .65;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.35));
}
.bmh-plus-a{ right: 38px; top: 38px; }
.bmh-plus-b{ right: 118px; top: 118px; opacity:.35; transform: scale(.75); }

.bmh-arc{
  position:absolute;
  width: 520px; height: 520px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.28);
  top: 60px; left: -120px;
  opacity: .9;
}
.bmh-arc::after{
  content:"";
  position:absolute; inset: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
}

.bmh-carve{
  position:absolute;
  width: 520px; height: 520px;
  right: 38px; top: 120px;
  background: var(--bmh-orange);
  border-radius: 70px;
  box-shadow: 0 40px 110px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.10) inset;
}
.bmh-carve::before{
  content:"";
  position:absolute; inset: 0;
  border-radius: 70px;
  background:
    radial-gradient(600px 420px at 40% 35%, rgba(255,255,255,.22), rgba(255,255,255,0) 55%),
    radial-gradient(700px 500px at 70% 70%, rgba(0,0,0,.18), rgba(0,0,0,0) 60%);
  opacity:.85;
}

.bmh-stage{
  position: relative;
  width: min(420px, 86%);
  aspect-ratio: 1 / 1.1;
  border-radius: 26px;
  overflow:hidden;
  z-index: 2;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 160ms ease;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
}
.bmh-stage[data-border-glow="1"]{
  box-shadow:
    0 35px 90px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 90px rgba(255,73,165,.14),
    0 0 120px rgba(125,97,203,.12);
}

.bmh-orb{
  position:absolute; border-radius: 999px; filter: blur(18px);
  opacity: .9; z-index: 2; pointer-events:none;
}
.bmh-orb-1{
  width: 240px; height: 240px; left: -70px; top: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(255,73,165,.85), rgba(255,73,165,0) 60%);
}
.bmh-orb-2{
  width: 260px; height: 260px; right: -120px; bottom: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(125,97,203,.8), rgba(125,97,203,0) 60%);
}

.bmh-video-wrap{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.bmh-video-wrap[data-noise="1"]::before{
  content:""; position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity:.12; mix-blend-mode: overlay; pointer-events:none; z-index:2;
}
.bmh-video{ width:100%; height:100%; object-fit: cover; transform: scale(1.03); }
.bmh-video-overlay{
  position:absolute; inset:0;
  background: radial-gradient(650px 460px at 50% 40%, rgba(255,255,255,.10), rgba(0,0,0,0) 60%),
              linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.55));
  pointer-events:none;
}
.bmh-video-wrap.is-switching .bmh-video{ filter: blur(8px); opacity: .7; transition: opacity 220ms ease, filter 220ms ease; }

.bmh-float-icons{ position:absolute; inset:0; pointer-events:none; z-index:3; }
.bmh-float{
  position:absolute; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
}
.bmh-float-a{
  width: 54px; height: 54px; right: 16px; top: 16px;
  transform: rotate(8deg);
  background: linear-gradient(135deg, rgba(255,73,165,.12), rgba(255,255,255,.04));
}
.bmh-float-b{
  width: 50px; height: 50px; left: 18px; bottom: 18px;
  transform: rotate(-10deg);
  background: linear-gradient(135deg, rgba(125,97,203,.12), rgba(255,255,255,.04));
}

/* Left */
.bmh-mini-squares{
  width: 52px; height: 52px;
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap:6px; margin-bottom: 40px;
}
.bmh-mini-squares span{
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.18);
  background: rgba(17,24,39,.03);
}
.bmh-mini-squares span:nth-child(1) {
    background: rgb(198 69 138);
    border-color: rgb(207 71 143);
}

.bmh-h1{ margin:0; line-height: 1.02; letter-spacing: -0.8px; color:#0f172a; }
.bmh-h1-italic{ display:block; font-style: italic; font-weight: 500; font-size: clamp(32px, 4.2vw, 54px); }
.bmh-h1-bold{ display:block; margin-top: 10px; font-weight: 600; font-size: clamp(34px, 4.4vw, 62px); }
.bmh-h1-strong{ font-weight: 900; }

.bmh-desc{
  margin: 18px 0 28px;
  color: rgba(15,23,42,.62);
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.7;
}

.bmh-ctas{ display:flex; gap:12px; align-items:center; margin-bottom: 30px; }
.bmh-btn{
  height: 46px; border-radius: 14px;
  display:inline-flex; align-items:center; justify-content:center;
  padding: 0 18px; text-decoration:none;
  font-weight: 800; letter-spacing: .2px;
  border: 1px solid transparent;
}
.bmh-btn-primary{ background: #111827; color: #fff; padding: 0 22px; }
.bmh-btn-primary:hover{ filter: brightness(1.05); }
.bmh-btn-ghost{ color:#0f172a; background: transparent; border-color: rgba(15,23,42,.16); }
.bmh-btn-ghost:hover{ background: rgba(15,23,42,.03); }

.bmh-lensbar{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,.10);
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.bmh-swatch{
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  padding: 10px 10px;
  display:flex; align-items:center; gap:10px;
  cursor:pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.bmh-swatch:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(15,23,42,.08); }
.bmh-swatch.is-active{ border-color: rgba(255,73,165,.55); box-shadow: 0 0 0 3px rgba(255,73,165,.10); }

.bmh-swatch-dot{
  width: 30px; height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.04);
  overflow:hidden;
  flex: 0 0 auto;
  display:flex; align-items:center; justify-content:center;
}
.bmh-swatch-dot i{
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--sw, #ff49a5);
  box-shadow: 0 0 0 5px rgba(255,255,255,.85) inset;
}
.bmh-swatch-dot img{ width:100%; height:100%; object-fit: cover; }
.bmh-swatch-text{
  font-weight: 800; font-size: 12px; color:#0f172a;
  line-height: 1.2; overflow:hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 980px){
  .bmh-left{ padding: 40px 28px 26px; }
  .bmh-main{ min-height: 0; }
  .bmh-carve{ width: 460px; height: 460px; right: 18px; top: 110px; border-radius: 64px; }
  .bmh-arc{ width: 480px; height: 480px; left: -140px; top: 70px; }
}

@media (max-width: 900px){
  .bmh-main{ flex-direction: column; }
  .bmh-right{ order: 1; min-height: 520px; }
  .bmh-left{ order: 2; }
  .bmh-stage{ width: min(520px, 92%); }
  .bmh-carve{ right: 50%; transform: translateX(50%); top: 90px; }
  .bmh-arc{ left: 50%; transform: translateX(-60%); top: 30px; }
  .bmh-lensbar{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 100%; }
}

@media (max-width: 520px){
  .bmh-left{ padding: 30px 18px 22px; }
  .bmh-mini-squares{ margin-bottom: 26px; }
  .bmh-right{ min-height: 480px; }
  .bmh-carve{ width: 360px; height: 360px; top: 110px; border-radius: 52px; }
  .bmh-arc{ width: 380px; height: 380px; top: 52px; }
}