/* Static light fields move as whole layers; controllers opt visible surfaces into motion. */
.cinematic-hero .hero-oppo {
  --wave-cool: 12 125 255;
  --wave-light: 0 205 224;
  --wave-accent: 134 66 237;
  background: linear-gradient(115deg, #164ee8 0%, #113994 46%, #091b40 100%);
}
.cinematic-hero .hero-navee {
  --wave-cool: 21 110 196;
  --wave-light: 64 196 240;
  --wave-accent: 0 150 214;
}
.cinematic-hero .hero-laifen {
  --wave-cool: 18 146 166;
  --wave-light: 103 212 190;
  --wave-accent: 57 102 191;
}
.cinematic-hero .hero-atmosphere { isolation: isolate; }
.cinematic-hero .hero-atmosphere::before,
.cinematic-hero .hero-atmosphere > .hero-wave {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -14%;
  pointer-events: none;
  transform-origin: 70% 55%;
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .12), #000 58%);
  animation: novatel-light-wave 22s ease-in-out infinite paused;
}
.cinematic-hero .hero-atmosphere::before {
  background:
    radial-gradient(ellipse 74% 104% at 76% -8%, transparent 54%, rgb(var(--wave-cool) / .17) 60%, rgb(var(--wave-light) / .74) 65%, rgb(var(--wave-cool) / .29) 72%, transparent 81%),
    radial-gradient(ellipse 53% 36% at 56% 65%, rgb(var(--wave-cool) / .51), transparent 76%);
  opacity: .72;
}
.cinematic-hero .hero-atmosphere > .hero-wave {
  background:
    radial-gradient(ellipse 38% 60% at 94% 3%, rgb(var(--wave-accent) / .86), transparent 74%),
    radial-gradient(ellipse 54% 28% at 81% 88%, rgb(var(--wave-light) / .45), transparent 76%);
  opacity: .66;
  animation-name: novatel-light-counterwave;
  animation-duration: 28s;
  animation-delay: -8s;
}
.cinematic-hero .hero-orbit { z-index: 1; }
/* A bounded star field: one faint texture and six independently phased lights.
   The wave and the star texture are real elements (not ::after/::before) so hero-hold.js can
   hold them still while the page scrolls or a brand slides in. */
.cinematic-hero .hero-atmosphere > .hero-starfield { z-index: 2; }
.cinematic-hero .hero-sparks { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.cinematic-hero .hero-atmosphere > .hero-starfield { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 7% 12%, #c5ecff8c 0 .7px, transparent 1.4px), radial-gradient(circle at 34% 8%, #d9f8ff80 0 .8px, transparent 1.5px), radial-gradient(circle at 48% 39%, #c3eaff66 0 .7px, transparent 1.4px), radial-gradient(circle at 61% 62%, #dbfaff70 0 .8px, transparent 1.6px), radial-gradient(circle at 96% 43%, #b9eaff99 0 .7px, transparent 1.5px), radial-gradient(circle at 37% 88%, #d8f8ff80 0 .7px, transparent 1.5px); opacity: .45; animation: novatel-star-field 14s ease-in-out infinite paused; }
.cinematic-hero .hero-spark { --spark-x: 14px; --spark-y: -20px; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #ecffff 0%, #b2eaff99 28%, transparent 72%); opacity: .3; pointer-events: none; animation: novatel-star-twinkle 9s ease-in-out infinite paused; }
.cinematic-hero .hero-spark:nth-child(1) { left: 51%; top: 18%; animation-delay: -2s; }
.cinematic-hero .hero-spark:nth-child(2) { left: 43%; top: 76%; --spark-x: -18px; animation-duration: 11s; animation-delay: -6s; }
.cinematic-hero .hero-spark:nth-child(3) { left: 91%; top: 20%; --spark-y: 18px; animation-duration: 10s; animation-delay: -4s; }
.cinematic-hero .hero-spark:nth-child(4) { left: 84%; top: 78%; --spark-x: -14px; animation-duration: 12s; animation-delay: -9s; }
.cinematic-hero .hero-spark:nth-child(5) { left: 67%; top: 10%; animation-duration: 10s; animation-delay: -7s; }
.cinematic-hero .hero-spark:nth-child(6) { left: 58%; top: 83%; --spark-y: -16px; animation-duration: 13s; animation-delay: -3s; }
.cinematic-hero .hero-spark-star { width: 13px; height: 13px; background: none; }
.cinematic-hero .hero-spark-star::before, .cinematic-hero .hero-spark-star::after { content: ''; position: absolute; left: 0; top: 6px; width: 13px; height: 1px; border-radius: 50%; background: linear-gradient(90deg, transparent, #a6e7ff99 30%, #efffff 50%, #a6e7ff99 70%, transparent); }
.cinematic-hero .hero-spark-star::after { transform: rotate(90deg); }
.cinematic-hero[data-ambient='running'] .hero-slide[aria-hidden='false'] .hero-atmosphere::before,
.cinematic-hero[data-ambient='running'] .hero-slide[aria-hidden='false'] .hero-atmosphere > .hero-wave,
.cinematic-hero[data-ambient='running'] .hero-slide[aria-hidden='false'] .hero-atmosphere > .hero-starfield,
.cinematic-hero[data-ambient='running'] .hero-slide[aria-hidden='false'] .hero-spark {
  animation-play-state: running;
}

/* Ambient layers sit behind real gallery cards and the personal-care range. */
[data-gradient-surface] { position: relative; isolation: isolate; }
[data-gradient-surface] > .ambient-gradient {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
[data-gradient-surface] > .ambient-gradient::before,
[data-gradient-surface] > .ambient-gradient::after {
  content: '';
  position: absolute;
  inset: -14%;
  pointer-events: none;
  animation: novatel-light-wave 26s ease-in-out infinite paused;
}
[data-gradient-surface] > .ambient-gradient::after {
  animation-name: novatel-light-counterwave;
  animation-duration: 30s;
  animation-delay: -9s;
}
#brands[data-gradient-surface],
#brands .brand-gallery[data-gradient-surface] { background: #071b37; }
#brands .ambient-gradient::before {
  background:
    radial-gradient(ellipse 86% 90% at 52% -17%, transparent 46%, rgb(0 177 220 / .15) 53%, rgb(0 193 220 / .6) 60%, rgb(31 100 237 / .28) 68%, transparent 77%),
    radial-gradient(ellipse 56% 42% at 20% 54%, rgb(0 162 204 / .57), transparent 75%),
    radial-gradient(ellipse 50% 42% at 76% 60%, rgb(31 91 232 / .57), transparent 76%);
  opacity: .72;
}
#brands .ambient-gradient::after {
  background:
    radial-gradient(ellipse 68% 66% at 51% -4%, transparent 45%, rgb(12 108 223 / .28) 57%, transparent 72%),
    radial-gradient(ellipse 40% 48% at 92% 67%, rgb(101 52 206 / .6), transparent 75%);
  opacity: .66;
}
#personal-care[data-gradient-surface] { background: #edf3ee; }
#personal-care > .ambient-gradient::before {
  background:
    radial-gradient(ellipse 58% 75% at 82% 24%, rgb(132 198 176 / .44), transparent 73%),
    radial-gradient(ellipse 40% 53% at 12% 74%, rgb(191 222 195 / .52), transparent 75%);
  opacity: .72;
}
#personal-care > .ambient-gradient::after {
  background:
    radial-gradient(ellipse 50% 60% at 65% 94%, rgb(137 194 197 / .22), transparent 74%),
    radial-gradient(ellipse 65% 60% at 42% -8%, rgb(255 255 255 / .75), transparent 70%);
  opacity: .66;
}
[data-gradient-surface][data-gradient-motion='running'] > .ambient-gradient::before,
[data-gradient-surface][data-gradient-motion='running'] > .ambient-gradient::after {
  animation-play-state: running;
}
@keyframes novatel-light-wave {
  0%, 100% { transform: translate(-4%, 3%) rotate(-4deg) scale(1); opacity: .62; }
  50% { transform: translate(4%, -3%) rotate(4deg) scale(1.04); opacity: .88; }
}
@keyframes novatel-light-counterwave {
  0%, 100% { transform: translate(3%, -2%) rotate(3deg) scale(1); opacity: .55; }
  50% { transform: translate(-4%, 4%) rotate(-3deg) scale(1.06); opacity: .82; }
}
@keyframes novatel-star-field { 0%, 100% { opacity: .28; } 25% { opacity: .8; } 50% { opacity: .4; } 78% { opacity: .9; } }
@keyframes novatel-star-twinkle {
  0%, 100% { transform: translate(0, 0) scale(.7) rotate(-8deg); opacity: .18; }
  28% { opacity: .88; }
  50% { transform: translate(var(--spark-x), var(--spark-y)) scale(1.08) rotate(12deg); opacity: .3; }
  78% { opacity: .96; }
}
@media (max-width: 800px) {
  .cinematic-hero .hero-atmosphere::before,
  .cinematic-hero .hero-atmosphere > .hero-wave {
    transform-origin: 55% 72%;
    mask-image: linear-gradient(180deg, rgb(0 0 0 / .1) 0%, rgb(0 0 0 / .22) 34%, #000 63%);
  }
  .cinematic-hero .hero-atmosphere > .hero-starfield, .cinematic-hero .hero-spark:nth-child(even) { display: none; }
  .cinematic-hero .hero-spark:nth-child(1) { left: 8%; top: 47%; }
  .cinematic-hero .hero-spark:nth-child(3) { left: 91%; top: 70%; }
  .cinematic-hero .hero-spark:nth-child(5) { left: 84%; top: 33%; }
}
html[data-motion='off'] .cinematic-hero .hero-sparks { display: none; }
html[data-motion='off'] .cinematic-hero .hero-atmosphere::before,
html[data-motion='off'] .cinematic-hero .hero-atmosphere > .hero-wave,
html[data-motion='off'] [data-gradient-surface] > .ambient-gradient::before,
html[data-motion='off'] [data-gradient-surface] > .ambient-gradient::after { animation: none !important; }
@media (prefers-reduced-motion: reduce), print {
  .cinematic-hero .hero-sparks { display: none; }
  .cinematic-hero .hero-atmosphere::before,
  .cinematic-hero .hero-atmosphere > .hero-wave,
  [data-gradient-surface] > .ambient-gradient::before,
  [data-gradient-surface] > .ambient-gradient::after { animation: none !important; }
}

/* One viewport-sized atmosphere carries through every light section. The
   existing surface controller handles visibility, modal and motion preferences. */
body { isolation: isolate; background: #f8fafc; }
.site-atmosphere[data-gradient-surface] {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
}
.site-atmosphere::before,
.site-atmosphere::after {
  content: '';
  position: absolute;
  inset: -12%;
  pointer-events: none;
  animation: novatel-page-aurora 32s ease-in-out infinite alternate paused;
}
.site-atmosphere::before {
  background:
    radial-gradient(ellipse 52% 70% at 0% 38%, rgb(0 159 194 / .31), transparent 78%),
    radial-gradient(ellipse 45% 60% at 100% 76%, rgb(99 104 213 / .25), transparent 80%),
    radial-gradient(ellipse 50% 45% at 58% -6%, rgb(103 187 221 / .19), transparent 80%);
}
.site-atmosphere::after {
  background:
    radial-gradient(ellipse 45% 55% at 95% 8%, rgb(87 157 217 / .26), transparent 78%),
    radial-gradient(ellipse 50% 50% at 16% 100%, rgb(82 191 185 / .22), transparent 80%);
  animation-name: novatel-page-counterglow;
  animation-duration: 38s;
  animation-delay: -16s;
}
.site-stars {
  --star-drift-start: -18px;
  --star-drift-end: 36px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 3% 23%, #3a85aa 0 1px, transparent 2px),
    radial-gradient(circle at 16% 48%, #5b96b2 0 .9px, transparent 1.9px),
    radial-gradient(circle at 32% 12%, #527da6 0 .9px, transparent 1.8px),
    radial-gradient(circle at 65% 69%, #5499b2 0 1px, transparent 1.9px),
    radial-gradient(circle at 94% 35%, #557ea6 0 1.2px, transparent 2.1px),
    radial-gradient(circle at 87% 86%, #6484b1 0 1px, transparent 2px);
  opacity: .45;
  /* Independent opacity and transform cycles reuse the same painted layer. */
  animation: novatel-page-drift 52s ease-in-out infinite alternate paused,
    novatel-page-stars 7s ease-in-out infinite paused;
  animation-delay: -8s, -1.6s;
}
.site-stars::before,
.site-stars::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  background: #619cb8;
  clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 60%, 50% 100%, 41% 60%, 0 50%, 41% 40%);
}
.site-stars::before { left: 2.3%; top: 56%; }
.site-stars::after { right: 2.4%; top: 16%; width: 9px; height: 9px; }
.site-stars-distant {
  inset: 5% 3%;
  transform: rotate(180deg);
  animation-name: novatel-page-drift-distant, novatel-page-stars-distant;
  animation-duration: 68s, 9s;
  animation-delay: -19s, -4.8s;
}
.site-atmosphere[data-gradient-motion='running']::before,
.site-atmosphere[data-gradient-motion='running']::after,
.site-atmosphere[data-gradient-motion='running'] .site-stars { animation-play-state: running; }

/* Translucent reading surfaces reveal the continuous light without blurring it. */
.site-header { background: rgb(255 255 255 / .84); }
.order-guide { background: rgb(235 243 248 / .35); }
.about-novatel { background: transparent; }
#personal-care[data-gradient-surface] { background: rgb(237 243 238 / .62); }

/* Dark sections carry the same atmosphere in white and cyan. */
.site-star-surface { position: relative; isolation: isolate; overflow: hidden; }
.site-star-surface::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -3%;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 25%, #b6e9ffcc 0 1px, transparent 1.9px),
    radial-gradient(circle at 24% 82%, #c0eaffb3 0 .9px, transparent 1.9px),
    radial-gradient(circle at 47% 12%, #d0f2ffb3 0 1px, transparent 1.9px),
    radial-gradient(circle at 69% 61%, #b8ddffb3 0 .9px, transparent 1.8px),
    radial-gradient(circle at 95% 38%, #c3efffe0 0 1px, transparent 2px),
    radial-gradient(ellipse 55% 90% at 0% 100%, #007b9c52, transparent 80%),
    radial-gradient(ellipse 45% 80% at 100% 0%, #5b5fc53d, transparent 80%);
  animation: novatel-page-dark 28s ease-in-out infinite paused;
}
.site-star-surface[data-gradient-motion='running']::before { animation-play-state: running; }
@keyframes novatel-page-aurora {
  from { transform: translate(-3%, 2%) scale(1); opacity: .8; }
  to { transform: translate(3%, -3%) scale(1.04); opacity: 1; }
}
@keyframes novatel-page-counterglow {
  from { transform: translate(3%, -2%); opacity: .65; }
  to { transform: translate(-3%, 3%); opacity: 1; }
}
@keyframes novatel-page-drift {
  from { transform: translate(var(--star-drift-start), 14px); }
  to { transform: translate(var(--star-drift-end), -18px); }
}
@keyframes novatel-page-drift-distant {
  from { transform: rotate(180deg) translate(-22px, -12px); }
  to { transform: rotate(180deg) translate(28px, 16px); }
}
@keyframes novatel-page-stars {
  0%, 100% { opacity: .26; }
  28% { opacity: .88; }
  52% { opacity: .38; }
  78% { opacity: .76; }
}
@keyframes novatel-page-stars-distant {
  0%, 100% { opacity: .18; }
  35% { opacity: .68; }
  62% { opacity: .3; }
  84% { opacity: .6; }
}
@keyframes novatel-page-dark {
  0%, 100% { transform: translate(-8px, 10px); opacity: .64; }
  25% { opacity: .88; }
  50% { transform: translate(12px, -12px); opacity: .7; }
  75% { opacity: .96; }
}
@media (max-width: 700px) {
  .site-stars-distant { display: none; }
  .site-atmosphere::after { animation: none; opacity: .7; }
  .site-stars { --star-drift-start: -8px; --star-drift-end: 18px; animation-duration: 62s, 8s; }
}
html[data-motion='off'] .site-atmosphere::before,
html[data-motion='off'] .site-atmosphere::after,
html[data-motion='off'] .site-stars,
html[data-motion='off'] .site-star-surface::before { animation: none; }
@media (prefers-reduced-motion: reduce), print {
  .site-atmosphere::before, .site-atmosphere::after,
  .site-stars, .site-star-surface::before { animation: none; }
}
@media print {
  .site-atmosphere, .site-star-surface::before { display: none; }
  body, .site-header, .order-guide, .about-novatel,
  #personal-care[data-gradient-surface] { background: #fff; }
}
