.glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .65)
}

.gradient {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(107, 110, 184, .15), transparent 60%),
    radial-gradient(1200px 600px at 90% 110%, rgba(54, 56, 97, .15), transparent 60%);
}

:root {
  --splash-gold-core: rgba(212, 175, 55, .35);
  --splash-gold-edge: rgba(235, 194, 82, .25);
  --splash-drop: rgba(253, 193, 11, .45);
  --splash-duration: 650ms;
  --splash-size: 50px;
  --gold-400: #EBC252;
  --gold-500: #D4AF37;
  --gold-600: #B8902B;
  --slate-900: #0f172a;
}

/* Splash (disabled on small to keep perf tight) */
.perfume-splash {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--splash-size);
  height: var(--splash-size);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 40
}

.perfume-splash .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--splash-gold-core) 0%, var(--splash-gold-edge) 48%, rgba(255, 255, 255, 0) 60%);
  filter: blur(.6px);
  opacity: .9;
  transform: scale(.25);
  animation: ringOut var(--splash-duration) cubic-bezier(.2, .6, .2, 1) forwards
}

@keyframes ringOut {
  60% {
    transform: scale(1);
    opacity: .55
  }

  100% {
    transform: scale(1.1);
    opacity: 0
  }
}

.perfume-splash .drop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--splash-drop);
  box-shadow: 0 0 6px rgba(212, 175, 55, .35);
  transform: translate(0, 0) scale(.8);
  opacity: .95;
  animation: dropOut var(--splash-duration) ease-out forwards
}

@keyframes dropOut {
  60% {
    transform: translate(var(--dx), var(--dy)) scale(1);
    opacity: .85
  }

  100% {
    transform: translate(calc(var(--dx)*1.05), calc(var(--dy)*1.05)) scale(.6);
    opacity: 0
  }
}

@media (prefers-reduced-motion:reduce) {

  .perfume-splash .ring,
  .perfume-splash .drop {
    animation: none;
    opacity: 0
  }
}

/* Back-to-top button */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--slate-900);
  background: radial-gradient(120% 120% at 30% 20%, var(--gold-400), var(--gold-500) 60%, var(--gold-600));
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(.9);
  visibility: hidden;
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 50
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible
}

.to-top-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg)
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, .25);
  stroke-width: 3
}

.ring-progress {
  fill: none;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset .15s linear
}

.to-top-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06)
}

.to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .35)
}

html, body {
  overflow-y: auto !important;
  height: auto !important;
}

@media (prefers-reduced-motion:reduce) {

  .to-top,
  .ring-progress {
    transition: none !important
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none
}

.heritage-card:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, .12), #fff);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, .2);
  border-color: rgba(212, 175, 55, .5);
  transition: all .25s ease
}

@keyframes glowPulse {
  0% {
    opacity: .4
  }

  50% {
    opacity: .8
  }

  100% {
    opacity: .4
  }
}

.animate-glow {
  animation: glowPulse 4s ease-in-out infinite
}

/* Typewriter -> mobile safe: disable on <640px to avoid overflow */
.quote-text {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid rgba(212, 175, 55, .75);
  white-space: nowrap;
  width: 0ch;
  animation: typing 6s steps(78, end) forwards, blink 1s step-end infinite
}

@keyframes typing {
  from {
    width: 0ch
  }

  to {
    width: 78ch
  }
}

@keyframes blink {

  0%,
  100% {
    border-color: transparent
  }

  50% {
    border-color: rgba(212, 175, 55, .85)
  }
}

@media (max-width:640px) {
  .quote-text {
    white-space: normal;
    width: auto;
    border-right: none;
    animation: none
  }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .5s ease, visibility .5s ease
}

.preloader::before {
  content: "";
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, .12), transparent 60%);
  filter: blur(10px)
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden
}

html.preloader-lock,
body.preloader-lock {
  overflow: hidden
}
