/* Mer Maiden Haven: wordmark, detailed botanicals, sticky header, footer. Loaded last. */
html { scroll-padding-top: 110px; }
html, body { overflow-x: clip; }

/* ---- Header stays in reach while scrolling ---- */
header { position: sticky; top: 0; z-index: 10; background: #faf8f2eb; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 16px; padding-bottom: 16px; }

/* ---- Wordmark ---- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: block; }
.wordmark { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 25px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.wordmark i { font-style: italic; font-weight: 400; text-transform: none; letter-spacing: .02em; font-size: 1.22em; color: var(--rose); margin-left: -.08em; }
header .brand small { text-align: left; margin-top: 6px; color: #5f6b5a; letter-spacing: 2.6px; }
nav a[href]:focus-visible, .footer-col a:focus-visible { outline-offset: 3px; }

/* ---- Leaves in the hero and ribbon ---- */
.floating-petal { width: 34px; height: 56px; border-radius: 0; background: url(leaf.svg) center / contain no-repeat; filter: drop-shadow(0 8px 8px #2e433833); }
.petal-two { width: 26px; height: 44px; background-image: url(leaf-rose.svg); }
.petal-two { left: 58%; top: 74%; }
.petal-three { left: 74%; top: 44%; width: 22px; height: 36px; animation-delay: -3.5s; animation-duration: 18s; }
.ribbon { align-items: center; }
.ribbon-leaf { width: 20px; height: 33px; transform: rotate(72deg); }

/* ---- Botanical illustrations around the sections ---- */
.deco { position: absolute; pointer-events: none; user-select: none; height: auto; max-width: none; }
.collection, .care, footer { position: relative; }
.collection > *:not(.deco), .care > *:not(.deco), footer > *:not(.deco) { position: relative; z-index: 1; }
#collection { overflow: clip; }
.deco-collection { width: 150px; top: 48px; right: 12%; transform: rotate(-104deg); transform-origin: 50% 50%; opacity: .95; }
#collection .section-title > p { background: #faf8f2d9; border-radius: 4px; }
.deco-care { width: 300px; right: -265px; top: 40px; transform: rotate(8deg); }
#contact { overflow: clip; }
.deco-contact-left { width: 250px; left: 3%; bottom: -70px; transform: rotate(16deg); }
.deco-contact-right { width: 290px; right: 2%; bottom: -60px; transform: scaleX(-1) rotate(10deg); }

/* ---- Empty collection message gets the pendant illustration ---- */
.collection-empty { background: url(pendant.svg) right -30px center / auto 150% no-repeat; min-height: 190px; }
.collection-empty > div { max-width: 60%; }
#clothing .collection-empty { background-image: none; }
#clothing .collection-empty > div { max-width: none; }

/* ---- Footer ---- */
footer { text-align: left; overflow: hidden; padding: 70px 7% 30px; }
.deco-footer { width: 300px; right: -40px; bottom: -150px; transform: rotate(-24deg); opacity: .16; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
footer .brand { font-size: inherit; }
footer .brand-mark { width: 56px; height: 56px; }
footer .wordmark { font-size: 30px; color: #f5eddb; }
footer .wordmark i { color: #dcb8a6; }
.footer-brand p { margin: 16px 0 0; font: italic 19px 'Cormorant Garamond', Georgia, serif; color: #dfe4d3; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
.footer-col h3 { font: 600 10px 'DM Sans', Arial, sans-serif; letter-spacing: 2.2px; text-transform: uppercase; color: #b9c4ac; margin: 6px 0 10px; }
.footer-col a { padding: 6px 0; border-bottom: 1px solid transparent; }
.footer-col a:hover { border-color: #dcb8a6; }
.footer-col .social-links { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; margin: 0; }
.footer-col .social-links a { text-decoration: none; font-size: 13px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 20px; border-top: 1px solid #ffffff26; }
.footer-base .caption { margin: 0; }
footer a:focus-visible { outline-color: #f5eddb; }

/* ---- Bag button shows when something is inside ---- */
#bag.has-items { background: var(--ink); color: #faf8f2; border-color: var(--ink); }
#bag.has-items #count { background: #faf8f2; color: var(--ink); }

@media (max-width: 1180px) {
  .deco-care { display: none; }
  .deco-collection { width: 120px; right: 6%; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 150px; }
  header { padding-top: 12px; padding-bottom: 10px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .wordmark { font-size: 19px; letter-spacing: .16em; }
  header .brand small { font-size: 7px; letter-spacing: 2px; }
  .ribbon-leaf { width: 14px; height: 23px; }
  .deco-collection { display: none; }
  .deco-contact-left { width: 150px; left: -40px; bottom: -50px; opacity: .55; }
  .deco-contact-right { width: 170px; right: -50px; bottom: -40px; opacity: .55; }
  .collection-empty { background-position: right -60px bottom -40px; background-size: auto 70%; padding-bottom: 150px; }
  .collection-empty > div { max-width: none; }
  #clothing .collection-empty { padding-bottom: 28px; }
  footer { padding: 50px 7% 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { order: 0; width: auto; justify-content: flex-start; font-size: 13px; }
  .petal-one { top: 64%; left: 78%; }
  .petal-three { top: 80%; left: 12%; }
  footer .wordmark { font-size: 23px; }
  .deco-footer { width: 220px; bottom: -120px; }
}

/* =====================  Finishing pass  ===================== */

/* Soft paper grain over the whole page */
body::before { content: ''; position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .055; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: #2e4338; color: #faf8f2; }

/* Menu: the section you are reading is marked */
header nav a { position: relative; border-bottom: 0; }
header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
header nav a:hover::after, header nav a[aria-current='true']::after { transform: scaleX(1); }
header nav a[aria-current='true'] { color: var(--rose); }

/* Hero: words rise in, a turning maker's seal */
.hero-copy > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .26s; }
.hero-copy > :nth-child(4) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero-copy h1 { text-wrap: balance; }
.hero-seal { position: absolute; right: 7%; bottom: 112px; width: 150px; height: 150px; border-radius: 50%; background: #faf8f2d9; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 14px 40px #2e433826, inset 0 0 0 1px #ffffffb0; display: grid; place-items: center; }
.hero-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 38s linear infinite; }
.hero-seal text { font: 600 12.5px 'DM Sans', Arial, sans-serif; letter-spacing: 2px; fill: var(--ink); }
.hero-seal img { width: 62px; height: 62px; }
@keyframes turn { to { transform: rotate(360deg); } }
.button span { display: inline-block; transition: transform .25s; }
.button:hover span { transform: translate(3px, -3px); }

/* Leaves breathe a little */
.deco-care, .deco-contact-left, .deco-contact-right { transform-origin: 50% 100%; animation: sway 9s ease-in-out infinite alternate; }
.deco-contact-right { animation-duration: 11s; animation-delay: -4s; }
@keyframes sway { from { rotate: -1.8deg; } to { rotate: 1.8deg; } }

/* Pieces: framed like small artworks */
.product { position: relative; }
.product .art { position: relative; box-shadow: 0 1px 0 #ffffff inset, 0 18px 40px -22px #2e433850; transition: box-shadow .5s, transform .5s cubic-bezier(.2,.7,.2,1); }
.product .art::after { content: ''; position: absolute; inset: 9px; border: 1px solid #ffffff99; border-radius: inherit; pointer-events: none; }
.product:hover .art { transform: translateY(-6px); box-shadow: 0 1px 0 #ffffff inset, 0 30px 50px -24px #2e433870; }
.product h3 { letter-spacing: -.3px; }
.product button { letter-spacing: .4px; }
.products { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* A piece up close: photo on the left, details on the right */
#product-detail { width: min(980px, 94vw); padding: 36px; }
#detail-content { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 40px; align-content: start; }
#detail-content > * { grid-column: 2; }
#detail-content > .detail-gallery { grid-column: 1; grid-row: 1 / span 9; align-self: start; border-radius: 140px 140px 6px 6px; }
.detail-gallery img { max-height: 560px; object-fit: cover; aspect-ratio: 4 / 5; }
#detail-content .price { margin: 0 0 6px; font-size: 30px; font-family: 'Cormorant Garamond', Georgia, serif; }
#detail-content label { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 12px; }

/* The bag slides in from the side */
#cart { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 34px 30px; overflow: auto; }
#cart[open] { animation: drawer .4s cubic-bezier(.2,.7,.2,1); }
@keyframes drawer { from { transform: translateX(60px); opacity: 0; } }
#checkout .button { width: 100%; justify-content: center; }
#checkout-error { color: #9a3b2a; font-size: 13px; margin: 0; }
#checkout-error:empty { display: none; }

@media (max-width: 760px) {
  .hero-seal { width: 104px; height: 104px; right: auto; left: 6%; bottom: 70px; }
  .hero-seal text { font-size: 13px; }
  .hero-seal img { width: 40px; height: 40px; }
  #product-detail { padding: 24px; }
  #detail-content { display: block; }
  #detail-content > .detail-gallery { border-radius: 100px 100px 6px 6px; margin-bottom: 18px; }
  #cart { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { opacity: 1; transform: none; }
}

/* =====================  Photo-real botanicals  ===================== */
.deco-collection { width: 185px; top: 4px; right: 13%; filter: drop-shadow(0 14px 14px #2e433826); }
.deco-care { width: 360px; right: -300px; top: 10px; transform: rotate(14deg); animation: none; filter: drop-shadow(0 18px 20px #2e433830); }
.deco-footer { width: 250px; right: 1%; bottom: -120px; opacity: .34; }
#contact { background: #e9dcc6 url(flatlay.webp) center / cover no-repeat; padding-top: 170px; padding-bottom: 170px; }
#contact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 52% 60% at center, #fbf6ebe6 0 45%, #fbf6eb00 100%); }
#contact h2 { text-shadow: 0 1px 20px #fbf6eb; }
/* The glass in the layer study is now cut to the shape of the wing */
.glass-layer { border: 0; border-radius: 0; box-shadow: none; background: linear-gradient(120deg, #ffffffc4, #ffffff38 35%, #dfe8e04d 70%, #ffffffd0); -webkit-mask: url(wing.webp) center / contain no-repeat; mask: url(wing.webp) center / contain no-repeat; }
.glass-back { background: linear-gradient(120deg, #c9d2cc99, #eef2ee4d 50%, #b9c3bd99); }
.wing-layer { width: 156px; height: 195px; left: 17px; top: 22px; }
@media (max-width: 1180px) { .deco-collection { width: 140px; } }
@media (max-width: 760px) {
  #contact { padding-top: 110px; padding-bottom: 110px; background-position: 30% center; }
  #contact::before { background: radial-gradient(ellipse 80% 55% at center, #fbf6ebeb 0 50%, #fbf6eb00 100%); }
  .wing-layer { width: 135px; height: 169px; left: 15px; top: 20px; }
  .deco-footer { width: 180px; bottom: -90px; }
}

/* =====================  Handwriting headlines  ===================== */
h1, .section-title h2, #clothing h2, .study-copy h2, .materials h2, .care h2, #contact h2 { font-family: 'Allura', 'Cormorant Garamond', cursive; font-weight: 400; letter-spacing: 0; }
h1 em, .section-title h2 em, #clothing h2 em, .study-copy h2 em, .materials h2 em { font-style: normal; }
.hero-copy h1 { font-size: clamp(76px, 9vw, 136px); line-height: .98; letter-spacing: 0; margin: 22px 0 26px; }
.section-title h2, #clothing h2 { font-size: clamp(72px, 9vw, 132px); line-height: .95; letter-spacing: 0; }
.study-copy h2 { font-size: clamp(80px, 9.6vw, 150px); line-height: .92; letter-spacing: 0; white-space: nowrap; }
.materials h2 { font-size: clamp(58px, 6.2vw, 92px); line-height: 1; }
.care h2 { font-size: clamp(54px, 5.6vw, 80px); line-height: 1.05; }
#contact h2 { font-size: clamp(70px, 9vw, 128px); line-height: 1; }

/* =====================  Fern and flowers beside the jewelry heading  ===================== */
.title-spray { position: relative; flex: 0 1 460px; min-width: 0; align-self: center; margin: -30px 3% -20px; }
.title-spray > img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 16px #2e433824); }
#collection .section-title > p { background: none; flex: none; }

/* =====================  Butterflies that scatter  ===================== */
.materials { position: relative; }
.deco.bfly { left: var(--x); top: var(--y); width: var(--s, 70px); aspect-ratio: 1; z-index: 3; pointer-events: auto; perspective: 420px; transform: rotate(var(--r, 0deg)); opacity: 1; transition: transform 2.4s cubic-bezier(.25,.6,.3,1), opacity .9s; }
.bfly i { position: absolute; top: 0; width: 50%; height: 100%; background: var(--img) no-repeat; background-size: 200% 100%; animation: wing-l 5.5s ease-in-out infinite; }
.bfly i:first-child { left: 0; background-position: left center; transform-origin: right center; }
.bfly i:last-child { left: 50%; background-position: right center; transform-origin: left center; animation-name: wing-r; }
.bfly:nth-of-type(2n) i { animation-delay: -2.3s; }
.bfly:nth-of-type(3n) i { animation-delay: -3.9s; animation-duration: 7s; }
.bfly[data-kind='monarch'] { --img: url(monarch.webp); }
.bfly[data-kind='morpho'] { --img: url(morpho.webp); }
.deco.bfly.flying { transform: translate(var(--dx), var(--dy)) rotate(var(--fr)) scale(.72); opacity: 0; pointer-events: none; transition: transform 1.9s cubic-bezier(.3,.3,.5,1), opacity .6s 1.25s; }
.bfly.flying i, .bfly.landing i { animation-duration: .17s; animation-delay: 0s; animation-name: flap-l; }
.bfly.flying i:last-child, .bfly.landing i:last-child { animation-name: flap-r; }
@keyframes wing-l { 0%, 80%, 100% { transform: rotateY(0); } 86% { transform: rotateY(58deg); } 92% { transform: rotateY(8deg); } 96% { transform: rotateY(40deg); } }
@keyframes wing-r { 0%, 80%, 100% { transform: rotateY(0); } 86% { transform: rotateY(-58deg); } 92% { transform: rotateY(-8deg); } 96% { transform: rotateY(-40deg); } }
@keyframes flap-l { 0%, 100% { transform: rotateY(4deg); } 50% { transform: rotateY(74deg); } }
@keyframes flap-r { 0%, 100% { transform: rotateY(-4deg); } 50% { transform: rotateY(-74deg); } }

@media (max-width: 760px) {
  .hero-copy h1 { font-size: clamp(64px, 17vw, 92px); }
  .section-title h2, #clothing h2 { font-size: 76px; }
  .study-copy h2 { font-size: clamp(60px, 17.5vw, 110px); }
  .materials h2 { font-size: 58px; }
  #contact h2 { font-size: 68px; }
  .title-spray { margin: 6px 0 14px; max-width: 420px; }
  .deco.bfly { width: calc(var(--s, 70px) * .76); }
  .bfly-wide { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bfly i { animation: none; } }

/* =====================  One style all the way down  ===================== */

/* Finer, lighter handwriting for the headlines */
h1, .section-title h2, #clothing h2, .study-copy h2, .materials h2, .care h2, #contact h2 { font-family: 'Tangerine', 'Allura', cursive; font-weight: 400; }
.hero-copy h1 { font-size: clamp(96px, 11.4vw, 176px); line-height: .84; margin: 18px 0 22px; }
.section-title h2, #clothing h2 { font-size: clamp(92px, 11.4vw, 168px); line-height: .84; }
.study-copy h2 { font-size: clamp(96px, 11.6vw, 184px); line-height: .84; }
.materials h2 { font-size: clamp(72px, 7.6vw, 112px); line-height: .9; }
.care h2 { font-size: clamp(66px, 6.8vw, 100px); line-height: .95; }
#contact h2 { font-size: clamp(88px, 11.4vw, 164px); line-height: .9; }

/* Realistic fern as the mark beside the name, in the ribbon and the footer; a monarch in the seal */
.brand-mark { width: auto; height: 48px; transform: rotate(16deg); filter: drop-shadow(0 3px 3px #2e433826); }
footer .brand-mark { width: auto; height: 62px; filter: brightness(1.35) saturate(.85); }
.ribbon-leaf { width: auto; height: 34px; transform: rotate(78deg); }
.hero-seal img { width: 60px; height: 60px; }

/* Jewelry heading: words on the left, fern and flowers filling the right */
#collection .section-title { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 3%; align-items: center; }
#collection .section-title h2 { grid-column: 1; grid-row: 1; align-self: end; margin: 0 0 14px; }
#collection .section-title > p { grid-column: 1; grid-row: 2; align-self: start; max-width: 340px; font-size: 15px; padding: 0; margin: 0; }
#collection .title-spray { grid-column: 2; grid-row: 1 / span 2; justify-self: end; width: 100%; max-width: 700px; margin: -56px -3% -34px 0; }
.collection-empty { background-image: none; }
.collection-empty > div { max-width: none; }

/* Sections melt into each other instead of stopping at hard edges */
.nature-study::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #faf8f2 0, #faf8f200 9%, #faf8f200 91%, #faf8f2 100%); }
.nature-study { padding-top: 130px; padding-bottom: 130px; }
.study-footer { bottom: 70px; }
#clothing { background: linear-gradient(180deg, #faf8f2 0, #1d2c23 120px, #17241c 100%); padding-top: 170px; color: #f4eee2; }
#clothing .chapter-label { border-color: #3f5346; }
#clothing .chapter-label > span:last-child { color: #c9d3bd; }
#clothing h2 em { color: #dcb8a6; }
#clothing .collection-empty { border-color: #3f5346; }
#clothing .collection-empty p, #clothing .product p { color: #d5dccb; }
#clothing .product button { border-color: #7f917f; }
#clothing .product button:hover { background: #2b3f33; }
.deco-clothing { width: min(40vw, 520px); right: 4%; top: 150px; transform: scaleX(-1) rotate(-4deg); filter: drop-shadow(0 18px 22px #00000059); }
#contact::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #faf8f2 0, #faf8f200 100px, #34443800 calc(100% - 120px), #344438 100%); }
#contact { border: 0; }
footer { border-top: 0; }

@media (max-width: 760px) {
  .hero-copy h1 { font-size: clamp(78px, 21vw, 108px); }
  .section-title h2, #clothing h2 { font-size: 92px; }
  .study-copy h2 { font-size: clamp(70px, 20vw, 124px); }
  .materials h2 { font-size: 70px; }
  .care h2 { font-size: 62px; }
  #contact h2 { font-size: 82px; }
  .brand-mark { height: 40px; }
  .ribbon-leaf { height: 24px; }
  #collection .section-title { display: block; }
  #collection .section-title > p { margin-top: 8px; }
  #collection .title-spray { max-width: 440px; margin: 14px 0 6px; }
  .nature-study { padding-top: 90px; }
  #clothing { padding-top: 130px; }
  .deco-clothing { display: none; }
}
#collection .section-title h2 { font-size: clamp(84px, 9.2vw, 144px); white-space: nowrap; }
#collection .section-title { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 760px) { #collection .section-title h2 { font-size: clamp(64px, 19vw, 92px); } }
.deco-clothing { top: 205px; width: min(36vw, 470px); }
.deco-clothing { top: 290px; }

/* =====================  Name: a monarch and handwriting  ===================== */
.brand-fly { position: relative; display: block; flex: none; width: 52px; aspect-ratio: 1; perspective: 300px; transform: rotate(-14deg); }
.wordmark { font-family: 'Tangerine', 'Cormorant Garamond', cursive; font-weight: 700; font-size: 46px; letter-spacing: .01em; text-transform: none; line-height: .78; }
.wordmark i { font-style: normal; font-weight: 700; font-size: 1em; letter-spacing: .01em; margin-left: 0; color: #c0772c; }
header .brand { gap: 10px; }
header .brand small { margin-top: 3px; padding-left: 3px; }
footer .brand-fly { width: 66px; }
footer .wordmark { font-size: 60px; }
footer .wordmark i { color: #e6a765; }

/* =====================  Clutches of butterflies  ===================== */
.deco.clutch { left: var(--x); top: var(--y); width: var(--w); height: var(--h); z-index: 3; pointer-events: auto; }
.clutch .bfly { position: absolute; left: var(--x); top: var(--y); width: var(--s, 60px); aspect-ratio: 1; perspective: 420px; transform: rotate(var(--r, 0deg)); opacity: 1; transition: transform 2.8s cubic-bezier(.25,.6,.3,1), opacity 1s; }
.clutch .bfly.flying { transform: translate(var(--dx), var(--dy)) rotate(var(--fr)) scale(.66); opacity: 0; transition: transform 2.3s cubic-bezier(.25,.35,.45,1), opacity .7s 1.5s; }
@media (max-width: 760px) {
  .brand-fly { width: 42px; }
  .wordmark { font-size: 36px; }
  footer .wordmark { font-size: 46px; }
  .clutch .bfly { width: calc(var(--s, 60px) * .72); }
  .clutch .bfly:nth-child(n + 5) { display: none; }
}

/* Logo from the branding tool: handwritten name with a monarch landing on the M */
header .brand-top { display: block; line-height: 0; }
.brand-logo { display: block; height: 104px; width: auto; margin: -24px 0 -26px -18px; }
header { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 760px) { .brand-logo { height: 80px; margin: -18px 0 -20px -14px; } }
.brand-logo { height: 118px; margin: -28px 0 -30px -20px; }
@media (max-width: 760px) { .brand-logo { height: 84px; margin: -19px 0 -21px -14px; } }
@media (max-width: 760px) { .flagship-hero .deco.clutch { left: 46%; top: 60%; width: 50%; height: 22%; } }

/* =====================  Logo centred, menu either side  ===================== */
header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; padding: 4px 6%; }
header .nav-left { justify-self: start; }
header .nav-right { justify-self: end; display: flex; align-items: center; gap: 30px; }
header nav { gap: 36px; font-size: 13px; letter-spacing: .6px; }
header .brand-top { justify-self: center; }
.brand-logo { height: 116px; width: auto; margin: -15px 0 -17px; transition: height .35s cubic-bezier(.2,.7,.2,1), margin .35s; }
header.scrolled .brand-logo { height: 78px; margin: -10px 0 -12px; }

/* Footer name in the same arrangement as the logo */
footer .brand { gap: 14px; }
footer .brand-fly { width: 86px; transform: none; }
footer .wordmark { font-size: 62px; line-height: .8; }
footer .wordmark i { display: block; font: 500 14px 'Cormorant Garamond', Georgia, serif; letter-spacing: .62em; text-transform: uppercase; margin: 10px 0 0 4px; color: #dcb8a6; }

/* =====================  Lifelike butterflies  ===================== */
.bfly > i { position: absolute; top: 0; width: 50%; height: 100%; background: var(--img) no-repeat; background-size: 200% 100%; animation: rest-l var(--beat, 6s) ease-in-out var(--lag, 0s) infinite; }
.bfly > i:nth-of-type(1) { left: 0; background-position: left center; transform-origin: right center; }
.bfly > i:nth-of-type(2) { left: 50%; background-position: right center; transform-origin: left center; animation-name: rest-r; }
/* The body stays still while the wings move */
.bfly > u { position: absolute; top: 0; left: 45%; width: 10%; height: 100%; background: var(--img) no-repeat center / 1000% 100%; }
/* Soft shadow on whatever it is resting on */
.bfly > b { position: absolute; inset: 22% 6% 2%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, #00000052, #00000000); transform: translate(5%, 12%); filter: blur(2px); transition: transform 1.1s ease-out, opacity 1.1s; }
.bfly.flying > b { transform: translate(45%, 75%) scale(1.5); opacity: .22; }
.bfly.flying > i, .bfly.landing > i { animation: fly-l .13s ease-in-out infinite; }
.bfly.flying > i:nth-of-type(2), .bfly.landing > i:nth-of-type(2) { animation-name: fly-r; }
.bfly.landing > i { animation-duration: .3s; }
.clutch .bfly.flying { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none; }
[data-kind='monarch'] { --img: url(monarch.webp); }
[data-kind='morpho'] { --img: url(morpho.webp); }
@keyframes rest-l { 0%, 62%, 100% { transform: rotateY(6deg); filter: none; } 72% { transform: rotateY(66deg); filter: brightness(.78); } 82% { transform: rotateY(22deg); filter: brightness(.95); } 90% { transform: rotateY(52deg); filter: brightness(.84); } }
@keyframes rest-r { 0%, 62%, 100% { transform: rotateY(-6deg); filter: none; } 72% { transform: rotateY(-66deg); filter: brightness(.78); } 82% { transform: rotateY(-22deg); filter: brightness(.95); } 90% { transform: rotateY(-52deg); filter: brightness(.84); } }
@keyframes fly-l { 0%, 100% { transform: rotateY(10deg); filter: none; } 50% { transform: rotateY(80deg); filter: brightness(.72); } }
@keyframes fly-r { 0%, 100% { transform: rotateY(-10deg); filter: none; } 50% { transform: rotateY(-80deg); filter: brightness(.72); } }

@media (max-width: 760px) {
  header { grid-template-columns: 1fr 1fr; row-gap: 0; padding: 4px 5% 8px; }
  header .brand-top { grid-column: 1 / -1; grid-row: 1; }
  header .nav-left { grid-column: 1; grid-row: 2; justify-self: end; padding-right: 14px; }
  header .nav-right { grid-column: 2; grid-row: 2; justify-self: start; padding-left: 14px; gap: 0; }
  header nav, header .nav-left { width: auto; order: 0; gap: 26px; justify-content: flex-start; font-size: 12px; }
  #bag { position: absolute; right: 4%; top: 12px; padding: 4px 10px; }
  .brand-logo { height: 80px; margin: -10px 0 -10px; }
  header.scrolled .brand-logo { height: 62px; margin: -8px 0 -8px; }
  footer .brand-fly { width: 66px; }
  footer .wordmark { font-size: 48px; }
  footer .wordmark i { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .bfly > i { animation: none; } }
@media (max-width: 760px) { .brand-logo { height: 70px; margin: -8px 0 -9px; } header.scrolled .brand-logo { height: 58px; margin: -7px 0 -7px; } #bag { right: 3%; top: 10px; font-size: 11px; } }

/* Flight, second pass: wings stay visible through the whole beat, slower and softer */
.bfly.flying > i, .bfly.landing > i { animation: fly-l var(--flap, .2s) ease-in-out infinite alternate; }
.bfly.flying > i:nth-of-type(2), .bfly.landing > i:nth-of-type(2) { animation-name: fly-r; }
.bfly.landing > i { animation-duration: .42s; }
@keyframes fly-l { from { transform: rotateY(4deg); filter: none; } to { transform: rotateY(58deg); filter: brightness(.9); } }
@keyframes fly-r { from { transform: rotateY(-4deg); filter: none; } to { transform: rotateY(-58deg); filter: brightness(.9); } }
@keyframes rest-l { 0%, 62%, 100% { transform: rotateY(6deg); filter: none; } 72% { transform: rotateY(56deg); filter: brightness(.88); } 82% { transform: rotateY(20deg); filter: none; } 90% { transform: rotateY(44deg); filter: brightness(.92); } }
@keyframes rest-r { 0%, 62%, 100% { transform: rotateY(-6deg); filter: none; } 72% { transform: rotateY(-56deg); filter: brightness(.88); } 82% { transform: rotateY(-20deg); filter: none; } 90% { transform: rotateY(-44deg); filter: brightness(.92); } }
.bfly.flying > b { transform: translate(30%, 55%) scale(1.25); opacity: .3; }

/* Bigger, crisper butterflies so the wing detail can be seen */
.clutch .bfly { width: calc(var(--s, 60px) * 1.5); margin: calc(var(--s, 60px) * -.25) 0 0 calc(var(--s, 60px) * -.25); }
.bfly > i, .bfly > u { image-rendering: auto; }
.bfly > i { filter: contrast(1.06) saturate(1.08); }
@media (max-width: 760px) { .clutch .bfly { width: calc(var(--s, 60px) * 1.05); margin: 0; } }

/* Footer name: HAVEN sits centred under "Mer Maiden", butterfly level with the pair */
footer .brand { align-items: center; }
footer .wordmark { text-align: center; white-space: nowrap; }
footer .wordmark i { margin: 10px 0 0; padding-left: .62em; text-align: center; }

/* =====================  In the air: real flight poses  ===================== */
.bfly > s { position: absolute; inset: -22%; background: center / contain no-repeat; opacity: 0; pointer-events: none; text-decoration: none; }
.bfly.flying > s { opacity: 1; animation: beat-monarch var(--flap, .34s) steps(1, end) infinite; }
.bfly.flying[data-kind='morpho'] > s { animation-name: beat-morpho; }
.bfly.flying > i, .bfly.flying > u, .bfly.flying > b { opacity: 0; animation: none; }
@keyframes beat-monarch { 0% { background-image: url(monarch-up.webp); } 25% { background-image: url(monarch-mid.webp); } 50% { background-image: url(monarch-down.webp); } 75%, 100% { background-image: url(monarch-mid.webp); } }
@keyframes beat-morpho { 0% { background-image: url(morpho-up.webp); } 25% { background-image: url(morpho-mid.webp); } 50% { background-image: url(morpho-down.webp); } 75%, 100% { background-image: url(morpho-mid.webp); } }

/* New studio-photo butterflies: the blue morpho is a bigger butterfly than the monarch in life */
.clutch .bfly[data-kind='morpho'] { width: calc(var(--s, 60px) * 1.5 * 1.3); }
@media (max-width: 760px) { .clutch .bfly[data-kind='morpho'] { width: calc(var(--s, 60px) * 1.05 * 1.25); } }

/* =====================  Butterflies without joins  =====================
   Each wing and the body is now the whole picture with everything but its own part hidden.
   The parts overlap a little under the body, so no hairline of background can show between them. */
.bfly > i, .bfly > u { left: 0; top: 0; width: 100%; height: 100%; background: var(--img) center / 100% 100% no-repeat; }
.bfly > i:nth-of-type(1) { left: 0; background-position: center; transform-origin: 50% 50%; clip-path: inset(0 48.5% 0 0); }
.bfly > i:nth-of-type(2) { left: 0; background-position: center; transform-origin: 50% 50%; clip-path: inset(0 0 0 48.5%); }
.bfly > u { clip-path: inset(0 45.5% 0 45.5%); }
.bfly > i { filter: none; }

/* Real wing beats: frames from two short Higgsfield (Kling 3.0) clips of the same butterflies.
   Each strip holds one full beat, wings open -> closed -> open. Resting = one slow beat now and then;
   flying = the same beat played fast. Replaces the swinging-door wings and the older flight pictures. */
.bfly > i, .bfly > u { display: none; }
.bfly > s { inset: 0; opacity: 1; background: var(--strip) 0 0 / calc(var(--n) * 100%) 100% no-repeat; animation: var(--rest-beat) var(--beat, 6s) var(--lag, 0s) infinite; }
.bfly[data-kind='monarch'] { --strip: url(monarch-flap.webp); --n: 14; --rest-beat: rest-monarch; --fly-beat: fly-monarch; }
.bfly[data-kind='morpho'] { --strip: url(morpho-flap.webp); --n: 13; --rest-beat: rest-morpho; --fly-beat: fly-morpho; }
@keyframes rest-monarch { 0%, 64% { background-position-x: 0%; animation-timing-function: steps(14, jump-none); } 100% { background-position-x: 100%; } }
@keyframes rest-morpho { 0%, 64% { background-position-x: 0%; animation-timing-function: steps(13, jump-none); } 100% { background-position-x: 100%; } }
@keyframes fly-monarch { from { background-position-x: 0%; animation-timing-function: steps(14, jump-none); } to { background-position-x: 100%; } }
@keyframes fly-morpho { from { background-position-x: 0%; animation-timing-function: steps(13, jump-none); } to { background-position-x: 100%; } }
.bfly.flying[data-kind] > s { opacity: 1; animation: var(--fly-beat) var(--flap, .3s) infinite; }
.bfly.landing[data-kind] > s { animation: var(--fly-beat) .75s infinite; }
.bfly.flying > b { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .bfly[data-kind] > s { animation: none; } }
.motion-paused .bfly[data-kind] > s { animation: none; }

/* One monarch perched on the big "A" of the main headline. It is tied to the letter, so it stays put at any screen size. */
.hero-copy h1 .a-perch { position: relative; }
.flagship-hero .deco.clutch.perch { left: .66em; top: -.03em; width: .5em; height: .5em; }
.clutch.perch .bfly, .clutch.perch .bfly[data-kind] { width: calc(var(--s) * 1.5); margin: 0; }
