.qimu-launch {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 54vw, 680px);
  padding: 48px 20px;
  overflow: hidden;
  background: #0b1525;
  color: #f5f1ea;
  text-align: center;
}

.qimu-launch__background {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
}

.qimu-launch::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgb(7 13 24 / 34%) 48%, transparent 80%);
  content: "";
}

.qimu-launch__content {
  max-width: 44rem;
  text-wrap: balance;
}

.qimu-launch__name {
  color: #e8d1aa;
  font-size: clamp(15px, 1.65vw, 22px);
  font-weight: 600;
  line-height: 1.5;
}

.qimu-launch__announcement {
  margin-top: 12px;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 650;
  line-height: 1.18;
}

.qimu-launch__note {
  margin-top: 12px;
  color: #e0e6ef;
  font-size: clamp(15px, 1.7vw, 20px);
  line-height: 1.5;
}

.qimu-launch__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 22px;
  padding: 8px 18px;
  border: 1px solid #fff8;
  border-radius: 24px;
  background: #111820ba;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.qimu-launch__play:hover { background: #263747; }
.qimu-launch__play svg { width: 18px; height: 18px; }

.qimu-launch__player {
  position: absolute;
  z-index: 1;
  inset: 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: #0a0c10;
  color: #f5f1ea;
  text-align: start;
}

.qimu-launch__player:not([hidden]) { display: grid; }

.qimu-launch__player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}

.qimu-launch__player-header h2 { font-size: 1rem; line-height: 1.4; }
.qimu-launch__close {
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.qimu-launch__close:hover { background: #2c323b; }
.qimu-launch :is(.qimu-launch__play, .qimu-launch__close):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.qimu-launch__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  container-type: size;
  background: radial-gradient(ellipse at 72% 18%, #1b2a43, #0a1423 80%);
}

.qimu-launch__stage video {
  display: block;
  width: min(100%, calc(100cqh * 16 / 9));
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  background: #050609;
  object-fit: contain;
}

.qimu-launch__stage::before,
.qimu-launch__stage::after {
  /* Each curtain travels half the width of the fitted video. */
  --curtain-travel: min(50cqw, calc(100cqh * 8 / 9));
  position: absolute;
  z-index: 1;
  inset-block: 0;
  width: 50%;
  pointer-events: none;
  background-image: var(--curtain-shade), url('../assets/bowang-home/qimu-launch-teaser.webp?v=2');
  background-size: 100% 100%, 450% 174%;
  background-repeat: no-repeat;
  transform: translateX(var(--curtain-open));
  animation: qimu-open-curtain 880ms cubic-bezier(.57, .04, .2, 1) both;
  content: '';
}

.qimu-launch__stage::before {
  --curtain-open: calc(0px - var(--curtain-travel));
  --curtain-shade: linear-gradient(90deg, #060c17b3, #0f192e18 45%, #040b1b51 94%, #728eb855);
  inset-inline-start: 0;
  background-position: center, left top;
  box-shadow: inset -15px 0 30px #03091780;
}

.qimu-launch__stage::after {
  --curtain-open: var(--curtain-travel);
  --curtain-shade: linear-gradient(270deg, #070b16af, #15223913 45%, #120f1b50 94%, #c8996860);
  inset-inline-end: 0;
  background-position: center, right top;
  box-shadow: inset 15px 0 30px #07071480;
}

@keyframes qimu-open-curtain {
  from { transform: translateX(0); }
  to { transform: translateX(var(--curtain-open)); }
}

@media (prefers-reduced-motion: reduce) {
  .qimu-launch__stage::before, .qimu-launch__stage::after { animation: none; }
}

.qimu-launch__video-error:not(:empty) { padding: 12px 14px; color: #e0e6ef; font-size: 14px; }
.qimu-launch__music-credit { padding: 10px 14px; color: #b7bdc7; font-size: 12px; line-height: 1.6; }
.qimu-launch__music-credit a { text-decoration: underline; text-underline-offset: 2px; }

.qimu-launch--product {
  max-width: 1920px;
  min-height: clamp(480px, 68svh, 640px);
  margin-inline: auto;
  padding: 64px 32px;
}

.qimu-product { --launch-nav-height: 72px; min-height: 100dvh; display: flex; flex-direction: column; }
.qimu-product .wrap { width: min(clamp(1200px, 80vw, 1440px), calc(100% - 96px)); }
.qimu-product .nav-inner { min-height: var(--launch-nav-height); }
.qimu-product .brand--company { flex: none; gap: 12px; color: #f5f5f7; font-size: 19px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.qimu-product .brand--company img { width: 54px; height: auto; box-sizing: content-box; padding: 3px 4px; border-radius: 4px; background: #fff; }
.qimu-product .nav-links a { color: #dedee1; font-size: 15px; }
.qimu-product main { flex: 1; background: #0b1525; }
.qimu-product .qimu-launch__content { width: 100%; max-width: 760px; }
.qimu-product .qimu-launch__name { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; }
.qimu-product .qimu-launch__announcement { margin-top: 16px; font-size: clamp(40px, 5vw, 64px); }
.qimu-product .qimu-launch__note { margin-top: 16px; font-size: 17px; }
.qimu-product .footer { padding-block: 36px 24px; border-top: 1px solid #35373b; background: #1b1c1e; }
.qimu-product .footer-main { align-items: center; gap: 16px 32px; }
.qimu-product .footer-main nav { gap: 4px 24px; }
.qimu-product .footer-policy-links { gap: 8px; }
.qimu-product .footer-policy-links a { min-height: 28px; font-size: 12px; }

.qimu-detail {
  --detail-ink: #171b22;
  --detail-muted: #505865;
  --detail-rule: #dce0e6;
  color: var(--detail-ink);
  background: #fff;
}
.qimu-detail__overview,
.qimu-detail__next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding-block: clamp(44px, 7vw, 96px);
}
.qimu-detail h2 { text-wrap: pretty; }
.qimu-detail__eyebrow {
  margin-bottom: 12px;
  color: #3b526b;
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .06em;
}
.qimu-detail__intro {
  margin-top: 16px;
  color: var(--detail-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}
.qimu-detail figure img { width: 100%; border-radius: 16px; background: #111b2b; }
.qimu-detail figcaption,
.qimu-detail__caveat { color: var(--detail-muted); font-size: .8125rem; line-height: 1.6; }
.qimu-detail figcaption { margin-top: 8px; text-align: right; }
.qimu-detail__highlights {
  background: #f4f5f7;
  padding-block: clamp(44px, 6vw, 80px);
}
.qimu-detail__highlights h2,
.qimu-detail__next h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); }
.qimu-detail__scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(22px, 3vw, 40px);
}
.qimu-detail__scene {
  padding: clamp(20px, 2.3vw, 32px);
  background: #fff;
  border: 1px solid var(--detail-rule);
  border-radius: 16px;
}
.qimu-detail__number {
  display: block;
  color: #3b526b;
  font-size: .8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.qimu-detail__scene h3 { margin-top: 8px; font-size: clamp(1.25rem, 2vw, 1.625rem); }
.qimu-detail__scene dl { margin: 20px 0 0; }
.qimu-detail__scene dt { font-weight: 650; }
.qimu-detail__scene dd {
  margin: 5px 0 0;
  color: var(--detail-muted);
  font-size: .9375rem;
  line-height: 1.65;
}
.qimu-detail__scene dd + dt { margin-top: 16px; }
.qimu-detail__caveat { margin-top: 16px; }
.qimu-detail__next { align-items: start; }
.qimu-detail__links { margin: 14px 0 0; padding: 0; list-style: none; }
.qimu-detail__links li { border-bottom: 1px solid var(--detail-rule); }
.qimu-detail__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  color: #283f5a;
  font-weight: 550;
}
.qimu-detail__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qimu-detail__links a:focus-visible { outline: 2px solid #283f5a; outline-offset: 3px; }

@media (max-width: 1024px) {
  .qimu-product .wrap { width: calc(100% - 48px); }
}

@media (max-width: 760px) {
  .qimu-product .wrap { width: calc(100% - 40px); }
  .qimu-product .brand--company { font-size: 17px; }
  .qimu-product .brand--company img { width: 44px; }
  .qimu-product .nav-inner { gap: 12px; }
  .qimu-product .nav-links { max-height: calc(100dvh - var(--launch-nav-height)); }
  .qimu-product .qimu-launch--product { min-height: clamp(440px, 66svh, 560px); padding: 56px 24px; }
  .qimu-product .qimu-launch__name { font-size: clamp(20px, 5.6vw, 26px); }
  .qimu-product .qimu-launch__announcement { font-size: clamp(34px, 9.2vw, 44px); }
  .qimu-product .qimu-launch__note { font-size: 15px; }
  .qimu-product .footer { padding-block: 28px 20px; }
  .qimu-product .footer-main { flex-direction: column; align-items: flex-start; gap: 12px; }
  .qimu-detail__overview, .qimu-detail__scenes, .qimu-detail__next { grid-template-columns: minmax(0, 1fr); }
}
