.chapter-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(360px, 1.12fr) minmax(310px, .76fr);
  align-items: start;
  gap: clamp(20px, 4vw, 58px);
  padding: clamp(72px, 8vw, 118px) clamp(18px, 5vw, 72px) clamp(30px, 5vw, 62px);
  overflow: hidden;
}

body.storybook-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(126, 55, 118, .28), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(209, 151, 69, .16), transparent 30%),
    linear-gradient(180deg, #100812 0%, #1b0d1e 46%, #09050b 100%);
}

body.storybook-page main {
  padding-top: 118px;
}

.page-ready {
  animation: storyPageArrive .55s cubic-bezier(.2, .72, .18, 1) both;
}

.page-turning {
  animation: storyPageLeave .32s cubic-bezier(.4, 0, .2, 1) both;
}

.story-nav a[aria-current="page"] {
  color: #ffe3a1;
  text-shadow: 0 0 20px rgba(231, 181, 91, .34);
}

.story-nav a[aria-current="page"]::after {
  left: 0;
  right: 0;
  opacity: 1;
}

.storybook-page-shell {
  position: relative;
  overflow: hidden;
}

.storybook-page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 181, 91, .14), transparent 36%),
    linear-gradient(90deg, rgba(255, 225, 160, .05), transparent 18%, transparent 82%, rgba(255, 225, 160, .05));
  mix-blend-mode: screen;
  opacity: .75;
  z-index: 0;
}

.storybook-page-shell > main,
.storybook-page-shell > header,
.storybook-page-shell > footer {
  position: relative;
  z-index: 2;
}

.storybook-page-title {
  max-width: 980px;
  margin: 0 auto 32px;
  padding: 0 22px;
  text-align: center;
}

.storybook-page-title h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .88;
  color: #f7d58c;
  text-shadow: 0 18px 45px rgba(0, 0, 0, .55);
}

.storybook-page-title p {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(255, 238, 201, .78);
}

.story-modal,
.story-cart {
  font-family: Inter, sans-serif;
}

.story-cart {
  color: #2a1729;
}

.treasures-editorial {
  padding-bottom: clamp(30px, 5vw, 70px);
}

.treasure-feature-story {
  width: min(1120px, calc(100% - 36px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(280px, .74fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
}

.treasure-feature-story figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(220, 169, 91, .34);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5), 0 0 42px rgba(213, 151, 63, .16);
}

.treasure-feature-story figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 226, 160, .24), transparent 34%, rgba(45, 15, 48, .28));
  pointer-events: none;
}

.treasure-feature-story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.treasure-feature-story h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: .95;
  color: #f6d58c;
  margin: 0 0 16px;
}

.treasure-feature-story p:not(.chapter-kicker) {
  color: rgba(255, 239, 205, .78);
  line-height: 1.75;
}

.story-gallery-chapter .section-heading {
  margin-bottom: 26px;
}

.editorial-gallery {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .82fr .82fr;
  gap: 18px;
}

.editorial-gallery .gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(220, 169, 91, .3);
  background: rgba(20, 8, 24, .82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .38);
}

.editorial-gallery .story-photo-large {
  grid-row: span 2;
  min-height: 700px;
}

.editorial-gallery .story-photo-wide {
  grid-column: span 2;
}

.editorial-gallery .gallery-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.04);
}

.editorial-gallery .gallery-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 22px 20px;
  background: linear-gradient(180deg, transparent, rgba(10, 4, 12, .9));
  color: #f8dfac;
}

.editorial-gallery .gallery-info h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.editorial-gallery .gallery-info p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 242, 217, .78);
  line-height: 1.55;
}

.keepsake-note-grid {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.keepsake-note-grid article {
  padding: 24px;
  border: 1px solid rgba(220, 169, 91, .28);
  background: linear-gradient(145deg, rgba(255, 239, 203, .08), rgba(50, 18, 52, .5));
  border-radius: 16px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .28);
}

.keepsake-note-grid span {
  display: block;
  color: #f5d389;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.keepsake-note-grid p {
  margin: 0;
  color: rgba(255, 239, 205, .76);
  line-height: 1.65;
}

@keyframes storyPageArrive {
  from { opacity: 0; transform: translateY(18px) scale(.992); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes storyPageLeave {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  to { opacity: 0; transform: translateY(-12px) scale(.992); filter: blur(10px); }
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.ambient-nature-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.8s ease;
}

body.ambient-nature-active .ambient-nature-layer {
  opacity: 1;
}

.ambient-particle-field {
  display: none;
}

.ambient-butterfly {
  position: absolute;
  left: -12vw;
  top: 58vh;
  width: clamp(50px, 5vw, 78px);
  aspect-ratio: 206 / 197;
  opacity: 0;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .24)) saturate(1.34) contrast(1.08) brightness(1.13);
  transform-origin: center;
  animation: ambientMonarchPath 34s cubic-bezier(.42, .02, .48, 1) infinite;
}

.ambient-butterfly::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/monarch-cover-realistic.png") center / contain no-repeat;
  opacity: .96;
  filter: saturate(1.28) contrast(1.08) brightness(1.12);
}

.ambient-butterfly i,
.ambient-butterfly b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: url("../images/monarch-cover-left-wing.png") center / contain no-repeat;
  filter: saturate(1.38) contrast(1.12) brightness(1.16);
  animation: ambientWingFlap .68s ease-in-out infinite alternate;
}

.ambient-butterfly i {
  transform-origin: right center;
}

.ambient-butterfly b {
  left: auto;
  right: 0;
  background-image: url("../images/monarch-cover-right-wing.png");
  transform-origin: left center;
}

.ambient-butterfly-one {
  animation-duration: 38s;
  animation-delay: -4s;
}

.ambient-butterfly-two {
  width: clamp(42px, 4vw, 64px);
  opacity: .24;
  animation-name: ambientMonarchPathHigh;
  animation-duration: 46s;
  animation-delay: -18s;
}

.ambient-butterfly-three {
  width: clamp(60px, 6vw, 96px);
  opacity: .28;
  animation-name: ambientMonarchNearCamera;
  animation-duration: 52s;
  animation-delay: -29s;
}

.garden-sky,
.gold-dust,
.wind-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.garden-sky {
  z-index: -4;
  background:
    radial-gradient(circle at 36% 30%, rgba(244, 213, 141, .22), transparent 19rem),
    radial-gradient(circle at 76% 20%, rgba(138, 63, 131, .24), transparent 18rem),
    radial-gradient(ellipse at 42% 100%, rgba(92, 36, 52, .42), transparent 34rem),
    linear-gradient(180deg, #030106 0%, #120716 42%, #24102f 100%);
}

.gold-dust {
  display: none;
}

.order-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.wind-field {
  z-index: -2;
  background:
    linear-gradient(105deg, transparent 0 24%, rgba(255, 255, 255, .06) 25%, transparent 36%),
    linear-gradient(75deg, transparent 0 60%, rgba(244, 213, 141, .07) 61%, transparent 72%);
  filter: blur(18px);
  opacity: .5;
  animation: softWind 13s ease-in-out infinite alternate;
}

.floating-hearts {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floating-hearts span {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  filter: blur(.15px) drop-shadow(0 0 12px rgba(255, 115, 158, .42));
  transform: rotate(45deg);
  background: rgba(255, 93, 142, .72);
  animation: heartFloat 12s ease-in-out infinite;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: inherit;
}

.floating-hearts span::before { left: -6px; }
.floating-hearts span::after { top: -6px; }
.floating-hearts span:nth-child(1) { left: 67%; top: 20%; animation-delay: .4s; }
.floating-hearts span:nth-child(2) { left: 91%; top: 34%; width: 9px; height: 9px; animation-delay: 3.2s; }
.floating-hearts span:nth-child(3) { left: 54%; top: 72%; width: 10px; height: 10px; animation-delay: 5.4s; }
.floating-hearts span:nth-child(4) { left: 83%; top: 68%; width: 8px; height: 8px; animation-delay: 7.6s; }
.floating-hearts span:nth-child(5) { left: 39%; top: 28%; width: 7px; height: 7px; animation-delay: 9.2s; }

.hero-book-scene {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: clamp(360px, 58vw, 690px);
  perspective: 1200px;
  transform: translateX(clamp(-18px, -2vw, 0px));
  align-self: center;
}

.hero-book-scene img {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: min(116%, 880px);
  max-width: none;
  transform: translateX(-50%) rotateX(2deg) rotateZ(-1deg);
  transform-origin: 50% 68%;
  filter:
    saturate(1.08)
    contrast(1.08)
    drop-shadow(0 34px 52px rgba(0, 0, 0, .58))
    drop-shadow(0 0 42px rgba(201, 154, 70, .13));
  animation: heroBookBreath 8s ease-in-out infinite;
}

.hero-book-scene::before {
  content: "";
  position: absolute;
  left: 4%;
  right: -4%;
  bottom: -1%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .58), transparent 66%);
  filter: blur(20px);
  opacity: .8;
}

.hero-book-scene::after {
  content: "";
  position: absolute;
  inset: 1% -8% 0 -10%;
  background:
    radial-gradient(circle at 30% 42%, rgba(255, 201, 95, .24), transparent 18rem),
    radial-gradient(circle at 62% 30%, rgba(170, 77, 132, .18), transparent 14rem);
  mix-blend-mode: screen;
  opacity: .78;
  animation: heroAurora 9s ease-in-out infinite alternate;
}

.hero-book-glow {
  position: absolute;
  left: 23%;
  right: 9%;
  top: 18%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 126, .24), rgba(255, 150, 58, .08) 45%, transparent 72%);
  filter: blur(24px);
  mix-blend-mode: screen;
  animation: heroGoldPulse 5.8s ease-in-out infinite;
}

.hero-copy {
  max-width: 820px;
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
}

.chapter-kicker {
  margin: 0 0 14px;
  color: var(--antique-gold);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.prized-copy h2,
.maker-copy h2,
.storybook-footer h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: .9;
  text-shadow: 0 18px 56px rgba(0, 0, 0, .56);
}

.hero-copy p:not(.chapter-kicker),
.section-heading p,
.prized-copy p,
.maker-copy p,
.custom-panel p,
.review-panels p,
.storybook-footer p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.13rem);
  line-height: 1.75;
}

.hero-copy > p:not(.chapter-kicker) {
  max-width: 560px;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.gold-button,
.glass-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gold-button {
  color: #1a0d16;
  background: linear-gradient(135deg, #ffe6a8, var(--antique-gold));
  box-shadow: 0 18px 38px rgba(201, 154, 70, .25);
}

.glass-button {
  color: var(--cream);
  border: 1px solid rgba(244, 213, 141, .34);
  background: rgba(255, 255, 255, .07);
}

.gold-button:hover,
.glass-button:hover {
  transform: translateY(-3px);
}

.hero-feature {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: grid;
  grid-template-columns: minmax(112px, 148px) minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  padding: clamp(20px, 3.5vw, 34px);
  border: 1px solid rgba(244, 213, 141, .32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 14%, rgba(244, 213, 141, .18), transparent 11rem),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045)),
    rgba(13, 6, 18, .64);
  box-shadow: 0 32px 86px rgba(0, 0, 0, .42);
  backdrop-filter: blur(18px);
  transition: box-shadow 1.4s ease, border-color 1.4s ease, transform 1.4s ease;
}

.hero-feature[data-exclusive-product] {
  cursor: pointer;
}

.hero-feature[data-exclusive-product]:focus-visible {
  outline: 2px solid rgba(212, 175, 55, .9);
  outline-offset: 6px;
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 231, 166, .68), rgba(218, 163, 70, .26) 36%, transparent 72%),
    linear-gradient(120deg, transparent 0 28%, rgba(255, 229, 158, .22) 44%, transparent 60%);
  opacity: 0;
  filter: blur(18px);
  pointer-events: none;
  transition: opacity 1.4s ease, transform 1.4s ease;
  transform: scale(.72);
  mix-blend-mode: screen;
}

.hero-feature.treasure-found {
  border-color: rgba(255, 218, 137, .72);
  box-shadow: 0 34px 110px rgba(255, 183, 76, .22), 0 30px 80px rgba(0, 0, 0, .38);
  transform: translateY(-2px);
  animation: exclusiveWarmShimmer 2.5s ease-in-out 1;
}

.hero-feature.treasure-found::after {
  opacity: 1;
  transform: scale(1.12);
}

.exclusive-discovery-butterfly {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 620;
  width: clamp(104px, 8vw, 132px);
  aspect-ratio: 206 / 197;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-120px, 50vh, 0) translate(-50%, -50%);
  filter:
    drop-shadow(0 14px 12px rgba(0, 0, 0, .28))
    drop-shadow(0 0 18px rgba(255, 191, 88, .24))
    saturate(1.42)
    contrast(1.12)
    brightness(1.18);
}

.hero-feature img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  max-height: clamp(148px, 18vw, 220px);
  grid-row: 1 / span 4;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 245, 223, .94);
}

.hero-feature h2 {
  margin: 4px 0 4px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 3.3vw, 3.2rem);
  line-height: .9;
}

.hero-feature p:not(.chapter-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.55;
}

.hero-story-tiles {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(244, 213, 141, .22);
  background: rgba(4, 1, 7, .38);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.story-tile {
  position: relative;
  min-height: clamp(210px, 24vw, 310px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 3vw, 30px);
  color: var(--cream);
  text-decoration: none;
  overflow: hidden;
  border-right: 1px solid rgba(244, 213, 141, .22);
}

.story-tile:last-child {
  border-right: 0;
}

.story-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  filter: saturate(.95) contrast(1.05) brightness(.78);
  transform: scale(1.03);
  transition: transform .6s ease, filter .6s ease;
}

.story-tile[data-exclusive-product] img {
  object-fit: contain;
  object-position: center;
  padding: clamp(18px, 3vw, 34px);
  background: radial-gradient(circle at center, rgba(255, 245, 223, .88), rgba(49, 24, 55, .78));
}

.story-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 193, 86, .24), transparent 12rem),
    linear-gradient(180deg, rgba(3, 1, 6, .04), rgba(3, 1, 6, .86));
  z-index: 1;
}

.story-tile::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 89, .18), transparent 65%);
  filter: blur(18px);
  opacity: .55;
  z-index: 1;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.story-tile span,
.story-tile strong {
  position: relative;
  z-index: 2;
}

.story-tile span {
  margin-bottom: 10px;
  color: var(--antique-gold);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.story-tile strong {
  max-width: 300px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: .9;
  letter-spacing: 0;
}

.story-tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.08) brightness(.88);
}

.story-tile:hover::after {
  opacity: .9;
  transform: translateY(0);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--gold-light);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 213, 141, .46);
}

.story-section {
  width: min(1180px, calc(100% - 36px));
  margin: clamp(54px, 8vw, 110px) auto;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 840px;
}

.section-heading h2,
.prized-copy h2,
.maker-copy h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .9;
}

.photo-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 16px;
}

.photo-collection-grid a {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(244, 213, 141, .22);
  border-radius: 8px;
  color: var(--cream);
  text-decoration: none;
  box-shadow: 0 26px 66px rgba(0, 0, 0, .28);
  background: #120815;
}

.photo-collection-grid a:nth-child(1),
.photo-collection-grid a:last-child {
  grid-column: span 2;
}

.photo-collection-grid a:nth-child(2),
.photo-collection-grid a:nth-child(3),
.photo-collection-grid a:nth-child(4),
.photo-collection-grid a:nth-child(5),
.photo-collection-grid a:nth-child(6) {
  grid-column: span 1;
}

.photo-collection-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(.94) contrast(1.03);
  transition: transform .45s ease, filter .45s ease;
}

.photo-collection-grid .photo-collection-macaw-image {
  object-fit: cover;
  object-position: 50% 48%;
  padding: 0;
  background: #160a1a;
  transform: scale(1.01);
}

.photo-collection-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(5, 2, 8, .82));
}

.photo-collection-grid span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
}

.photo-collection-grid a:hover img {
  transform: scale(1.08);
  filter: saturate(1.02) contrast(1.06);
}

.prized-story,
.maker-story {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
}

.prized-image,
.maker-portrait {
  border: 1px solid rgba(244, 213, 141, .28);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  box-shadow: 0 34px 88px rgba(0, 0, 0, .34);
}

.prized-image img,
.maker-portrait img {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: rgba(255, 245, 223, .92);
}

.prized-image img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 18px;
}

.maker-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.custom-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(244, 213, 141, .28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 213, 141, .12), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: 0 30px 76px rgba(0, 0, 0, .25);
}

.panel-label,
.review-panels span {
  color: var(--antique-gold);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.custom-panel h3 {
  margin: 8px 0 8px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: .9;
}

.chapter-two-story {
  position: relative;
  width: min(1240px, calc(100% - 36px));
  scroll-margin-top: 108px;
}

.chapter-two-story::before {
  content: "";
  position: absolute;
  inset: -9% -7% -6%;
  z-index: -1;
  border-radius: 8px;
  background:
    radial-gradient(circle at 23% 44%, rgba(244, 213, 141, .16), transparent 19rem),
    radial-gradient(circle at 78% 28%, rgba(134, 56, 126, .18), transparent 22rem);
  filter: blur(2px);
  pointer-events: none;
}

.chapter-two-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .88fr);
  gap: clamp(22px, 4.5vw, 58px);
  align-items: stretch;
}

.workspace-scene,
.treasure-builder {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(244, 213, 141, .26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 22%, rgba(244, 213, 141, .16), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035)),
    rgba(9, 4, 13, .82);
  box-shadow: 0 34px 96px rgba(0, 0, 0, .36);
  backdrop-filter: blur(16px);
}

.workspace-scene {
  isolation: isolate;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(circle at 42% 20%, rgba(255, 214, 131, .18), transparent 18rem),
    radial-gradient(circle at 76% 72%, rgba(129, 45, 102, .22), transparent 18rem),
    linear-gradient(140deg, #08030b 0%, #1a0b20 52%, #0b0509 100%);
}

.workspace-light,
.workspace-dust,
.workspace-table-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.workspace-light {
  z-index: 1;
  background:
    radial-gradient(ellipse at 44% 30%, rgba(255, 212, 132, .26), transparent 28rem),
    linear-gradient(108deg, transparent 0 30%, rgba(255, 232, 172, .08) 41%, transparent 58%);
  mix-blend-mode: screen;
  animation: chapterTwoLight 8s ease-in-out infinite alternate;
}

.workspace-dust {
  display: none;
}

.workspace-table-grain {
  z-index: 0;
  opacity: .34;
  background:
    repeating-linear-gradient(7deg, rgba(255, 245, 223, .025) 0 2px, transparent 2px 11px),
    linear-gradient(90deg, rgba(74, 30, 37, .18), transparent 28%, rgba(201, 154, 70, .09) 52%, transparent);
}

.workspace-photo {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 213, 141, .2);
  border-radius: 8px;
  background: rgba(255, 245, 223, .9);
  box-shadow: 0 28px 62px rgba(0, 0, 0, .38);
}

.workspace-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 45% 32%, transparent 0 27%, rgba(10, 4, 14, .08) 42%, rgba(10, 4, 14, .42) 100%),
    linear-gradient(145deg, rgba(85, 34, 76, .18), rgba(6, 2, 9, .32));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.workspace-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.14) brightness(.72) sepia(.08);
}

.workspace-photo-primary {
  left: 8%;
  right: 16%;
  top: 11%;
  height: 48%;
  transform: rotate(-3.5deg);
  background:
    radial-gradient(circle at 50% 45%, rgba(244, 213, 141, .1), transparent 58%),
    #100b12;
}

.workspace-photo-primary img {
  object-fit: contain;
  object-position: center;
}

.workspace-photo-primary.image-missing::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 245, 223, .78);
  font: 800 .92rem Inter, system-ui, sans-serif;
  letter-spacing: .04em;
  text-align: center;
}

.workspace-photo-flower {
  right: 7%;
  bottom: 12%;
  width: 43%;
  height: 38%;
  transform: rotate(4deg);
  transform-origin: 70% 80%;
  animation: flowerWorkspaceSway 7.5s ease-in-out infinite;
}

.workspace-photo-flower img {
  filter: saturate(.94) contrast(1.12) brightness(.74) sepia(.08);
}

.workspace-photo-flower::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 132, .2), transparent 62%);
  opacity: .75;
  mix-blend-mode: screen;
  animation: flowerGentleBloom 5s ease-in-out infinite;
}

.loose-beads {
  position: absolute;
  left: 11%;
  right: 38%;
  bottom: 11%;
  z-index: 3;
  height: 28%;
  pointer-events: none;
}

.loose-beads span {
  position: absolute;
  width: clamp(12px, 1.8vw, 22px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, .85), transparent 18%),
    radial-gradient(circle at 58% 58%, transparent 0 16%, rgba(36, 14, 42, .34) 17% 23%, transparent 24%),
    var(--bead, #8a3f83);
  box-shadow:
    inset -5px -6px 9px rgba(0, 0, 0, .34),
    0 7px 12px rgba(0, 0, 0, .26);
}

.loose-beads span:nth-child(1) { --bead: #7f3d88; left: 3%; top: 22%; }
.loose-beads span:nth-child(2) { --bead: #f2dfbd; left: 14%; top: 43%; }
.loose-beads span:nth-child(3) { --bead: #c99a46; left: 25%; top: 18%; }
.loose-beads span:nth-child(4) { --bead: #5e244f; left: 36%; top: 58%; }
.loose-beads span:nth-child(5) { --bead: #fff5df; left: 48%; top: 34%; }
.loose-beads span:nth-child(6) { --bead: #b77bc0; left: 58%; top: 64%; }
.loose-beads span:nth-child(7) { --bead: #d8ab55; left: 68%; top: 18%; }
.loose-beads span:nth-child(8) { --bead: #42164d; left: 79%; top: 48%; }
.loose-beads span:nth-child(9) { --bead: #f4d58d; left: 18%; top: 78%; }
.loose-beads span:nth-child(10) { --bead: #31113f; left: 88%; top: 73%; }

.workspace-thread,
.workspace-needle,
.unfinished-charm {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.workspace-thread {
  left: 8%;
  bottom: 18%;
  width: 48%;
  height: 34%;
  border: 2px solid rgba(244, 213, 141, .44);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-15deg);
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .32));
}

.workspace-needle {
  left: 16%;
  bottom: 26%;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f9e7bf 9%, #8f8375 72%, transparent);
  transform: rotate(-18deg);
  box-shadow: 0 8px 12px rgba(0, 0, 0, .34);
}

.unfinished-charm {
  left: 16%;
  bottom: 15%;
  width: 24%;
  aspect-ratio: 1.55;
  opacity: .82;
  border-radius: 52% 48% 45% 55%;
  background:
    radial-gradient(ellipse at 28% 50%, rgba(140, 68, 145, .9) 0 18%, transparent 19%),
    radial-gradient(ellipse at 72% 50%, rgba(214, 165, 72, .86) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 52%, rgba(255, 245, 223, .9) 0 10%, transparent 11%);
  filter: drop-shadow(0 16px 15px rgba(0, 0, 0, .34));
  transform: rotate(8deg);
}

.chapter-two-butterfly-layer {
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  overflow: visible;
  contain: layout style;
}

.scroll-monarch-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  contain: layout style;
}

body.intro-active .scroll-monarch-layer {
  opacity: 0;
}

.scroll-monarch {
  width: clamp(70px, 6vw, 102px);
  opacity: 0;
  pointer-events: none;
}

.scroll-monarch-3 {
  display: none;
}

.scroll-monarch .monarch-shadow {
  opacity: .16;
}

.scroll-monarch.is-resting .left-wing,
.scroll-monarch.is-resting .right-wing {
  animation-duration: 2.2s;
}

.opening-monarch-layer {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: visible;
}

.opening-monarch {
  width: clamp(78px, 8vw, 124px);
}

.svg-monarch {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(96px, 8vw, 132px);
  aspect-ratio: 206 / 197;
  opacity: 0;
  transform: translate3d(-180px, 50vh, 0) translate(-50%, -50%) scale(.82);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  --monarch-body-filter: sepia(.08) saturate(1.08) contrast(.92) brightness(1.18);
  --monarch-wing-filter: sepia(.12) saturate(1.06) contrast(.88) brightness(1.2);
  --monarch-wing-opacity: .88;
  --monarch-highlight-opacity: .42;
  filter: drop-shadow(0 18px 18px rgba(54, 32, 18, .26)) var(--monarch-body-filter);
}

.svg-monarch.is-warm-lit {
  filter:
    drop-shadow(0 18px 18px rgba(54, 32, 18, .2))
    drop-shadow(0 0 18px rgba(255, 215, 132, .32))
    sepia(.1)
    saturate(1.08)
    contrast(.9)
    brightness(1.28);
}

.svg-monarch svg {
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.svg-monarch .monarch-whole,
.svg-monarch .monarch-shadow,
.svg-monarch .monarch-textured-wing {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.svg-monarch .monarch-whole {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .82;
  filter: var(--monarch-body-filter);
}

.svg-monarch .monarch-shadow {
  transform: translate(8px, 14px) scale(.82);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(78, 48, 26, .18), transparent 68%);
  opacity: .2;
  filter: blur(8px);
}

.svg-monarch .monarch-textured-wing {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: var(--monarch-wing-opacity);
  filter: var(--monarch-wing-filter);
  will-change: transform;
}

.svg-monarch .monarch-textured-wing.left-wing {
  right: 42%;
  width: 62%;
  background-image: url("../images/monarch-cover-left-wing.png");
}

.svg-monarch .monarch-textured-wing.right-wing {
  left: 42%;
  width: 62%;
  background-image: url("../images/monarch-cover-right-wing.png");
}

.svg-monarch .left-wing,
.svg-monarch .right-wing {
  transform-box: fill-box;
  transform-style: preserve-3d;
  animation: svgMonarchLeftWing .58s ease-in-out infinite alternate;
}

.svg-monarch .left-wing {
  transform-origin: 98% 52%;
}

.svg-monarch .right-wing {
  transform-origin: 2% 52%;
  animation-name: svgMonarchRightWing;
  animation-delay: .025s;
}

.svg-monarch .wing-fill {
  fill: #e9791c;
  stroke: #090503;
  stroke-width: 4.5;
  stroke-linejoin: round;
}

.svg-monarch .wing-fill.lower {
  fill: #f0a02d;
}

.svg-monarch .wing-veins {
  fill: none;
  stroke: #0a0503;
  stroke-width: 4.2;
  stroke-linecap: round;
  opacity: .84;
}

.svg-monarch .wing-spot {
  display: none;
}

.svg-monarch .left-wing::after,
.svg-monarch .right-wing::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 44% 30%, rgba(255, 241, 196, .42), transparent 32%),
    radial-gradient(ellipse at 62% 66%, rgba(255, 225, 162, .22), transparent 42%);
  mix-blend-mode: screen;
  opacity: var(--monarch-highlight-opacity);
  pointer-events: none;
}

.svg-monarch .body {
  fill: #0b0704;
  stroke: rgba(255, 245, 223, .16);
  stroke-width: 1.4;
}

.svg-monarch .antenna {
  fill: none;
  stroke: #0b0704;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.svg-monarch-main,
.svg-monarch-close {
  width: clamp(112px, 10vw, 130px);
}

.svg-monarch-flower {
  width: clamp(104px, 9vw, 128px);
}

.svg-monarch-title {
  width: clamp(92px, 7.6vw, 118px);
}

.svg-monarch-small,
.svg-monarch-depth {
  width: clamp(60px, 5.2vw, 82px);
  filter: drop-shadow(0 14px 12px rgba(54, 32, 18, .2)) var(--monarch-body-filter);
}

.svg-monarch-flower,
.scroll-monarch-2 {
  --monarch-body-filter: sepia(.12) saturate(1.02) contrast(.9) brightness(1.22);
  --monarch-wing-filter: sepia(.16) saturate(1.02) contrast(.86) brightness(1.24);
  --monarch-wing-opacity: .84;
  --monarch-highlight-opacity: .48;
}

.svg-monarch-depth,
.svg-monarch-title,
.scroll-monarch-1 {
  --monarch-body-filter: sepia(.06) saturate(1.12) contrast(.94) brightness(1.16);
  --monarch-wing-filter: sepia(.1) saturate(1.1) contrast(.9) brightness(1.18);
  --monarch-wing-opacity: .9;
  --monarch-highlight-opacity: .38;
}

.svg-monarch.is-flying {
  opacity: 1;
}

.svg-monarch.is-resting .left-wing,
.svg-monarch.is-resting .right-wing {
  animation-duration: 1.9s;
}

.chapter-petal {
  display: none;
}

.treasure-builder {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 3.8vw, 38px);
}

.builder-copy h3 {
  margin: 8px 0 10px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: .9;
}

.builder-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.builder-grid label {
  display: grid;
  gap: 8px;
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.builder-grid input,
.builder-grid select,
.builder-grid textarea {
  width: 100%;
  border: 1px solid rgba(244, 213, 141, .34);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(5, 2, 8, .62);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .22);
  font: 700 .95rem Inter, system-ui, sans-serif;
}

.builder-grid input,
.builder-grid select {
  min-height: 48px;
  padding: 0 14px;
}

.builder-grid textarea {
  min-height: 132px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
  white-space: pre-wrap;
}

.custom-description-field {
  grid-column: span 2;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    max-height .36s ease,
    opacity .28s ease,
    transform .28s ease;
}

.custom-description-field.is-visible {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
}

.personalization-text-field {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition:
    max-height .28s ease,
    opacity .22s ease,
    transform .22s ease;
}

.personalization-text-field.is-visible {
  max-height: 96px;
  opacity: 1;
  transform: translateY(0);
}

.field-help {
  color: rgba(255, 245, 223, .68);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.builder-grid label:first-child,
.builder-grid label:nth-child(3) {
  grid-column: span 2;
}

.builder-grid input:focus,
.builder-grid select:focus,
.builder-grid textarea:focus {
  outline: 2px solid rgba(244, 213, 141, .42);
  outline-offset: 2px;
}

.treasure-request-summary {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(244, 213, 141, .26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(244, 213, 141, .13), transparent 9rem),
    rgba(255, 255, 255, .055);
}

.treasure-request-summary[hidden] {
  display: none;
}

.treasure-request-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.treasure-request-heading h3 {
  margin: 6px 0 0;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: .95;
}

.request-continue-shopping {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(212, 175, 55, .72);
  border-radius: 999px;
  color: var(--cream);
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.request-continue-shopping:hover,
.request-continue-shopping:focus-visible {
  background: rgba(212, 175, 55, .18);
  outline: 2px solid rgba(244, 213, 141, .42);
  outline-offset: 2px;
}

.treasure-request-items {
  display: grid;
  gap: 12px;
}

.treasure-request-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(244, 213, 141, .2);
  border-radius: 8px;
  background: rgba(5, 2, 8, .28);
  color: var(--cream);
  text-align: left;
}

.treasure-request-item.is-selected {
  border-color: rgba(212, 175, 55, .72);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .18);
}

.treasure-request-item button {
  font: inherit;
}

.treasure-request-thumb {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(244, 213, 141, .18);
  border-radius: 8px;
  background: rgba(4, 1, 7, .54);
}

.treasure-request-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.treasure-request-thumb.image-missing::after {
  content: attr(data-placeholder);
  padding: 8px;
  color: rgba(255, 245, 223, .76);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.treasure-request-thumb.image-missing img {
  display: none;
}

.treasure-request-thumb.focus-fish img,
.treasure-request-thumb.focus-penguin img,
.treasure-request-thumb.focus-crab img,
.treasure-request-thumb.focus-lobster img {
  object-fit: cover;
}

.treasure-request-thumb.focus-fish img {
  object-position: 14% center;
}

.treasure-request-thumb.focus-penguin img {
  object-position: 50% center;
}

.treasure-request-thumb.focus-crab img,
.treasure-request-thumb.focus-lobster img {
  object-position: 86% center;
}

.treasure-request-name {
  display: block;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.treasure-request-meta,
.treasure-request-price {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.treasure-request-controls {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.treasure-request-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid rgba(244, 213, 141, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .16);
}

.treasure-request-quantity button,
.treasure-request-remove {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(212, 175, 55, .52);
  border-radius: 999px;
  background: rgba(212, 175, 55, .12);
  color: var(--cream);
  cursor: pointer;
}

.treasure-request-remove {
  padding: 0 12px;
  font-size: .78rem;
  font-weight: 900;
}

.treasure-request-quantity button:hover,
.treasure-request-quantity button:focus-visible,
.treasure-request-remove:hover,
.treasure-request-remove:focus-visible {
  background: var(--antique-gold);
  color: #1f1026;
  outline: 2px solid rgba(244, 213, 141, .42);
  outline-offset: 2px;
}

.treasure-request-total {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 213, 141, .18);
  color: var(--gold-light);
  font-weight: 900;
  line-height: 1.5;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  min-height: 44px;
  padding: 0 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, .72);
  border-radius: 999px;
  background: rgba(48, 25, 55, .94);
  color: #f8ead0;
  font: 800 .88rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0;
  box-shadow: 0 14px 34px rgba(20, 10, 24, .32);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease, background .22s ease;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #d4af37;
  color: #1f1026;
  outline: 3px solid rgba(248, 234, 208, .7);
  outline-offset: 3px;
}

.treasure-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(244, 213, 141, .22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 32%, rgba(244, 213, 141, .14), transparent 10rem),
    rgba(255, 255, 255, .055);
}

.preview-label {
  color: var(--antique-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.treasure-preview h4 {
  margin: 8px 0 8px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: .95;
}

.treasure-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.treasure-preview .preview-description {
  margin-top: 8px;
  color: rgba(255, 245, 223, .72);
  font-size: .88rem;
  white-space: pre-wrap;
}

.home-preview-beads {
  --home-preview-cols: 7;
  --home-preview-rows: 7;
  --home-preview-bead-size: 8px;
  --home-preview-gap: 2px;
  --preview-hardware-main: #d8ad45;
  --preview-hardware-light: #fff0a8;
  --preview-hardware-shadow: #8b5f18;
  width: 180px;
  height: 180px;
  max-width: 180px;
  max-height: 180px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--home-preview-cols), var(--home-preview-bead-size));
  grid-template-rows: repeat(var(--home-preview-rows), var(--home-preview-bead-size));
  place-content: center;
  justify-self: end;
  gap: var(--home-preview-gap);
  padding: 14px;
  border-radius: 8px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 245, 223, .08), transparent 70%),
    rgba(4, 1, 7, .48);
}

.home-preview-beads.has-silver-hardware {
  --preview-hardware-main: #c7ccd4;
  --preview-hardware-light: #ffffff;
  --preview-hardware-shadow: #737b86;
}

.preview-hardware {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 0;
  width: 46px;
  height: 42px;
  pointer-events: none;
  transform: translateX(-50%);
}

.preview-hardware-ring,
.preview-hardware-link,
.preview-hardware-clasp {
  position: absolute;
  display: block;
  pointer-events: none;
}

.preview-hardware-ring {
  inset: 0 5px auto;
  height: 30px;
  border: 5px solid var(--preview-hardware-main);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .82), transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(4, 1, 7, .58) 0 42%, transparent 43%);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, .38),
    inset -3px -4px 5px rgba(0, 0, 0, .28),
    0 3px 8px rgba(0, 0, 0, .26);
}

.preview-hardware-link {
  left: 50%;
  top: 25px;
  width: 10px;
  height: 13px;
  border: 3px solid var(--preview-hardware-light);
  border-radius: 999px;
  background: var(--preview-hardware-main);
  box-shadow: inset -2px -2px 3px var(--preview-hardware-shadow);
  transform: translateX(-50%);
}

.preview-hardware-clasp {
  left: 50%;
  top: 35px;
  width: 18px;
  height: 24px;
  border-radius: 999px 999px 50% 50%;
  background:
    linear-gradient(135deg, var(--preview-hardware-light), var(--preview-hardware-main) 46%, var(--preview-hardware-shadow));
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, .42),
    inset -2px -4px 5px rgba(0, 0, 0, .26),
    0 4px 9px rgba(0, 0, 0, .22);
  transform: translateX(-50%);
}

.home-preview-art-wrap {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.hardware-preview-card {
  width: 180px;
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 10px;
  border: 1px solid rgba(244, 213, 141, .2);
  border-radius: 8px;
  background: rgba(4, 1, 7, .34);
  box-sizing: border-box;
}

.hardware-preview-card p {
  margin: 0;
  color: rgba(255, 245, 223, .78);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.hardware-preview-sample {
  --preview-hardware-main: #d8ad45;
  --preview-hardware-light: #fff0a8;
  --preview-hardware-shadow: #8b5f18;
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, .2), transparent 32%),
    rgba(255, 255, 255, .055);
  overflow: hidden;
}

.hardware-preview-sample.has-silver-hardware {
  --preview-hardware-main: #c7ccd4;
  --preview-hardware-light: #ffffff;
  --preview-hardware-shadow: #737b86;
}

.hardware-preview-sample .preview-hardware {
  position: relative;
  left: auto;
  top: auto;
  width: 58px;
  height: 58px;
  transform: none;
}

.hardware-preview-sample .preview-hardware-ring {
  top: 5px;
}

.hardware-preview-sample .preview-hardware-link {
  top: 27px;
}

.hardware-preview-sample .preview-hardware-clasp {
  top: 38px;
}

.home-selected-product-photo {
  position: relative;
  width: 180px;
  height: 140px;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 213, 141, .2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 245, 223, .08), transparent 68%),
    rgba(4, 1, 7, .54);
}

.home-selected-product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-selected-product-photo.image-missing img {
  display: none;
}

.home-selected-product-photo.image-missing::after {
  content: attr(data-placeholder);
  padding: 14px;
  color: rgba(255, 245, 223, .76);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.home-selected-product-photo.focus-natalies-butterfly img {
  object-position: 38% center;
}

.home-selected-product-photo.focus-fish img,
.home-selected-product-photo.focus-penguin img,
.home-selected-product-photo.focus-crab img,
.home-selected-product-photo.focus-lobster img {
  object-fit: cover;
}

.home-selected-product-photo.focus-fish img {
  object-position: 14% center;
}

.home-selected-product-photo.focus-penguin img {
  object-position: 50% center;
}

.home-selected-product-photo.focus-crab img,
.home-selected-product-photo.focus-lobster img {
  object-position: 86% center;
}

.treasure-preview .preview-personalization {
  max-width: 180px;
  justify-self: end;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.home-preview-beads .preview-bead,
.home-preview-beads .preview-colour-swatch {
  position: relative;
  z-index: 1;
  width: var(--home-preview-bead-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .92), transparent 20%),
    radial-gradient(circle at 58% 58%, transparent 0 16%, rgba(36, 14, 42, .34) 17% 23%, transparent 24%),
    var(--bead, #8f8f8f);
  box-shadow:
    inset -4px -5px 8px rgba(0, 0, 0, .32),
    0 5px 10px rgba(0, 0, 0, .24);
}

.home-preview-beads .empty {
  opacity: 0;
}

.home-preview-swatches {
  --home-preview-cols: 4;
  --home-preview-rows: 1;
  grid-template-rows: auto;
  place-content: center;
}

.home-preview-swatches .preview-colour-swatch {
  width: 32px;
}

.home-preview-beads.image-missing,
.home-preview-beads.preview-coming-soon {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  color: rgba(255, 245, 223, .76);
  font-family: "Inter", system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.treasure-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: .95rem;
  letter-spacing: .05em;
}

.treasure-builder.is-order-complete {
  opacity: 1;
  pointer-events: none;
  filter: none;
  transition: none;
}

.success-overlay[hidden],
.address-review-dialog[hidden],
.order-success-screen[hidden] {
  display: none;
}

.success-overlay,
.order-success-screen,
.address-review-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  overflow-y: auto;
  color: #fff5df;
  background: rgba(255, 250, 240, .82);
  opacity: 1;
  transition: none;
}

.success-overlay {
  background: rgba(255, 250, 240, .9);
}

.success-overlay.is-visible,
.address-review-dialog.is-visible,
.order-success-screen.is-visible {
  opacity: 1;
}

.success-celebration,
.order-success-celebration {
  display: none !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.success-panel,
.order-success-panel,
.address-review-panel {
  position: relative;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  width: min(980px, 100%);
  max-height: calc(100svh - clamp(28px, 8vw, 96px));
  overflow-y: auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(201, 154, 70, .42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 245, 223, .08), rgba(255, 245, 223, .025)),
    rgba(47, 19, 54, .92);
  box-shadow: 0 28px 90px rgba(8, 3, 12, .55), inset 0 1px 0 rgba(255, 245, 223, .18);
}

.success-panel {
  width: min(760px, 92vw);
  max-height: 88vh;
  padding: 32px;
  color: #2f1837;
  background: #fffaf0;
  border: 2px solid rgba(201, 154, 70, .72);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(47, 24, 55, .28);
}

.address-review-panel {
  width: min(640px, 92vw);
}

.address-review-panel h2 {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.address-review-panel p {
  margin: 0 0 16px;
  color: rgba(255, 245, 223, .78);
  line-height: 1.55;
}

.address-review-panel address {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid rgba(201, 154, 70, .38);
  border-radius: 8px;
  background: rgba(20, 8, 25, .46);
  color: var(--gold-light);
  font-style: normal;
  line-height: 1.6;
  white-space: pre-line;
}

.address-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.address-review-actions button {
  border: 0;
  cursor: pointer;
}

.order-success-kicker {
  margin: 0 0 10px;
  color: #8a651f;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.order-success-panel h2 {
  margin: 0 0 18px;
  color: #3a1f43;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: .92;
}

.order-success-panel h2:focus-visible,
.order-success-actions a:focus-visible,
.order-success-actions button:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.order-success-message {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.order-success-message p,
.order-success-next p,
.order-success-email-notice {
  margin: 0;
  color: #4a3652;
  line-height: 1.65;
}

.order-success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(22px, 4vw, 34px) 0;
}

.order-success-details div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(201, 154, 70, .5);
  border-radius: 8px;
  background: rgba(255, 246, 222, .88);
}

.order-success-details span {
  display: block;
  margin-bottom: 8px;
  color: #72501b;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.order-success-details strong,
.order-success-email {
  display: block;
  overflow-wrap: anywhere;
  color: #2f1837;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1;
}

.order-success-next,
.order-success-steps {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(201, 154, 70, .35);
}

.order-success-next h3,
.order-success-steps h3 {
  margin: 0 0 12px;
  color: #8a651f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.order-success-email {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(201, 154, 70, .18);
}

.order-success-steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2rem;
  color: #4a3652;
  line-height: 1.55;
}

.order-success-email-notice {
  margin-top: 18px;
  color: #72501b;
  font-weight: 800;
}

.order-success-story-line {
  margin: clamp(22px, 5vw, 36px) 0 0;
  color: #5a315f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-style: italic;
  line-height: 1.18;
  opacity: 1;
  animation: none;
}

.order-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.order-success-actions .gold-button,
.order-success-actions .glass-button {
  min-width: min(100%, 220px);
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.order-success-sparkle,
.order-success-bead,
.order-success-butterfly {
  display: none !important;
  position: absolute;
  pointer-events: none;
}

.order-success-sparkle {
  left: var(--x);
  top: -8px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 14px rgba(255, 232, 179, .65);
  opacity: 0;
  animation: successSparkleFall var(--duration) ease-in var(--delay) forwards;
}

.order-success-bead {
  left: var(--x);
  top: -12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .86), transparent 24%),
    linear-gradient(135deg, #f7d889, #7c3f8e);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .22);
  opacity: 0;
  animation: successBeadFloat var(--duration) ease-in-out var(--delay) forwards;
}

.order-success-butterfly {
  width: 30px;
  height: 22px;
  opacity: 0;
  filter: drop-shadow(0 8px 12px rgba(54, 32, 18, .18)) sepia(.08) saturate(1.06) contrast(.9) brightness(1.16);
  transform-origin: center;
}

.order-success-butterfly::before,
.order-success-butterfly::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 17px;
  height: 20px;
  border: 2px solid rgba(19, 10, 14, .92);
  background:
    radial-gradient(circle at 38% 38%, rgba(255, 241, 196, .68) 0 10%, transparent 11%),
    linear-gradient(90deg, transparent 46%, rgba(64, 38, 28, .58) 47% 53%, transparent 54%),
    linear-gradient(155deg, #ffc15f 0 42%, #ee8238 43% 72%, #473025 73% 100%);
  animation: successWing 420ms ease-in-out infinite alternate;
}

.order-success-butterfly::before {
  left: 0;
  border-radius: 90% 36% 76% 42%;
  transform-origin: right center;
}

.order-success-butterfly::after {
  right: 0;
  border-radius: 36% 90% 42% 76%;
  transform-origin: left center;
}

.order-success-butterfly.butterfly-1 {
  left: -40px;
  top: 18%;
  animation: successButterflyOne 4.6s ease-in-out var(--delay) forwards;
}

.order-success-butterfly.butterfly-2 {
  right: -44px;
  top: 32%;
  animation: successButterflyTwo 4.8s ease-in-out var(--delay) forwards;
}

.order-success-butterfly.butterfly-3 {
  left: -42px;
  bottom: 16%;
  animation: successButterflyThree 4.9s ease-in-out var(--delay) forwards;
}

.order-success-butterfly.butterfly-4 {
  right: -44px;
  bottom: 24%;
  animation: successButterflyFour 4.7s ease-in-out var(--delay) forwards;
}

@keyframes successStoryLine {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes successSparkleFall {
  0% { opacity: 0; transform: translate3d(0, -12px, 0) scale(.6); }
  12% { opacity: .85; }
  100% { opacity: 0; transform: translate3d(var(--drift), 76vh, 0) scale(1); }
}

@keyframes successBeadFloat {
  0% { opacity: 0; transform: translate3d(0, -12px, 0) scale(.8); }
  18% { opacity: .95; }
  100% { opacity: 0; transform: translate3d(var(--drift), 70vh, 0) rotate(160deg); }
}

@keyframes successWing {
  from { transform: rotateY(26deg) rotateZ(2deg); }
  to { transform: rotateY(62deg) rotateZ(-3deg); }
}

@keyframes successButterflyOne {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(8deg); }
  15%, 82% { opacity: .95; }
  100% { opacity: 0; transform: translate3d(112vw, 16vh, 0) rotate(12deg); }
}

@keyframes successButterflyTwo {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.92) rotate(-16deg); }
  15%, 82% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(-112vw, 20vh, 0) scale(.92) rotate(-8deg); }
}

@keyframes successButterflyThree {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.82) rotate(-4deg); }
  15%, 82% { opacity: .86; }
  100% { opacity: 0; transform: translate3d(108vw, -18vh, 0) scale(.82) rotate(10deg); }
}

@keyframes successButterflyFour {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.78) rotate(14deg); }
  15%, 82% { opacity: .84; }
  100% { opacity: 0; transform: translate3d(-106vw, -14vh, 0) scale(.78) rotate(-8deg); }
}

@media (max-width: 700px) {
  .order-success-screen {
    padding: 14px;
  }

  .order-success-panel {
    max-height: calc(100svh - 28px);
    padding: 22px;
  }

  .order-success-details {
    grid-template-columns: 1fr;
  }

  .order-success-actions {
    display: grid;
  }

  .order-success-actions .gold-button,
  .order-success-actions .glass-button {
    width: 100%;
  }

  .order-success-butterfly {
    width: 24px;
    height: 18px;
  }

  .order-success-butterfly::before,
  .order-success-butterfly::after {
    width: 13px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .treasure-builder.is-order-complete,
  .order-success-screen,
  .order-success-story-line {
    transition: none;
    animation: none;
  }

  .order-success-story-line {
    opacity: 1;
  }

  .order-success-sparkle,
  .order-success-bead,
  .order-success-butterfly {
    display: none;
  }
}

.chapter-flow-section {
  position: relative;
  scroll-margin-top: 108px;
}

.chapter-flow-section::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -42px;
  width: min(420px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(244, 213, 141, .34), transparent);
  pointer-events: none;
}

.chapter-four-story {
  width: min(1240px, calc(100% - 36px));
}

.treasure-story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.treasure-story-grid article {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 14px 14px 22px;
  border: 1px solid rgba(244, 213, 141, .26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 12%, rgba(244, 213, 141, .12), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .035)),
    rgba(11, 4, 15, .74);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .3);
  animation: treasureCardReveal .8s ease both;
}

.treasure-story-grid article:nth-child(2) { animation-delay: .12s; }
.treasure-story-grid article:nth-child(3) { animation-delay: .22s; }
.treasure-story-grid article:nth-child(4) { animation-delay: .32s; }

.treasure-story-grid article::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -10%;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 72, 136, .22), transparent 67%);
  pointer-events: none;
}

.treasure-story-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(244, 213, 141, .24);
  border-radius: 6px;
  background: rgba(255, 245, 223, .92);
  filter: saturate(.96) contrast(1.05) brightness(.9);
}

.treasure-story-grid span {
  display: block;
  margin: 18px 0 8px;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: .95;
}

.treasure-story-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.meet-maker-story {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(244, 213, 141, .2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(244, 213, 141, .14), transparent 18rem),
    radial-gradient(circle at 80% 80%, rgba(129, 45, 102, .18), transparent 18rem),
    rgba(255, 255, 255, .035);
  box-shadow: 0 34px 88px rgba(0, 0, 0, .26);
}

.meet-maker-story .maker-portrait {
  position: relative;
  padding: 10px;
  border-color: rgba(244, 213, 141, .42);
  background:
    linear-gradient(135deg, rgba(244, 213, 141, .22), rgba(255, 255, 255, .05)),
    rgba(8, 3, 12, .6);
}

.meet-maker-story .maker-portrait::before,
.meet-maker-story .maker-portrait::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 35%, rgba(244, 213, 141, .38), transparent 7%),
    radial-gradient(ellipse at 50% 58%, rgba(166, 78, 143, .42), transparent 44%);
  opacity: .75;
  pointer-events: none;
  filter: blur(.2px);
}

.meet-maker-story .maker-portrait::before {
  left: -22px;
  bottom: -18px;
}

.meet-maker-story .maker-portrait::after {
  right: -16px;
  top: -18px;
  width: 72px;
}

.meet-maker-story .maker-portrait img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 0 38px rgba(244, 213, 141, .12);
}

.maker-signature {
  margin-top: 22px;
  color: var(--gold-light) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  line-height: 1.05 !important;
}

.maker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.maker-actions span {
  color: var(--cream);
  font-weight: 800;
}

.kind-words-story .review-panels article {
  background:
    linear-gradient(160deg, rgba(255, 245, 223, .13), rgba(255, 245, 223, .055)),
    rgba(14, 6, 17, .68);
  border-color: rgba(244, 213, 141, .3);
}

.kind-words-story .review-panels article p {
  color: rgba(255, 245, 223, .82);
}

.begin-story {
  width: min(980px, calc(100% - 36px));
  padding: clamp(32px, 7vw, 64px);
  text-align: center;
  border: 1px solid rgba(244, 213, 141, .28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 213, 141, .18), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
}

.begin-story h2 {
  margin: 0;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: .85;
}

.begin-story p:not(.chapter-kicker) {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.begin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.review-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-panels article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(244, 213, 141, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.centered {
  width: fit-content;
  margin: 24px auto 0;
}

.storybook-footer {
  margin-top: 90px;
  padding: clamp(54px, 9vw, 92px) 18px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 213, 141, .14), transparent 24rem),
    linear-gradient(180deg, transparent, rgba(5, 2, 8, .82));
  border-top: 1px solid var(--line);
}

.storybook-footer h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: .86;
}

.storybook-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.storybook-footer a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(244, 213, 141, .28);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .chapter-hero,
  .prized-story,
  .maker-story,
  .chapter-two-layout {
    grid-template-columns: 1fr;
  }

  .hero-book-scene {
    min-height: clamp(330px, 74vw, 620px);
    grid-column: auto;
    grid-row: auto;
    order: -2;
  }

  .hero-copy {
    grid-column: auto;
    grid-row: auto;
    order: -1;
  }

  .hero-feature {
    grid-column: auto;
    grid-row: auto;
    display: block;
    max-width: 520px;
  }

  .hero-feature img {
    grid-row: auto;
  }

  .hero-story-tiles {
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .story-tile {
    min-height: 245px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 213, 141, .22);
  }

  .story-tile:last-child {
    border-bottom: 0;
  }

  .photo-collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-collection-grid a,
  .photo-collection-grid a:nth-child(1),
  .photo-collection-grid a:last-child,
  .photo-collection-grid a:nth-child(2),
  .photo-collection-grid a:nth-child(3),
  .photo-collection-grid a:nth-child(4),
  .photo-collection-grid a:nth-child(5),
  .photo-collection-grid a:nth-child(6) {
    grid-column: span 1;
  }

  .review-panels {
    grid-template-columns: 1fr;
  }

  .treasure-story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace-scene,
  .treasure-builder {
    min-height: auto;
  }

  .workspace-scene {
    min-height: clamp(500px, 78vw, 660px);
  }
}

@media (max-width: 640px) {
  .scroll-monarch {
    width: clamp(46px, 12vw, 62px);
  }

  .scroll-monarch-3 {
    display: none;
  }

  .chapter-hero {
    padding-top: 58px;
    gap: 24px;
  }

  .hero-book-scene {
    min-height: 320px;
    transform: none;
  }

  .hero-book-scene img {
    width: min(132%, 620px);
    bottom: 8%;
  }

  .hero-actions,
  .custom-panel {
    display: grid;
  }

  .hero-actions a,
  .custom-panel a {
    width: 100%;
  }

  .photo-collection-grid {
    grid-template-columns: 1fr;
  }

  .photo-collection-grid a {
    min-height: 245px;
  }

  .treasure-story-grid {
    grid-template-columns: 1fr;
  }

  .meet-maker-story {
    padding: 14px;
  }

  .maker-actions,
  .begin-actions {
    display: grid;
  }

  .maker-actions a,
  .begin-actions a {
    width: 100%;
  }

  .chapter-two-story {
    width: min(100% - 28px, 1240px);
  }

  .workspace-scene {
    min-height: 430px;
    padding: 16px;
  }

  .workspace-photo-primary {
    left: 5%;
    right: 10%;
    top: 10%;
    height: 45%;
  }

  .workspace-photo-flower {
    width: 47%;
    height: 35%;
    right: 5%;
    bottom: 12%;
  }

  .builder-grid,
  .treasure-request-item,
  .treasure-preview {
    grid-template-columns: 1fr;
  }

  .treasure-request-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .request-continue-shopping {
    align-self: start;
  }

  .treasure-request-controls {
    justify-items: start;
  }

  .treasure-preview {
    justify-items: stretch;
  }

  .builder-grid label:first-child,
  .builder-grid label:nth-child(3),
  .custom-description-field {
    grid-column: span 1;
  }

  .home-preview-art-wrap,
  .treasure-preview .preview-personalization {
    justify-self: center;
  }

  .hardware-preview-card {
    width: 130px;
  }

  .hardware-preview-sample {
    width: 62px;
    height: 62px;
  }

  .hardware-preview-sample .preview-hardware {
    width: 52px;
    height: 52px;
  }

  .home-preview-beads {
    --home-preview-bead-size: 5.5px;
    --home-preview-gap: 1.5px;
    width: 130px;
    height: 130px;
    max-width: 130px;
    max-height: 130px;
    grid-template-columns: repeat(var(--home-preview-cols), var(--home-preview-bead-size));
    grid-template-rows: repeat(var(--home-preview-rows), var(--home-preview-bead-size));
    justify-self: center;
    padding: 10px;
  }

  .home-selected-product-photo {
    width: 130px;
    height: 110px;
    justify-self: center;
  }

  .home-preview-beads .preview-bead {
    width: var(--home-preview-bead-size);
  }

  .home-preview-swatches .preview-colour-swatch {
    width: 30px;
  }
}

@keyframes discoveryWing {
  from {
    transform: rotateY(12deg) rotateX(1deg);
  }
  to {
    transform: rotateY(68deg) rotateX(-2deg);
  }
}

@keyframes heroBookBreath {
  0%, 100% {
    transform: translateX(-50%) rotateX(2deg) rotateZ(-1deg) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) rotateX(2.6deg) rotateZ(-.55deg) translateY(-8px) scale(1.012);
  }
}

@keyframes heroAurora {
  from {
    opacity: .52;
    transform: translate3d(-1.5%, 0, 0);
  }
  to {
    opacity: .86;
    transform: translate3d(1.5%, -1%, 0);
  }
}

@keyframes heroGoldPulse {
  0%, 100% {
    opacity: .48;
    transform: scale(.94);
  }
  50% {
    opacity: .86;
    transform: scale(1.08);
  }
}

@keyframes heartFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) rotate(45deg) scale(.52);
  }
  18%, 58% {
    opacity: .62;
  }
  100% {
    opacity: 0;
    transform: translate3d(22px, -120px, 0) rotate(45deg) scale(1);
  }
}

@keyframes ambientDustRise {
  to {
    background-position: 130px -220px, -90px -260px;
  }
}

@keyframes ambientWingFlap {
  from {
    transform: rotateY(12deg) rotateX(1deg);
  }
  to {
    transform: rotateY(68deg) rotateX(-2deg);
  }
}

@keyframes ambientMonarchPath {
  0% {
    left: -12vw;
    top: 68vh;
    transform: translate3d(0, 0, 0) rotate(-12deg) scale(.8);
  }
  18% {
    left: 18vw;
    top: 36vh;
    transform: translate3d(0, -18px, 0) rotate(16deg) scale(.92);
  }
  42% {
    left: 48vw;
    top: 61vh;
    transform: translate3d(0, 14px, 0) rotate(-10deg) scale(.74);
  }
  66% {
    left: 78vw;
    top: 30vh;
    transform: translate3d(0, -20px, 0) rotate(18deg) scale(.88);
  }
  100% {
    left: 112vw;
    top: 54vh;
    transform: translate3d(0, 10px, 0) rotate(-4deg) scale(.78);
  }
}

@keyframes ambientMonarchPathHigh {
  0% {
    left: 108vw;
    top: 22vh;
    transform: rotate(14deg) scale(.66);
  }
  24% {
    left: 76vw;
    top: 42vh;
    transform: rotate(-15deg) scale(.78);
  }
  52% {
    left: 40vw;
    top: 24vh;
    transform: rotate(18deg) scale(.62);
  }
  78% {
    left: 12vw;
    top: 49vh;
    transform: rotate(-10deg) scale(.82);
  }
  100% {
    left: -14vw;
    top: 30vh;
    transform: rotate(8deg) scale(.66);
  }
}

@keyframes ambientMonarchNearCamera {
  0% {
    left: -16vw;
    top: 76vh;
    transform: rotate(-8deg) scale(.56);
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .24)) blur(0);
  }
  26% {
    left: 24vw;
    top: 58vh;
    transform: rotate(14deg) scale(.88);
  }
  48% {
    left: 52vw;
    top: 34vh;
    transform: rotate(-16deg) scale(1.28);
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .28)) blur(.35px);
  }
  72% {
    left: 76vw;
    top: 64vh;
    transform: rotate(18deg) scale(.9);
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .24)) blur(0);
  }
  100% {
    left: 112vw;
    top: 42vh;
    transform: rotate(-4deg) scale(.58);
  }
}

@keyframes chapterTwoLight {
  from {
    opacity: .58;
    transform: translate3d(-1%, 0, 0) scale(.98);
  }
  to {
    opacity: .95;
    transform: translate3d(1.5%, -1%, 0) scale(1.03);
  }
}

@keyframes chapterTwoDust {
  to {
    background-position: 80px -180px, -110px -230px;
  }
}

@keyframes flowerWorkspaceSway {
  0%, 100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(5.2deg) translateY(-5px);
  }
}

@keyframes flowerGentleBloom {
  0%, 100% {
    opacity: .35;
    transform: scale(.88);
  }
  48% {
    opacity: .76;
    transform: scale(1.08);
  }
}

@keyframes exclusiveWarmShimmer {
  0%, 100% {
    box-shadow: 0 34px 110px rgba(255, 183, 76, .22), 0 30px 80px rgba(0, 0, 0, .38);
  }
  45% {
    box-shadow: 0 36px 126px rgba(255, 202, 112, .34), 0 0 34px rgba(220, 170, 82, .22), 0 30px 80px rgba(0, 0, 0, .38);
  }
}

@keyframes treasureCardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes svgMonarchLeftWing {
  from {
    transform: perspective(420px) rotateY(-12deg) rotateX(2deg);
  }
  to {
    transform: perspective(420px) rotateY(64deg) rotateX(-3deg);
  }
}

@keyframes svgMonarchRightWing {
  from {
    transform: perspective(420px) rotateY(12deg) rotateX(2deg);
  }
  to {
    transform: perspective(420px) rotateY(-64deg) rotateX(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .svg-monarch,
  .chapter-petal {
    display: none;
  }

  .treasure-story-grid article {
    animation: none;
  }
}

@media (max-width: 980px) {
  body.storybook-page main {
    padding-top: 104px;
  }

  .chapter-hero,
  .chapter-two-layout,
  .maker-story,
  .meet-maker-story,
  .prized-story,
  .treasure-preview,
  .treasure-feature-story {
    grid-template-columns: 1fr !important;
  }

  .chapter-hero {
    min-height: auto;
    align-items: stretch;
  }

  .hero-book-scene,
  .hero-copy,
  .hero-feature,
  .workspace-scene,
  .treasure-builder,
  .maker-portrait,
  .maker-copy,
  .prized-image,
  .prized-copy {
    width: min(100%, 100vw - 32px);
    max-width: 100%;
    justify-self: center;
  }

  .photo-collection-grid,
  .treasure-story-grid,
  .editorial-gallery,
  .keepsake-note-grid,
  .review-panels,
  .product-grid,
  .gallery-grid,
  .builder-grid,
  .review-form {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  body.storybook-page main {
    padding-top: 92px;
  }

  .story-section,
  .chapter-hero {
    padding-left: clamp(16px, 5vw, 22px);
    padding-right: clamp(16px, 5vw, 22px);
  }

  .hero-story-tiles,
  .photo-collection-grid,
  .treasure-story-grid,
  .editorial-gallery,
  .keepsake-note-grid,
  .review-panels,
  .product-grid,
  .gallery-grid,
  .builder-grid,
  .review-form,
  .begin-actions,
  .maker-actions,
  .contact-actions {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }

  .gold-button,
  .glass-button,
  .contact-actions a,
  .contact-actions button,
  .begin-actions a,
  .maker-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .home-preview-beads {
    max-width: 130px;
    overflow: hidden;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 0 13px;
    font-size: .78rem;
  }

  .editorial-gallery .story-photo-large,
  .editorial-gallery .story-photo-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .editorial-gallery .gallery-card {
    min-height: 360px;
  }
}
