/* ==========================================================
   Inspired to Bloom: Veronica Bates
   ========================================================== */

:root {
  --cream: #F7F0E8;
  --cream-2: #F1E6DB;
  --blush: #F3E1DC;
  --paper: #FFFBF6;
  --ink: #5B403C;        /* mauve-brown, headings */
  --text: #6E5550;       /* body text */
  --muted: #8F7570;
  --rose: #B23A5A;       /* raspberry from the book cover */
  --rose-dark: #962C4A;
  --line: #E3D3C8;
  --sage: #8E9C7E;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(91, 64, 60, .35);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--rose); }
a:hover { color: var(--rose-dark); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
p { margin: 0 0 1.1em; }
em { font-style: italic; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

.eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: .9em;
}
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--paper); padding: 8px 14px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500; font-size: .95rem;
  letter-spacing: .04em; padding: 14px 28px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 240, 232, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(91,64,60,.5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .95rem; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { border: 1.5px solid var(--rose); color: var(--rose) !important; padding: 8px 20px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-cta:hover { background: var(--rose); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(238, 201, 198, .45), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(163, 177, 147, .18), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 4.9rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: .25em; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--text); line-height: 1.5; max-width: 30ch; }
.hero-intro { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; max-width: 46ch; }
.hero-intro h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.hero-photo { position: relative; justify-self: center; width: 100%; max-width: 430px; }
.arch {
  border-radius: 240px 240px var(--radius) var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5.2; box-shadow: var(--shadow);
  border: 10px solid var(--paper);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.sprig { position: absolute; pointer-events: none; }
.sprig-hero { width: 300px; height: 328px; left: -175px; bottom: -95px; z-index: 2; }

/* Book */
.book { background: var(--paper); }
.book::before, .excerpt::before, .story::before, .contact::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper) url("/favicon.svg") center / 34px no-repeat;
  box-shadow: 0 6px 16px -8px rgba(91, 64, 60, .35);
  border: 1px solid var(--line); z-index: 2;
}
.book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.book-cover { position: sticky; top: 110px; }
/* 3D paperback: front cover, real spine, page edges and back */
.book-3d {
  --t: 50px;                      /* thickness, matched to the printed spine */
  position: relative; width: min(100%, 400px); margin: 0 auto; padding: 0 0 0 30px;
  perspective: 1800px; isolation: isolate;
}
.book-3d-inner {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(26deg) rotateX(-3deg);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.book-3d:hover .book-3d-inner { transform: rotateY(12deg) rotateX(-2deg); }
.js .book-cover.reveal:not(.in) .book-3d-inner { transform: rotateY(60deg) rotateX(-3deg); }
.book-face { position: absolute; display: block; backface-visibility: hidden; }
.book-front {
  position: relative; transform: translateZ(calc(var(--t) / 2));
  border-radius: 2px 5px 5px 2px; overflow: hidden;
}
.book-front img { display: block; width: 100%; height: auto; }
.book-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.05) 1.2%, rgba(255,255,255,.35) 2.2%, rgba(0,0,0,.12) 3.6%, rgba(255,255,255,0) 6%),
    linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 70%, rgba(255,255,255,.08) 100%);
}
.book-spine {
  top: 0; left: 0; width: var(--t); height: 100%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.1) 45%, rgba(0,0,0,.25)),
    #111 url("/images/book-spine.jpg") center / 100% 100% no-repeat;
  transform: translateX(-50%) rotateY(-90deg);
  border-radius: 3px 0 0 3px;
}
.book-top {
  top: 0; left: 3px; right: 4px; height: var(--t);
  background: repeating-linear-gradient(0deg, #FBF6EE 0 2px, #E6DBCD 2px 3px);
  transform: translateY(-50%) rotateX(90deg);
}
.book-pages {
  top: 4px; bottom: 4px; right: 3px; width: calc(var(--t) - 2px);
  background:
    linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0) 30%, rgba(0,0,0,.1)),
    repeating-linear-gradient(90deg, #FBF6EE 0 2px, #E6DBCD 2px 3px);
  transform: translateX(50%) rotateY(90deg);
}
.book-back {
  inset: 0; background: #2A1F1E; border-radius: 5px 2px 2px 5px;
  transform: translateZ(calc(var(--t) / -2)) rotateY(180deg);
}
.book-shadow {
  position: absolute; left: 14%; right: -4%; bottom: -34px; height: 56px; z-index: -1;
  background: radial-gradient(ellipse at 45% 40%, rgba(60, 35, 35, .42), rgba(60, 35, 35, 0) 70%);
  filter: blur(8px); pointer-events: none;
}
.badge {
  display: inline-block; background: var(--rose); color: #fff; font-size: .75rem; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.book-title { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 600; color: #2E2120; margin-bottom: .3em; }
.book-title em { font-style: normal; color: var(--rose); }
.book-sub { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: 32px; }
.lead { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.65rem); color: var(--ink); line-height: 1.4; }
.lead .accent { color: var(--rose); font-style: italic; }
.heart-rule { display: flex; align-items: center; gap: 14px; color: var(--rose); margin: 30px 0; max-width: 420px; }
.heart-rule::before, .heart-rule::after { content: ""; flex: 1; height: 1.5px; background: var(--rose); opacity: .6; }
.list-title { font-family: var(--sans); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); font-weight: 600; }
.hearts { list-style: none; padding: 0; margin: 0; }
.hearts li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.hearts li::before { content: "\2665"; position: absolute; left: 0; top: 0; color: var(--rose); font-size: .85rem; }
.closing { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); line-height: 1.5; margin-bottom: 28px; }
.closing strong { color: var(--rose); font-weight: 500; }

/* Excerpt */
.excerpt { background: var(--cream-2); }
.section-head { text-align: center; margin-bottom: 44px; }
.page {
  position: relative; background: var(--paper); border-radius: 6px;
  padding: clamp(36px, 7vw, 80px) clamp(24px, 7vw, 88px);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(91, 64, 60, .4);
  font-family: var(--serif); font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.85; color: #4E3834;
}
.page p { margin-bottom: 1.3em; }
.dropcap::first-letter {
  float: left; font-size: 4.6em; line-height: .82; padding: 8px 12px 0 0; color: var(--rose); font-weight: 500;
}
.pull {
  font-size: 1.35em; font-style: italic; color: var(--rose); text-align: center; line-height: 1.45;
  margin: 1.6em auto !important; max-width: 30ch; padding: 1em 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.page-foot { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.attribution { font-style: italic; color: var(--ink); margin-bottom: .3em !important; }
.copyright { font-family: var(--sans); font-size: .8rem; color: var(--muted); margin: 0 !important; }
.sprig-page { width: 180px; height: 197px; right: -70px; top: -110px; transform: scaleX(-1); z-index: 2; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-photo { position: sticky; top: 110px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; width: 100%; }
.about-text .eyebrow { color: var(--rose); letter-spacing: .12em; }
.bloom-line {
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink); line-height: 1.5;
  padding-left: 22px; border-left: 3px solid var(--rose); margin-top: 1.6em;
}

/* Photo strip */
.strip { padding: 0 0 clamp(72px, 10vw, 128px); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 14px; max-width: 1400px; margin: 0 auto; }
.strip-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.strip-grid img:nth-child(even) { margin-top: 36px; }

/* Story */
.story { background: var(--blush); }
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.story-photo { margin: 0; text-align: center; }
.snapshot {
  background: #fff; padding: 14px 14px 18px; box-shadow: var(--shadow);
  transform: rotate(-2deg); max-width: 440px; margin: 0 auto; position: relative;
}
.snapshot::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; transform: translateX(-50%) rotate(3deg);
  background: rgba(238, 201, 198, .75);
}
.snapshot img { filter: saturate(.92); }
.story-photo figcaption { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 22px; }
.story-text .eyebrow { color: var(--rose); }
.pull-soft { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--rose); line-height: 1.5; }

/* Contact */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: start; position: relative; }
.email-line a { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; border-bottom: 1px solid currentColor; }
.social { list-style: none; display: flex; gap: 12px; padding: 0; margin: 28px 0 0; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--rose); border-color: var(--rose); color: #fff; }
.social svg { width: 20px; height: 20px; }
.contact-form { background: var(--paper); padding: clamp(26px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, background .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rose); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field.invalid input, .field.invalid textarea { border-color: var(--rose); }
.honeypot { position: absolute; left: -9999px; }
.contact-form .btn { width: 100%; padding: 16px; font-size: 1rem; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.5em; text-align: center; }
.form-status.ok { color: #4F6B45; }
.form-status.err { color: var(--rose); }
.sprig-contact { width: 280px; height: 305px; left: max(24px, calc(50% - 560px)); bottom: 0; height: 306px; }

/* Footer */
.site-footer { background: var(--ink); color: #E9DCD4; text-align: center; padding: 56px 0 44px; }
.footer-bloom { width: 40px; height: 40px; margin: 0 auto 12px; display: block; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: .2em; }
.footer-line { font-family: var(--serif); font-style: italic; margin-bottom: 1.6em; }
.footer-copy { font-size: .85rem; opacity: .75; margin: 0; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .book-3d-inner { transition: none !important; }
  .js .book-cover.reveal:not(.in) .book-3d-inner { transform: rotateY(26deg) rotateX(-3deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .book-grid, .about-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
  /* Single column: title, then photo, then "I'm so glad you're here" and buttons */
  .hero-grid { row-gap: 0; }
  .hero-text { display: contents; }
  .hero-text > * { order: 1; }
  .hero-photo { order: 2; max-width: 340px; margin: 24px auto 8px; }
  .hero-intro { order: 3; }
  .hero .actions { order: 4; }
  .sprig-hero { width: 200px; height: 219px; left: -58px; bottom: -60px; }
  .book-cover, .about-photo { position: static; max-width: 420px; margin: 0 auto; }
  .book-3d { --t: 38px; width: min(100%, 300px); padding-left: 24px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid img:nth-child(even) { margin-top: 24px; }
  .sprig-contact { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    box-shadow: 0 16px 30px -20px rgba(91,64,60,.5);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-cta { text-align: center; }
  .wrap { padding: 0 20px; }
  .hero { text-align: left; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
  .sprig-page { width: 120px; height: 131px; right: -24px; top: -80px; }
  .page { padding: 40px 22px; }
}

/* ==========================================================
   Flower animations
   ========================================================== */

/* Sprigs: stems draw in, leaves unfurl, buds and roses open */
.js .sprig .stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sprig .leaf-in, .js .sprig .bud-in { transform: scale(0); opacity: 0; }
.js .sprig .bloom-in { transform: scale(.15) rotate(-70deg); opacity: 0; }
.js .sprig .ring { transform: scale(.4); }

.js .sprig.grow .stem { animation: stem-draw var(--t, 1.4s) cubic-bezier(.45, .05, .3, 1) var(--d, 0s) forwards; }
.js .sprig.grow .leaf-in { animation: unfurl 1s cubic-bezier(.2, .9, .3, 1.15) var(--d, 0s) forwards; }
.js .sprig.grow .bud-in { animation: unfurl 1.1s cubic-bezier(.2, .9, .3, 1.2) var(--d, 0s) forwards; }
.js .sprig.grow .bloom-in { animation: bloom-open 1.6s cubic-bezier(.2, .8, .25, 1) var(--d, 0s) forwards; }
.js .sprig.grow .ring { animation: ring-open 1.5s cubic-bezier(.2, .8, .25, 1.1) calc(var(--d, 0s) + var(--i) * .12s) forwards; }

/* After growing: a gentle, living sway */
.sprig.grow .sway { animation: sway 9s ease-in-out 3s infinite alternate; }
.sprig.grow .breathe { animation: breathe 6s ease-in-out 3.2s infinite alternate; }

@keyframes stem-draw { to { stroke-dashoffset: 0; } }
@keyframes unfurl { from { transform: scale(0) rotate(-25deg); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes bloom-open { from { transform: scale(.15) rotate(-70deg); opacity: 0; } 35% { opacity: 1; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes ring-open { to { transform: scale(1); } }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }
@keyframes breathe { from { transform: scale(1) rotate(0); } to { transform: scale(1.04) rotate(3deg); } }

/* Falling petals: Welcome, Glimpse Inside and Get in Touch only.
   Each layer sits behind its section's content, so petals never cover text or images. */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 2s ease 1.5s; }
.petals.on { opacity: 1; }
.hero .wrap, .excerpt .wrap, .contact .wrap { position: relative; z-index: 1; }
.sprig-contact { z-index: 1; }
.petal {
  position: absolute; top: -40px; left: var(--x); width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.8);
  animation: petal-fall var(--dur) linear var(--delay) infinite;
}
.petal i {
  display: block; width: 100%; height: 100%; opacity: .85;
  filter: drop-shadow(0 2px 3px rgba(122, 62, 72, .15));
  background: url("/images/petal.svg") center / contain no-repeat;
  animation: petal-flutter calc(var(--dur) / 4) ease-in-out var(--delay) infinite alternate;
}
@keyframes petal-fall {
  from { transform: translate3d(0, -40px, 0); }
  to   { transform: translate3d(var(--drift), var(--fall, 1100px), 0); }
}
@keyframes petal-flutter {
  from { transform: translateX(-14px) rotate(-35deg) rotateX(0deg); }
  to   { transform: translateX(16px) rotate(50deg) rotateX(65deg); }
}

/* Section badges bloom in */
.js .book::before, .js .excerpt::before, .js .story::before, .js .contact::before {
  transform: translate(-50%, -50%) scale(0) rotate(-150deg);
  transition: transform 1.1s cubic-bezier(.2, .9, .3, 1.25);
}
.js .book.seen::before, .js .excerpt.seen::before, .js .story.seen::before, .js .contact.seen::before {
  transform: translate(-50%, -50%) scale(1) rotate(0);
}

/* Brand mark and footer bloom */
.brand-mark { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: rotate(72deg) scale(1.1); }
.js .brand-mark { animation: badge-in 1.4s cubic-bezier(.2, .9, .3, 1.2) .2s both; }
.footer-bloom { animation: spin-slow 60s linear infinite; }
@keyframes badge-in { from { transform: scale(0) rotate(-150deg); } to { transform: scale(1) rotate(0); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* Hero portrait settles in */
.js .arch img { animation: settle 2.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (max-width: 760px) {
  .petal:nth-child(n+7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .sprig .stem { stroke-dashoffset: 0; animation: none !important; }
  .js .sprig .leaf-in, .js .sprig .bud-in, .js .sprig .bloom-in, .js .sprig .ring { transform: none; opacity: 1; animation: none !important; }
  .sprig .sway, .sprig .breathe, .footer-bloom, .js .brand-mark, .js .arch img { animation: none !important; }
  .petals { display: none; }
  .js .book::before, .js .excerpt::before, .js .story::before, .js .contact::before { transform: translate(-50%, -50%); transition: none; }
}
