/* Motion for the 'Choose the look' band: Gemini's Design System v2 motion layer (design/v2/looks_v2_motion.css,
   30 Nov 2026), unchanged except plain hyphens in comments. Fires on .look.on (looks.js). */
/* ==========================================================================
   Laojia Design System v2 - Motion & Micro-Interaction Layer
   Zero-dependency, GPU-composited, CSP-safe CSS animations tailored to each
   Chinese artistic medium.

   Designed to pair directly with looks_v2.css:
     - Triggers entrance choreography when `.lk2-frame` receives `.is-active`
       (or inside `.look.on` in site_v2's 7-second 'Choose the look' band).
     - Runs calm, meditative ambient museum-light loops continuously while active.
     - Honors `@media (prefers-reduced-motion: reduce)` unconditionally.
   ========================================================================== */

:root {
  --lk-ease-brush: cubic-bezier(0.22, 1, 0.36, 1);
  --lk-ease-silk: cubic-bezier(0.37, 0, 0.63, 1);
  --lk-ease-seal: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Ambient Light Overlay Slot inside Hero ---------- */
.lk2-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lk2-hero-fx::before,
.lk2-hero-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ---------- Shared Entrance Choreography (.is-active / .look.on) ---------- */
.lk2-anim .lk2-kick,
.lk2-anim .lk2-title,
.lk2-anim .lk2-zh-sub,
.lk2-anim .lk2-lead,
.lk2-anim .lk2-card,
.lk2-anim .lk2-vert {
  opacity: 0;
  will-change: transform, opacity;
}

.lk2-anim .lk2-kick::before {
  transform-origin: left center;
  transform: scaleX(0);
}

.lk2-anim.is-active .lk2-kick,
.look.on .lk2-anim .lk2-kick {
  animation: lkFadeRise 0.85s var(--lk-ease-brush) 0.12s both;
}

.lk2-anim.is-active .lk2-kick::before,
.look.on .lk2-anim .lk2-kick::before {
  animation: lkRuleDraw 0.9s var(--lk-ease-brush) 0.14s both;
}

.lk2-anim.is-active .lk2-title,
.look.on .lk2-anim .lk2-title {
  animation: lkFadeRise 1.05s var(--lk-ease-brush) 0.22s both;
}

.lk2-anim.is-active .lk2-zh-sub,
.look.on .lk2-anim .lk2-zh-sub {
  animation: lkFadeRise 0.95s var(--lk-ease-brush) 0.34s both;
}

.lk2-anim.is-active .lk2-lead,
.look.on .lk2-anim .lk2-lead {
  animation: lkFadeRise 1.0s var(--lk-ease-brush) 0.44s both;
}

.lk2-anim.is-active .lk2-card:nth-child(1),
.look.on .lk2-anim .lk2-card:nth-child(1) {
  animation: lkCardSettle 0.9s var(--lk-ease-brush) 0.48s both;
}

.lk2-anim.is-active .lk2-card:nth-child(2),
.look.on .lk2-anim .lk2-card:nth-child(2) {
  animation: lkCardSettle 0.9s var(--lk-ease-brush) 0.60s both;
}

.lk2-anim.is-active .lk2-card:nth-child(3),
.look.on .lk2-anim .lk2-card:nth-child(3) {
  animation: lkCardSettle 0.9s var(--lk-ease-brush) 0.72s both;
}

/* Shared smooth hover affordances */
.lk2-card {
  transition:
    transform 0.45s var(--lk-ease-brush),
    box-shadow 0.45s var(--lk-ease-brush),
    border-color 0.45s var(--lk-ease-brush),
    background-color 0.45s var(--lk-ease-brush);
}

.lk2-seal {
  transition: transform 0.4s var(--lk-ease-seal), box-shadow 0.4s var(--lk-ease-brush);
}

.lk2-nav span {
  transition: color 0.3s ease;
}

/* ==========================================================================
   1. 墨印 INK AND SEAL - Unrolling Handscroll, Valley Mist & Cinnabar Stamp
   ========================================================================== */
.look2-ink.lk2-anim.is-active .lk2-hero-art,
.look.on .look2-ink.lk2-anim .lk2-hero-art {
  animation:
    lkScrollUnroll 1.8s var(--lk-ease-brush) 0.05s both,
    lkInkBreath 16s var(--lk-ease-silk) 1.85s infinite alternate;
}

.look2-ink.lk2-anim.is-active .lk2-seal,
.look.on .look2-ink.lk2-anim .lk2-seal {
  animation: lkSealStamp 0.72s var(--lk-ease-seal) 0.28s both;
}

.look2-ink.lk2-anim.is-active .lk2-vert,
.look.on .look2-ink.lk2-anim .lk2-vert {
  animation: lkVertDrop 1.2s var(--lk-ease-brush) 0.72s both;
}

/* Drifting pale mountain-valley mist layered softly across the ink ridges */
.look2-ink .lk2-hero-fx::before {
  left: 38%;
  top: 22%;
  width: 78%;
  height: 58%;
  background:
    radial-gradient(ellipse 46% 36% at 32% 56%, rgba(246, 241, 230, 0.72) 0%, rgba(246, 241, 230, 0) 72%),
    radial-gradient(ellipse 38% 30% at 72% 40%, rgba(250, 246, 238, 0.56) 0%, rgba(246, 241, 230, 0) 70%);
  filter: blur(10px);
  animation: lkInkMistDrift 11s var(--lk-ease-silk) infinite alternate;
}

.look2-ink .lk2-hero-fx::after {
  left: 48%;
  top: 52%;
  width: 66%;
  height: 44%;
  background:
    radial-gradient(ellipse 52% 42% at 50% 50%, rgba(246, 241, 230, 0.54) 0%, rgba(246, 241, 230, 0) 74%);
  filter: blur(14px);
  animation: lkInkMistDriftReverse 14s var(--lk-ease-silk) infinite alternate;
}

.look2-ink .lk2-card:hover {
  transform: translateY(-2px);
  border-color: #C4B49A;
  box-shadow: 0 12px 28px -20px rgba(30, 27, 24, 0.28);
}

.look2-ink .lk2-seal:hover {
  transform: scale(1.04);
  box-shadow: inset 0 0 0 2px #9E2B25, inset 0 0 0 3px rgba(251, 246, 236, 0.52), 0 4px 12px -4px rgba(158, 43, 37, 0.45);
}

/* ==========================================================================
   2. 青花 MING BLUE AND WHITE - Cobalt Bloom, Frieze Unfurl & Glaze Sheen
   ========================================================================== */
.look2-ming.lk2-anim.is-active .lk2-hero-art,
.look.on .look2-ming.lk2-anim .lk2-hero-art {
  animation:
    lkCobaltBloom 1.65s var(--lk-ease-brush) 0.08s both,
    lkPorcelainDrift 18s var(--lk-ease-silk) 1.75s infinite alternate;
}

.look2-ming.lk2-anim.is-active .lk2-frieze-strip,
.look.on .look2-ming.lk2-anim .lk2-frieze-strip {
  animation: lkFriezeUnfurl 1.3s var(--lk-ease-brush) 0.36s both;
}

.look2-ming.lk2-anim.is-active .lk2-seal,
.look.on .look2-ming.lk2-anim .lk2-seal {
  animation: lkMedallionBloom 0.85s var(--lk-ease-brush) 0.22s both;
}

/* Luminous diagonal porcelain glaze sheen gliding across sweet-white surface */
.look2-ming .lk2-hero-fx::before {
  inset: -10% -40%;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.72) 47%,
    rgba(218, 230, 250, 0.34) 51%,
    rgba(255, 255, 255, 0) 62%
  );
  animation: lkGlazeSheen 7.5s var(--lk-ease-silk) 1.1s infinite;
}

.look2-ming .lk2-card:hover {
  transform: translateY(-2px);
  border-color: #9FB5DA;
  box-shadow: 0 16px 32px -22px rgba(26, 53, 115, 0.32);
}

.look2-ming .lk2-seal:hover {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 2px #F7F8FC, inset 0 0 0 3px #1A3573, 0 6px 16px -6px rgba(26, 53, 115, 0.42);
}

/* ==========================================================================
   3. 天青 RU CELADON - Rain-Cleared Sky & Pearlescent Ice-Crackle Glint
   ========================================================================== */
.look2-ru.lk2-anim.is-active .lk2-hero-art,
.look.on .look2-ru.lk2-anim .lk2-hero-art {
  animation:
    lkSkyClear 1.85s var(--lk-ease-brush) 0.05s both,
    lkCeladonBreath 16s var(--lk-ease-silk) 1.9s infinite alternate;
}

.look2-ru.lk2-anim.is-active .lk2-vert,
.look.on .look2-ru.lk2-anim .lk2-vert {
  animation: lkRainSettle 1.35s var(--lk-ease-brush) 0.62s both;
}

.look2-ru.lk2-anim.is-active .lk2-seal,
.look.on .look2-ru.lk2-anim .lk2-seal {
  animation: lkMedallionBloom 0.9s var(--lk-ease-brush) 0.24s both;
}

/* Translucent pearlescent light gliding across polygonal chanyiwen crackle */
.look2-ru .lk2-hero-fx::before {
  inset: -12% -45%;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, 0.56) 46%,
    rgba(232, 244, 239, 0.44) 52%,
    rgba(255, 255, 255, 0) 66%
  );
  mix-blend-mode: soft-light;
  animation: lkCrackleGlint 8.5s var(--lk-ease-silk) 1.0s infinite;
}

/* Secondary ultra-soft sky-after-rain luminous veil */
.look2-ru .lk2-hero-fx::after {
  left: 44%;
  top: 0;
  width: 56%;
  height: 100%;
  background: radial-gradient(ellipse 65% 75% at 72% 42%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 70%);
  animation: lkRuLightPulse 10s var(--lk-ease-silk) infinite alternate;
}

.look2-ru .lk2-card:hover {
  transform: translateY(-3px);
  border-color: rgba(154, 143, 128, 0.42);
  box-shadow: 0 18px 36px -20px rgba(33, 48, 44, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.look2-ru .lk2-seal:hover {
  transform: scale(1.04);
  box-shadow: inset 0 0 0 2px rgba(249, 251, 249, 0.46), 0 8px 18px -8px rgba(54, 97, 89, 0.45);
}

/* ==========================================================================
   4. 描金 GOLD ON LACQUER - Candlelit 24k Burnished Gold Gleam & Gilded Reveal
   ========================================================================== */
.look2-lacquer.lk2-anim.is-active .lk2-hero-art,
.look.on .look2-lacquer.lk2-anim .lk2-hero-art {
  animation:
    lkLacquerEmerge 1.75s var(--lk-ease-brush) 0.08s both,
    lkLacquerBreath 18s var(--lk-ease-silk) 1.85s infinite alternate;
}

.look2-lacquer.lk2-anim.is-active .lk2-frieze-strip,
.look.on .look2-lacquer.lk2-anim .lk2-frieze-strip {
  animation:
    lkFriezeUnfurl 1.35s var(--lk-ease-brush) 0.4s both,
    lkFriezeGoldPulse 7.2s var(--lk-ease-silk) 1.8s infinite alternate;
}

.look2-lacquer.lk2-anim.is-active .lk2-seal,
.look.on .look2-lacquer.lk2-anim .lk2-seal {
  animation: lkGildedSealIn 0.9s var(--lk-ease-brush) 0.24s both;
}

/* Burnished 24k gold specular light sweep strictly across the right lacquer artwork */
.look2-lacquer .lk2-hero-fx {
  left: 44%;
  right: 0;
  top: 0;
  bottom: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}

.look2-lacquer .lk2-hero-fx::before {
  inset: -10% -65%;
  background: linear-gradient(
    110deg,
    rgba(212, 175, 106, 0) 34%,
    rgba(232, 206, 146, 0.22) 45%,
    rgba(255, 240, 196, 0.48) 50%,
    rgba(212, 175, 106, 0.20) 55%,
    rgba(212, 175, 106, 0) 66%
  );
  mix-blend-mode: color-dodge;
  animation: lkGoldSheen 6.8s var(--lk-ease-silk) 0.9s infinite;
}

/* Subtle warm lacquer surface depth glow */
.look2-lacquer .lk2-hero-fx::after {
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 68% 48%, rgba(212, 175, 106, 0.14) 0%, rgba(16, 12, 6, 0) 72%);
  mix-blend-mode: screen;
  animation: lkGoldEmberPulse 9s var(--lk-ease-silk) infinite alternate;
}

.look2-lacquer .lk2-card:hover {
  transform: translateY(-2px);
  background: #1F1811;
  border-color: #B69352;
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(232, 206, 146, 0.32);
}

.look2-lacquer .lk2-seal:hover {
  transform: scale(1.04);
  border-color: #E8CE92;
  box-shadow: inset 0 0 0 2px #100C06, inset 0 0 0 3px rgba(232, 206, 146, 0.72), 0 0 18px -4px rgba(212, 175, 106, 0.45);
}

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes lkFadeRise {
  from { opacity: 0; transform: translateY(11px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lkRuleDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes lkCardSettle {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ink & Seal */
@keyframes lkScrollUnroll {
  from { opacity: 0.25; clip-path: inset(0 0 0 42%); transform: scale(1.035) translateX(10px); }
  to   { opacity: 1;    clip-path: inset(0 0 0 0);   transform: scale(1) translateX(0); }
}

@keyframes lkInkBreath {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.032) translateX(-8px); }
}

@keyframes lkSealStamp {
  0%   { opacity: 0; transform: scale(1.16) rotate(-2deg); }
  65%  { opacity: 1; transform: scale(0.985) rotate(0.2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes lkVertDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lkInkMistDrift {
  0%   { transform: translate3d(-4%, 2%, 0) scale(1); opacity: 0.55; }
  50%  { opacity: 0.85; }
  100% { transform: translate3d(7%, -3%, 0) scale(1.08); opacity: 0.62; }
}

@keyframes lkInkMistDriftReverse {
  0%   { transform: translate3d(6%, -2%, 0) scale(1.04); opacity: 0.42; }
  100% { transform: translate3d(-6%, 3%, 0) scale(0.96); opacity: 0.72; }
}

/* Ming Blue & White */
@keyframes lkCobaltBloom {
  from { opacity: 0; transform: scale(1.045) translateX(12px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}

@keyframes lkPorcelainDrift {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.028) translateX(-6px); }
}

@keyframes lkFriezeUnfurl {
  from { opacity: 0; clip-path: inset(0 46% 0 46%); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes lkMedallionBloom {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes lkGlazeSheen {
  0%   { transform: translateX(-52%); opacity: 0; }
  12%  { opacity: 1; }
  55%  { transform: translateX(48%); opacity: 1; }
  68%  { opacity: 0; }
  100% { transform: translateX(48%); opacity: 0; }
}

/* Ru Celadon */
@keyframes lkSkyClear {
  from { opacity: 0; filter: blur(4px); transform: scale(1.03); }
  to   { opacity: 1; filter: blur(0);   transform: scale(1); }
}

@keyframes lkCeladonBreath {
  from { transform: scale(1); }
  to   { transform: scale(1.028); }
}

@keyframes lkRainSettle {
  from { opacity: 0; transform: translateY(calc(-50% - 14px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

@keyframes lkCrackleGlint {
  0%   { transform: translateX(-54%); opacity: 0; }
  14%  { opacity: 1; }
  60%  { transform: translateX(50%); opacity: 1; }
  74%  { opacity: 0; }
  100% { transform: translateX(50%); opacity: 0; }
}

@keyframes lkRuLightPulse {
  from { opacity: 0.32; transform: translateX(-3%); }
  to   { opacity: 0.72; transform: translateX(4%); }
}

/* Gold on Lacquer */
@keyframes lkLacquerEmerge {
  from { opacity: 0; filter: brightness(0.75); transform: scale(1.035); }
  to   { opacity: 1; filter: brightness(1);    transform: scale(1); }
}

@keyframes lkLacquerBreath {
  from { transform: scale(1); }
  to   { transform: scale(1.026); }
}

@keyframes lkGildedSealIn {
  from { opacity: 0; transform: scale(0.92); filter: brightness(1.3); }
  to   { opacity: 1; transform: scale(1);    filter: brightness(1); }
}

@keyframes lkGoldSheen {
  0%   { transform: translateX(-58%); opacity: 0; }
  12%  { opacity: 1; }
  58%  { transform: translateX(56%); opacity: 1; }
  72%  { opacity: 0; }
  100% { transform: translateX(56%); opacity: 0; }
}

@keyframes lkGoldEmberPulse {
  from { opacity: 0.35; }
  to   { opacity: 0.85; }
}

@keyframes lkFriezeGoldPulse {
  from { filter: brightness(1.08) contrast(1.02); }
  to   { filter: brightness(1.26) contrast(1.06); }
}

/* ==========================================================================
   ACCESSIBILITY: Respect Reduced Motion Unconditionally
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .lk2-anim,
  .lk2-anim *,
  .lk2-anim *::before,
  .lk2-anim *::after,
  .lk2-hero-fx::before,
  .lk2-hero-fx::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  .lk2-vert {
    transform: translateY(-50%) !important;
  }
  .look2-ink .lk2-vert {
    transform: none !important;
  }
  .lk2-hero-fx {
    display: none !important;
  }
}
