/* Shared by index.html and gallery.html. Colors pulled from Marie's business card and logo. */
/* colors pulled from Marie's business card and logo */
:root{
  --blue:#cde6f3; --blue-soft:#eef7fc; --blue-line:#7cc3e0; --band:#94b5c2;
  --glow:#6fd6f5; --ink:#1f2328; --ink-soft:#4d5a63; --navy:#2c4556; --edge:#d6e9f4;
  --radius:20px; --shadow:0 10px 30px rgba(31,42,51,.08);
  --pattern:var(--blue) url(img/butterflies.png) 0 0/240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Montserrat,system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.65}
img{max-width:100%;display:block}
a{color:var(--ink);text-decoration-color:var(--blue-line);text-underline-offset:3px}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
/* icon circle follows the text color; the knocked-out glyph uses fill */
svg.i{width:20px;height:20px;flex:none;fill:#fff}
.btn-primary svg.i{fill:var(--ink)}

/* nav */
nav{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--edge)}
nav .wrap{display:flex;align-items:center;justify-content:space-between;height:68px;gap:16px}
nav .brand img{height:58px;width:auto}
nav ul{display:flex;gap:28px;list-style:none;margin:0;padding:0}
nav ul a{text-decoration:none;font-weight:500;font-size:.95rem;padding:4px 0;border-bottom:2px solid transparent}
nav ul a:hover{border-color:var(--blue-line)}
nav ul{margin-left:auto}
.nav-order{min-height:40px;padding:8px 20px}
@media (max-width:640px){nav ul{display:none}}

/* hero: the business card, a white arch on the butterfly pattern */
.hero{background:var(--pattern);padding:40px 16px 0;overflow:hidden}
.hero .inner{position:relative;max-width:1240px;margin:0 auto}
.arch{max-width:820px;margin:0 auto;background:#fff;text-align:center;border:3px solid var(--blue-line);border-bottom:0;
  border-radius:50% 50% 0 0/240px 240px 0 0;padding:72px 32px 48px}
.arch .logo{width:min(560px,100%);height:auto;margin:0 auto}
.lead{max-width:520px;margin:16px auto 28px;color:var(--ink-soft);font-size:1.05rem}
.loc{display:flex;align-items:center;justify-content:center;gap:6px;margin:24px 0 0;font-weight:500}
.side{position:absolute;bottom:64px;width:180px;aspect-ratio:3/4;object-fit:cover;border:6px solid #fff;border-radius:16px;box-shadow:0 14px 34px rgba(31,42,51,.18)}
.side.l{left:0;transform:rotate(-6deg)}
.side.r{right:0;transform:rotate(6deg)}
@media (max-width:1259px){.side{display:none}}
@media (max-width:640px){.arch{border-radius:50% 50% 0 0/150px 150px 0 0;padding:64px 16px 40px}}

.btns{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:8px;padding:14px 26px;border-radius:999px;font-weight:600;text-decoration:none;border:1.5px solid var(--ink);transition:transform .2s,box-shadow .2s}
.btn:hover{transform:translateY(-2px);box-shadow:0 0 0 4px rgba(111,214,245,.3),0 10px 28px rgba(111,214,245,.55)}
.btn:focus-visible,.filters button:focus-visible{outline:3px solid var(--glow);outline-offset:3px}
.btn-primary{background:var(--ink);color:#fff}
.btn-ghost{background:#fff;color:var(--ink)}

section{padding:72px 0}
.tint{background:var(--blue-soft)}
.eyebrow{font-family:Marcellus,serif;text-transform:uppercase;letter-spacing:.32em;font-size:.8rem;color:var(--navy);text-align:center;margin:0}
h2{font-family:Allison,cursive;font-weight:400;font-size:clamp(3.4rem,9vw,5.25rem);line-height:1;text-align:center;margin:4px 0 12px}
/* the logo's butterfly perches at the end of each heading */
h2::after{content:"";display:inline-block;width:.6em;height:.6em;margin-left:.05em;vertical-align:.3em;background:url(img/butterfly.svg) center/contain no-repeat}
.sub{text-align:center;color:var(--ink-soft);max-width:560px;margin:0 auto 40px}

/* menu */
.menu{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
@media (max-width:1000px){.menu{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.menu{grid-template-columns:1fr}}
.card{background:#fff;border:1px solid var(--edge);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card div{padding:16px 24px 24px}
.card h3{margin:0 0 4px;font-size:1.05rem;font-weight:600}
.card p{margin:0;color:var(--ink-soft);font-size:.95rem}

/* gallery */
.filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:32px}
.filters button{font:inherit;font-weight:500;padding:8px 18px;border-radius:999px;border:1.5px solid var(--ink);background:#fff;color:var(--ink);cursor:pointer;transition:box-shadow .2s}
.filters button:hover{box-shadow:0 0 0 4px rgba(111,214,245,.3)}
.filters button[aria-pressed=true]{background:var(--ink);color:#fff}
.grid{columns:4 220px;column-gap:16px}
.grid button{all:unset;display:block;margin-bottom:16px;cursor:zoom-in;border-radius:16px;overflow:hidden;break-inside:avoid;border:5px solid #fff;box-shadow:0 4px 14px rgba(31,42,51,.1)}
.grid button:focus-visible{outline:3px solid var(--glow);outline-offset:2px}
.grid img{width:100%;height:auto;transition:transform .4s}
.grid button:hover img{transform:scale(1.04)}
.grid [hidden]{display:none}
@media (max-width:600px){.grid{columns:2;column-gap:8px}.grid button{margin-bottom:8px;border-width:3px}}
dialog{border:0;padding:0;background:transparent;max-width:92vw;max-height:92vh}
dialog::backdrop{background:rgba(20,30,38,.85)}
dialog img{max-width:92vw;max-height:88vh;border-radius:12px}
dialog form{position:absolute;top:8px;right:8px}
dialog button{font:inherit;font-size:1.5rem;width:44px;height:44px;border-radius:50%;border:0;background:#fff;cursor:pointer}

/* order: the form sits in a white arch on the butterfly pattern, like the business card */
.order-band{background:var(--pattern)}
.order-card{max-width:880px;margin:0 auto;background:#fff;border:3px solid var(--blue-line);border-radius:50% 50% 24px 24px/140px 140px 24px 24px;padding:80px 48px 48px}
@media (max-width:640px){.order-card{padding:64px 16px 32px;border-radius:50% 50% 20px 20px/90px 90px 20px 20px}}
.steps{list-style:none;padding:0;margin:0 0 36px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;counter-reset:s}
@media (max-width:760px){.steps{grid-template-columns:1fr}}
.step{background:var(--blue-soft);border-radius:16px;padding:16px 20px}
.step::before{counter-increment:s;content:counter(s);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--blue);font-family:Marcellus,serif;font-size:1.05rem;margin-bottom:8px}
.step h3{margin:0 0 4px;font-size:1rem;font-weight:600}
.step p{margin:0;color:var(--ink-soft);font-size:.92rem}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
@media (max-width:640px){.fields{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field.full{grid-column:1/-1}
.field label{font-weight:600;font-size:.9rem}
.field input,.field select,.field textarea{font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1.5px solid #b9d7e8;border-radius:12px;padding:11px 14px;min-height:48px;width:100%}
.field textarea{resize:vertical;min-height:110px}
.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid var(--glow);outline-offset:1px;border-color:var(--ink)}
.field [aria-invalid=true]{border-color:#B42318}
.hint{font-size:.85rem;color:var(--ink-soft);margin:0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.cf-turnstile{margin-top:20px}
.form-error{color:#B42318;font-weight:600;margin:16px 0 0}
.form-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:20px}
.btn[disabled]{opacity:.6;cursor:progress;transform:none;box-shadow:none}
.sent,.fallback{text-align:center;padding:16px 0 8px}
.sent h3,.fallback h3{font-family:Allison,cursive;font-weight:400;font-size:clamp(2.4rem,7vw,3.2rem);line-height:1.1;margin:0 0 8px}
.sent p,.fallback p{color:var(--ink-soft);max-width:520px;margin:0 auto 20px}
.order-this{display:inline-block;margin-top:12px;font-weight:600;font-size:.95rem;text-decoration:none;border-bottom:2px solid var(--blue-line)}
.order-this:hover{border-color:var(--ink)}

/* about */
.about{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.about img{border-radius:var(--radius);border:8px solid #fff;box-shadow:var(--shadow);aspect-ratio:1;object-fit:cover}
.about .eyebrow,.about h2{text-align:left}
@media (max-width:760px){.about{grid-template-columns:1fr}.about .eyebrow,.about h2{text-align:center}}

/* footer: the card again, with its darker band along the bottom */
footer{background:var(--pattern);padding:56px 16px 24px;text-align:center;border-bottom:14px solid var(--band)}
.foot-card{background:#fff;max-width:600px;margin:0 auto 24px;padding:56px 24px 32px;border:3px solid var(--blue-line);
  border-radius:50% 50% 24px 24px/120px 120px 24px 24px}
.foot-card img{width:min(320px,80%);height:auto;margin:0 auto}
.info{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:center;list-style:none;padding:0;margin:20px 0 0;font-weight:500}
.info li,.info a{display:inline-flex;align-items:center;gap:8px}
.info a{text-decoration:none}
.info a:hover{text-decoration:underline;text-decoration-color:var(--blue-line)}
footer small{color:var(--navy)}
.legal{font-size:.8rem;color:var(--navy);max-width:520px;margin:0 auto 8px}
.credit{font-size:.75rem;color:var(--ink-soft);margin:6px 0 0}
.credit a{color:var(--navy);font-weight:500;text-decoration:none}
.credit a:hover{text-decoration:underline;text-decoration-color:var(--blue-line)}
.credit a:focus-visible{outline:3px solid var(--glow);outline-offset:2px;border-radius:4px}

/* motion: the logo writes itself (img/logo-animated.svg), the hero settles in, sections rise into view as you
   scroll, and a few butterflies drift over the pattern. Only under .motion (set in <head>), so without JS or
   with reduced motion everything is simply there. */
:root{--ease:cubic-bezier(.2,.7,.2,1)}
.card{transition:transform .3s var(--ease),box-shadow .3s}
.card img{transition:transform .6s var(--ease)}
.card:hover{transform:translateY(-4px);box-shadow:0 0 0 4px rgba(111,214,245,.25),0 16px 36px rgba(111,214,245,.35)}
.card:hover img{transform:scale(1.04)}
.btn:active{transform:scale(.97);transition-duration:.08s}
nav{transition:box-shadow .3s}
nav.scrolled{box-shadow:0 6px 20px rgba(31,42,51,.08)}

.motion .arch{animation:arch-in 1s var(--ease) both}
.motion .arch .lead{animation:rise .8s var(--ease) .5s both}
.motion .arch .btns{animation:rise .8s var(--ease) .65s both}
.motion .arch .loc{animation:rise .8s var(--ease) .8s both}
.motion .side.l{animation:side-l 1.2s var(--ease) .35s both,bob-l 7s ease-in-out 1.6s infinite}
.motion .side.r{animation:side-r 1.2s var(--ease) .5s both,bob-r 8s ease-in-out 1.7s infinite}
@keyframes arch-in{from{opacity:0;translate:0 40px}}
@keyframes rise{from{opacity:0;translate:0 18px}}
@keyframes side-l{from{opacity:0;transform:translate(-60px,30px) rotate(-14deg)}to{transform:translate(0,0) rotate(-6deg)}}
@keyframes side-r{from{opacity:0;transform:translate(60px,30px) rotate(14deg)}to{transform:translate(0,0) rotate(6deg)}}
@keyframes bob-l{0%,100%{transform:translate(0,0) rotate(-6deg)}50%{transform:translate(0,-10px) rotate(-4deg)}}
@keyframes bob-r{0%,100%{transform:translate(0,0) rotate(6deg)}50%{transform:translate(0,-10px) rotate(4deg)}}

/* scroll reveal: whatever enters together is staggered by --d (set in the script at the bottom) */
.motion [data-reveal]{opacity:0;translate:0 26px;transition:opacity .8s var(--ease) var(--d,0s),translate .8s var(--ease) var(--d,0s),transform .3s var(--ease),box-shadow .3s}
.motion [data-reveal].in{opacity:1;translate:none}
/* each heading's butterfly flies in and lands, wings beating */
.motion h2[data-reveal]::after{opacity:0;transform:translate(-.5em,.6em) rotate(-30deg) scale(.5);transform-origin:30% 80%;transition:opacity .5s var(--d,0s),transform 1.1s var(--ease) var(--d,0s)}
.motion h2[data-reveal].in::after{opacity:1;transform:none;animation:wing .16s ease-in-out calc(var(--d,0s) + .2s) 8 alternate}
@keyframes wing{to{scale:.45 1}}
.motion .sent:not([hidden]),.motion .fallback:not([hidden]){animation:rise .6s var(--ease)}
dialog[open]{animation:zoom .3s var(--ease)}
dialog[open]::backdrop{animation:fade .3s}
@keyframes zoom{from{opacity:0;transform:scale(.94)}}
@keyframes fade{from{opacity:0}}

/* drifting butterflies: behind the white panels, over the pattern */
.hero,.order-band,footer{position:relative;overflow:hidden}
.arch,.order-band .wrap,.foot-card,footer .legal,footer small,footer .credit{position:relative;z-index:1}
.drift{display:none}
.motion .drift{display:block;position:absolute;width:34px;aspect-ratio:1;pointer-events:none;animation:drift 24s ease-in-out infinite}
.drift i{display:block;height:100%;background:url(img/butterfly.svg) center/contain no-repeat;transform-origin:25% 85%;animation:wing .2s ease-in-out infinite alternate}
.drift.b{width:26px;animation-duration:31s;animation-direction:reverse}
.drift.c{width:30px;animation-duration:27s;animation-delay:-9s}
.drift.b i{animation-duration:.24s}
@keyframes drift{
  0%,100%{transform:translate(0,0) rotate(-6deg)}
  20%{transform:translate(70px,-50px) rotate(10deg)}
  40%{transform:translate(130px,10px) rotate(-4deg)}
  60%{transform:translate(60px,70px) rotate(8deg)}
  80%{transform:translate(-20px,30px) rotate(-10deg)}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* "See all" under the home gallery, and the /gallery page's own header */
.more{text-align:center;margin:32px 0 0}
.page-head{background:var(--pattern);padding:56px 16px 0}
.page-head .arch{padding:56px 24px 40px}
.page-head .arch h1{font-family:Allison,cursive;font-weight:400;font-size:clamp(3.6rem,10vw,5.6rem);line-height:1;margin:4px 0 8px}
