/* ==========================================================================
   Lovora — site styles
   Colours are sampled from the Lovora logo. Nothing is loaded from third parties.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Brand colours, sampled from the logo */
  --wine-800: #5B1135;
  --wine-700: #660C3D;
  --wine-600: #761747;
  --wine-500: #923256;
  --mauve-500: #AA5472;
  --plum-700: #8F5286;
  --plum-600: #9C67A1;
  --lilac-500: #BE93D5;
  --lilac-400: #C399DA;

  /* Neutrals, tinted with the same hues */
  --ink: #26101F;
  --text: #47303F;
  --muted: #76607A;
  --bg: #FBF9FE;
  --surface: #FFFFFF;
  --mist: #F2EDFD;
  --lilac-tint: #F1E4F3;
  --line: #E7DDEE;

  --grad-btn: linear-gradient(120deg, #761747 0%, #8F5286 50%, #761747 100%);
  --grad-deep: linear-gradient(120deg, #761747 0%, #8F5286 100%);
  --grad-brand: linear-gradient(120deg, #761747 0%, #AA5472 55%, #9C67A1 100%);
  --grad-band: linear-gradient(120deg, #5B1135 0%, #761747 45%, #8F5286 100%);
  --grad-text: linear-gradient(100deg, #761747 10%, #9C67A1 90%);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(91, 17, 53, .06);
  --shadow-md: 0 12px 32px -12px rgba(91, 17, 53, .22);
  --shadow-lg: 0 28px 60px -24px rgba(91, 17, 53, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }

body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); line-height: 1.08; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; }

a { color: var(--wine-600); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: #C399DA; color: #26101F; }
:focus-visible { outline: 3px solid var(--plum-600); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; background: var(--wine-600); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { position: fixed; left: 0; }

/* ---------- Layout ---------- */
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--mist { background: var(--mist); }
.section--surface { background: var(--surface); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.eyebrow { margin: 0 0 .9rem; font: 700 .8rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--plum-700); }
.lead { margin-top: 1rem; font-size: 1.2rem; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-note { max-width: 720px; margin: 3rem auto 0; text-align: center; font: 500 1.25rem/1.45 var(--font-display); color: var(--ink); text-wrap: balance; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 2.5rem; }
.note { max-width: 720px; margin: 2.5rem auto 0; text-align: center; font-size: .92rem; color: var(--muted); }
.nowrap { white-space: nowrap; }

.grid { display: grid; gap: 24px; }
@media (min-width: 600px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.icon-chip { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; }
.icon-chip .icon { width: 24px; height: 24px; }
.icon-chip--soft { background: var(--lilac-tint); color: var(--wine-600); }
.icon-chip--brand { background: var(--grad-brand); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  padding: 0 1.6em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1 var(--font-body);
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background-position .45s, background-color .2s, color .2s, border-color .2s;
}

.btn--primary { color: #fff; background: var(--grad-btn); background-origin: border-box; background-size: 200% 100%; background-position: 0 50%; box-shadow: 0 10px 24px -10px rgba(118, 23, 71, .55); }
.btn--primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 16px 32px -12px rgba(143, 82, 134, .6); }
/* Shine: sweeps across on hover, snaps back (no transition) on leave. */
.btn--primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); }
.btn--primary:hover::after { transform: translateX(120%); transition: transform .6s; }

.btn--outline { color: var(--wine-600); border-color: rgba(118, 23, 71, .35); background-color: transparent; }
.btn--outline:hover { background-color: var(--lilac-tint); border-color: var(--wine-600); transform: translateY(-2px); }
.btn--outline:active { color: var(--wine-700); border-color: var(--wine-700); }

.btn--light { background-color: #fff; color: var(--wine-600); box-shadow: 0 10px 24px -12px rgba(38, 16, 31, .5); }
.btn--light:hover { transform: translateY(-2px); color: var(--plum-700); }
.btn--light:active { color: var(--wine-700); }

.btn:active { transform: translateY(0) scale(.98); }
.btn .icon--arrow { transition: transform .2s; }
.btn:hover .icon--arrow { transform: translateX(4px); }

.btn--sm { min-height: 44px; padding: 0 1.2em; font-size: .95rem; }
.btn--block { width: 100%; }

/* Inline, so a label that wraps keeps the arrow right after its last word. */
.link-arrow { align-self: flex-start; font-weight: 700; color: var(--wine-600); text-decoration: none; }
.link-arrow .icon { display: inline-block; margin-left: .4em; vertical-align: -.25em; transition: transform .2s; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:active { color: var(--wine-700); }

/* ---------- Cards and small pieces ---------- */
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card--accent { padding: 27px; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; }
.card--spotlight { justify-content: center; gap: 14px; padding: clamp(27px, 4vw, 44px); }
.card--spotlight h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.card--spotlight p { font-size: 1.1rem; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(118, 23, 71, .25); }
  .card--accent:hover { border-color: transparent; }
}

.feature { display: grid; gap: 12px; padding: 8px; }

.tag { display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--lilac-tint); color: var(--wine-600); font: 700 .75rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; }
.tag--accent { background: var(--grad-deep); color: #fff; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; }
.checklist .icon { margin-top: .2em; color: var(--plum-700); }
.checklist--no .icon { color: var(--muted); }

.price__amount { font: 700 2rem/1.1 var(--font-display); color: var(--ink); }
.price__meta { display: block; font-size: .85rem; color: var(--muted); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .9rem; line-height: 1.3; }
.chip .icon { color: var(--wine-600); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 254, .82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }

.site-logo { display: inline-flex; align-items: center; flex: none; border-radius: var(--r-sm); }
.site-logo img { height: 38px; width: auto; }

.site-nav a:not(.btn) { position: relative; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--wine-600); }

.nav-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon--close { display: none; }
.site-header[data-nav-open] .nav-toggle .icon--menu { display: none; }
.site-header[data-nav-open] .nav-toggle .icon--close { display: block; }

@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .nav-toggle { display: none; }
}

@media (max-width: 899.98px) {
  .site-header__inner { height: 64px; }
  .site-logo img { height: 30px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px 24px 24px; background: var(--surface); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .site-header[data-nav-open] .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { width: 100%; margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__content .lead { margin-top: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 2rem; }

.trust { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; }
.trust .icon { color: var(--wine-600); }

.hero--page .hero__content { max-width: 800px; margin-inline: auto; text-align: center; }
.hero--page .chips { justify-content: center; margin-top: 1.75rem; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Hero art: two activity cards, two chips, three soft blobs */
/* Below 960px the two cards stack in normal flow, so the art is as tall as its text needs. */
.hero-art { position: relative; display: flex; flex-direction: column; padding-block: 30px 46px; }
.hero-art__caption { margin-top: 1rem; text-align: center; font-size: .85rem; color: var(--muted); }

.hero-art__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-art__blob--a { width: 320px; height: 320px; top: -40px; left: -30px; background: #761747; opacity: .16; filter: blur(70px); }
.hero-art__blob--b { width: 360px; height: 360px; bottom: -40px; right: -20px; background: #AA5472; opacity: .18; filter: blur(80px); }
.hero-art__blob--c { width: 180px; height: 180px; top: 30%; right: 10%; background: #C399DA; opacity: .45; filter: blur(50px); }

.art-card { position: relative; background: var(--surface); }
.art-card--back { width: 78%; padding: 24px; border-radius: 24px; box-shadow: var(--shadow-md); transform: rotate(-6deg); animation: float-back 9s ease-in-out infinite alternate; }
.art-card--front { width: 82%; align-self: flex-end; margin-top: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); transform: rotate(3deg); animation: float-front 7s ease-in-out infinite alternate; }

.art-card .eyebrow { margin-bottom: .6rem; }
.art-card__question { font: 500 1.15rem/1.35 var(--font-display); color: var(--ink); }
.art-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.art-card__top .tag { align-self: center; }
.art-card__heart { width: 24px; height: 24px; color: var(--plum-600); }
.art-card__title { margin-top: 14px; font: 700 1.35rem/1.25 var(--font-display); color: var(--ink); }
.art-card__text { margin-top: 8px; font-size: .98rem; line-height: 1.5; }
.art-card__count { margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }

.progress { height: 6px; margin-top: 16px; border-radius: 999px; background: var(--lilac-tint); overflow: hidden; }
.progress__bar { display: block; width: 14.3%; height: 100%; border-radius: 999px; background: var(--grad-brand); }

.art-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-md); font-weight: 700; font-size: .9rem; line-height: 1.2; color: var(--ink); white-space: nowrap; animation: float-chip 6s ease-in-out infinite alternate; }
.art-chip .icon { color: var(--wine-600); }
.art-chip--1 { left: -2%; bottom: 2%; }
.art-chip--2 { right: 2%; top: 0; animation-delay: -3s; }

@keyframes float-front { to { transform: translateY(-10px) rotate(3deg); } }
@keyframes float-back { to { transform: translateY(8px) rotate(-6deg); } }
@keyframes float-chip { to { transform: translateY(-8px); } }

@media (min-width: 960px) {
  .hero-art { display: block; min-height: 520px; padding-block: 0; }
  .art-card { position: absolute; }
  .art-card--back { top: 4%; left: 0; }
  .art-card--front { right: 0; bottom: 8%; margin-top: 0; }
}
@media (max-width: 959.98px) {
  .hero-art { max-width: 460px; margin-inline: auto; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 32px; }
.step { position: relative; z-index: 1; text-align: center; }
.step__num { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad-brand); color: #fff; font: 700 1.6rem/1 var(--font-display); box-shadow: 0 12px 24px -12px rgba(118, 23, 71, .6); }
.step p { max-width: 34ch; margin: 10px auto 0; text-wrap: balance; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps::before { content: ""; position: absolute; top: 32px; left: 16.66%; right: 16.66%; border-top: 2px dashed rgba(118, 23, 71, .25); transition: opacity .6s ease; }
  /* The connector appears together with the first step, not before it. */
  .js .steps:not(:has(.is-visible))::before { opacity: 0; }
}

/* ---------- Products ---------- */
.product { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 104px; }
.product:target { outline: 3px solid var(--plum-600); outline-offset: 4px; }
.product__kind { font-weight: 700; font-size: .95rem; color: var(--plum-700); }
.product__tagline { font: 500 1.1rem/1.4 var(--font-display); color: var(--ink); }
.product__label { margin: .5rem 0 0; font: 700 .8rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.product__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line); }
/* Side by side the button keeps its own width; once it wraps it fills the row. */
.product__foot .price { flex: 999 1 auto; }
.product__foot .btn { flex: 1 1 auto; }
.bundle-note { font-size: .9rem; color: var(--muted); }

.closing { margin-top: 3.5rem; text-align: center; }
.closing .section-actions { margin-top: 1.25rem; }
.closing .note { margin-top: 1.5rem; }

/* ---------- FAQ ---------- */
.faq__layout { display: grid; gap: 40px; }
.faq__lead { margin: 1rem 0 1.5rem; }
.faq__email { margin-top: .75rem; font-size: .9rem; color: var(--muted); }

.faq__item { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq__item:last-child { margin-bottom: 0; }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 16px; font-weight: 700; font-size: 1.05rem; line-height: 1.4; color: var(--ink); cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lilac-tint); color: var(--wine-600); transition: transform .25s; }
.faq__item[open] { border-color: rgba(118, 23, 71, .35); box-shadow: var(--shadow-sm); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 22px; animation: faq-in .25s ease; }

@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (min-width: 900px) {
  .faq__layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
  .faq__intro { position: sticky; top: 104px; align-self: start; }
}

/* ---------- CTA band ---------- */
.cta { padding-block: 0 clamp(4.5rem, 9vw, 7.5rem); }
.cta__band { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: var(--r-lg); background: var(--grad-band); color: #fff; text-align: center; }
.cta__band > * { position: relative; }
.cta__band h2 { color: #fff; }
.cta__band p { margin: 1rem 0 2rem; font-size: 1.15rem; }
/* Two overlapping circles: an echo of the two heads in the logo symbol. */
.cta__band::before, .cta__band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.cta__band::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.cta__band::after { width: 160px; height: 160px; top: 30px; right: 90px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(3.5rem, 7vw, 5rem); background: var(--wine-800); color: rgba(255, 255, 255, .82); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 40px; }
.site-footer h2 { margin: 0 0 1rem; font: 700 .8rem/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--lilac-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #fff; font-size: .95rem; text-decoration: none; }
.site-footer a:hover { color: var(--lilac-400); text-decoration: underline; }
.site-footer strong { color: #fff; }
.site-footer address { margin-top: .75rem; font-style: normal; overflow-wrap: anywhere; }
.site-footer__brand p { max-width: 32ch; margin-top: 1.1rem; }

.logo-pill { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 16px; background: #fff; }
.logo-pill img { height: 30px; width: auto; }

.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; }
.site-footer__disclaimer { flex-basis: 100%; color: rgba(255, 255, 255, .7); }

@media (min-width: 600px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }
}

/* ---------- Pop-ups ---------- */
dialog.modal { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); max-height: min(86dvh, 900px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-rise .32s cubic-bezier(.2, .8, .2, 1); }
dialog.modal::backdrop { background: rgba(38, 16, 31, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .25s ease; }
dialog.modal--order { width: min(520px, calc(100vw - 32px)); }

@keyframes modal-rise { from { opacity: 0; transform: translateY(48px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__header { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__title { font-size: 1.4rem; }
.modal__close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--lilac-tint); color: var(--wine-600); cursor: pointer; transition: background-color .25s, color .25s, transform .25s; }
.modal__close:hover { background: var(--wine-600); color: #fff; transform: rotate(90deg); }
.modal__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 20px 24px 24px; overscroll-behavior: contain; }
.modal__footer { display: flex; align-items: center; justify-content: flex-end; flex: none; padding: 16px 24px; border-top: 1px solid var(--line); }

.prose h3 { font: 700 1.02rem var(--font-body); color: var(--wine-600); margin: 1.6em 0 .4em; }
.prose p, .prose li { font-size: .98rem; }
.prose p, .prose ul { margin: 0 0 .85em; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: .3em; }
.prose a { overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.modal__body .modal__meta { color: var(--muted); font-size: .9rem; }

.modal--order .modal__body { display: grid; gap: 14px; }
.order__name { font: 700 1.2rem/1.3 var(--font-display); color: var(--ink); }
.order__alt { text-align: center; font-size: .92rem; color: var(--muted); }

/* Playfair Display defaults to old-style figures, and the `font` shorthand resets the
   lining figures set on <body>, so every display rule that uses it asks for them again. */
.section-note, .price__amount, .art-card__question, .art-card__title, .step__num, .product__tagline, .order__name { font-variant-numeric: lining-nums; }

/* Phones: the pop-up becomes a bottom sheet. */
@media (max-width: 600px) {
  .container { width: min(1120px, 100% - 40px); }
  dialog.modal { width: 100%; max-width: 100%; max-height: 90vh; max-height: 90dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .cta__band::before { width: 150px; height: 150px; top: -75px; right: -55px; }
  .cta__band::after { width: 100px; height: 100px; top: -36px; right: 60px; }
}

/* ---------- Motion ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); } }

.hero__content > * { animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero__content > :nth-child(2) { animation-delay: 80ms; }
.hero__content > :nth-child(3) { animation-delay: 160ms; }
.hero__content > :nth-child(4) { animation-delay: 240ms; }
.hero__content > :nth-child(5) { animation-delay: 320ms; }
.hero-art { animation: rise-in .7s cubic-bezier(.2, .8, .2, 1) 200ms both; }

/* Scroll reveal. The hidden state exists only when JS is running (.js on <html>).
   It moves with `translate`, so it never fights the `transform` used by hover effects. */
.js [data-reveal] {
  --reveal-transition: opacity .6s ease var(--reveal-delay, 0ms), translate .6s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms);
  opacity: 0;
  translate: 0 24px;
  transition: var(--reveal-transition);
}
.js [data-reveal].is-visible { opacity: 1; translate: none; }
.js .card[data-reveal] { transition: var(--reveal-transition), transform .25s, box-shadow .25s, border-color .25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::backdrop { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
