/* ============================================================
   STOYO To C · Homepage (Screen 1)
   Full-bleed frozen-scene background + left copy, CN/EN
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope-Bold-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --pearl: #f5f3ee;
  --navy: #14212f;
  --navy-70: rgba(20, 33, 47, .72);
  --navy-50: rgba(20, 33, 47, .52);
  --cyan-deep: #2fa8cf;
  --font-cn: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-en: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-cn);
  background: var(--pearl);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[data-lang="en"] body { font-family: var(--font-en); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
html[data-lang="en"] [data-en=""] { display: none !important; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4.5vw, 64px);
  background: rgba(245, 243, 238, .55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 33, 47, .05);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-weight: 800; letter-spacing: .22em; font-size: 15px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: flex; background: rgba(20, 33, 47, .07); border-radius: 999px; padding: 3px; }
.lang-btn {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--navy-50); transition: all .25s ease;
}
.lang-btn.is-on { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(20, 40, 60, .14); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; font-weight: 700; letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(20, 33, 47, .55); }
.btn-ghost { border: 1.5px solid rgba(20, 33, 47, .22); color: var(--navy); background: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--cyan-deep); color: var(--cyan-deep); transform: translateY(-2px); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }
.btn-nav { padding: 9px 18px; font-size: 13.5px; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('assets/hero_bg.jpg') 62% 42% / cover no-repeat;
  animation: hero-zoom 22s ease-out forwards;
  will-change: transform;
}
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(244, 244, 241, .92) 0%, rgba(244, 244, 241, .62) 26%, rgba(244, 244, 241, 0) 52%),
    linear-gradient(0deg, rgba(244, 244, 241, .35) 0%, rgba(244, 244, 241, 0) 26%);
}

.hero-copy {
  position: relative; z-index: 2;
  padding-left: clamp(24px, 6.5vw, 108px);
  padding-right: 24px;
  max-width: 720px;
  margin-top: -3vh;
}
.h1 {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.3; font-weight: 700; letter-spacing: 0;
  color: var(--navy);
}
/* value statement above the headline */
.hero-kicker {
  margin-bottom: 14px;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600; letter-spacing: .04em;
  color: var(--cyan-deep);
}
.category {
  margin-top: 16px;
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--navy-50); font-weight: 500;
}
.cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* human-language explainer (improvement ①) */
.hero-lead {
  margin-top: 18px; max-width: 640px;
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65;
  color: var(--navy-70); font-weight: 500;
}

/* trust strip: age positioning + safety signals (② ③) */
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(110, 208, 238, .14); color: var(--cyan-deep);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.trust-pill svg { width: 13px; height: 13px; flex: none; }
.trust-age {
  background: rgba(20, 33, 47, .07); color: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(47, 168, 207, .45);
}

/* entrance */
.hero-copy .hero-kicker { animation: rise .9s cubic-bezier(.2, .65, .2, 1) .1s both; }
.hero-copy .h1 { animation: rise .9s cubic-bezier(.2, .65, .2, 1) .18s both; }
.hero-copy .cta-row { animation: rise .9s cubic-bezier(.2, .65, .2, 1) .46s both; }
.hero-copy .hero-lead { animation: rise .9s cubic-bezier(.2, .65, .2, 1) .42s both; }
.hero-copy .hero-trust { animation: rise .9s cubic-bezier(.2, .65, .2, 1) .54s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* mobile media card (hidden on desktop) */
.hero-media { display: none; }

/* ============ Screen 2 · Six companions ============ */
.companions {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 70px 5vw 30px;
  background:
    radial-gradient(46% 30% at 20% 100%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(52% 34% at 78% 104%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(60% 40% at 50% 112%, rgba(210, 235, 245, .5), transparent 72%),
    var(--pearl);
  overflow: hidden;
}
.cp-head { text-align: center; width: 100%; max-width: 920px; margin: 0 auto; }
.h2 {
  font-size: clamp(26px, 3vw, 42px); line-height: 1.26; font-weight: 700;
  color: var(--navy);
}
.cp-sub { margin-top: 14px; font-size: clamp(14px, 1.25vw, 18px); color: var(--navy-50); line-height: 1.7; }

.cp-stage {
  position: relative;
  width: 100%;
  height: min(50vh, 500px);
  max-width: 1320px;
  margin: 3vh auto 0;
}
.cp-window {
  position: absolute; left: 50%; top: 6%; transform: translateX(-50%);
  width: 50%; aspect-ratio: 16 / 10; z-index: 2;
}
.cp-window-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 26px;
  box-shadow: 0 40px 80px -28px rgba(30, 70, 100, .4), 0 0 0 2px rgba(255, 255, 255, .85), 0 0 60px -8px rgba(110, 208, 238, .5);
}
.cp-window.pulse .cp-window-img { animation: cp-pulse .8s ease; }
.cp-child {
  position: absolute; left: 50%; bottom: -32%; transform: translateX(-50%);
  height: 56%; z-index: 4;
  filter: drop-shadow(0 14px 18px rgba(40, 60, 80, .28));
}

.cp-role {
  position: absolute; left: var(--rx); top: var(--ry); transform: translate(-50%, 0);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  z-index: 5; padding: 6px; border-radius: 18px;
}
.cp-role img {
  height: var(--rs, 15vmin); width: auto;
  filter: drop-shadow(0 12px 14px rgba(40, 60, 80, .3));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1.25), filter .3s ease;
}
.cp-role:hover img, .cp-role.sel img { transform: scale(1.09) translateY(-4px); }
.cp-role[data-role="explore"] { --rs: 14vmin; }
.cp-role[data-role="narrator"], .cp-role[data-role="performance"] { --rs: 16.5vmin; }
.cp-name { font-size: 15.5px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.cp-role.sel .cp-name { color: var(--cyan-deep); }
.cp-tag { font-size: 12.5px; color: var(--navy-50); white-space: nowrap; }
.cp-fig { position: relative; display: inline-block; }
.cp-chip {
  position: absolute; top: -8px; right: -14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--cyan-deep);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(40, 80, 110, .3);
  animation: cp-float 3.6s ease-in-out infinite alternate;
}
.cp-chip svg { width: 16px; height: 16px; }
@keyframes cp-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }

.cp-cards {
  display: flex; justify-content: center; gap: clamp(12px, 1.6vw, 22px);
  width: 100%; margin: 48px auto 0; max-width: 1100px;
}
.cp-card {
  width: clamp(128px, 12vw, 168px);
  transition: transform .3s ease;
}
.cp-thumb {
  aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; position: relative;
  background: #fff;
  box-shadow: 0 16px 34px -16px rgba(30, 60, 90, .3), 0 0 0 1px rgba(20, 33, 47, .05);
  transition: box-shadow .3s ease, transform .3s ease;
}
.cp-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cp-thumb-story::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 25, 35, .4));
}
.cp-thumb-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.cp-thumb-play svg { width: 14px; height: 14px; margin-left: 2px; }
.cp-card figcaption {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; color: var(--navy-70); font-weight: 600;
}
.cp-card figcaption svg { width: 14px; height: 14px; color: var(--cyan-deep); }
.cp-card.sel .cp-thumb {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px -16px rgba(40, 130, 170, .45), 0 0 0 2px var(--cyan-deep);
}
.cp-card.sel figcaption { color: var(--cyan-deep); }
@keyframes cp-pulse {
  0% { box-shadow: 0 40px 80px -28px rgba(30, 70, 100, .4), 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 0 rgba(47, 168, 207, .6); }
  100% { box-shadow: 0 40px 80px -28px rgba(30, 70, 100, .4), 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 26px rgba(47, 168, 207, 0); }
}

.cp-note {
  margin: 2.5vh auto 0; text-align: center;
  font-size: 13px; color: var(--navy-50);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cp-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-deep); flex: none; }

/* companions entrance */
.companions .cp-head, .companions .cp-window, .companions .cp-child,
.companions .cp-role, .companions .cp-cards, .companions .cp-note {
  opacity: 0;
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .65, .2, 1);
  transition-delay: var(--d, 0s);
}
.companions .cp-head, .companions .cp-cards, .companions .cp-note { transform: translateY(20px); }
.companions .cp-window { transform: translateX(-50%) translateY(20px); }
.companions .cp-child { transform: translateX(-50%) translateY(20px); }
.companions .cp-role { transform: translate(-50%, 0) translateY(20px); }
.companions.inview .cp-head,
.companions.inview .cp-cards,
.companions.inview .cp-note { opacity: 1; transform: translateY(0); }
.companions.inview .cp-window { opacity: 1; transform: translateX(-50%); }
.companions.inview .cp-child { opacity: 1; transform: translateX(-50%); }
.companions.inview .cp-role { opacity: 1; transform: translate(-50%, 0); }

/* ============ Dialog ============ */
.dlg-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(18, 26, 36, .4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.dlg-mask[hidden] { display: none; }
.dlg-card {
  position: relative; width: min(430px, 88vw);
  background: #fff; border-radius: 26px; padding: 34px 32px;
  box-shadow: 0 40px 90px -30px rgba(10, 25, 40, .5);
}
.dlg-card.has-video { width: min(960px, 92vw); }
.dlg-card h3 { font-size: 21px; font-weight: 700; }
.dlg-card p { margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: var(--navy-70); }
.dlg-video {
  margin-top: 18px; overflow: hidden;
  background: #05090e; border-radius: 18px;
  box-shadow: 0 20px 55px -25px rgba(8, 18, 28, .7);
}
.dlg-video[hidden] { display: none; }
.dlg-video video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.dlg-close {
  position: absolute; z-index: 1; top: 12px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; font-size: 20px; color: var(--navy-50);
  transition: background .2s ease;
}
.dlg-close:hover { background: rgba(20, 33, 47, .07); }

/* ============ Mobile ============ */
@media (max-width: 900px) {
  .dlg-card.has-video { width: 94vw; padding: 28px 16px 16px; border-radius: 20px; }
  .dlg-card.has-video h3 { padding-right: 36px; }
  .dlg-card.has-video .dlg-video { margin-top: 14px; border-radius: 12px; }

  .nav { padding: 12px 18px; }
  .brand-word { font-size: 13.5px; }
  .btn-nav { padding: 8px 14px; font-size: 12.5px; }

  .hero { display: block; min-height: 0; padding: 92px 5vw 44px; }
  .hero-bg, .hero-scrim { display: none; }

  .hero { display: flex; flex-direction: column; }
  .hero-copy { padding: 0; max-width: none; margin-top: 0; display: contents; }
  .hero-kicker { order: 1; margin-bottom: 10px; }
  .h1 { font-size: clamp(26px, 6.9vw, 34px); line-height: 1.34; text-wrap: pretty; order: 2; }
  .hero-lead { order: 3; margin-top: 14px; }

  .hero-media {
    display: block; margin-top: 24px; order: 5;
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 24px 50px -20px rgba(20, 45, 70, .35), 0 0 0 1px rgba(20, 33, 47, .05);
    animation: rise .9s cubic-bezier(.2, .65, .2, 1) .3s both;
  }
  .hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% 45%; }

  .cta-row { margin-top: 20px; flex-direction: column; order: 4; }
  .hero-trust { order: 6; margin-top: 18px; }
  .cta-row .btn-lg { width: 100%; }

  /* companions mobile */
  .companions { padding: 60px 5vw 70px; min-height: 0; display: block; }
  .cp-sub { font-size: 14px; }
  .cp-stage {
    height: auto; margin-top: 30px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 6px;
  }
  .cp-window {
    grid-column: 1 / -1; position: relative; left: auto; top: auto; transform: none;
    width: 100%; margin-bottom: 12vw;
  }
  .companions .cp-window, .companions.inview .cp-window { transform: none; }
  .cp-child { bottom: -16%; height: 54%; }
  .cp-role { position: relative; left: auto; top: auto; padding: 2px; }
  .companions .cp-role, .companions.inview .cp-role { transform: none; }
  .cp-role img { height: 17vw !important; }
  .cp-name { font-size: 13.5px; }
  .cp-tag { font-size: 10.5px; white-space: normal; text-align: center; line-height: 1.35; }
  .cp-chip { width: 26px; height: 26px; top: -6px; right: 4px; animation: none; }
  .cp-chip svg { width: 13px; height: 13px; }

  .cp-cards {
    margin: 30px -5vw 0; padding: 2px 5vw 14px;
    justify-content: flex-start; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .cp-cards::-webkit-scrollbar { display: none; }
  .cp-card { flex: 0 0 46%; width: auto; scroll-snap-align: center; }
  .cp-card figcaption { font-size: 12px; }
  .cp-note { margin-top: 22px; font-size: 12px; text-align: left; justify-content: flex-start; }
}

/* ============ Screen 3 · Parent loop ============ */
.loop {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 70px 5vw 30px;
  background:
    radial-gradient(46% 30% at 20% 100%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(52% 34% at 78% 104%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(60% 40% at 50% 112%, rgba(210, 235, 245, .5), transparent 72%),
    var(--pearl);
  overflow: hidden;
}
.lp-head { text-align: center; width: 100%; max-width: 920px; margin: 0 auto; }
.lp-sub { margin-top: 14px; font-size: clamp(14px, 1.25vw, 18px); color: var(--navy-50); line-height: 1.7; }

.lp-stage {
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  width: 100%; max-width: 1280px; margin: 3vh auto 0;
}
.lp-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; z-index: 2; }
.lp-side { width: clamp(230px, 19vw, 272px); }
.lp-center { width: clamp(430px, 41vw, 595px); }

.lp-label { text-align: center; }
.lp-label-t { display: block; font-size: 16px; font-weight: 700; color: var(--cyan-deep); }
.lp-label-s { display: block; margin-top: 5px; font-size: 12.5px; color: var(--navy-50); }

/* connector line + pulse */
.lp-line {
  position: absolute; left: 2%; right: 2%; top: 58%; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(110, 208, 238, .75) 6%, rgba(110, 208, 238, .75) 94%, transparent);
  border-radius: 2px;
}
.lp-pulse {
  position: absolute; top: 50%; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #fff 20%, rgba(110, 208, 238, .95) 60%, rgba(110, 208, 238, 0) 75%);
  box-shadow: 0 0 18px 5px rgba(110, 208, 238, .55);
  transform: translate(-50%, -50%);
  animation: lp-travel 5.5s cubic-bezier(.45, .05, .55, .95) infinite;
}
@keyframes lp-travel { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes lp-travel-v { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.lp-node {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle, #fff 25%, #bfe9f7 65%, rgba(110, 208, 238, 0) 78%);
  box-shadow: 0 0 14px 4px rgba(110, 208, 238, .55);
}

/* bottom captions (per reference) */
.lp-caps {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(28px, 4vw, 64px);
  width: 100%; max-width: 1280px; margin: 64px auto 0;
}
.lp-cap { text-align: center; }
.lp-cap-side { width: clamp(230px, 19vw, 272px); }
.lp-cap-center { width: clamp(400px, 36vw, 520px); }
.lp-cap-t { font-size: 14px; font-weight: 600; color: var(--navy-50); }
.lp-cap-s { display: block; margin-top: 7px; font-size: 12.5px; color: var(--navy-50); line-height: 1.55; }
[data-lang="en"] .lp-cap-t { font-size: 16px; font-weight: 700; color: var(--navy); }

/* CN U-connector: straight segments + rounded corners, linked to side cards */
.lp-u {
  position: absolute; left: 14%; right: 14%; top: 97%; bottom: -50px; z-index: 1;
  border: 2px solid rgba(110, 208, 238, .55); border-top: none;
  border-radius: 0 0 22px 22px;
}
.lp-u-node {
  position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle, #fff 25%, #bfe9f7 65%, rgba(110, 208, 238, 0) 78%);
  box-shadow: 0 0 14px 4px rgba(110, 208, 238, .55);
}

/* EN reference has no top labels (desktop) */
[data-lang="en"] .lp-stage .lp-label { display: none; }

/* phone card */
.lp-phone {
  width: 100%; height: 348px; border-radius: 26px; overflow: hidden;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(30, 70, 100, .35), 0 0 0 1px rgba(20, 33, 47, .06);
  display: flex; flex-direction: column;
}
.lp-ph-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px; font-size: 12px; color: var(--navy-70);
  border-bottom: 1px solid rgba(20, 33, 47, .06);
}
.lp-ph-time { font-weight: 600; }
.lp-ph-name { font-weight: 700; color: var(--navy); }
.lp-ph-dot { color: var(--navy-50); }
.lp-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; }
.lp-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.55; }
.lp-msg-parent { align-self: flex-end; background: #95ec69; color: #14301a; border-bottom-right-radius: 4px; }
.lp-msg-stoyo { align-self: flex-start; display: flex; gap: 8px; align-items: flex-start; background: #fff; color: var(--navy); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(20, 40, 60, .08); }
.lp-avatar { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.lp-ph-bar { padding: 10px 14px 14px; margin-top: auto; }
.lp-ph-input { display: block; height: 26px; border-radius: 13px; background: rgba(20, 33, 47, .05); }

/* video card */
.lp-video { position: relative; border-radius: 14px; overflow: hidden; margin: 0 14px; box-shadow: 0 10px 22px -10px rgba(30, 60, 90, .35); }
.lp-chat .lp-video { margin: 0; align-self: stretch; }
.lp-video img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px -4px rgba(40, 80, 110, .35);
}
.lp-play svg { width: 15px; height: 15px; }
.lp-dur {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 7px; border-radius: 8px;
  background: rgba(15, 25, 35, .55); color: #fff; font-size: 10.5px; font-weight: 600;
}

/* EN controls / summary rows */
.lp-ctrl, .lp-sum { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.lp-sum { gap: 12px; }
.lp-sum .lp-video { margin: 0; }
.lp-ctrl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 13px; background: #fff;
  box-shadow: 0 2px 8px rgba(20, 40, 60, .06); font-size: 12.5px;
}
.lp-ctrl-k { font-weight: 700; color: var(--navy); }
.lp-ctrl-v { color: var(--navy-50); text-align: right; }
.lp-ctrl-save {
  margin-top: auto; padding: 11px; border-radius: 13px; text-align: center;
  background: linear-gradient(120deg, #35b6dd, #2fa8cf); color: #fff;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 22px -8px rgba(47, 168, 207, .5);
}

/* center world panel */
.lp-world {
  position: relative; width: 100%; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -28px rgba(30, 70, 100, .4), 0 0 0 2px rgba(255, 255, 255, .85), 0 0 60px -8px rgba(110, 208, 238, .5);
}
.lp-world-img { display: block; width: 100%; height: 348px; object-fit: cover; }
.lp-challenge {
  position: absolute; left: 5%; right: 5%; bottom: 6%;
  padding: 13px 16px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px -14px rgba(30, 60, 90, .35);
}
.lp-ch-tag { font-size: 11px; font-weight: 700; color: var(--cyan-deep); letter-spacing: .04em; }
.lp-ch-text { margin-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.lp-steps { display: flex; gap: 7px; margin-top: 10px; }
.lp-steps span {
  flex: 1; text-align: center; padding: 6px 4px; border-radius: 10px;
  background: rgba(20, 33, 47, .05); color: var(--navy-50);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.lp-steps .is-on { background: rgba(110, 208, 238, .22); color: var(--cyan-deep); }

/* note + example badge */
.lp-note {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 3vh auto 0; font-size: 12.5px; color: var(--navy-50);
}
.lp-badge {
  padding: 4px 12px; border-radius: 999px;
  background: rgba(110, 208, 238, .18); color: var(--cyan-deep);
  font-size: 11.5px; font-weight: 700;
}

/* lang variants */
[data-lang="cn"] .only-en { display: none !important; }
[data-lang="en"] .only-cn { display: none !important; }

/* loop mobile (must come after .loop desktop rules) */
@media (max-width: 900px) {
  .loop { padding: 60px 5vw 70px; min-height: 0; display: block; }
  .lp-stage { flex-direction: column; align-items: center; gap: 34px; margin-top: 34px; }
  .lp-side, .lp-center { width: 100%; max-width: 420px; }
  .lp-line {
    left: 50%; right: auto; top: 3%; bottom: 3%;
    width: 2px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(110, 208, 238, .75) 8%, rgba(110, 208, 238, .75) 92%, transparent);
  }
  .lp-pulse { left: 50%; top: 0; animation: lp-travel-v 5.5s cubic-bezier(.45, .05, .55, .95) infinite; }
  .lp-ctrl-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .lp-ctrl-v { text-align: left; }
  .lp-caps, .lp-u { display: none; }
  [data-lang="en"] .lp-stage .lp-label { display: block; }
  .lp-phone { height: auto; }
  .lp-world-img { height: auto; }
  .lp-note { margin-top: 30px; font-size: 12px; }
}

/* ============ Screen 4 · Family moment ============ */
.family {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 70px 5vw 30px;
  background:
    radial-gradient(46% 30% at 20% 100%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(52% 34% at 78% 104%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(60% 40% at 50% 112%, rgba(210, 235, 245, .5), transparent 72%),
    var(--pearl);
  overflow: hidden;
}
.fm-head { text-align: center; width: 100%; max-width: 960px; margin: 0 auto; }
.fm-sub { margin-top: 14px; font-size: clamp(14px, 1.25vw, 18px); color: var(--navy-50); line-height: 1.7; }

.fm-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  width: 100%; max-width: 1280px; margin: 4vh auto 0;
}
.fm-line { top: 50%; }
.fm-scene {
  position: relative; z-index: 2; margin: 0;
  width: clamp(520px, 54vw, 780px);
  border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -28px rgba(30, 70, 100, .4), 0 0 0 2px rgba(255, 255, 255, .85), 0 0 60px -8px rgba(110, 208, 238, .5);
}
.fm-scene img { display: block; width: 100%; height: auto; }
.fm-card {
  position: relative; z-index: 2;
  width: clamp(150px, 14vw, 190px);
  padding: 22px 16px 20px; border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -24px rgba(30, 70, 100, .35), 0 0 0 1px rgba(20, 33, 47, .06);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.fm-icon {
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(110, 208, 238, .16); color: var(--cyan-deep);
  display: flex; align-items: center; justify-content: center;
}
.fm-icon svg { width: 21px; height: 21px; }
.fm-card-t { font-size: 15px; font-weight: 700; color: var(--navy); }
.fm-caps { margin-top: 84px; }
.fm-cap-side { width: clamp(150px, 14vw, 190px); }
.fm-cap-center { width: clamp(520px, 54vw, 780px); }
.fm-u { left: 8%; right: 8%; top: 67%; }

/* family mobile */
@media (max-width: 900px) {
  .family { min-height: 0; display: block; padding: 60px 5vw 70px; }
  .fm-stage { flex-direction: column; gap: 24px; margin-top: 34px; }
  .fm-scene { width: 100%; max-width: 480px; }
  .fm-card { width: 100%; max-width: 480px; flex-direction: row; justify-content: center; padding: 16px; }
  .fm-caps { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
