/* =========================================================
   EverPetal by Sarah
   One long page that keeps moving as you scroll: the hero holds
   while Meet Sarah slides over it, every page opens out from the
   sides, flowers drift through the margins, each title has its own
   entrance, the process plays a flower per step and the gallery
   walks sideways along a dark wall.
   Type: Great Vibes (the EverPetal name) + Cormorant Garamond (titles and text).
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg: #FBF8F4;          /* paper */
  --surface: #F2ECE5;     /* one tone step */
  --ink: #2E1F29;         /* aubergine ink */
  --muted: #6B5A65;       /* secondary notes only */
  --accent: #9B2F4C;      /* rose, on the actions */
  --accent-strong: #7E2440;
  --table: #170F14;       /* the dark table the pages are laid on */
  --wall: #2B1C25;        /* gallery wall */
  --field-1: #22171E;     /* footer */
  --on-dark: #F4ECE6;
  --on-dark-soft: #CDBDC4;
  --tile: #E3BCC3;
  --hero-paper: #F3E9D9;  /* matches the paper in the film */

  --f-script: "Great Vibes", "Snell Roundhand", cursive;      /* the EverPetal name */
  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --step-small: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-body: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  --step-head: clamp(2.75rem, 1.6rem + 3.8vw, 5rem);
  --step-hero: clamp(3.5rem, 1rem + 8.5vw, 9.5rem);

  --margin: clamp(20px, 5vw, 80px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 11vw, 180px);
  --header-h: 72px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-press: 120ms;
  --t-hover: 150ms;
  /* motion thesis: things settle onto the page like a pressed flower laid down */
  --settle: cubic-bezier(.22, .8, .24, 1);
  --leave: cubic-bezier(.4, 0, 1, 1);
  --t-settle: 600ms;
  --t-title: 700ms;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--f); font-kerning: normal;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; margin: 0; letter-spacing: -0.005em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: var(--step-head); }
/* titles and the headline share one face (the script of the EverPetal name); everything else is Cormorant */
h1, h2, h3 { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; line-height: 1.1; }
h2 { font-size: calc(var(--step-head) * 1.25); }
h3 { font-size: calc(var(--step-lead) * 1.35); }
.offer h3 { font-size: calc(var(--step-head) * 1.05); line-height: 1.1; }
h3 { font-size: var(--step-lead); }
p { margin: 0; text-wrap: pretty; }
strong, b { font-weight: 500; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--tile); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 300; }
.skip-link:focus { left: 8px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.placeholder { color: #85562A; background: rgba(184, 149, 94, .16); padding: 0 .25em; }

/* ---------- Controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  font: 600 var(--step-body)/1 var(--f); letter-spacing: .02em; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff;
  transition: transform var(--t-press) var(--leave), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(.97); }
.button--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.button--large { min-height: 60px; padding: 0 40px; font-size: 1.125rem; }
.button--soft { background: var(--surface); color: var(--ink); gap: 10px; }
@media (hover: hover) and (pointer: fine) { .button.button--soft:hover { background: var(--ink); color: var(--bg); } }
.link { color: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: .06em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- 3. SCROLL PROGRESS + HEADER ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress span { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 28px; padding-inline: max(var(--margin), env(safe-area-inset-left, 0px)) max(var(--margin), env(safe-area-inset-right, 0px)); padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink); transition: background-color .3s ease, color .3s ease;
}
.header.is-scrolled { background: var(--bg); }
.header.is-dark { color: var(--on-dark); }
.header.is-dark.is-scrolled { background: var(--wall); }
.wordmark { display: flex; align-items: baseline; gap: 10px; min-height: 44px; text-decoration: none; margin-right: auto; }
.wordmark { font-family: var(--f-script); font-size: 2.1rem; line-height: 1; align-items: center; }
.wordmark__seal { width: 44px; height: 44px; border-radius: 50%; align-self: center; }
.footer__logo { width: 112px; height: 112px; border-radius: 50%; margin-bottom: 18px; }
.wordmark span { font-family: var(--f); font-style: italic; font-size: var(--step-small); opacity: .8; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: var(--step-small); font-weight: 500; letter-spacing: .02em; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; text-underline-offset: .25em; } }
.menu-button { display: none; min-height: 44px; padding: 0 4px; background: none; border: 0; color: inherit; font: 400 var(--step-small) var(--f); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* ---------- 4. SECTIONS: one continuous page ---------- */
.page { position: relative; padding: clamp(72px, 9vw, 140px) var(--margin); overflow-x: clip; }
.page__inner { width: 100%; position: relative; z-index: 1; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* flowers drift and turn through the margins as you scroll */
    .float { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    .float:nth-of-type(even) { animation-name: drift-b; }
  }
}
@keyframes rise { from { transform: translateY(64px); } to { transform: none; } }
@keyframes drift { from { transform: translateY(18vh) rotate(-18deg); } to { transform: translateY(-18vh) rotate(16deg); } }
@keyframes drift-b { from { transform: translateY(14vh) rotate(14deg) scale(.92); } to { transform: translateY(-20vh) rotate(-20deg) scale(1.04); } }

/* each section settles onto the page once: its blocks drop 8px into place, 40ms apart (js/main.js adds .is-settled) */
@media (prefers-reduced-motion: no-preference) {
  .settle-on .page__inner > * { transition: opacity var(--t-settle) var(--settle), transform var(--t-settle) var(--settle); transition-delay: calc(var(--si, 0) * 40ms); }
  .settle-on .page:not(.is-settled) .page__inner > * { opacity: 0; transform: translateY(-8px); }
}

/* decorative flowers (aria-hidden), kept in the margins */
.float { position: absolute; z-index: 0; pointer-events: none; height: auto; }

/* ---------- 5. TITLE EFFECTS (js/text-effect.js) ---------- */
.te-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.te-vis { display: inline; }
.te-word { display: inline-block; white-space: nowrap; }
.te-mask { overflow: hidden; vertical-align: bottom; padding: .25em .12em .3em; margin: -.25em -.12em -.3em; }
.te-seg { display: inline-block; transition-property: transform, opacity, filter; transition-duration: var(--t-title); transition-timing-function: var(--settle); transition-delay: calc(var(--te-delay, 0s) + var(--i) * var(--te-step, .05s)); }
@media (prefers-reduced-motion: no-preference) {
  /* soft: words come out of a blur, like a memory coming into focus */
  [data-text-effect="soft"].te-ready:not(.te-in) .te-seg { opacity: 0; filter: blur(10px); transform: translateY(.2em); }
  /* mask: words rise from behind a line, one after another */
  [data-text-effect="mask"].te-ready:not(.te-in) .te-seg { transform: translateY(115%); }
  /* press: letters land and flatten, as if pressed */
  [data-text-effect="press"] .te-seg { transform-origin: 50% 100%; }
  [data-text-effect="press"].te-ready:not(.te-in) .te-seg { opacity: 0; transform: translateY(-.6em) scale(1.25, 1.6); }
  /* hang: letters swing down like frames hung on a nail */
  [data-text-effect="hang"] .te-vis { perspective: 600px; }
  [data-text-effect="hang"] .te-seg { transform-origin: 50% 0; }
  [data-text-effect="hang"].te-ready:not(.te-in) .te-seg { opacity: 0; transform: rotateX(-95deg); }
  /* blur: the whole title clears */
  [data-text-effect="blur"].te-ready:not(.te-in) .te-seg { opacity: 0; filter: blur(16px); }
  /* write: the script name is drawn left to right, like handwriting */
  [data-text-effect="write"] .te-seg { transition: clip-path 2.2s cubic-bezier(.45, .05, .25, 1), opacity .4s ease; transition-delay: var(--te-delay, 0s); padding: 0 .12em; margin: 0 -.12em; }
  [data-text-effect="write"].te-ready:not(.te-in) .te-seg { clip-path: inset(-20% 100% -20% 0); }
  [data-text-effect="write"].te-in .te-seg { clip-path: inset(-20% 0 -20% 0); }
  /* petal: letters fall and settle like petals */
  [data-text-effect="petal"].te-ready:not(.te-in) .te-seg { opacity: 0; transform: translateY(-.9em) rotate(-24deg); filter: blur(5px); }
  [data-text-effect="petal"].te-ready:not(.te-in) .te-word .te-seg:nth-child(even) { transform: translateY(-1.1em) rotate(20deg) translateX(.12em); }
}

/* ---------- 6. HERO (1): the film hangs on the wall as a framed piece ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: var(--bg); }
.hero__stage {
  position: absolute; inset: 0; transform-origin: 50% 40%;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: calc(var(--header-h) + 24px) var(--margin) clamp(28px, 4vh, 48px); align-items: end;
}
/* Sarah at work fills the hero. Her face and hands sit right of centre; a cream fade from the left keeps the words clear */
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
/* a soft band under the header so the menu stays readable over the window and curtain */
.hero__bg::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(var(--header-h) + 64px); z-index: 1; background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 85%, transparent), transparent); } /* taste-skill-ignore: scrim over the hero photo */
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 92%, transparent) 26%, color-mix(in oklab, var(--bg) 55%, transparent) 44%, transparent 62%); } /* taste-skill-ignore: scrim over the hero photo */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: photo-in 1400ms var(--settle) both; }
}
@keyframes photo-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.hero__words { grid-column: 1 / 7; grid-row: 1; align-self: end; position: relative; z-index: 2; }
.hero__name { font-family: var(--f-script); font-weight: 400; font-size: clamp(4.25rem, 1.5rem + 9vw, 11rem); line-height: 1; letter-spacing: 0; }
.hero__line { display: block; }
.hero__by { display: block; margin-top: .1em; font-family: var(--f); font-style: italic; font-weight: 400; font-size: clamp(1.75rem, 1rem + 2vw, 3rem); }
.hero__lead { margin-top: 26px; font-size: clamp(1.1875rem, 1rem + .6vw, 1.5rem); line-height: 1.45; max-width: 30ch; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.hero__actions .link { display: inline-flex; align-items: center; min-height: 48px; }
.hero__frame { grid-column: 8 / 13; grid-row: 1; align-self: center; position: relative; z-index: 1; }
.hero__nail { position: absolute; left: 50%; top: -42px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #6B5A65; }
.hero__wire { position: absolute; left: 50%; top: -38px; width: 46%; height: 46px; transform: translateX(-50%); }
.hero__wire::before, .hero__wire::after { content: ""; position: absolute; left: 50%; top: 0; width: 50%; height: 1.5px; background: #8A7A72; transform-origin: 0 0; }
.hero__wire::before { transform: rotate(155deg); }
.hero__wire::after { transform: rotate(25deg); }
.hero .frame-css { padding: 6.5%; }
.hero .frame-css__mat { padding: 12%; background: #FBF7F1; box-shadow: inset 0 2px 6px rgba(60, 35, 20, .25); } /* taste-skill-ignore: the mat bevel of a physical frame */
/* the hung frame: one 1.4s drop onto the nail whose swing dies out, then it hangs still.
   Only transform and opacity move, so the graphics card does all the work. */
.hero__hang { position: relative; transform-origin: 50% -42px; }
.hero__hang .frame-css { position: relative; z-index: 1; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); } /* taste-skill-ignore: the frame rail edge */
.hero__shadow { position: absolute; inset: 6% -2% -5% 4%; background: rgba(60, 40, 30, .35); filter: blur(18px); border-radius: 8px; z-index: 0; }
.float--hero-a { width: clamp(120px, 14vw, 240px); left: -3vw; top: 12vh; opacity: .9; }
.float--hero-b { width: clamp(110px, 12vw, 210px); left: 48%; bottom: -6vh; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .hero__hang { animation: hang 1400ms .3s both; }
  .hero__shadow { animation: shade 1400ms var(--settle) .3s both; }
  .hero__by, .hero__lead, .hero__actions { animation: settle var(--t-settle) var(--settle) both; }
  .hero__lead { animation-delay: .6s; } .hero__actions { animation-delay: .64s; }
  .hero__by { animation-delay: 1.5s; } /* once Ever and Petal have met */
  .float--hero-a { animation: float-in 2.4s var(--ease-out) .2s both; }
  .float--hero-b { animation: float-in 2.4s var(--ease-out) .6s both; }
}
@keyframes hang {
  0% { opacity: 0; transform: translateY(-24px) rotate(-3deg); animation-timing-function: var(--settle); }
  40% { opacity: 1; transform: rotate(1.6deg); animation-timing-function: ease-in-out; }
  66% { transform: rotate(-.8deg); animation-timing-function: ease-in-out; }
  86% { transform: rotate(.3deg); animation-timing-function: ease-in-out; }
  100% { transform: none; }
}
@keyframes shade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hang-in { from { opacity: 0; transform: rotate(-4deg) translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(-40px) rotate(-40deg) scale(.8); } to { opacity: .9; transform: none; } }


/* "EverPetal": "Ever" glides in from the left and "Petal" from the right until they meet as one word,
   then a pressed petal lands where they join (js/main.js places the petal and adds .is-met) */
.ep-name { position: relative; display: inline-block; white-space: nowrap; font-family: var(--f-script); font-weight: 400; line-height: 1.15; padding: 0 .08em; color: var(--ink); }
.ep-half { display: inline-block; }
.ep-join { position: absolute; left: var(--jx, 44%); top: 6%; width: .34em; height: .34em; pointer-events: none; }
.ep-join img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ep-name--footer { display: block; text-align: center; font-size: clamp(4rem, 15vw, 13rem); color: var(--on-dark); line-height: 1; padding-bottom: .1em; }
.ep-name--footer .ep-join { top: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .js .ep-name:not(.is-met) .ep-half, .js .ep-name:not(.is-met) .ep-join { opacity: 0; }
  .js .ep-name.is-met .ep-half--l { animation: ep-from-l 1100ms var(--settle) both; }
  .js .ep-name.is-met .ep-half--r { animation: ep-from-r 1100ms var(--settle) both; }
  .js .ep-name.is-met .ep-join { animation: ep-land 800ms var(--settle) 1000ms both; }
}
@keyframes ep-from-l { from { opacity: 0; transform: translateX(-.9em); } to { opacity: 1; transform: none; } }
@keyframes ep-from-r { from { opacity: 0; transform: translateX(.9em); } to { opacity: 1; transform: none; } }
@keyframes ep-land { from { opacity: 0; transform: translateY(-.8em) rotate(-90deg) scale(.6); } to { opacity: 1; transform: none; } }

/* a real frame: wood rails around a paper mat */
.frame-css { aspect-ratio: 4 / 5; padding: 7%; background: #A97C50 url("../assets/img/wood-oak.webp") center / 260px; }
.frame-css__mat { height: 100%; background: #F6F0E4; display: grid; place-items: center; padding: 14%; }
.frame-css__mat img { width: 100%; height: 100%; object-fit: contain; }
.frame-css--photo .frame-css__mat { padding: 9%; }
.frame-css--photo picture { width: 100%; height: 100%; }
.frame-css--photo img { object-fit: cover; }

/* ---------- 7. MEET SARAH (2) ---------- */
.sarah__text { grid-column: 1 / 7; align-self: center; }
.sarah__lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; }
.sarah__text p + p { margin-top: 18px; }
.sarah__text p:not(.sarah__lead) { max-width: 56ch; }
.sarah__frame { grid-column: 8 / 13; align-self: center; }
.sarah__frame figcaption { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.float--sarah-a { width: clamp(140px, 16vw, 260px); right: -4vw; top: 4%; }
.float--sarah-b { width: clamp(100px, 10vw, 170px); left: 38%; bottom: 2%; }

/* ---------- 8. PROCESS (3): pinned; a flower animation per step ---------- */
.process { padding-inline: 0; }
.process__stage { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap) clamp(32px, 5vw, 96px); padding: 0 var(--margin); align-items: center; }
.process__text h2 { max-width: 12ch; }
.process__steps { margin-top: 40px; display: grid; gap: 2px; }
.process__steps button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 400 var(--step-lead)/1.2 var(--f-display); color: var(--muted); text-align: left; transition: color .3s ease;
}
.process__steps button::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .35; transform: scale(.6); transition: transform .3s var(--ease-out), opacity .3s, background-color .3s; }
.process__steps button[aria-current="step"] { color: var(--ink); }
.process__steps button[aria-current="step"]::before { background: var(--accent); opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .process__steps button:hover { color: var(--ink); } }
.process__meter { margin-top: 32px; height: 4px; border-radius: 4px; background: #E4DBD2; max-width: 360px; overflow: hidden; }
.process__nav, .gallery__nav { display: flex; align-items: center; gap: 12px; }
.process__nav { margin-top: 24px; }
.step-count { min-width: 5.5em; text-align: center; font-size: var(--step-small); color: var(--muted); }
.round { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--leave), opacity .2s; }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .round:not(:disabled):hover { background: var(--ink); color: var(--bg); } }
.process__meter span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.1667); transition: transform .5s var(--ease-out); }
.process__view { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.pstep h3 { font-size: calc(var(--step-head) * 0.72); line-height: 1.12; margin-bottom: .3em; }
.pstep__text p { margin-top: 14px; line-height: 1.6; max-width: 40ch; }
.process__texts { display: grid; gap: 32px; }
/* with script the six texts share one place and swap: the old one leaves quickly, the new one settles in */
.js .process__texts { gap: 0; }
.js .pstep { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--leave), transform .2s var(--leave), visibility 0s .2s; }
.js .pstep.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--settle), transform .45s var(--settle) .08s, visibility 0s; }

/* one flower's journey: a single rose followed through every step, in one picture.
   js/main.js sets data-s to the open step; every change is a 700ms settle */
.journey { display: none; }
.js .journey { display: block; position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: min(100%, 62svh); justify-self: center; border-radius: 24px; background: var(--surface); overflow: hidden; transition: background-color 700ms var(--settle); }
.journey[data-s="5"] { background: #EDE4DA; }
.journey > *, .journey__piece > * { position: absolute; transition: transform 700ms var(--settle), opacity 500ms var(--settle), filter 700ms var(--settle); }
.journey img { height: auto; }
/* 1. your message */
.journey__msg { left: 14%; right: 14%; top: 32%; background: #FFFDF9; border-radius: 18px 18px 18px 4px; padding: 18px 20px; font-size: var(--step-small); line-height: 1.5; opacity: 0; transform: translateY(10px); }
.journey__msg b { display: block; font-weight: 500; }
.journey[data-s="0"] .journey__msg { opacity: 1; transform: none; }
/* the arrangement (mat, flowers, frame) moves as one piece */
.journey__piece { inset: 0; transform-origin: 50% 50%; }
.journey[data-s="5"] .journey__piece { transform: translateY(8%) scale(.56); }
.journey__mat { inset: 10%; background: #FFFDF9; border-radius: 4px; opacity: 0; }
.journey[data-s="3"] .journey__mat, .journey[data-s="4"] .journey__mat, .journey[data-s="5"] .journey__mat { opacity: 1; }
/* 2. the rose arrives */
.journey__rose { left: 29%; top: 25%; width: 42%; opacity: 0; transform: translateY(40%) scale(.7); }
.journey:not([data-s="0"]) .journey__rose { opacity: 1; transform: none; }
/* 3. pressed: two oak boards close on it, and it stays a little flatter and softer from then on */
.journey[data-s="2"] .journey__rose, .journey[data-s="3"] .journey__rose, .journey[data-s="4"] .journey__rose, .journey[data-s="5"] .journey__rose { transform: scale(.92, .86); filter: saturate(.8) contrast(.95); }
.journey__plate { left: 8%; right: 8%; height: 46%; background: #A97C50 url("../assets/img/wood-oak.webp") center / 220px; border-radius: 6px; opacity: 0; z-index: 3; }
.journey__plate--t { top: -48%; }
.journey__plate--b { bottom: -48%; }
.journey[data-s="2"] .journey__plate { opacity: 1; animation: j-press 1600ms var(--settle) both; }
.journey[data-s="2"] .journey__plate--b { animation-name: j-press-b; }
@keyframes j-press { 0% { transform: none; } 45%, 60% { transform: translateY(104%); } 100% { transform: none; opacity: 0; } }
@keyframes j-press-b { 0% { transform: none; } 45%, 60% { transform: translateY(-104%); } 100% { transform: none; opacity: 0; } }
/* 4. designed: three smaller flowers gather around the rose on its mat */
.journey__pet { width: 20%; opacity: 0; filter: saturate(.8); }
.journey__pet--1 { left: 16%; top: 16%; --r: -12deg; transform: translate(-90%, -90%) rotate(-60deg); }
.journey__pet--2 { right: 16%; top: 18%; --r: 14deg; transform: translate(90%, -90%) rotate(60deg); }
.journey__pet--3 { left: 18%; bottom: 16%; --r: 6deg; transform: translate(-90%, 90%) rotate(30deg); }
.journey__pet--4 { right: 18%; bottom: 16%; --r: -10deg; transform: translate(90%, 90%) rotate(-30deg); }
.journey[data-s="3"] .journey__pet, .journey[data-s="4"] .journey__pet, .journey[data-s="5"] .journey__pet { opacity: 1; transform: rotate(var(--r)); }
/* 5. framed: an oak frame closes in around the mat */
.journey__frame { inset: 6%; border: clamp(14px, 2.4vw, 24px) solid transparent; border-image: url("../assets/img/wood-oak.webp") 30 round; opacity: 0; transform: scale(1.18); }
.journey[data-s="4"] .journey__frame, .journey[data-s="5"] .journey__frame { opacity: 1; transform: none; }
/* 6. home: the piece shrinks onto the wall and hangs from a nail */
.journey__nail { left: 50%; top: 13%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #6B5A65; opacity: 0; }
.journey__wire { left: 30%; top: 14%; width: 40%; height: 19.5%; overflow: visible; opacity: 0; }
.journey__wire path { fill: none; stroke: #8A7A72; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.journey[data-s="5"] .journey__nail, .journey[data-s="5"] .journey__wire { opacity: 1; transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) { .journey__plate { display: none; } }
/* steps 3 and 4 in 3D (js/scenes.js): the canvas covers the picture on those two steps only */
.journey__3d { position: absolute; inset: 0; z-index: 6; opacity: 0; visibility: hidden; background: #EDE4DA; transition: opacity 400ms var(--settle), visibility 0s 400ms; }
.journey__3d canvas { display: block; width: 100%; height: 100%; }
.journey.is-3d .journey__3d { opacity: 1; visibility: visible; transition: opacity 400ms var(--settle), visibility 0s; }
.journey__chips { position: absolute; left: 0; right: 0; bottom: 14px; display: none; justify-content: center; gap: 8px; }
.journey__3d.has-chips .journey__chips { display: flex; }
.journey__chips span { font-style: italic; font-size: var(--step-small); border-radius: 999px; padding: 3px 12px; background: #FFFDF9; color: var(--muted); transition: background-color 300ms var(--settle), color 300ms var(--settle); }
.journey__chips span.on { background: var(--ink); color: #FFFDF9; }
@media (max-width: 1100px) {
  .process__view { grid-template-columns: minmax(0, 1fr); }
  .js .journey { max-width: min(100%, 460px); }
}
@media (max-width: 900px) { .js .journey { max-width: min(100%, 38svh); } }
canvas.ep3d { display: block; width: 100%; height: 100%; }

/* ---------- 9. SERVICES AND PRICING (4) ---------- */
.services__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.services__head h2 { grid-column: 1 / 8; }
.services__head p { grid-column: 8 / 13; line-height: 1.6; }
.offer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(64px, 8vw, 120px); align-items: start; }
.offer__img { grid-column: 1 / 6; }
.offer__img img { width: 100%; }
.offer__body { grid-column: 7 / 13; }
.offer--flip .offer__img { grid-column: 8 / 13; grid-row: 1; }
.offer--flip .offer__body { grid-column: 1 / 7; grid-row: 1; }
.offer h3 { font-size: var(--step-head); line-height: 1.02; }
.offer__tag { margin-top: 16px; font-size: var(--step-lead); line-height: 1.3; font-family: var(--f-display); }
.offer__body > p:not(.offer__tag) { margin-top: 20px; max-width: 58ch; }
.offer__marks { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.offer__marks li { background: var(--surface); padding: 6px 14px; font-size: var(--step-small); }
.offer__styles { margin-top: 36px; }
.offer__styles-title, .offer__price-title { font-weight: 500; }
.offer__styles dl { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gap); }
.offer__styles dt { font-family: var(--f-display); font-size: var(--step-lead); }
.offer__styles dd { margin-top: 6px; font-size: var(--step-small); line-height: 1.55; }
/* each service reads the same way: what it is, how it's made, how it's finished */
.offer__facts { margin-top: 30px; display: grid; gap: 22px; max-width: 58ch; }
.offer__facts > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 20px; }
.offer__facts dt { font-weight: 500; }
.offer__facts dd { margin: 0; line-height: 1.6; }
/* the services as pages of Sarah's pressing book: tabs down the edge, one page open at a time.
   Without JavaScript every page simply shows, one under another. */
.book { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; perspective: 1600px; }
.book__pages { display: grid; gap: 24px; }
.leaf { background: var(--surface); border-radius: 8px 24px 24px 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(22px, 3.4vw, 48px); align-items: center; transform-origin: 0 50%; }
.leaf__kind { color: var(--accent); font-size: var(--step-small); }
.leaf h3 { font-size: var(--step-head); line-height: 1.05; margin-top: 6px; }
.leaf__how { margin-top: 6px; font-style: italic; color: var(--muted); font-size: var(--step-lead); }
.leaf__text > p:last-child { margin-top: 20px; line-height: 1.65; max-width: 52ch; }
/* the example photo: assets/img/services/<service>.webp when it exists, otherwise a quiet placeholder */
/* 2D shows its two designs side by side; 3D shows one, the same photos as in Pricing */
.leaf__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: center; }
.leaf__pair--one { grid-template-columns: minmax(0, 1fr); width: min(100%, 300px); justify-self: center; }
.leaf__pair figure { margin: 0; display: grid; gap: 8px; }
.leaf__pair img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.leaf__pair figcaption { font-size: var(--step-small); color: var(--muted); font-style: italic; text-align: center; }
.leaf__img { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.leaf__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leaf__empty { color: var(--muted); font-style: italic; }
.leaf__img:not(.is-empty) .leaf__empty { visibility: hidden; }
.leaf__img.is-empty img { display: none; }
.book__tabs { display: none; }
.js .book__pages { gap: 0; }
.js .leaf { grid-area: 1 / 1; visibility: hidden; }
.js .leaf.is-on { visibility: visible; z-index: 2; }
.js .book__tabs { display: grid; align-content: start; gap: 8px; padding: 22px 0 0 0; }
.book__tabs button { border: 0; cursor: pointer; font: inherit; font-size: var(--step-small); text-align: left; white-space: normal; max-width: 15rem; line-height: 1.25; min-height: 44px; padding: 10px 22px 10px 18px; border-radius: 0 999px 999px 0; background: var(--surface); color: var(--ink); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--leave); }
.book__tabs button:active { transform: scale(.97); }
.book__tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .book__tabs button[aria-selected="false"]:hover { background: color-mix(in oklab, var(--ink) 12%, var(--surface)); } }
.book__group { font-size: .85rem; color: var(--muted); font-style: italic; padding: 10px 0 0 6px; }
.book__group:first-child { padding-top: 0; }
/* the page turns: the old page lifts away from its spine (450ms, accelerating away), the new one settles open (700ms) */
@media (prefers-reduced-motion: no-preference) {
  .js .leaf.is-in { animation: page-in 700ms var(--settle) both; }
  .js .leaf.is-out { visibility: visible; z-index: 3; animation: page-out 450ms var(--leave) both; }
}
@keyframes page-in { from { opacity: .4; transform: rotateY(-8deg); } to { opacity: 1; transform: none; } }
@keyframes page-out { to { opacity: 0; transform: rotateY(-70deg); } }
@media (max-width: 900px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .js .book__tabs { order: -1; grid-auto-flow: column; justify-content: start; overflow-x: auto; padding: 0 0 14px; scrollbar-width: none; }
  .book__group { display: none; }
  .book__tabs button { border-radius: 999px; white-space: nowrap; max-width: none; }
  .leaf { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
}

/* one pricing box under both services */
.pricing { margin-top: clamp(64px, 8vw, 120px); padding: clamp(28px, 4vw, 56px); background: var(--surface); border-radius: 28px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: start; }
.pricing__intro { grid-column: 1 / 9; display: grid; gap: 16px; justify-items: start; }
.pricing h3 { font-size: calc(var(--step-head) * .9); line-height: 1.1; }
.pricing__intro p { line-height: 1.6; max-width: 56ch; }
.pricing__intro .button { margin-top: 8px; }
.pricing__lead { font-weight: 500; }
.pricing__factors ul { margin-top: 14px; display: grid; gap: 10px; }
.pricing__factors li { padding: 14px 20px; background: var(--bg); border-radius: 14px; }
.pricing__note { margin-top: 16px; color: var(--muted); font-style: italic; }
.pricing__factors { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.pricing__factors > * { grid-column: 1 / 13; }
.pricing__factors ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* one card per service: photo, name, "Standard design" and its starting price */
.price-cards { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: 8px 0 12px; }
.price-card { background: var(--bg); border-radius: 20px; padding: 12px 12px 20px; display: flex; flex-direction: column; gap: 4px; transition: transform var(--t-hover) var(--settle); }
@media (hover: hover) and (pointer: fine) { .price-card:hover { transform: translateY(-4px); } }
.price-card__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--surface); display: grid; place-items: center; margin-bottom: 12px; }
.price-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.price-card__empty { color: var(--muted); font-style: italic; font-size: var(--step-small); }
.price-card__photo:not(.is-empty) .price-card__empty { visibility: hidden; }
.price-card__photo.is-empty img { display: none; }
.price-card > :not(.price-card__photo) { padding-inline: 8px; }
.price-card__kind { color: var(--accent); font-size: var(--step-small); }
.price-card h4 { font-family: var(--f-script); font-weight: 400; font-size: clamp(1.9rem, 1.2rem + 1.2vw, 2.5rem); line-height: 1.1; margin: 0; }
.price-card__how { color: var(--muted); font-size: var(--step-small); }
.price-card__price { margin-top: auto; padding-top: 10px; font-size: var(--step-lead); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.price-card__unit { font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.price-card__from { display: block; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.price-card__note { margin-top: 4px; font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.price-card__price.is-empty { font-weight: 400; font-style: italic; color: var(--muted); font-size: var(--step-body); }
/* each card settles in as it comes on screen (js/main.js arms the list, then adds .is-in to the card) */
@media (prefers-reduced-motion: no-preference) {
  .price-cards.is-armed .price-card { transition: opacity 600ms var(--settle), transform 600ms var(--settle); }
  .price-cards.is-armed .price-card:not(.is-in) { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 1280px) { .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pricing__intro { grid-column: 1 / 13; } }
@media (max-width: 560px) { .price-cards { grid-template-columns: minmax(0, 1fr); } .pricing__factors ul { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .offer__facts > div { grid-template-columns: minmax(0, 1fr); } }
.float--svc-a { width: clamp(110px, 11vw, 190px); right: -4vw; top: 1%; }
.float--svc-b { width: clamp(110px, 11vw, 190px); left: -3vw; bottom: 12%; }

/* ---------- 10. GALLERY (5): a sideways walk along the wall ---------- */
.gallery { padding-inline: 0; overflow-x: clip; }
.gallery .te-ready, .gallery h2 { color: var(--ink); }
.gallery__stage { display: flex; flex-direction: column; gap: 28px; }
.gallery__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; padding-inline: var(--margin); }
.gallery__head p { color: var(--muted); max-width: 36ch; }
.gallery__track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--margin); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); scrollbar-width: none; align-items: flex-start; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.piece { flex: 0 0 min(72vw, 24rem); scroll-snap-align: start; }
.piece:nth-child(even) { margin-top: clamp(24px, 4vw, 64px); }
.piece button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
.piece img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--ease-out); }
.piece p { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .piece button:hover img { transform: translateY(-8px); } }
/* under the gallery, all centred: the name and count, the arrows either side of the progress, then View larger and Instagram */
.gallery__foot { display: grid; justify-items: center; gap: 22px; width: 100%; max-width: calc(640px + 2 * var(--margin)); margin: 0 auto; padding-inline: var(--margin); text-align: center; }
.gallery__cap { display: grid; gap: 4px; min-width: 0; }
.gallery__cap[hidden], .gallery__view[hidden] { display: none; }
.gallery__now-text { margin: 0; font-family: var(--f-display); font-size: var(--step-lead); line-height: 1.25; text-wrap: balance; }
.gallery__count { font-size: var(--step-small); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.gallery__foot .gallery__nav { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 18px; width: 100%; }
.gallery__meter { height: 4px; border-radius: 4px; overflow: hidden; background: #E4DBD2; }
.gallery__meter span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.1); transition: transform .4s var(--ease-out); }
.gallery__acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 6px; }
.gallery__view { background: var(--ink); color: var(--bg); }
.gallery__ig { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 500; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .gallery__cap.is-new { animation: cap-in 420ms var(--settle) both; }
}
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } }
/* three.js wall (js/scenes.js) */
.gallery.has-3d .gallery__track { display: none; }
.gallery__3d { height: clamp(360px, 62svh, 640px); cursor: pointer; touch-action: pan-y; }
@media (max-width: 760px) { .gallery__3d { height: clamp(320px, 52svh, 520px); } }
.gallery__3d canvas { display: block; width: 100%; height: 100%; }

/* the lightbox */
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100svh; background: rgba(23, 15, 20, .96); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(23, 15, 20, .8); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox figure { display: grid; place-items: center; align-content: center; gap: 16px; padding: 64px var(--margin) 8px; min-height: 0; }
.lightbox img { max-height: calc(100svh - 190px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-family: var(--f-display); font-size: var(--step-lead); text-align: center; }
.lightbox__controls { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 0 28px; }
.lightbox__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(244, 236, 230, .12); color: var(--on-dark); cursor: pointer; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .lightbox__btn:hover { background: var(--accent); } }
.lightbox__close { position: fixed; top: 16px; right: 16px; }
#lbCount { min-width: 4em; text-align: center; font-size: var(--step-small); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] figure { animation: lb-open 500ms var(--settle) both; transform-origin: var(--lb-x, 50%) var(--lb-y, 50%); }
  .lightbox.is-closing figure { animation: lb-close 200ms var(--leave) both; }
  .lightbox.is-closing { opacity: 0; transition: opacity 200ms var(--leave); }
}
@keyframes lb-open { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes lb-close { to { opacity: 0; transform: scale(.9); } }

/* ---------- 11. ABOUT + RESERVE (6) ---------- */
/* About and Reserve as one calm block: the text, four round seals, then the three steps hanging like gift tags */
.tagwall { display: grid; justify-items: center; text-align: center; gap: clamp(24px, 3vw, 36px); }
.tagwall__text { max-width: 60ch; }
.tagwall__lead { font-size: var(--step-lead); line-height: 1.45; }
.tagwall__text p + p { margin-top: 16px; }
.seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.seals li { width: 128px; height: 128px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; padding: 10px; line-height: 1.25; }
.seals b { font-weight: 500; }
.seals span { font-size: var(--step-small); color: var(--muted); }
.reserve-tags { display: grid; justify-items: center; gap: 22px; width: 100%; margin-top: clamp(24px, 4vw, 56px); scroll-margin-top: calc(var(--header-h) + 24px); }
.reserve-tags__title { font-size: calc(var(--step-head) * .85); }
.tagline { position: relative; width: 100%; max-width: 900px; padding-top: 22px; }
.tagline__string { position: absolute; left: 0; top: 0; width: 100%; height: 30px; overflow: visible; }
.tagline__string path { fill: none; stroke: var(--muted); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: tag; }
.tags li { position: relative; display: grid; gap: 4px; justify-items: center; padding: 30px 18px 22px; background: #FFFDF9; border-radius: 12px 12px 16px 16px; transform-origin: 50% -16px; box-shadow: 0 16px 30px -22px rgba(60, 35, 30, .55); } /* taste-skill-ignore: a paper tag hanging off the wall */
.tags li::before { content: ""; position: absolute; top: 12px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--muted); } /* taste-skill-ignore: the tag's punched hole */
.tags li::after { content: ""; position: absolute; top: -18px; left: 50%; width: 1.4px; height: 32px; background: var(--muted); }
.tags img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; }
.tags b { font-weight: 500; font-size: var(--step-lead); }
.tags span { color: var(--muted); font-size: var(--step-small); }
.place { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: var(--step-small); }
.place li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: middle; }
/* the string is drawn, then each tag swings onto it and settles; js/main.js adds .is-hung when the steps come into view */
@media (prefers-reduced-motion: no-preference) {
  .js .tagline__string path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .tags li { opacity: 0; }
  .js .tagline.is-hung .tagline__string path { animation: string-draw 900ms var(--settle) forwards; }
  .js .tagline.is-hung .tags li { animation: tag-hang 1300ms both; }
  .js .tagline.is-hung .tags li:nth-child(1) { animation-delay: 500ms; }
  .js .tagline.is-hung .tags li:nth-child(2) { animation-delay: 650ms; }
  .js .tagline.is-hung .tags li:nth-child(3) { animation-delay: 800ms; }
}
/* the reservation form, on the same paper as the tags */
.request { width: 100%; max-width: 900px; margin-top: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.request__form, .request__done { background: #FFFDF9; border-radius: 20px; padding: clamp(24px, 4vw, 52px); }
.request__form { text-align: left; }
.request__form[hidden], .request__done[hidden] { display: none; }
.request__title { text-align: center; font-size: calc(var(--step-head) * .7); line-height: 1.1; margin-bottom: 26px; }
.request__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gap); }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 11px 16px; border: 1.5px solid #958590; border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.4 var(--f); -webkit-appearance: none; appearance: none; transition: border-color var(--t-hover) ease; }
.field select { padding-right: 46px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%236B5A65' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; }
.field textarea { min-height: 136px; resize: vertical; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A1201A; }
.field__error { margin-top: 6px; font-size: var(--step-small); line-height: 1.35; color: #A1201A; }
.field__error:empty, .request__status:empty { display: none; }
.request__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.request__foot p { color: var(--muted); font-size: var(--step-small); }
.request__foot .link { color: var(--ink); }
.request__foot .button[aria-disabled="true"] { opacity: .6; cursor: progress; }
.request__status { margin-top: 18px; color: #A1201A; }
.request__done { display: grid; justify-items: center; gap: 4px; text-align: center; }
.request__done:focus { outline: none; }
.request__done img { width: 112px; margin-bottom: 14px; }
.request__done .request__title { margin-bottom: 4px; }
.request__done p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }
/* sent: the flower is laid down on the paper, like a seal */
@media (prefers-reduced-motion: no-preference) {
  .request__done:not([hidden]) img { animation: request-seal var(--t-settle) var(--settle) both; }
}
@keyframes request-seal { from { opacity: 0; transform: translateY(-26px) rotate(-24deg) scale(1.25); } }
@media (max-width: 700px) {
  .request__grid { grid-template-columns: minmax(0, 1fr); }
  .request__foot .button { width: 100%; }
}
/* ---------- the order flow (js/order.js): choose, bag, delivery, review ---------- */
.order { width: 100%; max-width: 1000px; margin-top: 18px; text-align: left; scroll-margin-top: calc(var(--header-h) + 16px); }
.order__title { text-align: center; font-size: calc(var(--step-head) * .85); line-height: 1.1; }
.order__lead { max-width: 56ch; margin: 14px auto 0; text-align: center; }
html:not(.js) .order__app { display: none; }
.order__app { margin-top: 30px; background: #FFFDF9; border-radius: 20px; padding: clamp(20px, 3.5vw, 44px); }
.order__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.order__steps li { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: var(--step-small); transition: background-color .3s ease, color .3s ease; }
.order__steps li.is-done { color: var(--ink); }
.order__steps li[aria-current] { background: var(--ink); color: var(--bg); }
.order__view[hidden] { display: none; }
.order__h { font-size: calc(var(--step-head) * .6); line-height: 1.1; margin-bottom: 20px; }
.order__h:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .order__view.is-in { animation: view-in 480ms var(--settle) both; }
  .build__total strong.is-new { animation: total-in 360ms var(--settle) both; }
}
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes total-in { from { opacity: .3; transform: translateY(6px); } }

/* monthly places: five pressed flowers, the taken ones faded */
.places { display: grid; justify-items: center; gap: 6px; margin: 22px auto 0; max-width: 46ch; text-align: center; }
.places[hidden] { display: none; }
.places__marks { display: flex; gap: 10px; margin-bottom: 6px; }
.places__marks span { width: 34px; height: 34px; background: url("../assets/img/flowers/anemone-360.webp") center / contain no-repeat; transition: opacity .4s ease, filter .4s ease, transform .5s var(--settle); }
.places__marks span.is-taken { opacity: .28; filter: grayscale(1); transform: scale(.82); }
.places__text { font-size: var(--step-lead); line-height: 1.3; }
.places__text strong { font-weight: 600; }
.places.is-full .places__text strong { color: var(--accent); }
.places__why { color: var(--muted); font-size: var(--step-small); }
.schedule { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface); }
.schedule[hidden] { display: none; }

/* choose: the picture beside the options, the total kept in view at the bottom */
.build { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(20px, 4vw, 48px); align-items: start; }
.build__pic { position: sticky; top: calc(var(--header-h) + 20px); margin: 0; display: grid; gap: 10px; }
.build__pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.build__pic figcaption { font-size: var(--step-small); color: var(--muted); font-style: italic; }
.build__opts { display: grid; gap: 26px; min-width: 0; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.opt__list { display: grid; gap: 8px; }
.opt__list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 56px; padding: 10px 16px; border-radius: 12px; background: var(--surface); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform var(--t-press) var(--leave); }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick:active { transform: scale(.985); }
.pick__name { font-weight: 500; line-height: 1.25; }
.pick__dims { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.pick__price { font-size: var(--step-small); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.pick:has(input:checked) { background: var(--ink); color: var(--bg); }
.pick:has(input:checked) .pick__dims { color: var(--on-dark-soft); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pick:hover:not(:has(input:checked)) { background: var(--tile); } }
.pick--piece { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 8px 16px 8px 8px; }
.pick--piece img { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; }
.build__bar { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-inline: calc(clamp(20px, 3.5vw, 44px) * -1); padding: 14px clamp(20px, 3.5vw, 44px) calc(14px + env(safe-area-inset-bottom, 0px)); background: #FFFDF9; border-radius: 0 0 20px 20px; }
.build__total { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 0 10px; margin: 0; }
.build__total span { color: var(--muted); font-size: var(--step-small); }
.build__total strong { font-size: var(--step-lead); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; display: inline-block; }
.build__total small { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }
html.order-in-view .pagebar { transform: translateY(100%); visibility: hidden; }

/* the bag */
.bag { display: grid; gap: 12px; }
.bag__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface); }
.bag__item img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.bag__name { font-weight: 600; line-height: 1.3; }
.bag__opts { margin-top: 4px; font-size: var(--step-small); color: var(--muted); line-height: 1.45; }
.bag__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; }
.bag__price { font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.bag__empty { padding: 20px; text-align: center; color: var(--muted); }
.bag__edit { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; font: inherit; font-size: var(--step-small); }
.qty { display: inline-flex; align-items: center; gap: 4px; background: #FFFDF9; border-radius: 999px; padding: 2px; }
.qty__btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font: 500 1.25rem/1 var(--f); cursor: pointer; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .qty__btn:hover { background: var(--surface); } }
.qty__n { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; }

/* totals, steps, review */
.sum { display: grid; gap: 6px; margin-top: 22px; max-width: 420px; margin-left: auto; }
.sum p { display: flex; justify-content: space-between; gap: 16px; }
.sum strong { font-variant-numeric: lining-nums tabular-nums; }
.sum__total { padding-top: 6px; font-size: var(--step-lead); }
.sum__note { color: var(--muted); font-size: var(--step-small); justify-content: flex-end !important; }
.order__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; }
.order__nav .button[disabled] { opacity: .4; cursor: default; }
.delivery .opt { margin: 0; }
.review { display: grid; gap: 14px; }
.review__block { padding: 16px; border-radius: 14px; background: var(--surface); }
.review__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 4px; }
.review__head .link { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; font: inherit; font-weight: 400; font-size: var(--step-small); }
.review__items { display: grid; gap: 10px; }
.review__items li { display: flex; justify-content: space-between; gap: 16px; }
.review__items small { color: var(--muted); font-size: var(--step-small); }
.review__notice { margin-top: 18px; font-style: italic; }
.order__done { display: grid; justify-items: center; text-align: center; gap: 6px; }
.order__done img { width: 104px; margin-bottom: 10px; }
.order__done p { max-width: 46ch; margin-bottom: 18px; }
.order__quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 26px; text-align: center; }
.js [data-quote]:not(.is-open) { display: none; }
.price-card__go { align-self: start; margin-top: 4px; min-height: 44px; display: inline-flex; align-items: center; font-size: var(--step-small); }
@media (max-width: 760px) {
  .build { grid-template-columns: minmax(0, 1fr); }
  .build__pic { position: static; grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
  .build__pic img { width: 96px; }
  .order__nav .button { flex: 1 1 auto; }
  .order__steps { gap: 6px; }
  .order__steps li { padding: 0 12px; }
  .build__bar { flex-wrap: nowrap; }
  .build__bar .button { min-height: 52px; padding: 0 22px; flex: none; }
  .build__total small { font-size: .875rem; }
  .build__total span { white-space: nowrap; }
}
@media (max-width: 420px) {
  .order__steps li { padding: 0 10px; font-size: .9375rem; }
  .order__steps [data-bag-count] { display: none; }
}
@keyframes string-draw { to { stroke-dashoffset: 0; } }
@keyframes tag-hang {
  0% { opacity: 0; transform: translateY(-16px) rotate(-4deg); animation-timing-function: var(--settle); }
  45% { opacity: 1; transform: rotate(2deg); animation-timing-function: ease-in-out; }
  75% { transform: rotate(-.8deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .seals li { width: 112px; height: 112px; }
  .tags { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin: 0 auto; }
  .tagline__string, .tags li::after, .tags li::before { display: none; }
  .tags li { grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; justify-items: start; text-align: left; padding: 14px 18px; }
  .tags img { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; align-self: center; }
  .tagline { padding-top: 0; }
}

/* ---------- 12. FOOTER ---------- */
.footer { position: relative; z-index: 1; display: grid; gap: 56px; background: var(--field-1); color: var(--on-dark-soft); padding: 96px var(--margin) 28px; font-size: var(--step-small); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 36px var(--gap); }
.footer__name { font-family: var(--f-script); font-size: 2.75rem; color: var(--on-dark); line-height: 1.1; }
.footer__name span { font-family: var(--f); font-style: italic; font-size: var(--step-small); color: var(--on-dark-soft); }
.footer__brand p + p { margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.footer__lead { color: var(--on-dark); margin-bottom: 8px; font-weight: 500; letter-spacing: .02em; }
.footer a { color: var(--on-dark-soft); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: .25em; } }
.footer li.placeholder { display: inline-block; margin: 10px 0; }
.footer .placeholder { color: #F0D9A8; background: rgba(240, 217, 168, .12); }

/* the name slides in from the sides: keep that inside the page on the smallest phones */
.footer__mark { overflow-x: clip; }
.footer__legal { border-top: 0; }

/* ---------- 13. PAGE BAR (phones) ---------- */
.pagebar { display: none; }

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .services__head h2, .services__head p { grid-column: 1 / 13; }
  .services__head p { margin-top: 20px; }
  .process__stage { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sarah__text, .sarah__frame { grid-column: 1 / 13; }
  .sarah__frame { margin-top: 56px; max-width: 420px; }
}
@media (max-width: 900px) and (orientation: portrait) {
  .hero__stage { grid-template-columns: 1fr; align-content: end; gap: 32px; }
  .hero__photo { object-position: 88% 0%; }
  .hero__bg::after { background: linear-gradient(0deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 90%, transparent) 38%, color-mix(in oklab, var(--bg) 40%, transparent) 56%, transparent 70%); } /* taste-skill-ignore: scrim over the hero photo */
  .hero__frame { grid-column: 1; grid-row: 1; width: min(62vw, 400px); justify-self: center; }
  .hero__words { grid-column: 1; grid-row: 2; }
  .hero__name { font-size: 20vw; }
  .float--hero-a { top: auto; bottom: 30%; left: auto; right: -8vw; width: 26vw; }
  .float--hero-b { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); color: var(--ink); padding: 24px var(--margin); visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s; }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-family: var(--f-display); font-size: var(--step-head); min-height: 64px; padding: 0; }
  .menu-button { display: none; }
  .header__action { display: inline-flex; }
  .wordmark { font-size: 1.5rem; }

  .page { min-height: 0; }
  .float--sarah-b, .float--svc-b { display: none; }
  .offer__img, .offer--flip .offer__img, .offer__body, .offer--flip .offer__body { grid-column: 1 / 13; grid-row: auto; }
  .offer__body { margin-top: 28px; }
  .offer__styles dl { grid-template-columns: 1fr; }

  .process__stage { grid-template-columns: 1fr; align-content: start; gap: 16px; }
  .process__steps { display: none; }
  .process__meter { margin-top: 14px; max-width: none; }
  .process__text h2 { font-size: 3.1rem; max-width: none; }
  .pstep__text p { margin-top: 8px; font-size: 1rem; }


  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .pagebar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--surface); transition: transform 350ms var(--ease-out), visibility 0s;
    padding: 0 max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
  }
  .pagebar a { display: grid; justify-items: center; align-content: end; min-height: 64px; padding: 0 2px 13px; color: var(--muted); text-decoration: none; font-size: 1.0625rem; line-height: 1.1; -webkit-tap-highlight-color: transparent; transition: color 200ms ease, transform var(--t-press) var(--leave); }
  .pagebar a:active { transform: scale(.96); }
  .pagebar a:focus-visible { outline-offset: -3px; border-radius: 12px; }
  .pagebar a[aria-current] { color: var(--ink); font-weight: 600; }
  .pagebar__flower { position: absolute; left: 0; top: 5px; width: 28px; height: 28px; margin-left: -14px; pointer-events: none; opacity: 0; transform: translateX(var(--x, 0px)) rotate(var(--r, 0deg)); transition: transform var(--t-settle) var(--settle), opacity 250ms ease; }
  .pagebar__flower.is-on { opacity: 1; }
  .pagebar.is-away { transform: translateY(100%); visibility: hidden; transition: transform 350ms var(--ease-out), visibility 0s 350ms; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero__name { font-size: 3.75rem; } .hero__by { font-size: 1.5rem; } .hero__lead { display: none; }
  .hero__frame { grid-column: 9 / 13; } .hero .frame-css { aspect-ratio: 1 / 1; }
  .float--hero-b { display: none; }
  .page { min-height: 0; }
}

/* ---------- 15. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* reveals still happen, as a plain 200ms fade with no movement */
  .settle-on .page__inner > *, .te-seg { transition: opacity 200ms ease !important; transform: none !important; filter: none !important; }
  .settle-on .page:not(.is-settled) .page__inner > *, .te-ready:not(.te-in) .te-seg { opacity: 0; }
}
