/* tokens.css */
/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-var-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
/* Metric-matched fallbacks so the swap doesn't reflow text (width ratios measured in Chrome) */
@font-face { font-family: "KD Serif Fallback"; src: local("Times New Roman"), local("Times"); size-adjust: 82%; }
@font-face { font-family: "KD Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 95.4%; }

/* ---------- Tokens (read from the Figma frames, 1440 px wide) ---------- */
:root {
  --cream: #F2EDDF;
  --magenta: #B40069;      /* hero rule, hamburger, footer rule */
  --k-stroke: #B0167F;
  --plum: #48284B;         /* footer, headings */
  --ink: #000;
  --placeholder: #D9D9D9;
  --cream-ink: #F2EDDF;    /* text on plum */

  --serif: "Instrument Serif", "KD Serif Fallback", "Times New Roman", serif;
  --sans: "Jost", "KD Sans Fallback", Arial, sans-serif;

  /* Design unit: 1px at >= 1440 wide, scales down linearly to the tablet breakpoint.
     Uses the page container width (cqw) so a desktop scrollbar never causes overflow. */
  --u: min(1px, 100cqw / 1440);
  /* Viewport-based unit for fixed elements (outside the page container). */
  --vu: min(1px, 100vw / 1440);

  --radius-card: 9px;
  --radius-input: 6px;
  --radius-popup: 17px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms;
  --t-med: 600ms;

  --gutter: 16px;
}

/* base.css */
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--cream); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--plum); line-height: 1.05; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

.page { container-type: inline-size; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100; padding: 10px 16px;
  background: var(--plum); color: var(--cream); text-decoration: none; border-radius: 6px;
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: none; }

/* Placeholder for images that are not delivered yet: same box as the photo will fill */
.ph { display: block; width: 100%; height: 100%; background: var(--placeholder); }
.fill { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-grid; place-items: center; border: 0; text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  will-change: transform;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(72, 40, 75, .55); }
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

.text-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--t-fast) var(--ease); }
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; }

/* header.css */
/* ---------- Hamburger (design: 3 bars 86x8, gap 6.5, right 75, top 42 at 1440) ---------- */
.menu-btn {
  --bw: max(36px, calc(86 * var(--vu)));
  --bh: max(4px, calc(8 * var(--vu)));
  --bg: max(5px, calc(6.5 * var(--vu)));
  --pad: 10px;
  position: fixed; z-index: 30;
  top: calc(max(14px, 42 * var(--vu)) - var(--pad));
  right: calc(max(16px, 75 * var(--vu)) - var(--pad));
  display: grid; gap: var(--bg); padding: var(--pad);
  background: transparent; border: 0; border-radius: 12px;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.menu-btn__bar {
  display: block; width: var(--bw); height: var(--bh); background: var(--magenta); border-radius: 0;
  transition: transform var(--t-fast) var(--ease);
}
@media (hover: hover) {
  .menu-btn:hover .menu-btn__bar:nth-child(1) { transform: translateX(-4px); }
  .menu-btn:hover .menu-btn__bar:nth-child(3) { transform: translateX(4px); }
}
.menu-btn:active { transform: scale(.96); }
/* Once the page scrolls, give the button a cream backing so it stays visible over photos and the plum footer */
.is-scrolled .menu-btn { background: rgba(242, 237, 223, .94); box-shadow: 0 6px 20px -12px rgba(72, 40, 75, .6); }

/* ---------- Menu (full-screen <dialog>) ---------- */
.menu {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--cream); color: var(--plum);
}
.menu::backdrop { background: var(--cream); }
.menu[open] { display: grid; grid-template-rows: 1fr auto; }
.menu__close {
  position: absolute; top: calc(max(14px, 42 * var(--vu)) - 10px); right: calc(max(16px, 75 * var(--vu)) - 10px);
  width: calc(max(36px, 86 * var(--vu)) + 20px); height: calc(max(36px, 86 * var(--vu)) * .45 + 20px);
  background: none; border: 0; padding: 0; border-radius: 12px;
}
.menu__close::before, .menu__close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(56px, 70%); height: max(4px, calc(8 * var(--vu)));
  background: var(--magenta); transform: translate(-50%, -50%) rotate(45deg);
}
.menu__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.menu__nav { align-self: center; padding: 96px clamp(24px, 9vw, 140px) 24px; overflow-y: auto; max-height: 100%; }
.menu__list, .menu__sub { list-style: none; margin: 0; padding: 0; }
.menu__list > li + li { margin-top: clamp(4px, 1vh, 12px); }
.menu__link {
  font-family: var(--serif); font-size: clamp(40px, 5.2vw, 76px); line-height: 1.1; color: var(--plum);
  text-decoration: none; display: inline-block; transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.menu__link:hover, .menu__link:focus-visible { color: var(--magenta); transform: translateX(6px); }
.menu__link[aria-current="page"] { color: var(--magenta); }
.menu__sub { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 4px 0 10px 4px; }
.menu__sublink { font-size: clamp(16px, 1.4vw, 20px); letter-spacing: .04em; text-decoration: none; color: var(--plum); }
.menu__sublink:hover, .menu__sublink:focus-visible { color: var(--magenta); }
.menu__foot {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between;
  padding: 20px clamp(24px, 9vw, 140px) 28px; border-top: 4px solid var(--magenta);
  font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
}
.menu__signup { background: none; border: 0; padding: 0; color: var(--plum); text-transform: uppercase; letter-spacing: .08em; }
.menu__signup:hover, .menu__signup:focus-visible { color: var(--magenta); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: menu-in 260ms var(--ease); }
  @keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
  .menu[open] .menu__list > li { animation: menu-item-in 420ms var(--ease) both; }
  .menu[open] .menu__list > li:nth-child(2) { animation-delay: 40ms; }
  .menu[open] .menu__list > li:nth-child(3) { animation-delay: 80ms; }
  .menu[open] .menu__list > li:nth-child(4) { animation-delay: 120ms; }
  .menu[open] .menu__list > li:nth-child(5) { animation-delay: 160ms; }
  @keyframes menu-item-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* hero.css */
/* ---------- Hero (video + inline K; files in /hero/, unchanged) ----------
   The hero box keeps the 1440 x 1080 artboard ratio and is sized to fit the screen:
   height = min(viewport height, 3/4 of the page width). When it is narrower than the page,
   the cream and the baked-in 8 px rule continue to both screen edges through two 1 px canvas
   strips that copy the hero's own outer pixel columns (see hero.js). The gradient below is the
   no-JS fallback (rule at y 920-928 of 1080 = 85.185% - 85.926%). */
.hero-band {
  --hh: min(100svh, 75cqw);
  position: relative; height: var(--hh); overflow: hidden;
  background: linear-gradient(to bottom, var(--cream) 85.1852%, var(--magenta) 85.1852% 85.9259%, var(--cream) 85.9259%);
}
@supports not (height: 100svh) { .hero-band { --hh: min(100vh, 75cqw); } }
/* Each engine resamples video, images and canvas slightly differently, so the hero's outer 40 px
   cross-fade into the strip beneath: whatever difference is left becomes a smooth blend, never a step. */
.hero-band { --fade: 40px; }
.hero-strip { position: absolute; top: 0; height: 100%; width: calc(50% - var(--hh) * 2 / 3 + var(--fade) + 2px); image-rendering: auto; }
.hero-strip--l { left: 0; }
.hero-strip--r { right: 0; }

.kd-hero { position: relative; height: 100%; aspect-ratio: 1440 / 1080; max-width: 100%; margin-inline: auto; overflow: hidden; }
.js .kd-hero {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.kd-hero__poster, .kd-hero__poster img, .kd-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.kd-hero__poster img, .kd-hero__video { object-fit: cover; }
/* K: Figma origin (426, 165), 588 x 634 in the 1440 x 1080 hero */
.kd-hero__k { position: absolute; left: 29.5833%; top: 15.2778%; width: 40.8333%; height: auto; max-width: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .kd-hero__video { display: none; } }

/* home.css */
/* ---------- Home: row of three + View More (landing frame: cards 369x523 at x 127/535/943, 29 below hero) ---------- */
.featured { padding: calc(29 * var(--u)) 0 calc(235 * var(--u)); }
.featured__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, calc(369 * var(--u))); gap: calc(39 * var(--u)); justify-content: center;
}
.card {
  display: block; position: relative; aspect-ratio: 369 / 523; border-radius: calc(9 * var(--u)); overflow: hidden;
  background: var(--placeholder); text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.card picture, .card img { width: 100%; height: 100%; }
.card img { object-fit: cover; transition: transform 700ms var(--ease); }
@media (hover: hover) {
  a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(72, 40, 75, .7); }
  a.card:hover img { transform: scale(1.025); }
}
a.card:active { transform: scale(.99); }

.view-more {
  display: grid; place-items: center; margin: calc(59 * var(--u)) auto 0;
  width: calc(315 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(9 * var(--u));
  background: var(--placeholder); color: var(--plum);
  font: 400 calc(56 * var(--u)) / 1 var(--serif); text-decoration: none;
  padding-top: 0;
}
.view-more:hover { background-color: #d2cfd0; }

@media (max-width: 760px) {
  .featured { padding: 24px var(--gutter) 120px; }
  .featured__grid { grid-template-columns: minmax(0, 420px); gap: 24px; }
  .card { border-radius: 9px; }
  .view-more { width: 315px; max-width: 100%; height: 64px; border-radius: 9px; font-size: 56px; margin-top: 40px; padding-top: 0; }
}

/* about.css */
/* ---------- About (about frame: photo 784x652 at 656,161 bleeding right; "About" 88 px at x 97;
   rose 790x1321 at 0,292 behind; Portfolio title ends x 1325; cards 369x523 at x 113/552/991, y 1036) ---------- */
.about-intro { position: relative; min-height: calc(813 * var(--u)); }
.about-intro__grid { position: relative; z-index: 1; }
.about-intro__text { padding: calc(262 * var(--u)) 0 0 calc(97 * var(--u)); max-width: calc(600 * var(--u)); }
.about-intro__title { font-size: calc(88 * var(--u)); line-height: 1; letter-spacing: -.005em; }
.about-intro__body { margin-top: calc(39 * var(--u)); font-size: calc(24 * var(--u)); line-height: 1.45; letter-spacing: .04em; color: var(--ink); }
.about-intro__body + .about-intro__body { margin-top: .8em; }
.about-intro__photo {
  position: absolute; z-index: 1; right: 0; top: calc(161 * var(--u));
  width: calc(784 * var(--u)); aspect-ratio: 784 / 652; background: var(--placeholder); overflow: hidden;
}
.about-intro__photo picture, .about-intro__photo img { width: 100%; height: 100%; }
.about-intro__photo img { object-fit: cover; }

.about-rose { position: absolute; z-index: 0; left: -12px; top: calc(292 * var(--u)); width: calc(790.5 * var(--u)); pointer-events: none; }
/* pivot = the cut end of the main stem (PNG 73, 2232 of 1581 x 2642) */
.about-rose__sway { transform-origin: 4.6% 84.5%; will-change: transform; }
.about-rose img { width: 100%; height: auto; }

/* ---------- Portfolio track ---------- */
.pf { position: relative; z-index: 1; padding: calc(143 * var(--u)) 0 calc(344 * var(--u)); }
.pf__wrap { position: relative; }
.pf__title {
  text-align: right; padding-right: calc(114 * var(--u)); margin-bottom: calc(34 * var(--u));
  color: var(--ink); font-size: calc(46 * var(--u)); letter-spacing: 0; line-height: 1;
}
.pf__viewport { margin-left: calc(113 * var(--u)); width: calc(1247 * var(--u)); overflow: hidden; border-radius: calc(9 * var(--u)); }
.pf__track {
  list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc(369 * var(--u));
  gap: calc(70 * var(--u)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pf__track::-webkit-scrollbar { display: none; }
.pf__item { scroll-snap-align: start; }
.pf__card { width: 100%; border: 0; padding: 0; cursor: zoom-in; }
.pf__arrow {
  position: absolute; z-index: 2; top: calc((1271 - 1036 + 80) * var(--u));
  width: calc(85 * var(--u)); height: calc(85 * var(--u)); min-width: 48px; min-height: 48px;
  border: 0; border-radius: 50%; background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.pf__arrow svg { width: 66%; height: auto; transition: transform var(--t-fast) var(--ease); }
.pf__arrow--next { left: calc(1310 * var(--u)); }
.pf__arrow--prev { left: calc(78 * var(--u)); }
.pf__arrow--prev svg { transform: scaleX(-1); }
@media (hover: hover) {
  .pf__arrow:hover { background: var(--plum); }
  .pf__arrow--next:hover svg { transform: translateX(3px); }
  .pf__arrow--prev:hover svg { transform: scaleX(-1) translateX(3px); }
}
.pf__arrow:active { transform: scale(.95); }
.pf__arrow[hidden] { display: none; }

@media (max-width: 760px) {
  .about-intro { min-height: 0; padding-bottom: 8px; }
  .about-intro__text { padding: 104px var(--gutter) 0; max-width: none; }
  .about-intro__title { font-size: 64px; }
  .about-intro__body { margin-top: 20px; font-size: 18px; letter-spacing: .02em; }
  .about-intro__photo { position: relative; top: auto; right: auto; width: 100%; margin-top: 32px; }
  .about-rose { width: 330px; left: -40px; top: auto; bottom: -430px; }
  .pf { padding: 120px 0 140px; }
  .pf__title { font-size: 40px; padding-right: var(--gutter); margin-bottom: 24px; }
  .pf__viewport { margin-left: 0; width: 100%; border-radius: 0; }
  .pf__track { grid-auto-columns: 78vw; gap: 16px; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .pf__arrow { width: 56px; height: 56px; top: calc(110px + 39vw); }
  .pf__arrow--next { left: auto; right: 10px; }
  .pf__arrow--prev { left: 10px; }
}

/* lightbox.css */
/* ---------- Portfolio lightbox (<dialog>) ---------- */
.lb {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(38, 18, 40, .96); color: var(--cream); overflow: hidden;
}
.lb::backdrop { background: rgba(38, 18, 40, .6); }
.lb__stage { position: absolute; inset: 0; display: grid; padding: 72px 136px 40px; touch-action: pan-y; }
.lb__slide { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; justify-items: center; }
.lb__slide[hidden] { display: none; }
.lb__media { min-height: 0; height: 100%; width: 100%; display: grid; place-items: center; }
.lb__media picture { display: contents; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb__media .ph { height: 100%; width: auto; max-width: 100%; aspect-ratio: 369 / 523; border-radius: 9px; }
.lb__cap { text-align: center; max-width: 62ch; }
.lb__title { color: var(--cream); font-size: clamp(28px, 2.6vw, 38px); }
.lb__note { margin-top: 6px; font-size: 17px; line-height: 1.55; opacity: .85; }
.lb__count { position: absolute; left: 28px; top: 24px; font-size: 14px; letter-spacing: .14em; opacity: .75; }
.lb__nav, .lb__close {
  position: absolute; z-index: 2; border: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--plum);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.lb__nav { top: 50%; width: 68px; height: 68px; margin-top: -34px; }
.lb__nav svg { width: 62%; }
.lb__nav--prev { left: 34px; }
.lb__nav--prev svg { transform: scaleX(-1); }
.lb__nav--next { right: 34px; }
.lb__close { top: 16px; right: 18px; width: 48px; height: 48px; }
.lb__close svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .lb__nav:hover, .lb__close:hover { background: #fff; }
  .lb__nav--next:hover { transform: translateX(3px); }
  .lb__nav--prev:hover { transform: translateX(-3px); }
  .lb__close:hover { transform: rotate(90deg); }
}
.lb__nav:active { transform: scale(.94); }
@media (prefers-reduced-motion: no-preference) {
  .lb[open] { animation: fade-in 260ms var(--ease); }
  .lb__slide.is-entering { animation: lb-in 320ms var(--ease); }
  @keyframes lb-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .lb__stage { padding: 64px 16px 92px; }
  .lb__nav { top: auto; bottom: 18px; margin-top: 0; width: 56px; height: 56px; }
  .lb__nav--prev { left: calc(50% - 72px); }
  .lb__nav--next { right: calc(50% - 72px); }
}

/* shop.css */
/* ---------- Shop (shop frame: carnation 778x887 at 349,0 behind; "Art"  "Shop" 90 px, centred with
   the flower between; cards 369x523 at x 110/549/988 (gap 70), rows y 404 / 1051; labels 28 px) ---------- */
.shop { position: relative; padding: calc(239 * var(--u)) 0 calc(416 * var(--u)); }
.shop__flower { position: absolute; z-index: 0; top: 0; left: 50%; margin-left: calc((349 - 720) * var(--u)); width: calc(778 * var(--u)); pointer-events: none; }
.shop__flower img { width: 100%; height: auto; }
.shop__wrap { position: relative; z-index: 1; }
.shop__title {
  display: flex; justify-content: center; gap: calc(238 * var(--u)); margin-left: 0;
  font-size: calc(90 * var(--u)); line-height: 1; letter-spacing: .05em;
}
.shop__grid {
  list-style: none; margin: calc(76 * var(--u)) 0 0; padding: 0 0 0 calc(110 * var(--u));
  display: grid; grid-template-columns: repeat(3, calc(369 * var(--u))); column-gap: calc(70 * var(--u));
}
.shop__grid--more { margin-top: calc(75 * var(--u)); }
.shop-card { display: grid; align-content: start; }
.shop-card__label { margin-top: calc(14 * var(--u)); text-align: center; font-size: calc(28 * var(--u)); letter-spacing: -.03em; line-height: 1.2; }
.shop-card__label a { text-decoration: none; color: var(--plum); background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size var(--t-fast) var(--ease); }
.shop-card:hover .shop-card__label a, .shop-card__label a:focus-visible { background-size: 100% 1px; }
@media (hover: hover) {
  .shop-card:hover a.card { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(72, 40, 75, .7); }
  .shop-card:hover a.card img { transform: scale(1.025); }
}

@media (max-width: 760px) {
  .shop { padding: 120px var(--gutter) 120px; }
  .shop__flower { width: 82vw; left: 9vw; margin-left: 0; top: 0; }
  .shop__title { font-size: 64px; gap: 30vw; margin-left: 0; }
  .shop__grid { grid-template-columns: minmax(0, 420px); justify-content: center; row-gap: 32px; padding: 0; margin-top: 64px; }
  .shop__grid--more { margin-top: 32px; }
  .shop-card__label { font-size: 28px; margin-top: 12px; }
}

/* ---------- Product pages (no Figma frame: built from the site's own parts) ---------- */
.product { padding: calc(150 * var(--u)) 0 calc(200 * var(--u)); }
.product__wrap { padding-inline: calc(110 * var(--u)); }
.product__crumbs { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); margin-bottom: calc(40 * var(--u)); }
.product__crumbs a { text-decoration: none; }
.product__grid { display: grid; grid-template-columns: calc(640 * var(--u)) 1fr; gap: calc(90 * var(--u)); align-items: start; }
.product__gallery { display: grid; gap: calc(24 * var(--u)); }
.product__main, .product__thumb { aspect-ratio: 369 / 523; }
.product__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: calc(24 * var(--u)); }
.product__info { position: sticky; top: 110px; padding-top: calc(10 * var(--u)); }
.product__title { font-size: calc(88 * var(--u)); line-height: 1; }
.product__intro { margin-top: 28px; font-size: 20px; line-height: 1.6; max-width: 34ch; letter-spacing: .02em; }
.product__details { margin: 24px 0 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; color: var(--plum); }
.product__details li { padding: 10px 0; border-top: 1px solid rgba(72, 40, 75, .18); }
.product__details li:last-child { border-bottom: 1px solid rgba(72, 40, 75, .18); }

/* Buy Button slot: reserved height so the Shopify widget never shifts the page */
.buy { margin-top: 36px; min-height: 150px; }
.buy__btn {
  display: inline-grid; place-items: center; min-width: 260px; height: 64px; padding: 0 28px; border-radius: 9px;
  background: var(--placeholder); color: var(--plum); font: 400 32px/1 var(--serif); cursor: not-allowed;
}
.buy__note { margin-top: 14px; font-size: 15px; line-height: 1.5; max-width: 36ch; }
.buy__signup { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--magenta); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.buy[data-loading] .buy__mount { min-height: 150px; border-radius: 9px; background: linear-gradient(90deg, rgba(217,217,217,.5), rgba(217,217,217,.9), rgba(217,217,217,.5)) 0 0 / 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .buy[data-loading] .buy__mount { animation: shimmer 1.4s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } } }
/* Shopify Buy Button JS renders in-page (iframe: false); these classes are its markup */
.buy .shopify-buy__product { max-width: 420px; }
.buy .shopify-buy__product__price { font: 400 30px/1.2 var(--serif); color: var(--plum); margin: 0 0 14px; }
.buy .shopify-buy__product__compare-price { opacity: .6; text-decoration: line-through; margin-left: 8px; }
.buy .shopify-buy__option-select { margin-bottom: 12px; }
.buy .shopify-buy__option-select__label { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; color: var(--plum); }
.buy .shopify-buy__option-select__select, .buy .shopify-buy__quantity { height: 48px; border: 1px solid rgba(72, 40, 75, .35); border-radius: 6px; background: var(--cream); color: var(--plum); padding: 0 12px; font: 400 16px var(--sans); }
.buy .shopify-buy__btn {
  display: inline-grid; place-items: center; min-width: 260px; height: 64px; padding: 0 28px; border: 0; border-radius: 9px;
  background: var(--magenta); color: var(--cream); font: 400 30px/1 var(--serif); cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.buy .shopify-buy__btn:hover { background: #9c005b; transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(72, 40, 75, .55); }
.buy .shopify-buy__btn:active { transform: scale(.98); }
.buy .shopify-buy__btn[disabled] { background: var(--placeholder); color: var(--plum); cursor: not-allowed; }
.buy .shopify-buy__collection-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.buy .shopify-buy__product-img-wrapper img { border-radius: 9px; width: 100%; }
.buy .shopify-buy__product__title { font: 400 24px/1.2 var(--serif); color: var(--plum); margin: 10px 0 4px; }
.buy .shopify-buy__btn-wrapper { margin-top: 12px; }

.product__more { margin-top: calc(160 * var(--u)); }
.product__more-title { font-size: calc(56 * var(--u)); text-align: center; }
.shop__grid--small { grid-template-columns: repeat(2, calc(300 * var(--u))); justify-content: center; padding: 0; column-gap: calc(70 * var(--u)); margin-top: calc(48 * var(--u)); }

@media (max-width: 900px) {
  .product { padding: 110px var(--gutter) 120px; }
  .product__wrap { padding-inline: 0; }
  .product__crumbs { margin-bottom: 20px; }
  .product__grid { grid-template-columns: 1fr; gap: 32px; }
  .product__info { position: static; }
  .product__title { font-size: 56px; }
  .product__more { margin-top: 90px; }
  .product__more-title { font-size: 40px; }
  .shop__grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin-top: 24px; }
  .shop__grid--small .shop-card__label { font-size: 22px; }
}

/* footer.css */
/* ---------- Footer (landing frame: 4 px magenta rule at y 1990, plum from 1994, "Get in touch" 90 px at x 140) ---------- */
.site-footer {
  position: relative; background: var(--plum); color: var(--cream-ink);
  border-top: 4px solid var(--magenta);
  overflow: clip visible; /* flower may peek above the rule, never widens the page */
}
@supports not (overflow: clip) { .site-footer { overflow: hidden; } }
.site-footer__inner { position: relative; z-index: 1; padding: calc(75 * var(--u)) calc(147 * var(--u)) 40px; }
.site-footer__title { color: var(--cream-ink); font-size: calc(90 * var(--u)); letter-spacing: .01em; line-height: 1.1; }
.site-footer__cols {
  display: grid; grid-template-columns: 1.1fr .8fr 1.3fr; gap: 48px calc(80 * var(--u));
  margin-top: calc(120 * var(--u)); max-width: 1000px;
}
.site-footer__cols h3 { font: 400 15px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-ink); margin-bottom: 14px; opacity: .8; }
.site-footer p { font-size: 17px; line-height: 1.6; max-width: 34ch; }
.site-footer__email { display: inline-block; margin-top: 14px; font: 400 26px/1.2 var(--serif); color: var(--cream-ink); }
.site-footer__email[aria-disabled="true"] { opacity: .7; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 17px; }
.site-footer__links a { color: var(--cream-ink); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(242, 237, 223, .25);
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.socials a, .socials span { color: inherit; }
.socials span { opacity: .7; }
.site-footer__copy { opacity: .75; }

/* Flower peeking in from the right edge (carnation art from the Shop frame) */
.footer-flower {
  position: absolute; z-index: 0; pointer-events: none;
  width: calc(430 * var(--u)); right: calc(-118 * var(--u)); top: calc(-150 * var(--u));
  transform: rotate(-14deg); transform-origin: 63% 100%;
}
.footer-flower__sway { transform-origin: 63% 99%; will-change: transform; }
/* rose variant (shop pages): mirrored so the cut stem comes in from the right edge */
.footer-flower--rose { width: calc(380 * var(--u)); right: calc(-40 * var(--u)); top: calc(-300 * var(--u)); transform: scaleX(-1) rotate(-6deg); transform-origin: 50% 85%; }
.footer-flower img { width: 100%; height: auto; }

@media (max-width: 1100px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__signup-col { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 760px) {
  .site-footer__inner { padding: 56px var(--gutter) 32px; }
  .site-footer__title { font-size: 56px; }
  .site-footer__cols { grid-template-columns: 1fr; margin-top: 40px; gap: 36px; }
  .site-footer__signup-col { grid-column: auto; }
  .footer-flower { width: 210px; right: -64px; top: -96px; }
  .footer-flower--rose { width: 190px; right: -30px; top: -150px; }
}

/* signup.css */
/* ---------- Sign-up form (footer + popup) ---------- */
.signup { position: relative; }
.signup__field { position: relative; display: block; }
.signup__input {
  width: 100%; height: 53px; border: 0; border-radius: var(--radius-input);
  background: var(--placeholder); color: var(--plum);
  padding: 0 60px 0 18px; font: 400 18px/1 var(--sans); letter-spacing: .02em;
  transition: box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.signup__input::placeholder { color: rgba(72, 40, 75, .55); }
.signup__input:focus { outline: none; box-shadow: 0 0 0 2px var(--magenta); background: #e2e0e0; }
.signup__input[aria-invalid="true"] { box-shadow: 0 0 0 2px #c0392b; }
.signup__submit {
  position: absolute; right: 7px; top: 50%; width: 39px; height: 39px; margin-top: -19.5px;
  border-radius: 50%; border: 0; padding: 0; background: var(--plum); color: var(--cream);
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.signup__submit svg { width: 20px; height: 20px; transition: transform var(--t-fast) var(--ease); }
@media (hover: hover) {
  .signup__submit:hover { background: var(--magenta); }
  .signup__submit:hover svg { transform: translateX(2px); }
}
.signup__submit:active { transform: scale(.94); }
.signup__submit[disabled] { cursor: progress; }
.signup.is-loading .signup__submit svg { animation: kd-spin 900ms linear infinite; }
@keyframes kd-spin { to { transform: rotate(360deg); } }
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__msg { min-height: 0; margin-top: 10px; font-size: 15px; line-height: 1.45; }
.signup__msg:empty { display: none; }
.signup__msg.is-error { color: #ffb4a8; }
.signup__consent { margin-top: 10px; font-size: 13px !important; line-height: 1.5; opacity: .75; }
.signup__consent a { color: inherit; }
.signup.is-done .signup__field, .signup.is-done .signup__consent { display: none; }
.signup.is-done .signup__msg { margin-top: 0; font: 400 22px/1.3 var(--serif); }
.signup__note { display: block; margin-top: 6px; font: 13px/1.4 var(--sans); opacity: .75; }

/* light variant inside the popup */
.popup .signup__msg { color: var(--plum); }
.popup .signup__msg.is-error { color: #a1132e; }
.popup .signup__consent { display: none; } /* design shows the field only; consent line lives on the footer form */

/* ---------- Popup (<dialog>, 883 x 502 at desktop; variant A = bouquet, B = lilac) ---------- */
.popup {
  --pw: min(883px, calc(100vw - 32px));
  --p: calc(var(--pw) / 883);
  width: var(--pw); max-width: none; height: calc(502 * var(--p)); max-height: none;
  padding: 0; border: 0; border-radius: var(--radius-popup); overflow: hidden;
  background: var(--cream); color: var(--plum);
  box-shadow: 0 30px 80px -30px rgba(40, 18, 42, .55);
}
.popup::backdrop { background: rgba(72, 40, 75, .5); }
.popup__inner { position: relative; width: 100%; height: 100%; }
.popup__close {
  position: absolute; z-index: 3; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(242, 237, 223, .85); color: var(--plum); display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.popup__close svg { width: 18px; height: 18px; }
.popup__close:hover { background: #e7dfcd; transform: rotate(90deg); }
.popup__title:focus { outline: none; }
.popup__title { position: absolute; z-index: 2; color: var(--plum); font-size: calc(52 * var(--p)); line-height: 1.1; white-space: nowrap; }
.popup .signup { position: absolute; z-index: 2; width: calc(452 * var(--p)); }
.popup .signup__input { height: calc(53 * var(--p)); }
.popup__art { position: absolute; z-index: 1; pointer-events: none; }
.popup__art img { width: 100%; height: auto; }

/* A: heading centred (ink top 79.5), field 200,138 452x53, bouquet 750.5x323 at 66,179 (clipped by the box) */
.popup--a .popup__title { left: 0; right: 0; text-align: center; top: calc(66 * var(--p)); }
.popup--a .signup { left: calc(200 * var(--p)); top: calc(138 * var(--p)); }
.popup--a .popup__art { left: calc(66 * var(--p)); top: calc(179 * var(--p)); width: calc(750.5 * var(--p)); }
.popup--a .signup__msg:not(:empty) { background: rgba(242, 237, 223, .92); border-radius: 6px; padding: 6px 10px; }

/* B: lilac 390x476 at 15,26; heading right-aligned, two lines ending at x 811; field 380,224 */
.popup--b .popup__title { right: calc(72 * var(--p)); top: calc(97 * var(--p)); text-align: right; font-size: calc(54 * var(--p)); line-height: .97; }
.popup--b .signup { left: calc(380 * var(--p)); top: calc(224 * var(--p)); }
.popup--b .popup__art { left: calc(15 * var(--p)); top: calc(26 * var(--p)); width: calc(390 * var(--p)); }

@media (max-width: 640px) {
  .popup { height: fit-content; max-height: calc(100svh - 32px); overflow-y: auto; }
  .popup__inner { display: flex; flex-direction: column; height: auto; padding: 56px 20px 0; }
  .popup .popup__title, .popup .signup, .popup .popup__art { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .popup__title { font-size: clamp(30px, 8.6vw, 40px); white-space: normal; text-align: center; }
  .popup .signup { margin-top: 18px; }
  .popup .signup__input { height: 53px; }
  .popup--a .popup__art { width: calc(100% + 40px); margin: 8px -20px -8px; }
  .popup--b .popup__inner { padding-bottom: 0; }
  .popup--b .popup__title { order: 0; text-align: center; font-size: clamp(30px, 8.6vw, 40px); }
  .popup--b .signup { order: 1; }
  .popup--b .popup__art { order: 2; width: 62%; margin: 12px auto -40px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .popup[open] { animation: popup-in 420ms var(--ease); }
  .popup[open]::backdrop { animation: fade-in 420ms var(--ease); }
  @keyframes popup-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

/* misc.css */
/* ---------- Simple pages: 404 and "coming soon" ---------- */
.simple {
  min-height: 72svh; display: grid; place-content: center; text-align: center; gap: 20px;
  padding: 140px var(--gutter) 120px; position: relative; overflow: hidden;
}
.simple__title { font-size: clamp(52px, 7vw, 92px); }
.simple__text { font-size: 20px; max-width: 36ch; margin-inline: auto; }
.simple__link {
  justify-self: center; margin-top: 8px; padding: 12px 26px 10px; border-radius: 9px;
  background: var(--placeholder); color: var(--plum); font: 400 30px/1 var(--serif); text-decoration: none;
}

/* ---------- Scroll reveals (only when JS runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal-delay="1"] { transition-delay: 90ms; }
  .js [data-reveal-delay="2"] { transition-delay: 180ms; }
}

/* ---------- Reduced motion: no transitions or animations anywhere (video + sway are stopped in JS) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
