/* Iceyu cinematic brand opening */
html.has-cinematic-intro,
html.has-cinematic-intro body {
  height: 100%;
  overflow: hidden;
}

.cinematic-intro {
  --intro-blue: #164fba;
  --intro-blue-deep: #082963;
  --intro-ice: #79d7ff;
  --intro-yellow: #ffd22e;
  position: fixed;
  z-index: 9999;
  inset: 0;
  min-width: 320px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(184, 224, 255, .36), transparent 27%),
    linear-gradient(138deg, #ffffff 0%, #f8fbff 43%, #ffffff 100%);
  color: #0a2452;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
  transform-origin: 50% 0;
}

.cinematic-intro[hidden] { display: none; }
.intro-particles,
.intro-noise,
.intro-aurora,
.intro-routes,
.intro-coordinate,
.intro-massive-type { position: absolute; pointer-events: none; }
.intro-particles { z-index: -2; inset: 0; width: 100%; height: 100%; }
.intro-noise {
  z-index: 15;
  inset: 0;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.intro-aurora { z-index: -3; border-radius: 50%; filter: blur(70px); opacity: 0; }
.intro-aurora-a { width: 52vw; height: 24vw; left: -10vw; top: 8vh; background: rgba(57, 130, 255, .18); transform: rotate(-17deg); }
.intro-aurora-b { width: 46vw; height: 28vw; right: -8vw; bottom: 7vh; background: rgba(100, 217, 255, .19); transform: rotate(-21deg); }

.intro-topline,
.intro-bottomline {
  position: absolute;
  z-index: 20;
  left: clamp(22px, 3vw, 54px);
  right: clamp(22px, 3vw, 54px);
  display: flex;
  align-items: center;
  color: rgba(8, 41, 99, .62);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  opacity: 0;
}
.intro-topline { top: clamp(22px, 3vw, 46px); }
.intro-bottomline { bottom: clamp(22px, 3vw, 42px); gap: 24px; }
.intro-index { min-width: 170px; }
.intro-system { display: inline-flex; align-items: center; gap: 9px; margin: 0 auto; }
.intro-system i { width: 6px; height: 6px; border-radius: 50%; background: #29b977; box-shadow: 0 0 0 5px rgba(41, 185, 119, .1); }
.intro-skip {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0 7px 12px;
  border: 0;
  background: transparent;
  color: #14376f;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.intro-skip::before { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--intro-yellow); transition: width .25s ease; }
.intro-skip:hover::before { width: 100%; }
.intro-skip span { color: #f0b800; font-size: 15px; }

.intro-stage { position: absolute; z-index: 2; inset: 7vh 0 8vh; display: grid; place-items: center; }
.intro-massive-type {
  z-index: -2;
  inset: 50% 2.6vw auto;
  display: flex;
  justify-content: space-between;
  color: transparent;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(108px, 21vw, 360px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.09em;
  -webkit-text-stroke: 1px rgba(11, 57, 127, .1);
  transform: translateY(-50%);
}
.intro-massive-type span { display: block; clip-path: inset(0 100% 0 0); }

.intro-coordinate { z-index: -1; opacity: 0; }
.intro-coordinate-x { left: 3vw; right: 3vw; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(18, 74, 157, .13) 12%, rgba(18, 74, 157, .13) 88%, transparent); }
.intro-coordinate-y { top: 4vh; bottom: 4vh; left: 50%; width: 1px; background: linear-gradient(180deg, transparent, rgba(18, 74, 157, .11) 16%, rgba(18, 74, 157, .11) 84%, transparent); }
.intro-coordinate-x::before,
.intro-coordinate-x::after { content: "+"; position: absolute; top: -7px; color: rgba(10, 59, 132, .4); font: 12px/1 monospace; }
.intro-coordinate-x::before { left: 18%; }
.intro-coordinate-x::after { right: 18%; }

.intro-routes { z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.intro-route {
  fill: none;
  stroke: url(#intro-route-blue);
  stroke-width: 1.2;
  stroke-dasharray: 10 9;
  stroke-dashoffset: 900;
  vector-effect: non-scaling-stroke;
  filter: url(#intro-route-glow);
}
.route-two { stroke-width: .75; opacity: .72; }
.route-three { stroke-width: .65; opacity: .55; }
.route-node { fill: #fff; stroke: #2b75db; stroke-width: 1.5; opacity: 0; }
.route-node-b { fill: var(--intro-yellow); stroke: #fff; }

.intro-core {
  position: relative;
  width: clamp(272px, 26vw, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.56) rotate(-7deg);
  filter: blur(14px);
}
.intro-core::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: rgba(83, 178, 255, .24);
  box-shadow: 0 0 90px 36px rgba(79, 173, 255, .2);
  filter: blur(18px);
}
.intro-halo { position: absolute; border-radius: 50%; }
.halo-outer { inset: 0; border: 1px solid rgba(22, 79, 186, .17); border-left-color: rgba(22, 79, 186, .7); border-right-color: rgba(121, 215, 255, .65); }
.halo-mid { inset: 8%; border: 1px dashed rgba(22, 79, 186, .28); }
.halo-inner { inset: 15%; border: 1px solid rgba(255, 210, 46, .74); box-shadow: 0 0 24px rgba(255, 210, 46, .19); }
.intro-core-ticks {
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 3deg, rgba(14, 61, 134, .35) 0deg .55deg, transparent .55deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 0 69%, #000 69.5% 70.4%, transparent 71%);
  mask: radial-gradient(circle, transparent 0 69%, #000 69.5% 70.4%, transparent 71%);
}
.intro-logo-mask {
  position: relative;
  width: 68%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(118, 174, 246, .36);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 26px 75px rgba(12, 57, 126, .2), inset 0 0 0 8px rgba(255, 255, 255, .7);
  clip-path: circle(0 at 50% 50%);
}
.intro-logo-mask::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 27%, rgba(255,255,255,.8) 45%, transparent 62%); transform: translateX(-120%); }
.intro-logo-mask img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.06); }
.intro-core-label { position: absolute; left: 50%; color: rgba(8, 45, 105, .62); font: 700 8px/1 Consolas, monospace; letter-spacing: .21em; white-space: nowrap; opacity: 0; }
.intro-core-label-top { top: -18px; transform: translateX(-50%); }
.intro-core-label-bottom { bottom: -19px; transform: translateX(-50%); }

.intro-doodle { position: absolute; width: clamp(340px, 34vw, 550px); height: auto; overflow: visible; transform: rotate(-7deg); }
.intro-doodle path { fill: none; stroke: var(--intro-yellow); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1500; stroke-dashoffset: 1500; filter: drop-shadow(0 4px 10px rgba(255, 192, 0, .18)); }
.intro-doodle path:last-child { stroke-width: 4; }

.intro-packet {
  position: absolute;
  z-index: 5;
  min-width: 224px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(113, 157, 218, .28);
  border-radius: 5px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 18px 55px rgba(12, 55, 119, .1);
  backdrop-filter: blur(16px);
  opacity: 0;
}
.intro-packet > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(18, 78, 165, .17); border-radius: 50%; color: #235cae; font: 700 9px/1 Consolas, monospace; }
.intro-packet div { display: grid; gap: 3px; }
.intro-packet small { color: #8a9ab3; font: 700 7px/1.2 Consolas, monospace; letter-spacing: .08em; }
.intro-packet strong { color: #173d76; font-size: 11px; letter-spacing: .04em; }
.intro-packet b { color: #164fba; font: 700 10px/1 Consolas, monospace; }
.intro-packet-payment { left: 7vw; top: 26%; transform: translate(-70px, 38px) rotate(-4deg); }
.intro-packet-stock { right: 6vw; top: 24%; transform: translate(70px, -30px) rotate(4deg); }
.intro-packet-delivery { right: 10vw; bottom: 19%; transform: translate(70px, 36px) rotate(-3deg); }

.intro-brand-reveal {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: calc(50% + clamp(150px, 15vw, 210px));
  width: min(620px, 88vw);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 24px);
}
.intro-brand-reveal p { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 8px; color: #49688f; font-size: 11px; font-weight: 650; letter-spacing: .28em; }
.intro-brand-reveal p span { width: 22px; height: 4px; border-radius: 50%; background: var(--intro-yellow); transform: rotate(-8deg); }
.intro-brand-reveal h1 { margin: 0; color: #08295f; font-size: clamp(48px, 5vw, 74px); font-weight: 900; line-height: 1; letter-spacing: .13em; }
.intro-brand-reveal h1 span { display: inline-block; clip-path: inset(0 100% 0 0); }
.intro-brand-reveal h1 span + span { color: #1760c2; }
.intro-brand-rule { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 13px; color: rgba(17, 66, 137, .58); font: 700 8px/1 Consolas, monospace; letter-spacing: .33em; }
.intro-brand-rule i { width: 56px; height: 1px; background: rgba(17, 66, 137, .25); }

.intro-sequence { display: flex; align-items: center; gap: 18px; }
.intro-sequence span { opacity: .32; transition: opacity .25s ease, color .25s ease; }
.intro-progress { position: relative; height: 1px; flex: 1; overflow: hidden; background: rgba(14, 63, 139, .13); }
.intro-progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--intro-yellow), #2167ca 56%, #73dcff); transform: translateX(-100%); }
.intro-counter { min-width: 58px; text-align: right; }
.intro-counter b { color: #123f81; font-size: 12px; }

.cinematic-intro.is-playing .intro-topline,
.cinematic-intro.is-playing .intro-bottomline { animation: introFade .7s .12s ease forwards; }
.cinematic-intro.is-playing .intro-aurora-a { animation: introAuroraA 5.7s .1s ease-in-out forwards; }
.cinematic-intro.is-playing .intro-aurora-b { animation: introAuroraB 5.7s .28s ease-in-out forwards; }
.cinematic-intro.is-playing .intro-massive-type span:first-child { animation: introMassive 1.25s .24s cubic-bezier(.2,.8,.2,1) forwards; }
.cinematic-intro.is-playing .intro-massive-type span:last-child { animation: introMassive 1.25s .42s cubic-bezier(.2,.8,.2,1) forwards; }
.cinematic-intro.is-playing .intro-coordinate { animation: introFade .7s .62s ease forwards; }
.cinematic-intro.is-playing .intro-routes { animation: introFade .5s .72s ease forwards; }
.cinematic-intro.is-playing .intro-route { animation: introRoute 2.4s .72s cubic-bezier(.4,0,.2,1) forwards; }
.cinematic-intro.is-playing .route-two { animation-delay: .92s; }
.cinematic-intro.is-playing .route-three { animation-delay: 1.12s; }
.cinematic-intro.is-playing .route-node { animation: introNode .55s 1.72s ease forwards; }
.cinematic-intro.is-playing .route-node-b { animation-delay: 2.02s; }
.cinematic-intro.is-playing .route-node-c { animation-delay: 2.3s; }
.cinematic-intro.is-playing .intro-core { animation: introCore 1.28s .82s cubic-bezier(.16,1,.3,1) forwards; }
.cinematic-intro.is-playing .halo-outer { animation: introSpin 13s 1.1s linear infinite; }
.cinematic-intro.is-playing .halo-mid { animation: introSpinReverse 9s 1.1s linear infinite; }
.cinematic-intro.is-playing .intro-core-ticks { animation: introSpin 24s 1.1s linear infinite; }
.cinematic-intro.is-playing .intro-logo-mask { animation: introLogoReveal 1.18s 1.25s cubic-bezier(.16,1,.3,1) forwards; }
.cinematic-intro.is-playing .intro-logo-mask::after { animation: introLogoShine .85s 2.05s ease forwards; }
.cinematic-intro.is-playing .intro-core-label { animation: introFade .7s 1.82s ease forwards; }
.cinematic-intro.is-playing .intro-doodle path:first-child { animation: introDraw 1.45s 1.38s cubic-bezier(.4,0,.2,1) forwards; }
.cinematic-intro.is-playing .intro-doodle path:last-child { animation: introDraw .65s 2.18s ease forwards; }
.cinematic-intro.is-playing .intro-packet-payment { animation: introPacketLeft .92s 1.72s cubic-bezier(.16,1,.3,1) forwards; }
.cinematic-intro.is-playing .intro-packet-stock { animation: introPacketRight .92s 2.15s cubic-bezier(.16,1,.3,1) forwards; }
.cinematic-intro.is-playing .intro-packet-delivery { animation: introPacketRight .92s 2.58s cubic-bezier(.16,1,.3,1) forwards; }
.cinematic-intro.is-playing .intro-brand-reveal { animation: introBrandIn .8s 3.18s cubic-bezier(.16,1,.3,1) forwards; }
.cinematic-intro.is-playing .intro-brand-reveal h1 span:first-child { animation: introMassive .72s 3.38s cubic-bezier(.2,.8,.2,1) forwards; }
.cinematic-intro.is-playing .intro-brand-reveal h1 span:last-child { animation: introMassive .72s 3.58s cubic-bezier(.2,.8,.2,1) forwards; }
.cinematic-intro.is-playing .intro-progress i { animation: introProgress 5.8s .18s linear forwards; }
.cinematic-intro.is-playing .intro-sequence span:nth-child(1) { animation: introSequence .75s .65s ease both; }
.cinematic-intro.is-playing .intro-sequence span:nth-child(2) { animation: introSequence .75s 1.58s ease both; }
.cinematic-intro.is-playing .intro-sequence span:nth-child(3) { animation: introSequence .75s 2.5s ease both; }
.cinematic-intro.is-playing .intro-sequence span:nth-child(4) { animation: introSequence .75s 3.42s ease both; }

.cinematic-intro.is-quick .intro-topline,
.cinematic-intro.is-quick .intro-bottomline,
.cinematic-intro.is-quick .intro-core,
.cinematic-intro.is-quick .intro-brand-reveal { animation: introFade .32s ease forwards; }
.cinematic-intro.is-quick .intro-core { filter: none; transform: scale(.9); }
.cinematic-intro.is-quick .intro-logo-mask { clip-path: circle(50% at 50% 50%); }
.cinematic-intro.is-quick .intro-brand-reveal h1 span { clip-path: inset(0); }
.cinematic-intro.is-quick .intro-brand-reveal { transform: translate(-50%, 0); }
.cinematic-intro.is-quick .intro-doodle path { animation: introDraw .65s .06s ease forwards; }
.cinematic-intro.is-quick .intro-progress i { animation: introProgress 1.05s linear forwards; }
.cinematic-intro.is-quick .intro-packet,
.cinematic-intro.is-quick .intro-routes,
.cinematic-intro.is-quick .intro-massive-type { display: none; }

.cinematic-intro.is-leaving { animation: introCurtainOut .92s cubic-bezier(.76,0,.24,1) forwards; pointer-events: none; }
.cinematic-intro.is-leaving::after {
  content: "";
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--intro-yellow);
  box-shadow: 0 0 30px rgba(255, 210, 46, .55);
}
body.intro-unveiling .site-header { animation: introSiteHeader .8s .28s cubic-bezier(.16,1,.3,1) both; }
body.intro-unveiling .hero-copy { animation: introSiteCopy .9s .32s cubic-bezier(.16,1,.3,1) both; }
body.intro-unveiling .hero-scene { animation: introSiteScene 1.05s .4s cubic-bezier(.16,1,.3,1) both; }
body.intro-unveiling .hero-feature-bar { animation: introSiteCopy .8s .55s cubic-bezier(.16,1,.3,1) both; }

@keyframes introFade { to { opacity: 1; } }
@keyframes introMassive { to { clip-path: inset(0 0 0 0); } }
@keyframes introAuroraA { 0% { opacity: 0; transform: translate(-4vw, 3vh) rotate(-17deg); } 30%,80% { opacity: 1; } 100% { opacity: .2; transform: translate(27vw, 9vh) rotate(-10deg); } }
@keyframes introAuroraB { 0% { opacity: 0; transform: translate(5vw, 4vh) rotate(-21deg); } 30%,80% { opacity: 1; } 100% { opacity: .2; transform: translate(-24vw, -9vh) rotate(-12deg); } }
@keyframes introRoute { to { stroke-dashoffset: 0; } }
@keyframes introNode { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes introCore { to { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); } }
@keyframes introLogoReveal { to { clip-path: circle(50% at 50% 50%); } }
@keyframes introLogoShine { to { transform: translateX(120%); } }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introSpin { to { transform: rotate(360deg); } }
@keyframes introSpinReverse { to { transform: rotate(-360deg); } }
@keyframes introPacketLeft { to { opacity: 1; transform: translate(0, 0) rotate(0); } }
@keyframes introPacketRight { to { opacity: 1; transform: translate(0, 0) rotate(0); } }
@keyframes introBrandIn { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes introProgress { to { transform: translateX(0); } }
@keyframes introSequence { 0%,100% { opacity: .32; color: inherit; } 35%,65% { opacity: 1; color: #164fba; } }
@keyframes introCurtainOut { 0% { transform: translateY(0); } 100% { transform: translateY(-102%); } }
@keyframes introSiteHeader { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introSiteCopy { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introSiteScene { from { opacity: 0; transform: translate(42px, 20px) scale(.96); } to { opacity: 1; transform: translate(0) scale(1); } }

@media (max-width: 900px) {
  .intro-topline { justify-content: space-between; }
  .intro-index { min-width: 0; }
  .intro-system { display: none; }
  .intro-packet { min-width: 188px; padding: 10px 11px; }
  .intro-packet-payment { left: 4vw; top: 25%; }
  .intro-packet-stock { right: 4vw; top: 27%; }
  .intro-packet-delivery { right: 5vw; bottom: 18%; }
  .intro-sequence { display: none; }
}

@media (max-width: 680px) {
  .intro-topline,
  .intro-bottomline { left: 18px; right: 18px; }
  .intro-topline { top: 20px; }
  .intro-bottomline { bottom: max(20px, env(safe-area-inset-bottom)); }
  .intro-stage { inset: 8vh 0 10vh; }
  .intro-massive-type { inset-inline: -4vw; font-size: 35vw; -webkit-text-stroke-color: rgba(11, 57, 127, .08); }
  .intro-core { width: min(72vw, 310px); transform: scale(.58) rotate(-7deg); }
  .intro-doodle { width: min(88vw, 370px); }
  .intro-packet { min-width: 154px; grid-template-columns: 26px 1fr; gap: 8px; padding: 9px; }
  .intro-packet > span { width: 25px; height: 25px; }
  .intro-packet b { display: none; }
  .intro-packet small { font-size: 6px; }
  .intro-packet strong { font-size: 9px; }
  .intro-packet-payment { left: 4vw; top: 19%; }
  .intro-packet-stock { right: 3vw; top: 23%; }
  .intro-packet-delivery { right: auto; bottom: 1%; left: 50%; transform: translate(-50%, 36px) rotate(-3deg); }
  .cinematic-intro.is-playing .intro-packet-delivery { animation-name: introPacketMobile; }
  .intro-brand-reveal { top: calc(50% + min(41vw, 177px)); }
  .intro-brand-reveal p { font-size: 9px; letter-spacing: .15em; }
  .intro-brand-reveal h1 { font-size: clamp(42px, 14vw, 58px); letter-spacing: .08em; }
  .intro-brand-rule { margin-top: 9px; }
  .intro-core-label { font-size: 6px; }
  .intro-progress { width: 100%; }
  .intro-counter { font-size: 9px; }
}

@keyframes introPacketMobile { to { opacity: 1; transform: translate(-50%, 0) rotate(0); } }

@media (max-height: 700px) and (min-width: 681px) {
  .intro-core { width: min(42vh, 340px); }
  .intro-brand-reveal { top: calc(50% + min(23vh, 190px)); }
  .intro-packet-delivery { bottom: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-intro { display: none !important; }
  html.has-cinematic-intro,
  html.has-cinematic-intro body { height: auto; overflow: auto; }
  body.intro-unveiling .site-header,
  body.intro-unveiling .hero-copy,
  body.intro-unveiling .hero-scene,
  body.intro-unveiling .hero-feature-bar { animation: none; }
}
