/* VIZSITU dynamic review — 2D motion on top of the current site.
   Identity stays magenta / stone / warm paper. Color bands echo the parent palette. */

:root{
  --ribbon-1:#E1067A;
  --ribbon-2:#EB660F;
  --ribbon-3:#F5A020;
  --ribbon-4:#2380B7;
  --ribbon-5:#7D3891;
}
h1,h2,h3{text-wrap:balance}
body.is-loading .hero-bg img,
.is-loading .tile img,
.is-loading .card .media img{filter:none;transform:none}

.hero-ribbons{
  position:absolute;left:0;right:0;bottom:54px;z-index:2;
  display:grid;gap:7px;pointer-events:none;padding:0 4vw;
}
.hero-ribbons i{
  display:block;height:7px;transform-origin:0 50%;
  background:var(--c,var(--magenta));
}
.hero-ribbons i:nth-child(1){--c:#E1067A;width:92%}
.hero-ribbons i:nth-child(2){--c:#EB660F;width:74%}
.hero-ribbons i:nth-child(3){--c:#F5A020;width:58%}
.hero-ribbons i:nth-child(4){--c:#2380B7;width:42%}
.hero-ribbons i:nth-child(5){--c:#7D3891;width:28%}
html:not(.reduce-motion) .hero-ribbons i{animation:viz-grow .9s cubic-bezier(.16,.84,.24,1) both}
html:not(.reduce-motion) .hero-ribbons i:nth-child(2){animation-delay:.08s}
html:not(.reduce-motion) .hero-ribbons i:nth-child(3){animation-delay:.16s}
html:not(.reduce-motion) .hero-ribbons i:nth-child(4){animation-delay:.24s}
html:not(.reduce-motion) .hero-ribbons i:nth-child(5){animation-delay:.32s}
@keyframes viz-grow{from{transform:scaleX(0)}}

.screenline{background:var(--paper);color:var(--ink);position:relative}
.screenline-head{padding-top:72px}
.screenline-head .lede{max-width:40rem}
.screenline-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:start;padding-bottom:48px}
.screenline-stage{
  position:sticky;top:96px;aspect-ratio:16/10;background:#2A2724;border-radius:18px;overflow:hidden;
}
.screenline-stage img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;clip-path:inset(0 0 0 100%);
}
.screenline-stage img.is-on{opacity:1;clip-path:inset(0);z-index:1}
html:not(.reduce-motion) .screenline-stage img.is-on{animation:viz-wipe .7s cubic-bezier(.16,.84,.24,1)}
@keyframes viz-wipe{from{clip-path:inset(0 0 0 100%)}to{clip-path:inset(0)}}
.screenline-steps{list-style:none;margin:0;padding:8px 0 0}
.screenline-steps li{border-top:1px solid rgba(42,39,36,.16)}
@media (min-width:861px){
  html:not(.reduce-motion) .screenline-steps li{min-height:46vh;display:flex;flex-direction:column;justify-content:center}
}
.screenline-steps button{
  width:100%;min-height:64px;display:flex;align-items:center;gap:14px;
  background:transparent;border:0;text-align:left;cursor:pointer;padding:10px 4px;
  font-size:18px;font-weight:650;
}
.screenline-steps b{
  font-variant-numeric:tabular-nums;color:var(--magenta);min-width:2.2em;
}
.screenline-steps li.is-on button{color:var(--ink)}
.screenline-steps li.is-on{background:linear-gradient(90deg,rgba(225,6,122,.12),transparent 70%)}
.screenline-steps .step-photo{display:none}
.color-rule{display:grid;grid-template-columns:repeat(5,1fr);height:10px}
.color-rule i:nth-child(1){background:#E1067A}
.color-rule i:nth-child(2){background:#EB660F}
.color-rule i:nth-child(3){background:#F5A020}
.color-rule i:nth-child(4){background:#2380B7}
.color-rule i:nth-child(5){background:#7D3891}
html:not(.reduce-motion) .color-rule.is-in i{animation:viz-grow .6s cubic-bezier(.16,.84,.24,1) both}
html:not(.reduce-motion) .color-rule.is-in i:nth-child(2){animation-delay:.05s}
html:not(.reduce-motion) .color-rule.is-in i:nth-child(3){animation-delay:.1s}
html:not(.reduce-motion) .color-rule.is-in i:nth-child(4){animation-delay:.15s}
html:not(.reduce-motion) .color-rule.is-in i:nth-child(5){animation-delay:.2s}

.gallery-row{scroll-snap-type:x mandatory}
html:not(.reduce-motion) .gallery-row .g-item{transition:transform .45s cubic-bezier(.16,.84,.24,1)}

@media (max-width:860px){
  .hero-ribbons{bottom:18px}
  .screenline-layout{grid-template-columns:1fr}
  .screenline-stage{display:none}
  .screenline-steps .step-photo{
    display:block;margin:0 0 12px;border-radius:14px;overflow:hidden;aspect-ratio:16/10;
  }
  .screenline-steps .step-photo img{width:100%;height:100%;object-fit:cover;display:block}
  .screenline-steps button{min-height:48px;font-size:17px}
  .screenline-head{padding-top:36px}
}
@media (max-width:390px){
  html[lang="zh"] .hero h1{font-size:34px;line-height:1.2}
}

.reduce-motion .hero-ribbons i,
.reduce-motion .screenline-stage img,
.reduce-motion .color-rule i{
  animation:none!important;transform:none!important;
}
.reduce-motion .screenline-stage img.is-on{clip-path:none;opacity:1}
.reduce-motion .screenline{height:auto!important}
.reduce-motion .screenline-stage{position:static}
