/* NO WAKE landing hero: a dark stage with sweeping light, and the real
   NoWake logo as a glossy, melting 3D character floating over a pool of
   light (in the style of the reference the team picked).
   Only transform and opacity animate; blurs are drawn once. Paused off
   screen; still for people who ask for less motion. */

/* a frozen night: deep icy blue, lighter towards the frozen lake */
.nwx-on.night-sky-hero {
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(40, 120, 200, 0.18), transparent 70%),
    radial-gradient(90% 38% at 50% 82%, rgba(214, 226, 242, 0.16), transparent 72%),
    radial-gradient(50% 30% at 22% 76%, rgba(255, 214, 186, 0.07), transparent 70%),
    linear-gradient(180deg, #040b17 0%, #0b2038 40%, #1d3a5a 70%, #3a5470 86%, #0c1a2c 100%) !important;
}
.nwx-on.night-sky-hero > div:not(.z-10):not(.nwx-stage) {
  display: none !important;
}
.nwx-on.night-sky-hero > .z-10 { position: relative; z-index: 2; }
.nwx-on:not(.nwx-light).night-sky-hero > .z-10 h1 { color: #fff; }
.nwx-on:not(.nwx-light).night-sky-hero > .z-10 > p { color: rgba(226, 236, 255, 0.72); }

/* light theme: a bright, icy daytime stage (text keeps the theme's own
   colours) */
.nwx-on.nwx-light.night-sky-hero {
  background:
    radial-gradient(55% 50% at 24% 60%, rgba(120, 190, 255, 0.4), transparent 70%),
    radial-gradient(40% 35% at 85% 15%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(60% 30% at 70% 88%, rgba(255, 226, 205, 0.28), transparent 70%),
    linear-gradient(180deg, #f6f9fd 0%, #e7eef7 50%, #d9e3ef 80%, #cfdcec 100%) !important;
}
.nwx-light .nwx-streaks { animation-name: nwx-drift-light; }
.nwx-light .nwx-aurora {
  background:
    radial-gradient(40% 35% at 30% 40%, rgba(80, 220, 210, 0.22), transparent 70%),
    radial-gradient(35% 30% at 62% 30%, rgba(120, 190, 255, 0.28), transparent 70%),
    radial-gradient(30% 25% at 85% 45%, rgba(170, 150, 255, 0.18), transparent 70%);
}
.nwx-light .nwx-ice-hi { stop-color: #ffffff; stop-opacity: 0.95; }
.nwx-light .nwx-ice-mid { stop-color: #b9dcfb; stop-opacity: 0.85; }
.nwx-light .nwx-ice-lo { stop-color: #d6eaff; stop-opacity: 0.4; }
.nwx-light .nwx-lake-a { stop-color: #e6f4ff; stop-opacity: 1; }
.nwx-light .nwx-lake-b { stop-color: #c4def7; stop-opacity: 1; }
.nwx-light .nwx-facet { stroke: #ffffff; stroke-opacity: 0.9; }
.nwx-light .nwx-shore { stroke: #ffffff; stroke-opacity: 0.9; }
.nwx-light .nwx-shine { stroke: #ffffff; stroke-opacity: 0.7; }
.nwx-light .nwx-cracks { stroke: #8fc2ee; stroke-opacity: 0.5; }
.nwx-light .nwx-rime { stroke: #7fb8ec; stroke-opacity: 0.45; }
@keyframes nwx-drift-light {
  from { transform: translate3d(-1.5%, 1%, 0); opacity: 0.45; }
  to { transform: translate3d(1.5%, -1%, 0); opacity: 0.6; }
}
.nwx-light .nwx-aura {
  background: radial-gradient(closest-side, rgba(90, 175, 255, 0.4), rgba(120, 190, 255, 0.14) 55%, transparent 76%);
}
.nwx-light .nwx-main {
  filter: drop-shadow(0 14px 26px rgba(20, 90, 210, 0.35));
}
.nwx-light .nwx-flake {
  background: radial-gradient(circle, #fff 0 30%, rgba(110, 185, 255, 0.85) 52%, transparent 72%);
}
.nwx-light .nwx-crystal svg g { stroke: #5aaeff; }
.nwx-light .nwx-fog {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25) 60%, transparent);
}
.nwx-light .nwx-ring { border-color: rgba(40, 130, 240, 0.5); }

.nwx-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* northern lights, slowly breathing */
.nwx-aurora {
  position: absolute;
  inset: -10% -10% 45% -10%;
  background:
    radial-gradient(40% 35% at 30% 40%, rgba(60, 255, 210, 0.22), transparent 70%),
    radial-gradient(35% 30% at 62% 30%, rgba(80, 180, 255, 0.24), transparent 70%),
    radial-gradient(30% 25% at 85% 45%, rgba(150, 120, 255, 0.16), transparent 70%);
  will-change: transform, opacity;
  animation: nwx-aurora 14s ease-in-out infinite alternate;
}
@keyframes nwx-aurora {
  from { transform: translate3d(-3%, 0, 0) scaleY(1); opacity: 0.7; }
  to { transform: translate3d(3%, 2%, 0) scaleY(1.12); opacity: 1; }
}

/* ice mountains, frozen lake, frost (drawn once) */
.nwx-frost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* phones: the frozen landscape stays at the bottom instead of growing
   with the tall section */
@media (max-width: 767px) {
  .nwx-frost {
    top: auto;
    bottom: 0;
    height: min(100%, 380px);
  }
}
.nwx-ice-hi { stop-color: #c8eeff; stop-opacity: 0.5; }
.nwx-ice-mid { stop-color: #6cb4ea; stop-opacity: 0.34; }
.nwx-ice-lo { stop-color: #1b5a8f; stop-opacity: 0.05; }
.nwx-lake-a { stop-color: #134b72; stop-opacity: 0.9; }
.nwx-lake-b { stop-color: #04111f; stop-opacity: 1; }
.nwx-facet { stroke: #e6f8ff; stroke-opacity: 0.35; stroke-width: 1.2; fill: none; }
.nwx-shore { stroke: #bfeeff; stroke-opacity: 0.45; stroke-width: 1.5; fill: none; }
.nwx-shine { stroke: #cdf2ff; stroke-opacity: 0.16; stroke-width: 2; stroke-linecap: round; fill: none; }
.nwx-cracks { stroke: #d8f4ff; stroke-opacity: 0.18; stroke-width: 1; fill: none; }
.nwx-rime { stroke: #d6f3ff; stroke-opacity: 0.28; stroke-width: 1.2; stroke-linecap: round; fill: none; }

/* ---------- sky: moon and stars by night, sun by day ---------- */
.nwx-stars {
  position: absolute;
  inset: 0 0 35% 0;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 42%, #dfefff, transparent),
    radial-gradient(1.6px 1.6px at 46% 12%, #fff, transparent),
    radial-gradient(1px 1px at 63% 36%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 78% 22%, #cfe6ff, transparent),
    radial-gradient(1px 1px at 91% 48%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 6% 60%, #fff, transparent),
    radial-gradient(1px 1px at 37% 70%, #dfefff, transparent);
  background-size: 520px 280px;
  will-change: opacity;
  animation: nwx-twinkle 4.5s ease-in-out infinite alternate;
}
@keyframes nwx-twinkle {
  from { opacity: 0.3; }
  to { opacity: 0.95; }
}
.nwx-moon,
.nwx-sun {
  position: absolute;
  top: 13%;
  left: 45%;
  width: 70px;
  height: 70px;
}
.nwx-moon .nwx-halo {
  position: absolute;
  inset: -110%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 230, 255, 0.3), rgba(150, 200, 255, 0.08) 55%, transparent);
  will-change: opacity;
  animation: nwx-halo 6s ease-in-out infinite alternate;
}
.nwx-moon .nwx-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 34%, rgba(150, 170, 200, 0.5) 0 7%, transparent 8%),
    radial-gradient(circle at 62% 58%, rgba(150, 170, 200, 0.42) 0 10%, transparent 11%),
    radial-gradient(circle at 46% 78%, rgba(150, 170, 200, 0.32) 0 6%, transparent 7%),
    radial-gradient(circle at 36% 30%, #ffffff, #e8f1ff 55%, #c3d4ee);
  box-shadow: inset -8px -6px 14px rgba(70, 95, 150, 0.35), 0 0 36px rgba(190, 225, 255, 0.5);
}
@keyframes nwx-halo {
  from { opacity: 0.65; }
  to { opacity: 1; }
}
.nwx-sun { display: none; width: 86px; height: 86px; top: 11%; }
.nwx-sun .nwx-rays {
  position: absolute;
  inset: -75%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 238, 180, 0.34) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask: radial-gradient(closest-side, #000 35%, transparent 100%);
  will-change: transform;
  animation: nwx-spin 70s linear infinite;
}
.nwx-sun .nwx-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffdf0, #ffe78f 55%, #ffcf4d);
  box-shadow: 0 0 50px 16px rgba(255, 220, 120, 0.5), 0 0 120px 36px rgba(255, 244, 200, 0.45);
}
@keyframes nwx-spin { to { transform: rotate(360deg); } }
/* moon / sun light lying on the frozen lake */
.nwx-skyglint {
  position: absolute;
  left: calc(45% + 35px);
  bottom: 0;
  width: 160px;
  height: 22%;
  translate: -50% 0;
  background: radial-gradient(45% 100% at 50% 0%, rgba(200, 230, 255, 0.35), transparent 75%);
  will-change: opacity;
  animation: nwx-halo 4s ease-in-out infinite alternate;
}
.nwx-light .nwx-moon,
.nwx-light .nwx-stars,
html[data-nwx-theme="light"] .nwx-cta .nwx-moon,
html[data-nwx-theme="light"] .nwx-cta .nwx-stars { display: none; }
.nwx-light .nwx-sun,
html[data-nwx-theme="light"] .nwx-cta .nwx-sun { display: block; }
.nwx-light .nwx-skyglint,
html[data-nwx-theme="light"] .nwx-cta .nwx-skyglint {
  background: radial-gradient(45% 100% at 50% 0%, rgba(255, 245, 200, 0.75), transparent 75%);
}
/* the closing section: moon / sun on the other side */
.nwx-cta-stage .nwx-moon,
.nwx-cta-stage .nwx-sun { left: 18%; top: 22%; }
.nwx-cta-stage .nwx-skyglint { left: calc(18% + 35px); }
@media (max-width: 1023px) {
  .nwx-moon, .nwx-sun { top: 9%; left: 8%; width: 50px; height: 50px; }
  .nwx-skyglint { left: calc(8% + 25px); width: 100px; height: 16%; }
  .nwx-cta-stage .nwx-moon, .nwx-cta-stage .nwx-sun { top: 5%; left: 8%; }
  .nwx-cta-stage .nwx-skyglint { left: calc(8% + 25px); }
}

/* pines and ice on the lake (inside the frost drawing) */
.nwx-needles { fill: #0f3554; }
.nwx-snowcap { fill: #e9f6ff; opacity: 0.9; }
.nwx-trunk { fill: #10283f; }
.nwx-floe { fill: #d9efff; opacity: 0.75; }
.nwx-floe-s { fill: #8cbce4; opacity: 0.75; }
.nwx-light .nwx-needles,
html[data-nwx-theme="light"] .nwx-cta .nwx-needles { fill: #3f7fb4; }
.nwx-light .nwx-trunk,
html[data-nwx-theme="light"] .nwx-cta .nwx-trunk { fill: #46617a; }
.nwx-light .nwx-snowcap,
html[data-nwx-theme="light"] .nwx-cta .nwx-snowcap { fill: #ffffff; opacity: 1; }
.nwx-light .nwx-floe,
html[data-nwx-theme="light"] .nwx-cta .nwx-floe { fill: #ffffff; opacity: 0.95; }
.nwx-light .nwx-floe-s,
html[data-nwx-theme="light"] .nwx-cta .nwx-floe-s { fill: #b5d6f3; opacity: 0.95; }

/* sweeping light ribbons */
.nwx-streaks {
  position: absolute;
  inset: -12% -15%;
  width: 130%;
  height: 124%;
  will-change: transform, opacity;
  animation: nwx-drift 18s ease-in-out infinite alternate;
}
@keyframes nwx-drift {
  from { transform: translate3d(-1.5%, 1%, 0); opacity: 0.85; }
  to { transform: translate3d(1.5%, -1%, 0); opacity: 1; }
}

/* ---------- the character ---------- */
.nwx-char {
  --w: min(40vw, 520px);
  position: absolute;
  inset-inline-end: 7%;
  top: 46%;
  width: var(--w);
  aspect-ratio: 418 / 436;
  translate: 0 -55%;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  perspective: 1100px;
}
@media (max-width: 1023px) {
  /* phones: a shorter hero so the character shows on the first screen:
     smaller title, the line of text cut to two lines, no platform row */
  .nwx-on.night-sky-hero { padding-top: 104px !important; }
  .nwx-on.night-sky-hero > .z-10 > h1 {
    font-size: clamp(2rem, 9.5vw, 2.6rem) !important;
    line-height: 1.15 !important;
  }
  .nwx-on.night-sky-hero > .z-10 > p {
    margin-top: 12px !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .nwx-on.night-sky-hero > .z-10 > div:nth-of-type(1) { margin-top: 18px !important; }
  .nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) { display: none !important; }

  /* room under the text for the character, its drips and the pool */
  .nwx-on.night-sky-hero {
    padding-bottom: calc(min(56vw, 250px) * 1.62 + 24px) !important;
  }
  .nwx-char {
    --w: min(56vw, 250px);
    inset-inline-end: auto;
    left: 50%;
    top: auto;
    bottom: calc(min(56vw, 250px) * 0.55 + 14px);
    translate: -50% 0;
  }
}

/* glow behind */
.nwx-aura {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40, 140, 255, 0.5), rgba(20, 90, 255, 0.16) 55%, transparent 76%);
  will-change: transform, opacity;
  animation: nwx-breathe 4.6s ease-in-out infinite;
}
@keyframes nwx-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* pool of light, its ripples and the reflection */
.nwx-pool {
  position: absolute;
  left: -32%;
  right: -32%;
  top: 114%;
  height: 26%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(205, 245, 255, 0.95), rgba(70, 170, 255, 0.6) 28%, rgba(20, 90, 230, 0.28) 60%, transparent);
  will-change: transform, opacity;
  animation: nwx-pool 4.6s ease-in-out infinite;
}
@keyframes nwx-pool {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.9); opacity: 0.8; }
}
.nwx-ring {
  position: absolute;
  left: 2%;
  right: 2%;
  top: 119%;
  height: 16%;
  border-radius: 50%;
  border: 1.5px solid rgba(160, 225, 255, 0.6);
  opacity: 0;
  will-change: transform, opacity;
  animation: nwx-ring 4.6s ease-out infinite;
}
.nwx-ring.r2 { animation-delay: 1.53s; }
.nwx-ring.r3 { animation-delay: 3.06s; }
@keyframes nwx-ring {
  0% { transform: scale(0.35); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}
.nwx-reflect {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 118%;
  aspect-ratio: 418 / 436;
  transform-origin: 50% 0;
  will-change: transform;
  animation: nwx-reflect 4.6s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 55%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 55%);
}
.nwx-reflect img {
  width: 100%;
  height: 100%;
  transform: scaleY(-1);
  filter: blur(6px) saturate(1.3);
  opacity: 0.7;
}
@keyframes nwx-reflect {
  0%, 100% { transform: scale(1, 0.45); }
  50% { transform: scale(0.94, 0.4); }
}

/* falling drops (from the drips into the pool) */
.nwx-drop {
  position: absolute;
  width: 3.4%;
  aspect-ratio: 0.8;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #e8faff 0 12%, #55c8ff 35%, #1560f0 80%);
  opacity: 0;
  will-change: transform, opacity;
  animation: nwx-drop 4.6s cubic-bezier(0.55, 0, 0.9, 0.5) infinite;
}
.nwx-drop.d1 { left: 60%; top: 115%; animation-delay: 1.4s; }
.nwx-drop.d2 { left: 25%; top: 110%; width: 2.6%; animation-delay: 3.3s; }
@keyframes nwx-drop {
  0%, 30% { transform: translateY(0) scale(0.4); opacity: 0; }
  36% { transform: translateY(0) scale(1); opacity: 1; }
  52% { transform: translateY(160%) scale(0.9, 1.15); opacity: 1; }
  56%, 100% { transform: translateY(190%) scale(1.3, 0.3); opacity: 0; }
}

/* the floating body: up and down, a little sway */
.nwx-bob {
  position: absolute;
  inset: 0;
  will-change: transform;
  animation: nwx-bob 4.6s ease-in-out infinite;
}
@keyframes nwx-bob {
  0%, 100% { transform: translate3d(-1%, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(1%, -6%, 0) rotate(4deg); }
}

/* towards the pointer (desktop), set by nw-hero.js */
.nwx-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--nwx-rx, 0deg)) rotateY(var(--nwx-ry, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* a little show every 16 s: looks around, blinks, a happy jump, a
   wiggle dance, leans in wide-eyed with a wink, a small bounce */
.nwx-hop {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  will-change: transform;
  animation: nwx-show 16s ease-in-out infinite;
}
@keyframes nwx-show {
  0%, 18%, 46% { transform: none; }
  /* turns a little to look left, then right */
  20%, 26% { transform: rotate(-3deg); }
  28%, 34% { transform: rotate(3deg); }
  36% { transform: none; }
  /* happy jump */
  47.5% { transform: translateY(2%) scale(1.09, 0.89); }
  50.5% { transform: translateY(-17%) scale(0.94, 1.08) rotate(-5deg); }
  53.5% { transform: translateY(-19%) scale(1, 1) rotate(5deg); }
  56.5% { transform: translateY(1.5%) scale(1.08, 0.91); }
  58.5% { transform: none; }
  /* wiggle dance */
  60% { transform: rotate(-8deg) translateX(-2%); }
  61.5% { transform: rotate(8deg) translateX(2%); }
  63% { transform: rotate(-7deg) translateX(-2%); }
  64.5% { transform: rotate(7deg) translateX(2%); }
  66% { transform: rotate(-3deg); }
  67.5%, 74% { transform: none; }
  /* leans in, curious */
  77%, 84.5% { transform: translateY(-3%) scale(1.07); }
  88% { transform: none; }
  /* a small happy bounce */
  90.5% { transform: translateY(-6%) scale(0.97, 1.04); }
  93% { transform: translateY(1%) scale(1.04, 0.96); }
  95%, 100% { transform: none; }
}
/* a tap: jump with a full 3D spin */
.nwx-char.nwx-tap .nwx-hop {
  animation: nwx-tap 0.95s cubic-bezier(0.3, 0.75, 0.35, 1) 1;
}
@keyframes nwx-tap {
  0% { transform: none; }
  20% { transform: translateY(3%) scale(1.1, 0.88); }
  60% { transform: translateY(-20%) rotateY(360deg) scale(0.96, 1.05); }
  85% { transform: translateY(1%) rotateY(360deg) scale(1.05, 0.95); }
  100% { transform: rotateY(360deg); }
}

/* layers of the body, all the same size as the logo */
.nwx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* thickness: a darker copy just below gives the logo depth */
.nwx-depth {
  transform: translate3d(0, 2.6%, -1px) scale(0.985);
  filter: brightness(0.32) saturate(1.6);
}
.nwx-main {
  filter: drop-shadow(0 0 18px rgba(60, 170, 255, 0.55));
}
/* the drips hang under the body and wobble when it lands */
.nwx-drips {
  transform-origin: 50% 94%;
  animation: nwx-jiggle 16s ease-in-out infinite;
}
@keyframes nwx-jiggle {
  0%, 56%, 63%, 92.5%, 98%, 100% { transform: scaleY(1); }
  57.5% { transform: scaleY(0.72); }
  59.5% { transform: scaleY(1.2); }
  61.5% { transform: scaleY(0.9); }
  94% { transform: scaleY(0.82); }
  96% { transform: scaleY(1.1); }
}
/* glass shine, kept inside the logo's shape */
.nwx-gloss {
  -webkit-mask: var(--nwx-mask) center / 100% 100% no-repeat;
  mask: var(--nwx-mask) center / 100% 100% no-repeat;
}
.nwx-gloss .nwx-par {
  transform: translate(var(--nwx-gx, 0px), var(--nwx-gy, 0px));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.nwx-gloss .nwx-sweep {
  animation: nwx-sweep 7s ease-in-out infinite;
}
@keyframes nwx-sweep {
  0%, 70% { transform: translateX(-520px); }
  86%, 100% { transform: translateX(560px); }
}
/* eyes: a glow that breathes, and real eyelids for blinks */
.nwx-eyeglow {
  mix-blend-mode: screen;
  animation: nwx-eyes 3.2s ease-in-out infinite;
}
@keyframes nwx-eyes {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
/* the eyes: the logo's own, cut out (left / right) */
.nwx-look {
  transform: translate(var(--nwx-ex, 0%), var(--nwx-ey, 0%));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.nwx-eye.l {
  clip-path: inset(58.4% 60.6% 29.8% 23.7%);
  transform-origin: 31.6% 64.2%;
  animation: nwx-eye-l 16s ease-in-out infinite;
}
.nwx-eye.r {
  clip-path: inset(58.2% 23.5% 29.8% 60.8%);
  transform-origin: 68.7% 64.1%;
  animation: nwx-eye-r 16s ease-in-out infinite;
}
/* both eyes: look left / right, blinks, happy squint on the jump, wide
   when leaning in, smiling squint on the bounce */
@keyframes nwx-eye-l {
  0%, 18%, 100% { transform: none; }
  20%, 26% { transform: translateX(-2.6%); }
  28%, 34% { transform: translateX(2.6%); }
  36% { transform: none; }
  39.5% { transform: scaleY(1); }
  40.3% { transform: scaleY(0.08); }
  41.2% { transform: scaleY(1); }
  46%, 58% { transform: scaleY(0.55) translateY(-1%); }
  60%, 70% { transform: none; }
  71.5% { transform: scaleY(1); }
  72.2% { transform: scaleY(0.08); }
  73% { transform: scaleY(1); }
  73.7% { transform: scaleY(0.08); }
  74.5% { transform: scaleY(1); }
  77%, 84.5% { transform: scale(1.2); }
  88% { transform: none; }
  90%, 96% { transform: scaleY(0.5) translateY(-1.2%); }
}
@keyframes nwx-eye-r {
  0%, 18%, 100% { transform: none; }
  20%, 26% { transform: translateX(-2.6%); }
  28%, 34% { transform: translateX(2.6%); }
  36% { transform: none; }
  39.5% { transform: scaleY(1); }
  40.3% { transform: scaleY(0.08); }
  41.2% { transform: scaleY(1); }
  46%, 58% { transform: scaleY(0.55) translateY(-1%); }
  60%, 70% { transform: none; }
  71.5% { transform: scaleY(1); }
  72.2% { transform: scaleY(0.08); }
  73% { transform: scaleY(1); }
  73.7% { transform: scaleY(0.08); }
  74.5% { transform: scaleY(1); }
  77%, 80% { transform: scale(1.2); }
  /* the wink */
  81% { transform: scale(1.2, 0.08); }
  82.5% { transform: scale(1.2, 0.08); }
  83.5%, 84.5% { transform: scale(1.2); }
  88% { transform: none; }
  90%, 96% { transform: scaleY(0.5) translateY(-1.2%); }
}
/* a tap: eyes squeezed shut for the spin (>_<) */
.nwx-char.nwx-tap .nwx-eye {
  animation: nwx-eye-tap 0.95s ease-in-out 1;
}
@keyframes nwx-eye-tap {
  0%, 100% { transform: none; }
  15%, 75% { transform: scaleY(0.12); }
}

/* ---------- a touch of Frozen ---------- */
/* snow: small soft flakes and a few turning crystals */
.nwx-snow {
  position: absolute;
  inset: 0;
}
.nwx-flake {
  position: absolute;
  top: -4%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(205, 238, 255, 0.55) 48%, transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
  animation: nwx-fall var(--d) linear var(--delay) infinite;
}
.nwx-crystal {
  position: absolute;
  top: -6%;
  width: var(--s);
  height: var(--s);
  opacity: 0;
  will-change: transform, opacity;
  animation: nwx-fall-turn var(--d) linear var(--delay) infinite;
}
.nwx-crystal svg { width: 100%; height: 100%; display: block; }
@keyframes nwx-fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: var(--o); }
  50% { transform: translate3d(var(--x), 55vh, 0); }
  90% { opacity: var(--o); }
  100% { transform: translate3d(0, 112vh, 0); opacity: 0; }
}
@keyframes nwx-fall-turn {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
  8% { opacity: var(--o); }
  50% { transform: translate3d(var(--x), 55vh, 0) rotate(180deg); }
  90% { opacity: var(--o); }
  100% { transform: translate3d(0, 112vh, 0) rotate(360deg); opacity: 0; }
}
/* ice glints on the body */
.nwx-ice {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  background: #fff;
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
  filter: drop-shadow(0 0 6px #bdf2ff);
  opacity: 0;
  will-change: transform, opacity;
  animation: nwx-glint-ice 5.2s ease-in-out infinite;
}
.nwx-ice.i1 { top: 10%; left: 14%; }
.nwx-ice.i2 { top: 2%; left: 52%; width: 6%; animation-delay: 1.3s; }
.nwx-ice.i3 { top: 46%; left: 88%; width: 7%; animation-delay: 2.6s; }
.nwx-ice.i4 { top: 101%; left: 58%; width: 6%; animation-delay: 3.9s; }
@keyframes nwx-glint-ice {
  0%, 100% { transform: scale(0.2) rotate(0); opacity: 0; }
  12% { transform: scale(1) rotate(45deg); opacity: 1; }
  26% { transform: scale(0.3) rotate(90deg); opacity: 0; }
}
/* cold mist over the pool */
.nwx-fog {
  position: absolute;
  left: -45%;
  right: -45%;
  top: 112%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 245, 255, 0.28), rgba(180, 225, 255, 0.1) 60%, transparent);
  will-change: transform, opacity;
  animation: nwx-fog 11s ease-in-out infinite alternate;
}
.nwx-fog.f2 {
  top: 120%;
  height: 16%;
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}
@keyframes nwx-fog {
  from { transform: translate3d(-6%, 0, 0) scaleX(1); opacity: 0.7; }
  to { transform: translate3d(6%, -4%, 0) scaleX(1.08); opacity: 1; }
}

/* ================= the whole site, frozen ================= */
/* page: deep icy blue (dark) or icy white (light) */
html[data-nwx-theme="dark"] #root > div.bg-canvas {
  background: linear-gradient(180deg, #04101d 0%, #061a2e 28%, #08223b 62%, #04101d 100%) !important;
}
html[data-nwx-theme="light"] #root > div.bg-canvas {
  background: linear-gradient(180deg, #f3f9ff 0%, #e6f2ff 40%, #dcecff 75%, #eef6ff 100%) !important;
}

/* features: soft cold light instead of the starfield */
.nwx-feat > div.absolute.inset-0:first-child { display: none !important; }
.nwx-feat {
  background:
    radial-gradient(45% 35% at 82% 18%, rgba(80, 170, 255, 0.13), transparent 70%),
    radial-gradient(40% 35% at 14% 72%, rgba(60, 255, 210, 0.07), transparent 70%);
}
html[data-nwx-theme="light"] .nwx-feat {
  background:
    radial-gradient(45% 35% at 82% 18%, rgba(120, 190, 255, 0.28), transparent 70%),
    radial-gradient(40% 35% at 14% 72%, rgba(120, 230, 220, 0.18), transparent 70%);
}

/* feature cards: frosted glass with the app's rim light (no backdrop
   blur, so scrolling stays light) and a little frost in the corner */
.nwx-feat .grid > div.group {
  padding: 22px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(190, 230, 255, 0.13);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg stroke='%23cdefff' stroke-width='1.1' stroke-linecap='round' fill='none'%3E%3Cpath d='M60 0 L30 30 M60 0 L40 4 M60 0 L56 20 M48 12 L38 8 M48 12 L52 22 M40 20 L30 18 M40 20 L42 30'/%3E%3C/g%3E%3C/svg%3E") top 9px right 9px / 42px 42px no-repeat,
    radial-gradient(120% 65% at 18% -8%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.035) 32%, transparent 58%),
    linear-gradient(160deg, rgba(150, 210, 255, 0.09), rgba(90, 150, 255, 0.03));
  box-shadow:
    inset 1px 1px 0.5px -0.5px rgba(255, 255, 255, 0.46),
    inset -1px -1px 0.5px -0.5px rgba(255, 255, 255, 0.18),
    inset 0 6px 8px -6px rgba(255, 255, 255, 0.18),
    0 18px 44px -22px rgba(0, 12, 40, 0.75);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
[dir="rtl"] .nwx-feat .grid > div.group {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg stroke='%23cdefff' stroke-width='1.1' stroke-linecap='round' fill='none'%3E%3Cpath d='M0 0 L30 30 M0 0 L20 4 M0 0 L4 20 M12 12 L22 8 M12 12 L8 22 M20 20 L30 18 M20 20 L18 30'/%3E%3C/g%3E%3C/svg%3E") top 9px left 9px / 42px 42px no-repeat,
    radial-gradient(120% 65% at 82% -8%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.035) 32%, transparent 58%),
    linear-gradient(200deg, rgba(150, 210, 255, 0.09), rgba(90, 150, 255, 0.03));
}
.nwx-feat .grid > div.group:hover {
  transform: translateY(-3px);
  border-color: rgba(170, 225, 255, 0.32);
}
html[data-nwx-theme="light"] .nwx-feat .grid > div.group {
  border-color: rgba(110, 165, 230, 0.22);
  background-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 1.5px 1.5px 1px -1px #fff,
    inset -1.5px -1.5px 1px -1px rgba(255, 255, 255, 0.6),
    inset 0 6px 8px -6px rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 16px 36px -18px rgba(30, 80, 160, 0.28);
}
html[data-nwx-theme="light"] .nwx-feat .grid > div.group:hover {
  border-color: rgba(70, 140, 230, 0.4);
}

/* closing section: the frozen world instead of the desert night (its
   constellation stays) */
.nwx-cta > div:not(.z-10):not(.nwx-stage) { display: none !important; }
.nwx-on.nwx-cta, .nwx-cta {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 44, 74, 0.55) 60%, #04111f 100%) !important;
}
html[data-nwx-theme="light"] .nwx-cta {
  background: linear-gradient(180deg, transparent 0%, rgba(200, 225, 250, 0.6) 60%, #d2e7ff 100%) !important;
}
.nwx-cta > .z-10 { position: relative; z-index: 2; }
.nwx-cta > svg { z-index: 1; }
.nwx-cta-stage .nwx-aurora { inset: -5% -10% 50% -10%; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-aurora {
  background:
    radial-gradient(40% 35% at 30% 40%, rgba(80, 220, 210, 0.22), transparent 70%),
    radial-gradient(35% 30% at 62% 30%, rgba(120, 190, 255, 0.28), transparent 70%);
}
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-ice-hi { stop-color: #fff; stop-opacity: 0.95; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-ice-mid { stop-color: #b9dcfb; stop-opacity: 0.85; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-ice-lo { stop-color: #d6eaff; stop-opacity: 0.4; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-lake-a { stop-color: #e6f4ff; stop-opacity: 1; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-lake-b { stop-color: #c4def7; stop-opacity: 1; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-facet,
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-shore { stroke: #fff; stroke-opacity: 0.9; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-shine { stroke: #fff; stroke-opacity: 0.7; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-cracks { stroke: #8fc2ee; stroke-opacity: 0.5; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-rime { stroke: #7fb8ec; stroke-opacity: 0.45; }
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-flake {
  background: radial-gradient(circle, #fff 0 30%, rgba(110, 185, 255, 0.85) 52%, transparent 72%);
}
html[data-nwx-theme="light"] .nwx-cta-stage .nwx-crystal svg g { stroke: #5aaeff; }

/* footer: a cold rim on its glass panel, the big outline in ice */
.footer-wrap .glass--panel {
  box-shadow:
    inset 0 1px 0 rgba(170, 225, 255, 0.22),
    0 -18px 50px -30px rgba(80, 170, 255, 0.35);
}
html[data-nwx-theme="dark"] .ft-draw { stroke: #8fdcff !important; }
html[data-nwx-theme="light"] .ft-draw { stroke: #5aa6ea !important; }

/* off screen: nothing moves */
.nwx-paused .nwx-stage,
.nwx-paused .nwx-stage *,
.nwx-cta.nwx-paused .nwx-stage * {
  animation-play-state: paused !important;
}

/* ---------- the two friends on the ice (closing section) ----------
   NoWake and its red moderator stand together on the side away from the
   text. One 16s story both follow: they look at each other, the
   moderator slides its shades down to look over them, NoWake hops and
   waves ("come on in"), the moderator tips its cap and grins
   ("welcome"), then pats its hammer. Only transform and opacity move. */
.nwf-friends {
  position: absolute;
  z-index: 3;
  bottom: 6%;
  right: 5%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  direction: ltr;
  pointer-events: none;
}
/* the side away from the text (the text starts on the right in Persian) */
html[dir="rtl"] .nwf-friends { right: auto; left: 5%; }
.nwf-bud {
  position: relative;
  width: 136px;
  aspect-ratio: 418 / 436;
  pointer-events: auto;
  cursor: pointer;
  perspective: 700px;
  -webkit-tap-highlight-color: transparent;
}
.nwf-mod {
  position: relative;
  width: 184px;
  margin-bottom: -17px;
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nwf-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
img.nwf-layer { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.nwf-main { filter: drop-shadow(0 10px 16px rgba(20, 90, 220, 0.35)); }
.nwf-bud-hop {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  animation: nwb-hop 16s ease-in-out infinite;
}
.nwf-bud-body { position: absolute; inset: 0; animation: nwb-bob 3.6s ease-in-out infinite; }
.nwf-look { animation: nwb-look 16s ease-in-out infinite; }
.nwf-eye.l {
  clip-path: inset(58.4% 60.6% 29.8% 23.7%);
  transform-origin: 31.6% 64.2%;
  animation: nwb-eye 16s ease-in-out infinite;
}
.nwf-eye.r {
  clip-path: inset(58.2% 23.5% 29.8% 60.8%);
  transform-origin: 68.7% 64.1%;
  animation: nwb-eye 16s ease-in-out infinite;
}
.nwf-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -5%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 8, 24, 0.45), transparent);
}
html[data-nwx-theme="light"] .nwf-shadow {
  background: radial-gradient(closest-side, rgba(30, 70, 140, 0.22), transparent);
}
/* a little hand that waves */
.nwf-hand {
  position: absolute;
  left: -6%;
  top: 50%;
  width: 18%;
  height: 13%;
  border-radius: 45% 45% 40% 40%;
  background: linear-gradient(180deg, #8fd3ff, #2f86ff);
  box-shadow: inset 0 -3px 4px rgba(10, 50, 160, 0.35), 0 2px 6px rgba(20, 90, 220, 0.3);
  transform-origin: 85% 85%;
  opacity: 0;
  animation: nwb-wave 16s ease-in-out infinite;
}

/* what they say */
.nwf-say {
  position: absolute;
  z-index: 2;
  bottom: 100%;
  left: 50%;
  margin-bottom: 8px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.9);
  transform-origin: 50% 100%;
  pointer-events: none;
}
.nwf-say::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 2px;
  background: inherit;
  transform: rotate(45deg);
}
.nwf-say.b {
  background: #2f86ff;
  box-shadow: 0 8px 20px -8px rgba(47, 134, 255, 0.8);
  animation: nwb-say 16s ease-in-out infinite;
}
.nwf-say.m {
  left: 38%;
  bottom: 96%;
  background: #e5484d;
  box-shadow: 0 8px 20px -8px rgba(229, 72, 77, 0.8);
  animation: nwm-say 16s ease-in-out infinite;
}

/* the moderator's drawing */
.nwm-art { display: block; width: 100%; height: auto; aspect-ratio: 560 / 550; overflow: visible; }
.nwm-art g, .nwm-art path, .nwm-art rect, .nwm-art circle, .nwm-art ellipse { transform-box: view-box; }
.nwm-shadow { fill: rgba(0, 8, 24, 0.42); }
html[data-nwx-theme="light"] .nwm-shadow { fill: rgba(30, 70, 140, 0.2); }
.nwm-glance { transform-origin: 209px 440px; animation: nwm-glance 16s ease-in-out infinite; }
.nwm-all { transform-origin: 209px 440px; animation: nwm-breathe 3.4s ease-in-out infinite; }
.nwm-arm { fill: none; stroke: #d21b37; stroke-width: 30; stroke-linecap: round; }
.nwm-glow { fill: none; stroke: #ff2d55; stroke-width: 14; stroke-linejoin: round; opacity: 0.28; }
.nwm-iris { fill: #ff4d6d; }
.nwm-eyes { animation: nwm-look 16s ease-in-out infinite; }
.nwm-eye { transform-box: fill-box; transform-origin: center; animation: nwm-blink 16s ease-in-out infinite; }
.nwm-mouth { fill: none; stroke: #ff4d6d; stroke-width: 7; stroke-linecap: round; }
.nwm-smirk { animation: nwm-smirk 16s ease-in-out infinite; }
.nwm-grin { opacity: 0; animation: nwm-grin 16s ease-in-out infinite; }
.nwm-shades { animation: nwm-shades 16s ease-in-out infinite; }
.nwm-lens { fill: url(#nwfLens); }
.nwm-rim, .nwm-rim-d, .nwm-bridge, .nwm-bridge-d, .nwm-temple, .nwm-temple-d { fill: none; stroke-linecap: round; }
.nwm-rim-d, .nwm-bridge-d, .nwm-temple-d { stroke: #8a5600; stroke-width: 10; }
.nwm-rim, .nwm-bridge, .nwm-temple { stroke: url(#nwfGold); stroke-width: 6.5; }
.nwm-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: 0.35; }
.nwm-cap { transform-origin: 210px 118px; transform: rotate(-6deg); animation: nwm-cap 16s ease-in-out infinite; }
.nwm-badge { font: 800 15px/1 system-ui, sans-serif; fill: #6b4300; letter-spacing: 0.04em; }
.nwm-hammer { transform-origin: 396px 322px; transform: rotate(18deg); animation: nwm-hammer 16s ease-in-out infinite; }
.nwm-ban { opacity: 0; transform-origin: 470px 345px; }
.nwm-ban text {
  font: 900 64px/1 system-ui, "Segoe UI", sans-serif;
  fill: #e5484d;
  stroke: #fff;
  stroke-width: 5;
  paint-order: stroke;
}
.nwm-dust { opacity: 0; fill: rgba(220, 235, 255, 0.75); transform-origin: 520px 440px; }

/* taps: NoWake spins; the moderator brings the hammer down and NoWake
   jumps */
.nwf-bud.nwf-tap .nwf-bud-hop { animation: nwb-spin 0.9s cubic-bezier(0.3, 0.7, 0.4, 1) 1; }
.nwf-bud.nwf-startle .nwf-bud-hop { animation: nwb-startle 0.7s ease-out 1; }
.nwf-bud.nwf-startle .nwf-eye { animation: nwb-wide 0.7s ease-out 1; }
.nwf-mod.nwf-smash .nwm-hammer { animation: nwm-smash 0.95s cubic-bezier(0.3, 0, 0.3, 1) 1; }
.nwf-mod.nwf-smash .nwm-all { animation: nwm-recoil 0.95s ease-out 1; }
.nwf-mod.nwf-smash .nwm-ban { animation: nwm-ban 0.95s ease-out 1; }
.nwf-mod.nwf-smash .nwm-dust { animation: nwm-dust 0.95s ease-out 1; }
.nwf-mod.nwf-smash .nwm-eye { animation: nwm-squint 0.95s ease-in-out 1; }

/* NoWake */
@keyframes nwb-bob {
  0%, 100% { transform: none; }
  50% { transform: translateY(-4px); }
}
@keyframes nwb-hop {
  0%, 31%, 41%, 100% { transform: none; }
  32% { transform: scale(1.05, 0.95); }
  34% { transform: translateY(-14%) scale(0.97, 1.03); }
  36% { transform: scale(1.06, 0.94); }
  38% { transform: translateY(-9%) scale(0.98, 1.02); }
  40% { transform: scale(1.03, 0.97); }
}
/* looks at the moderator, then at you, then at it again */
@keyframes nwb-look {
  0%, 5%, 17%, 56%, 73%, 100% { transform: none; }
  8%, 15% { transform: translate(2.6%, 0); }
  59%, 71% { transform: translate(2.4%, 0.5%); }
}
/* blinks, and a happy squint while it waves */
@keyframes nwb-eye {
  0%, 19%, 21%, 35%, 53%, 89%, 91%, 100% { transform: none; }
  20%, 90% { transform: scaleY(0.1); }
  38%, 50% { transform: scaleY(0.55) translateY(-1%); }
}
@keyframes nwb-wave {
  0%, 32%, 56%, 100% { opacity: 0; transform: translate(40%, 10%) scale(0.6); }
  35% { opacity: 1; transform: rotate(-10deg); }
  39% { transform: rotate(22deg); }
  43% { transform: rotate(-12deg); }
  47% { transform: rotate(22deg); }
  51% { transform: rotate(-8deg); }
  54% { opacity: 1; transform: none; }
}
@keyframes nwb-say {
  0%, 32%, 56%, 100% { opacity: 0; transform: translate(-50%, 6px) scale(0.9); }
  36%, 52% { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes nwb-spin {
  0% { transform: none; }
  40% { transform: translateY(-30%) rotateY(180deg); }
  70% { transform: rotateY(360deg); }
  84% { transform: rotateY(360deg) scale(1.06, 0.94); }
  100% { transform: rotateY(360deg); }
}
@keyframes nwb-startle {
  0%, 100% { transform: none; }
  30% { transform: translateY(-12%) scale(0.96, 1.05); }
  60% { transform: scale(1.03, 0.97); }
}
@keyframes nwb-wide {
  0%, 100% { transform: none; }
  20%, 70% { transform: scale(1.2); }
}

/* the moderator */
@keyframes nwm-breathe {
  0%, 100% { transform: none; }
  50% { transform: scale(1.015, 0.985); }
}
@keyframes nwm-glance {
  0%, 12%, 30%, 58%, 76%, 100% { transform: none; }
  16%, 26% { transform: rotate(-3deg); }
  62%, 72% { transform: rotate(2deg) translateY(-4px); }
}
@keyframes nwm-shades {
  0%, 10%, 32%, 100% { transform: none; }
  14%, 28% { transform: translateY(26px); }
}
@keyframes nwm-look {
  0%, 14%, 29%, 100% { transform: none; }
  17%, 27% { transform: translateX(-12px); }
}
@keyframes nwm-blink {
  0%, 27.5%, 29.5%, 79.5%, 81.5%, 100% { transform: none; }
  28.5%, 80.5% { transform: scaleY(0.1); }
}
@keyframes nwm-cap {
  0%, 60%, 74%, 100% { transform: rotate(-6deg); }
  63%, 70% { transform: rotate(-15deg) translate(-6px, -12px); }
}
@keyframes nwm-smirk {
  0%, 60%, 74%, 100% { opacity: 1; }
  62%, 72% { opacity: 0; }
}
@keyframes nwm-grin {
  0%, 60%, 74%, 100% { opacity: 0; }
  62%, 72% { opacity: 1; }
}
@keyframes nwm-hammer {
  0%, 82%, 90%, 100% { transform: rotate(18deg); }
  84%, 88% { transform: rotate(5deg); }
  86% { transform: rotate(18deg); }
}
@keyframes nwm-say {
  0%, 56%, 80%, 100% { opacity: 0; transform: translate(-50%, 6px) scale(0.9); }
  60%, 76% { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes nwm-smash {
  0% { transform: rotate(18deg); }
  28% { transform: rotate(-30deg); }
  46% { transform: rotate(128deg); }
  56% { transform: rotate(120deg); }
  74% { transform: rotate(124deg); }
  100% { transform: rotate(18deg); }
}
@keyframes nwm-recoil {
  0%, 100% { transform: none; }
  28% { transform: scale(0.97, 1.03) rotate(-3deg); }
  48% { transform: scale(1.05, 0.95) rotate(3deg); }
  64% { transform: none; }
}
@keyframes nwm-squint {
  0%, 100% { transform: none; }
  20%, 70% { transform: scaleY(0.5); }
}
@keyframes nwm-ban {
  0%, 42% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  52% { opacity: 1; transform: scale(1.18) rotate(-8deg); }
  62%, 84% { opacity: 1; transform: scale(1) rotate(-8deg); }
  100% { opacity: 0; transform: rotate(-8deg) translateY(-14px); }
}
@keyframes nwm-dust {
  0%, 44% { opacity: 0; transform: scale(0.4); }
  52% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(1.6) translateY(-8px); }
}

/* phones: under the text, in the middle */
@media (max-width: 1023px) {
  .nwx-on.nwx-cta, .nwx-cta { padding-bottom: 250px !important; }
  .nwf-friends,
  html[dir="rtl"] .nwf-friends { right: auto; left: 50%; bottom: 26px; transform: translateX(-50%); }
  .nwf-bud { width: 104px; }
  .nwf-mod { width: 140px; margin-bottom: -13px; }
  .nwf-say { font-size: 12px; padding: 5px 10px; }
}

/* off screen: they stand still; asked for less motion: too */
.nwx-cta.nwx-paused .nwf-friends * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .nwf-friends * { animation: none !important; }
  .nwf-say.b { opacity: 1; transform: translate(-50%, 0); }
}

/* 2. the platform chips under the hero (iOS, Android, Windows, web): a
   soft glow of each one's own colour that breathes, staggered; they lift
   a little more on hover. Only opacity and transform move. */
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div {
  position: relative;
  isolation: isolate;
}
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 18px 2px var(--nwx-chip, rgba(80, 170, 255, 0.55));
  opacity: 0.35;
  animation: nwx-chip-glow 3.6s ease-in-out infinite;
}
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:nth-child(1) { --nwx-chip: rgba(56, 189, 248, 0.6); }
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:nth-child(2) { --nwx-chip: rgba(0, 245, 212, 0.55); }
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:nth-child(3) { --nwx-chip: rgba(167, 139, 250, 0.6); }
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:nth-child(4) { --nwx-chip: rgba(96, 165, 250, 0.6); }
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:nth-child(2)::after { animation-delay: -0.9s; }
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:nth-child(3)::after { animation-delay: -1.8s; }
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:nth-child(4)::after { animation-delay: -2.7s; }
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:hover {
  transform: translateY(-3px) scale(1.03);
}
.nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div:hover::after {
  opacity: 0.9;
  animation-play-state: paused;
}
@keyframes nwx-chip-glow {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}
.nwx-paused .nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div::after,
.nwx-on.nwx-paused.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div::after {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .nwx-on.night-sky-hero > .z-10 > div:nth-of-type(2) > div > div::after { animation: none; }
}
