* { box-sizing: border-box; }

:root {
  --bg: #07090b;
  --gold: #c8aa80;
  --gold-strong: #efd19b;
  --muted: #8c745a;
  --motion-x: 0;
  --motion-y: 0;
  --scroll-progress: 0;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--gold);
  background: #050708;
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

a, button { font: inherit; }
button { color: inherit; }

.bloom-page {
  min-height: 100vh;
  background: radial-gradient(circle at 62% 22%, rgba(102, 58, 30, 0.13), transparent 30%), linear-gradient(180deg, #07090b 0%, #040607 100%);
}

.experience {
  height: 230vh;
  position: relative;
}

.scene {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
  background: radial-gradient(circle at calc(55% + var(--motion-x) * 4%) calc(42% + var(--motion-y) * 3%), rgba(84, 35, 19, 0.14), transparent 38%), radial-gradient(circle at 48% 38%, rgba(94, 64, 27, 0.09), transparent 48%), linear-gradient(180deg, #090b0d 0%, #050708 100%);
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 0 39%, rgba(2, 3, 4, 0.2) 67%, rgba(2, 3, 4, 0.58) 100%), linear-gradient(90deg, rgba(5, 7, 8, 0.34), transparent 22% 78%, rgba(5, 7, 8, 0.38));
  opacity: calc(0.78 - var(--scroll-progress) * 0.18);
}

.depth-layer {
  position: absolute;
  inset: -6%;
  pointer-events: none;
  will-change: transform;
}

.stellar-layer { z-index: 1; }
.subject-layer { z-index: 3; display: grid; place-items: center; transform-style: preserve-3d; }
.foreground-layer { z-index: 6; mix-blend-mode: screen; }

.particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.rose-field,
.rose-subject,
.foreground-rose-sheen {
  position: absolute;
  width: min(92vw, 1540px);
  transform-style: preserve-3d;
}

.rose-field img,
.rose-subject img,
.foreground-rose-sheen img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.rose-field-back {
  opacity: 0.18;
  filter: blur(26px) saturate(1.1) contrast(1.08);
  transform: translate3d(calc(var(--motion-x) * -18px), calc(var(--motion-y) * -10px), -120px) scale(1.085);
  mask-image: radial-gradient(circle at 50% 43%, #000 0 42%, transparent 71%);
  -webkit-mask-image: radial-gradient(circle at 50% 43%, #000 0 42%, transparent 71%);
}

.rose-subject {
  width: min(88vw, 1500px);
  z-index: 2;
  transition: filter 220ms ease;
  will-change: transform, filter;
}

.rose-image {
  filter: drop-shadow(0 0 34px rgba(255, 179, 92, 0.09)) drop-shadow(0 44px 76px rgba(0, 0, 0, 0.34)) saturate(1.05) contrast(1.025);
  transform: scale(1.035);
}

.subject-core-glow {
  position: absolute;
  inset: 13% 20% 20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 84, 0.15), transparent 64%);
  filter: blur(46px);
  opacity: calc(0.8 + var(--scroll-progress) * 0.2);
}

.foreground-rose-sheen {
  left: 50%;
  top: 50%;
  opacity: calc(0.12 + var(--scroll-progress) * 0.2);
  filter: blur(0.4px) brightness(1.22) saturate(1.16);
  transform: translate3d(calc(-50% + var(--motion-x) * 28px), calc(-50% + var(--motion-y) * 24px), 170px) scale(calc(1.045 + var(--scroll-progress) * 0.045));
  mask-image: linear-gradient(110deg, transparent 0 39%, #000 48% 58%, transparent 69% 100%), radial-gradient(circle at 55% 32%, #000 0 25%, transparent 47%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(110deg, transparent 0 39%, #000 48% 58%, transparent 69% 100%), radial-gradient(circle at 55% 32%, #000 0 25%, transparent 47%);
  -webkit-mask-composite: source-in;
}

.ambient {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(82px);
  pointer-events: none;
}

.ambient-a { width: 34vw; height: 34vw; left: 31%; top: 18%; background: rgba(255, 144, 102, 0.12); opacity: 0.22; }
.ambient-b { width: 27vw; height: 27vw; right: 18%; top: 30%; background: rgba(255, 192, 84, 0.08); opacity: 0.2; }
.ambient-c { width: 30vw; height: 30vw; left: 12%; bottom: 3%; background: rgba(103, 48, 29, 0.11); opacity: 0.16; }

.topbar,
.hero-copy,
.status-rail,
.lower-hud,
.sound-mark,
.scroll-glyph {
  position: absolute;
  z-index: 12;
}

.topbar {
  inset: 0 0 auto;
  padding: clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #d5b994;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-star { color: var(--gold-strong); margin-right: 18px; }

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.nav a { color: #b89a75; text-decoration: none; transition: color 180ms ease; }
.nav a:hover { color: #f0d4a4; }

.menu-button {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  align-content: space-between;
  cursor: pointer;
}

.menu-button span { height: 2px; background: #c7a875; display: block; }

.hero-copy {
  left: clamp(28px, 4vw, 70px);
  top: clamp(118px, 14vh, 150px);
  transform: translate3d(0, calc(var(--scroll-progress) * -34px), 0);
  opacity: calc(1 - var(--scroll-progress) * 0.58);
}

.hero-copy h1 {
  margin: 0;
  color: #cdb18b;
  font-size: clamp(40px, 4.7vw, 82px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.94;
  text-shadow: 0 0 24px rgba(217, 169, 107, 0.05);
}

.eyebrow {
  margin: 0 0 24px;
  color: #7f674c;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
}

.rule { width: 58px; height: 1px; margin-top: 30px; background: #866a4d; }

.wish-line {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom));
  margin: 0;
  color: #d8bd95;
  font-size: clamp(25px, 2.5vw, 42px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-shadow: 0 0 28px rgba(217, 169, 107, 0.08);
  transform: translate3d(-50%, calc(var(--scroll-progress) * -18px), 0);
  opacity: calc(1 - var(--scroll-progress) * 0.48);
}

.status-rail {
  right: 4vw;
  top: 44%;
  display: grid;
  gap: 17px;
}

.status-rail span {
  width: 7px;
  height: 7px;
  border: 1px solid #8b6946;
  border-radius: 50%;
}

.status-rail .active { background: #f3d9aa; border-color: #f3d9aa; }

.lower-hud {
  left: clamp(28px, 4vw, 70px);
  bottom: 5vh;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: Arial, sans-serif;
  color: #a68a68;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.signal-block { display: flex; align-items: center; gap: 16px; }

.mouse-glyph {
  width: 28px;
  height: 48px;
  border: 1px solid #bd9a6e;
  border-radius: 16px;
  position: relative;
}

.mouse-glyph span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 8px;
  background: #e0bd87;
  transform: translateX(-50%);
  animation: wheel 1.7s ease-in-out infinite;
}

@keyframes wheel {
  0%, 100% { opacity: 0.25; transform: translate(-50%, 0); }
  45% { opacity: 1; }
  65% { opacity: 0.25; transform: translate(-50%, 10px); }
}

.motion-button {
  display: none;
  min-width: 86px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(189, 154, 110, 0.54);
  border-radius: 999px;
  background: rgba(8, 10, 11, 0.22);
  color: #d2b487;
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.sound-mark {
  right: 5vw;
  bottom: 5vh;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.17em;
}

.sound-mark span { margin-left: 14px; color: #9f7d55; }

.scroll-glyph {
  left: 50%;
  bottom: 26px;
  color: #caa879;
  font-size: 24px;
  opacity: calc(0.74 - var(--scroll-progress) * 0.58);
  transform: translateX(-50%);
}

@media (max-width: 860px) {
  .scene { min-height: 100svh; }
  .topbar { padding: 24px; }
  .nav a { display: none; }
  .hero-copy { left: 24px; top: 112px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 46px); line-height: 0.96; letter-spacing: 0.055em; }
  .rule { width: 46px; margin-top: 18px; }
  .wish-line {
    bottom: calc(98px + env(safe-area-inset-bottom));
    font-size: clamp(23px, 5.5vw, 32px);
    letter-spacing: 0.04em;
    text-align: center;
    transform: translate3d(-50%, calc(var(--scroll-progress) * -18px), 0);
  }
  .rose-field, .rose-subject, .foreground-rose-sheen { width: 112vw; }
  .status-rail, .sound-mark { display: none; }
  .lower-hud { right: 24px; left: 24px; bottom: calc(18px + env(safe-area-inset-bottom)); justify-content: space-between; }
  .motion-button { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 560px) {
  .experience { height: 210vh; }
  .hero-copy { top: 104px; }
  .hero-copy h1 { font-size: clamp(31px, 8.6vw, 40px); }
  .eyebrow { margin-bottom: 18px; }
  .signal-block { gap: 12px; }
  .signal-block span:nth-child(3) { display: none; }
  .wish-line { bottom: calc(94px + env(safe-area-inset-bottom)); font-size: clamp(22px, 6vw, 29px); letter-spacing: 0.035em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mouse-glyph span { animation: none; }
  .rose-subject, .depth-layer { transition: none; }
}
