/* =========================================================
   Six Months of Us — Luxury golden-hour garden love letter
   ========================================================= */

:root {
  /* Palette — cream, blush, lily white, warm sun */
  --cream: #f7f1e8;
  --cream-deep: #efe6d8;
  --ivory: #fffaf3;
  --blush: #e8b4b8;
  --blush-soft: #f3d5d8;
  --rose: #c9898f;
  --lily: #faf6f0;
  --gold: #c9a66b;
  --gold-soft: #e2c99a;
  --amber: #d4a574;
  --sun: #f0d5a8;
  --ink: #3d342c;
  --ink-soft: #6b5e52;
  --ink-faint: #9a8b7c;
  --glass: rgba(255, 250, 243, 0.55);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow-soft: 0 24px 80px rgba(90, 60, 40, 0.12);
  --shadow-letter: 0 30px 100px rgba(80, 50, 35, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(232, 180, 184, 0.25);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-flourish: "Pinyon Script", cursive;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: rgba(232, 180, 184, 0.45);
  color: var(--ink);
}

/* ---------- Ambient atmosphere ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(240, 213, 168, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(243, 213, 216, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 70%, rgba(226, 201, 154, 0.25), transparent 45%),
    linear-gradient(165deg, #faf6f0 0%, #f5ebe0 40%, #f0e4d6 100%);
}

.ambient__sun {
  position: absolute;
  top: -8%;
  right: 8%;
  width: min(55vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 236, 200, 0.7) 0%,
    rgba(240, 213, 168, 0.35) 35%,
    transparent 70%
  );
  filter: blur(8px);
  animation: sun-breathe 12s ease-in-out infinite;
}

.ambient__rays {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    118deg,
    transparent 0,
    transparent 48px,
    rgba(255, 245, 220, 0.035) 48px,
    rgba(255, 245, 220, 0.035) 52px
  );
  mask-image: radial-gradient(ellipse 70% 55% at 75% 0%, black 20%, transparent 70%);
  opacity: 0.7;
  animation: rays-drift 28s linear infinite;
}

.ambient__particles,
.ambient__petals {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Enter gate (starts music) ---------- */
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(240, 213, 168, 0.35), transparent 60%),
    linear-gradient(165deg, #faf6f0 0%, #f0e4d6 100%);
  transition: opacity 0.9s var(--ease-out), visibility 0.9s var(--ease-out);
}

.enter-gate.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-gate__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 2.5rem;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.enter-gate__eyebrow {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.enter-gate__title {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  line-height: 1.15;
  color: var(--ink);
}

.enter-gate__hint {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.85;
  animation: gate-pulse 2.2s ease-in-out infinite;
}

@keyframes gate-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

/* ---------- Main layout ---------- */
main {
  position: relative;
  z-index: 1;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger helpers via inline delays set in JS / nth-child */
.moments__list .reveal:nth-child(1) { transition-delay: 0.05s; }
.moments__list .reveal:nth-child(2) { transition-delay: 0.15s; }
.moments__list .reveal:nth-child(3) { transition-delay: 0.25s; }
.moments__list .reveal:nth-child(4) { transition-delay: 0.35s; }
.moments__list .reveal:nth-child(5) { transition-delay: 0.45s; }
.moments__list .reveal:nth-child(6) { transition-delay: 0.55s; }

.hero .reveal:nth-child(1) { transition-delay: 0.2s; }
.hero .reveal:nth-child(2) { transition-delay: 0.4s; }
.hero .reveal:nth-child(3) { transition-delay: 0.55s; }
.hero .reveal:nth-child(4) { transition-delay: 0.75s; }
.hero .reveal:nth-child(5) { transition-delay: 0.95s; }

/* =========================================================
   HERO — one composition, brand-first golden garden
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 10vh, 7rem) 1.5rem 5rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero- ken 28s var(--ease-soft) infinite alternate;
  filter: saturate(0.92) brightness(1.05);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.25) 0%, rgba(247, 241, 232, 0.55) 45%, rgba(247, 241, 232, 0.88) 100%),
    radial-gradient(ellipse 90% 70% at 50% 35%, transparent 20%, rgba(247, 241, 232, 0.5) 100%);
}

/* Corner & side blooms — natural decoration */
.hero__bloom {
  position: absolute;
  z-index: 1;
  opacity: 0;
  --parallax-y: 0px;
  animation: bloom-in 2.2s var(--ease-out) forwards;
  will-change: transform, opacity;
  translate: 0 var(--parallax-y);
}

.hero__bloom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(80, 50, 35, 0.15));
}

.hero__bloom--left {
  left: -6%;
  bottom: -4%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 50% 50% 40% 55%;
  overflow: hidden;
  animation-delay: 0.4s;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 75%);
}

.hero__bloom--left img {
  animation: sway 9s ease-in-out infinite;
  transform-origin: 40% 80%;
}

.hero__bloom--right {
  right: -5%;
  top: 8%;
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  border-radius: 45% 55% 50% 50%;
  overflow: hidden;
  animation-delay: 0.7s;
  mask-image: radial-gradient(ellipse 65% 65% at 55% 45%, black 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 55% 45%, black 35%, transparent 72%);
}

.hero__bloom--right img {
  animation: sway 11s ease-in-out infinite reverse;
  transform-origin: 60% 70%;
}

.hero__bloom--corner {
  top: -2%;
  left: -2%;
  width: min(48vw, 480px);
  height: min(38vw, 380px);
  animation-delay: 0.2s;
  mask-image: linear-gradient(135deg, black 25%, transparent 70%);
  -webkit-mask-image: linear-gradient(135deg, black 25%, transparent 70%);
  opacity: 0;
}

.hero__bloom--corner img {
  object-position: left top;
  animation: sway-soft 14s ease-in-out infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 36rem;
  padding: 2rem 1rem;
}

.hero__portrait {
  width: min(88vw, 340px);
  margin: 0 auto 1.75rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(80, 50, 35, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 40px rgba(232, 180, 184, 0.25);
  background: rgba(255, 250, 243, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(8px);
}

.hero__portrait.is-visible {
  transform: translateY(0);
}

.hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.hero__eyebrow {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.hero__title {
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1.35rem;
}

.hero__title-script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  color: var(--ink);
  text-shadow: 0 2px 40px rgba(255, 250, 243, 0.8);
  letter-spacing: 0.02em;
}

.hero__lede {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 22em;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

.hero__cta {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.95rem 1.85rem;
  border: 1px solid rgba(201, 137, 143, 0.45);
  background: rgba(255, 250, 243, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.45s var(--ease-soft), border-color 0.45s var(--ease-soft),
    transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-soft);
}

.hero__cta:hover {
  background: rgba(255, 250, 243, 0.7);
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 137, 143, 0.18);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, var(--rose));
  animation: scroll-pulse 2.4s ease-in-out infinite;
  opacity: 0.55;
}

/* =========================================================
   INTERLUDE
   ========================================================= */
.interlude {
  position: relative;
  padding: clamp(5rem, 12vh, 8rem) 1.5rem;
  text-align: center;
  overflow: hidden;
}

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

.float-flower {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.45;
  filter: blur(0.5px);
  mask-image: radial-gradient(circle, black 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 72%);
  animation: float-y 10s ease-in-out infinite;
}

.float-flower--1 {
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  top: 5%;
  left: 4%;
  animation-duration: 11s;
}

.float-flower--2 {
  width: min(22vw, 200px);
  height: min(22vw, 200px);
  top: 15%;
  right: 6%;
  animation-duration: 13s;
  animation-delay: -2s;
}

.float-flower--3 {
  width: min(18vw, 160px);
  height: min(18vw, 160px);
  bottom: 10%;
  left: 12%;
  animation-duration: 9s;
  animation-delay: -4s;
  opacity: 0.35;
}

.float-flower--4 {
  width: min(24vw, 220px);
  height: min(24vw, 220px);
  bottom: 5%;
  right: 10%;
  animation-duration: 12s;
  animation-delay: -1s;
}

.interlude__quote {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.interlude__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* =========================================================
   LOVE LETTER — stationery
   ========================================================= */
.letter-section {
  position: relative;
  padding: clamp(3rem, 8vh, 6rem) 1.25rem clamp(5rem, 10vh, 8rem);
  display: flex;
  justify-content: center;
}

.letter-section__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  translate: -50% -50%;
  width: min(90vw, 640px);
  height: min(90vw, 640px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 180, 184, 0.35) 0%,
    rgba(226, 201, 154, 0.2) 40%,
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}

.letter {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 5vw, 3.5rem);
  background:
    linear-gradient(165deg, rgba(255, 252, 247, 0.92) 0%, rgba(250, 243, 232, 0.88) 100%);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-letter);
  border-radius: 2px;
}

/* Paper texture via subtle noise overlay */
.letter::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft glowing edge */
.letter::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(232, 180, 184, 0.4),
    rgba(226, 201, 154, 0.5),
    rgba(255, 255, 255, 0.7)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.letter__ornament {
  text-align: center;
  color: var(--rose);
  font-size: 1.1rem;
  opacity: 0.7;
  letter-spacing: 0.2em;
}

.letter__ornament--top {
  margin-bottom: 1.5rem;
}

.letter__ornament--bottom {
  margin-top: 2rem;
}

.letter__header {
  text-align: center;
  margin-bottom: 2rem;
}

.letter__date {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.letter__title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.letter__body {
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.85;
  text-align: left;
}

.letter__body p {
  margin-bottom: 1.35em;
  white-space: pre-wrap;
}

.letter__body p:last-child {
  margin-bottom: 0;
}

.letter__footer {
  margin-top: 2.5rem;
  text-align: right;
}

.letter__signoff {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.letter__signature {
  font-family: var(--font-flourish);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--rose);
}

/* =========================================================
   MOMENTS
   ========================================================= */
.moments {
  padding: clamp(4rem, 10vh, 7rem) 1.5rem;
  text-align: center;
}

.moments__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.moments__label {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

.moments__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.75rem;
}

.moments__list li {
  font-family: var(--font-script);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  color: var(--ink);
  line-height: 1.2;
}

/* =========================================================
   FINALE
   ========================================================= */
.finale {
  position: relative;
  min-height: 85svh;
  display: grid;
  place-items: center;
  padding: clamp(5rem, 12vh, 8rem) 1.5rem;
  overflow: hidden;
  text-align: center;
}

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

.finale__bloom {
  position: absolute;
  object-fit: cover;
  opacity: 0;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 25%, transparent 70%);
  transition: opacity 2s var(--ease-out), transform 2.4s var(--ease-out);
  transform: scale(0.85);
}

.finale.is-lit .finale__bloom {
  opacity: 0.55;
  transform: scale(1);
}

.finale__bloom--l {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  left: -8%;
  bottom: 5%;
  transition-delay: 0.2s;
}

.finale__bloom--r {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  right: -6%;
  top: 10%;
  transition-delay: 0.45s;
}

.finale__bloom--c {
  width: min(55vw, 480px);
  height: min(40vw, 340px);
  left: 50%;
  bottom: -5%;
  translate: -50% 0;
  border-radius: 40%;
  transition-delay: 0.65s;
  opacity: 0;
}

.finale.is-lit .finale__bloom--c {
  opacity: 0.4;
}

.finale__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.finale__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.finale__title {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 40px rgba(255, 250, 243, 0.9);
}

.finale__sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Floating petal element (JS-created) ---------- */
.petal {
  position: absolute;
  top: -10%;
  width: var(--size, 18px);
  height: calc(var(--size, 18px) * 1.35);
  background:
    radial-gradient(ellipse at 40% 30%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(160deg, #fff8f0 0%, #f3d5d8 55%, #e8b4b8 100%);
  border-radius: 50% 50% 50% 0 / 60% 60% 40% 40%;
  opacity: 0;
  filter: blur(0.3px);
  will-change: transform, opacity;
  animation: petal-fall var(--dur, 14s) linear var(--delay, 0s) infinite;
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
}

.petal--lily {
  background:
    radial-gradient(ellipse at 35% 25%, #fff 0%, transparent 50%),
    linear-gradient(150deg, #fffaf3 0%, #f5ebe0 50%, #e8d9c4 100%);
  border-radius: 60% 40% 55% 45% / 70% 30% 70% 30%;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes sun-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes rays-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

@keyframes hero-ken {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, 1%); }
}

@keyframes bloom-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes sway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-6px); }
}

@keyframes sway-soft {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(1.5deg) scale(1.02); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 0.7; transform: scaleY(1); transform-origin: top; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
  }
  8% {
    opacity: var(--op, 0.75);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift, 80px), 110vh, 0)
      rotate(calc(var(--rot, 0deg) + 360deg));
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero__bloom--left {
    width: min(55vw, 280px);
    height: min(55vw, 280px);
    bottom: -2%;
    left: -10%;
  }

  .hero__bloom--right {
    width: min(48vw, 240px);
    height: min(48vw, 240px);
    top: 4%;
    right: -12%;
  }

  .hero__bloom--corner {
    width: min(70vw, 320px);
    height: min(50vw, 240px);
    opacity: 0;
  }

  .float-flower--3,
  .float-flower--4 {
    display: none;
  }

  .interlude__quote {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 5rem;
  }

  .hero__portrait {
    width: min(92vw, 300px);
    margin-bottom: 1.35rem;
  }

  .hero__title-script {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .hero__bloom--right {
    opacity: 0.85;
  }

  .letter {
    padding: 2rem 1.35rem;
  }

  .finale {
    min-height: 75svh;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__bg {
    transform: none;
    animation: none;
  }

  .petal {
    display: none;
  }
}
