.prismatic-fragrance-reveal {
  --pointer-x: 50;
  --pointer-y: 50;
  --tilt-x: -5deg;
  --tilt-y: -18deg;
  --lift: 0px;
  --accent: #8edfff;
  --accent-warm: #ffd58a;
  --accent-deep: #ff9e78;
  max-width: 1280px;
  margin: 0 auto;
  color: #f8f5f0;
}

.fragrance-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 30px;
  align-items: stretch;
}

.fragrance-copy,
.fragrance-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at 18% 18%, rgba(142, 223, 255, 0.12), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(255, 213, 138, 0.14), transparent 24%),
    linear-gradient(145deg, #090d16 0%, #0d1222 44%, #160f18 100%);
  box-shadow: 0 26px 96px rgba(0, 0, 0, 0.28);
}

.fragrance-copy {
  padding: 42px;
}

.fragrance-eyebrow,
.fragrance-story__label,
.fragrance-chip__label,
.bottle-label__edition,
.bottle-label__detail {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(248, 245, 240, 0.56);
}

.fragrance-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fragrance-copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.9;
  text-wrap: balance;
}

.fragrance-intro {
  margin: 22px 0 0;
  max-width: 42ch;
  font-size: 1.08rem;
  line-height: 1.85;
  color: rgba(248, 245, 240, 0.8);
}

.fragrance-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.fragrance-control {
  appearance: none;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.fragrance-control:hover,
.fragrance-control:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(142, 223, 255, 0.44);
}

.fragrance-control.is-active {
  border-color: rgba(142, 223, 255, 0.44);
  background: rgba(142, 223, 255, 0.12);
}

.fragrance-story-grid {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.fragrance-story {
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 82%),
    rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.fragrance-story.is-active {
  transform: translateY(-2px);
  border-color: rgba(142, 223, 255, 0.28);
  background: rgba(142, 223, 255, 0.08);
}

.fragrance-story h2 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
  line-height: 1;
}

.fragrance-story p:last-child {
  margin: 0;
  line-height: 1.72;
  color: rgba(248, 245, 240, 0.78);
}

.fragrance-stage {
  min-height: 780px;
  padding: 30px;
  isolation: isolate;
}

.fragrance-orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.92;
}

.orbit {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.4;
}

.orbit-a {
  stroke: rgba(255, 255, 255, 0.14);
}

.orbit-b {
  stroke: rgba(142, 223, 255, 0.18);
}

.orbit-c {
  stroke: rgba(255, 213, 138, 0.16);
}

.orbit-sweep {
  fill: none;
  stroke: url(#fragranceStroke);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  animation: fragranceSweep 12s linear infinite;
}

.orbit-sweep--alt {
  animation-duration: 10s;
  animation-direction: reverse;
  opacity: 0.82;
}

.fragrance-aura,
.fragrance-caustic {
  position: absolute;
  pointer-events: none;
}

.fragrance-aura {
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.8;
}

.fragrance-aura--cyan {
  top: calc(8% + (var(--pointer-y) * 0.08%));
  left: calc(46% + (var(--pointer-x) * 0.05%));
  background: rgba(142, 223, 255, 0.22);
}

.fragrance-aura--amber {
  right: 10%;
  bottom: 18%;
  background: rgba(255, 158, 120, 0.12);
}

.fragrance-caustic {
  left: 50%;
  bottom: 110px;
  width: 420px;
  height: 180px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 231, 186, 0.35), transparent 42%),
    radial-gradient(circle at 34% 44%, rgba(142, 223, 255, 0.26), transparent 38%),
    radial-gradient(circle at 68% 44%, rgba(255, 158, 120, 0.22), transparent 34%);
  filter: blur(26px);
  opacity: 0.78;
}

.fragrance-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
  animation: fragranceSpark 4.8s ease-in-out infinite;
}

.spark-a {
  top: 16%;
  right: 22%;
}

.spark-b {
  top: 26%;
  left: 18%;
  animation-delay: 0.9s;
}

.spark-c {
  bottom: 26%;
  right: 18%;
  animation-delay: 1.8s;
}

.spark-d {
  bottom: 18%;
  left: 22%;
  animation-delay: 2.7s;
}

.fragrance-bottle-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1600px;
  transform-style: preserve-3d;
}

.fragrance-shadow {
  position: absolute;
  bottom: 112px;
  width: 260px;
  height: 76px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(28px);
}

.fragrance-bottle {
  position: relative;
  width: 290px;
  height: 520px;
  transform-style: preserve-3d;
  transform:
    translateY(calc(-10px + var(--lift)))
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition: transform 180ms ease-out;
}

.bottle-cap {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 132px;
  height: 116px;
  transform: translateX(-50%) translateZ(58px);
  border-radius: 30px 30px 26px 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(193, 199, 219, 0.22)),
    linear-gradient(180deg, #f4f2ed 0%, #c2c4cf 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -10px 20px rgba(0, 0, 0, 0.14),
    0 18px 30px rgba(0, 0, 0, 0.16);
}

.bottle-cap::before {
  content: "";
  position: absolute;
  inset: 10px 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bottle-cap__rim {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -12px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(210, 214, 225, 0.6));
}

.bottle-neck {
  position: absolute;
  top: 116px;
  left: 50%;
  width: 76px;
  height: 56px;
  transform: translateX(-50%) translateZ(46px);
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.08)),
    rgba(220, 230, 244, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.bottle-body {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 290px;
  height: 344px;
  transform: translateX(-50%) translateZ(40px);
  border-radius: 44px 44px 38px 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04)),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(134, 150, 214, 0.05));
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    inset 0 -18px 26px rgba(0, 0, 0, 0.08),
    0 42px 60px rgba(0, 0, 0, 0.16);
}

.bottle-body::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bottle-backlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.4), transparent 24%),
    radial-gradient(circle at 52% 66%, rgba(255, 209, 144, 0.16), transparent 44%),
    radial-gradient(circle at 18% 36%, rgba(142, 223, 255, 0.18), transparent 30%);
}

.bottle-liquid {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  height: 174px;
  border-radius: 28px 28px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 237, 205, 0.9) 0%, rgba(255, 190, 130, 0.76) 48%, rgba(221, 120, 84, 0.6) 100%);
  box-shadow:
    inset 0 14px 24px rgba(255, 255, 255, 0.18),
    inset 0 -22px 30px rgba(147, 58, 42, 0.18);
  overflow: hidden;
}

.bottle-liquid::before {
  content: "";
  position: absolute;
  inset: -26px -4px auto;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.34), rgba(255, 240, 212, 0.08));
}

.bottle-liquid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 20%, transparent 70%, rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 100%);
}

.bottle-reflection {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  filter: blur(1px);
}

.bottle-reflection--main {
  top: 26px;
  left: 32px;
  width: 34px;
  height: 246px;
  opacity: 0.68;
}

.bottle-reflection--edge {
  top: 42px;
  right: 34px;
  width: 14px;
  height: 210px;
  opacity: 0.42;
}

.bottle-label {
  position: absolute;
  left: 50%;
  top: 78px;
  width: 176px;
  transform: translateX(-50%);
  text-align: center;
}

.bottle-label__name {
  margin: 10px 0 8px;
  font-size: 1.7rem;
  line-height: 0.94;
  letter-spacing: 0.02em;
}

.bottle-label__detail {
  color: rgba(248, 245, 240, 0.62);
}

.fragrance-chip {
  position: absolute;
  padding: 14px 16px;
  min-width: 156px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 24, 0.5);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  opacity: 0.42;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.fragrance-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
}

.fragrance-chip.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(142, 223, 255, 0.32);
}

.fragrance-chip--top {
  top: 18%;
  right: 8%;
}

.fragrance-chip--heart {
  top: 52%;
  left: 8%;
}

.fragrance-chip--base {
  bottom: 14%;
  right: 14%;
}

.prismatic-fragrance-reveal[data-active-note="heart"] {
  --accent: #f4c3ff;
  --accent-warm: #ffc5a2;
  --accent-deep: #ff8dc7;
}

.prismatic-fragrance-reveal[data-active-note="base"] {
  --accent: #ffd58a;
  --accent-warm: #ffad7a;
  --accent-deep: #ff7c72;
}

.prismatic-fragrance-reveal[data-active-note="heart"] .fragrance-control.is-active,
.prismatic-fragrance-reveal[data-active-note="heart"] .fragrance-story.is-active,
.prismatic-fragrance-reveal[data-active-note="heart"] .fragrance-chip.is-active {
  border-color: rgba(244, 195, 255, 0.32);
}

.prismatic-fragrance-reveal[data-active-note="base"] .fragrance-control.is-active,
.prismatic-fragrance-reveal[data-active-note="base"] .fragrance-story.is-active,
.prismatic-fragrance-reveal[data-active-note="base"] .fragrance-chip.is-active {
  border-color: rgba(255, 213, 138, 0.32);
}

.prismatic-fragrance-reveal[data-active-note="heart"] .bottle-liquid {
  background:
    linear-gradient(180deg, rgba(255, 226, 241, 0.88) 0%, rgba(230, 160, 193, 0.74) 52%, rgba(170, 86, 133, 0.56) 100%);
}

.prismatic-fragrance-reveal[data-active-note="base"] .bottle-liquid {
  background:
    linear-gradient(180deg, rgba(255, 229, 186, 0.9) 0%, rgba(214, 139, 84, 0.78) 44%, rgba(118, 52, 34, 0.62) 100%);
}

@keyframes fragranceSweep {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: 260;
  }
}

@keyframes fragranceSpark {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.6);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (max-width: 1040px) {
  .fragrance-layout {
    grid-template-columns: 1fr;
  }

  .fragrance-stage {
    min-height: 680px;
  }
}

@media (max-width: 640px) {
  .fragrance-copy,
  .fragrance-stage {
    padding: 24px;
    border-radius: 28px;
  }

  .fragrance-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .fragrance-stage {
    min-height: 620px;
  }

  .fragrance-bottle {
    width: 240px;
    height: 450px;
  }

  .bottle-cap {
    width: 108px;
    height: 96px;
  }

  .bottle-body {
    width: 240px;
    height: 300px;
  }

  .fragrance-chip {
    min-width: 132px;
    padding: 12px 14px;
  }

  .fragrance-chip--top {
    top: 14%;
    right: 4%;
  }

  .fragrance-chip--heart {
    top: 54%;
    left: 4%;
  }

  .fragrance-chip--base {
    right: 6%;
    bottom: 12%;
  }
}
