/* =========================================================
   Maison Pivoine — Fleuriste, Paris
   Colours, fonts and scales come from /css/site.css
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--font-heading); }
::selection { background: var(--color-primary); color: var(--color-on-primary); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
.h2 em { color: var(--color-primary); }
.section-label {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: clamp(32px, 6vw, 72px);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#petals { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--color-dark);
  color: var(--color-background);
  display: grid; place-items: center;
  transition: transform 1s var(--ease);
}
body.is-loaded .loader { transform: translateY(-100%); }
.loader__flower { width: min(46vw, 220px); animation: spin 6s linear infinite; }
.loader__petals ellipse {
  fill: var(--color-rose);
  opacity: .9;
  transform: rotate(var(--r)) scale(0);
  animation: bloom .8s var(--ease-out) forwards;
  animation-delay: var(--d);
}
.loader__petals ellipse:nth-child(1) { --r: 0deg; --d: 0s; }
.loader__petals ellipse:nth-child(2) { --r: 45deg; --d: .06s; }
.loader__petals ellipse:nth-child(3) { --r: 90deg; --d: .12s; }
.loader__petals ellipse:nth-child(4) { --r: 135deg; --d: .18s; }
.loader__petals ellipse:nth-child(5) { --r: 180deg; --d: .24s; }
.loader__petals ellipse:nth-child(6) { --r: 225deg; --d: .30s; }
.loader__petals ellipse:nth-child(7) { --r: 270deg; --d: .36s; }
.loader__petals ellipse:nth-child(8) { --r: 315deg; --d: .42s; }
.loader__heart { fill: var(--color-accent); }
@keyframes bloom { to { transform: rotate(var(--r)) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__count {
  position: absolute; bottom: var(--gutter); right: var(--gutter);
  font-family: var(--font-heading); font-size: clamp(64px, 14vw, 180px); line-height: .8;
}
.loader__word { position: absolute; bottom: var(--gutter); left: var(--gutter); margin: 0; }

/* ---------- cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 150; border-radius: 50%; }
.cursor {
  width: 104px; height: 104px; margin: -52px 0 0 -52px;
  display: grid; place-items: center;
  mix-blend-mode: difference;
}
.cursor::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--color-on-primary);
  transform: scale(.42);
  transition: transform .4s var(--ease-out);
}
.cursor.is-hover::before { transform: scale(.78); background: var(--color-on-primary); }
.cursor.is-label::before { transform: scale(1); background: var(--color-on-primary); }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--color-rose); }
.cursor__label { position: relative; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-2) 30px; border-radius: var(--radius-pill);
  background: var(--color-text); color: var(--color-background);
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; border: 1px solid var(--color-text); cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: -20%;
  background: var(--color-primary);
  border-radius: 50%;
  transform: translateY(105%);
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0) scale(1.4); }
.btn:hover { color: var(--color-on-primary); }
.btn span { position: relative; }
.btn--small { padding: 12px 22px; }
.btn--line { background: transparent; color: var(--color-text); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 18px var(--gutter);
  transition: transform .6s var(--ease);
}
.nav.is-scrolled { background: color-mix(in srgb, var(--color-background) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: var(--text-xl); letter-spacing: -.01em; }
.nav__logo em { color: var(--color-primary); }
.nav__mark { width: 30px; height: 30px; transition: transform 1.2s var(--ease); }
.nav__mark ellipse { fill: var(--color-rose); }
.nav__mark circle { fill: var(--color-text); }
.nav__logo:hover .nav__mark { transform: rotate(144deg); }
.nav__links { display: flex; gap: var(--space-4); }
.nav__links a { position: relative; font-size: var(--text-sm); font-weight: 500; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; cursor: pointer; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--color-text); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 15px; } .nav__burger span:last-child { top: 24px; }
.menu-open .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--color-rose); color: var(--color-text);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) var(--gutter);
  transform: translateY(-101%);
  transition: transform .8s var(--ease);
}
.menu-open .menu { transform: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a { font-family: var(--font-heading); font-size: clamp(44px, 12vw, 80px); line-height: 1.1; display: flex; align-items: baseline; gap: 14px; }

/* ---------- split text ---------- */
[data-split] { white-space: nowrap; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.char, .word { --i: 0; }
.char { display: inline-block; transform: translateY(110%) rotate(8deg); transform-origin: left bottom; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--base, 0ms)); }
.is-loaded .hero .char, .split-in .char { transform: none; }

/* ---------- reveal (motion only; text stays readable at rest) ---------- */
.reveal { --delay: 0s; transform: translateY(40px); transition: transform 1.2s var(--ease-out); transition-delay: var(--delay); }
.reveal.in { transform: none; }
.clip-reveal { position: relative; }
.clip-reveal::after {
  content: ""; position: absolute; inset: -1px; background: var(--color-background);
  transform-origin: top; transition: transform 1.4s var(--ease);
}
.clip-reveal.in::after { transform: scaleY(0); }
.clip-reveal img { transform: scale(1.25); transition: transform 2s var(--ease-out); }
.clip-reveal.in img { transform: scale(1.1); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 120px var(--gutter) var(--gutter);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.hero__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--color-muted); }
.hero__title {
  grid-column: 1 / -1; grid-row: 2; align-self: center; position: relative; z-index: 3; pointer-events: none;
  margin: 0; font-family: var(--font-heading); font-weight: 400;
  font-size: var(--text-5xl); line-height: .86; letter-spacing: -.04em;
}
.hero__title em { color: var(--color-primary); }
.hero__title .line--indent { padding-left: .9em; }
.hero__title .char { --base: 0ms; }
.hero__title .line:nth-child(2) .char { --base: 250ms; }

.hero__stack { grid-column: 2; grid-row: 2 / 4; position: relative; min-height: 520px; }
.arch {
  position: absolute; margin: 0; overflow: hidden;
  border-radius: var(--radius-arch);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--color-text) 45%, transparent);
  opacity: 0; transform: translateY(80px) scale(.92);
  transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transition: transform 2.4s var(--ease-out); }
.is-loaded .arch { opacity: 1; transform: none; }
.is-loaded .arch img { transform: scale(1.06); }
.arch--a { width: 56%; aspect-ratio: 3 / 4.4; right: 6%; top: 2%; transition-delay: .5s; }
.arch--b { width: 34%; aspect-ratio: 3 / 4.2; left: 8%; top: 30%; transition-delay: .7s; border: 6px solid var(--color-background); }
.arch--c { width: 26%; aspect-ratio: 3 / 4.4; right: 0; bottom: 2%; transition-delay: .9s; border: 6px solid var(--color-background); }

.hero__bottom { grid-column: 1; grid-row: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.hero__lede { max-width: 380px; margin: 0; font-size: var(--text-lg); color: var(--color-muted); }
.badge { position: relative; flex: none; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; }
.badge__ring { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.badge__ring text { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .2em; text-transform: uppercase; fill: var(--color-text); }
.badge__arrow {
  position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary);
  display: grid; place-items: center; font-size: var(--text-xl); transition: transform .5s var(--ease-out);
}
.badge:hover .badge__arrow { transform: scale(1.15) rotate(-45deg); }

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: 40px; }
.marquee { background: var(--color-text); color: var(--color-background); overflow: hidden; padding: 22px 0; transform: rotate(-2deg) scale(1.04); }
.marquee__track { display: flex; width: max-content; gap: 40px; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-heading); font-style: italic; font-size: clamp(32px, 5vw, 64px); white-space: nowrap; }
.marquee i { color: var(--color-rose); font-family: var(--font-heading); font-style: normal; font-size: var(--text-2xl); display: inline-block; animation: spin 6s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { padding: var(--space-section) var(--gutter); }
.about__scrub {
  font-family: var(--font-heading); font-size: clamp(28px, 4.2vw, 64px); line-height: 1.12; letter-spacing: -.01em;
  margin: 0 0 clamp(64px, 10vw, 140px); max-width: 1200px;
}
.about__scrub .word { color: color-mix(in srgb, var(--color-text) 55%, var(--color-background)); }
.about__scrub .word.on { color: var(--color-text); }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.about__img { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-pill) var(--radius-pill) 0 0; }
.about__img img { width: 100%; height: 115%; object-fit: cover; }
.about__text { min-width: 0; }
.about__text p { font-size: var(--text-lg); color: var(--color-muted); max-width: 46ch; margin: 28px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); border-top: 1px solid var(--color-border); padding-top: 28px; }
.stat b { display: block; font-family: var(--font-heading); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--color-muted); }
.stat:nth-child(2) { --delay: .1s; } .stat:nth-child(3) { --delay: .2s; }

/* ---------- collection (horizontal scroll) ---------- */
.collection { position: relative; background: var(--color-dark); color: var(--color-background); }
.collection__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); }
.collection__head { padding: 0 var(--gutter); display: grid; grid-template-columns: auto 1fr; align-items: end; gap: var(--space-1) 40px; }
.collection__head .mono { grid-column: 1 / -1; color: var(--color-accent); }
.collection__head .h2 em { color: var(--color-accent); }
.collection__progress { height: 2px; background: color-mix(in srgb, var(--color-background) 20%, transparent); align-self: center; max-width: 340px; justify-self: end; width: 100%; }
.collection__progress span { display: block; height: 100%; width: 100%; background: var(--color-rose); transform-origin: left; transform: scaleX(0); }
.collection__track { display: flex; gap: clamp(16px, 2.5vw, 36px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.card {
  flex: none; width: clamp(260px, 26vw, 380px);
  background: var(--color-dark-2); border-radius: 220px 220px 14px 14px; overflow: hidden;
  transform-style: preserve-3d; transition: transform .6s var(--ease-out);
}
.card figure { margin: 0; aspect-ratio: 4 / 4.4; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover img { transform: scale(1.08); }
.card__body { padding: 22px 26px 26px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.card__body .mono { grid-column: 1 / -1; color: var(--color-accent); }
.card h3 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: var(--text-2xl); line-height: 1.1; }
.card p { grid-column: 1; margin: 0; font-size: var(--text-sm); color: color-mix(in srgb, var(--color-background) 85%, var(--color-dark-2)); }
.card b { grid-column: 2; grid-row: 2; font-family: var(--font-heading); font-weight: 400; font-size: var(--text-xl); color: var(--color-accent); }
.card--cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 40px;
  background: var(--color-rose); color: var(--color-text); min-height: 100%;
}
.card--cta .mono { color: var(--color-text); }
.card--cta h3 { font-size: clamp(36px, 3.4vw, 52px); }
.card--cta__arrow { width: 72px; height: 72px; border-radius: 50%; background: var(--color-text); color: var(--color-background); display: grid; place-items: center; font-size: 28px; transition: transform .6s var(--ease-out); }
.card--cta:hover .card--cta__arrow { transform: translateX(14px) rotate(-30deg); }

/* ---------- services ---------- */
.services { position: relative; padding: var(--space-section) var(--gutter); }
.services .h2 { margin-bottom: clamp(40px, 6vw, 80px); }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.services__list li {
  position: relative; display: grid; grid-template-columns: 60px 1fr 1.1fr 40px; gap: var(--space-3); align-items: center;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--color-border);
  isolation: isolate;
}
.services__list li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.services__list li:hover::before { transform: scaleY(1); transform-origin: top; }
.services__list h3 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: clamp(36px, 5vw, 72px); line-height: 1; transition: transform .6s var(--ease-out); }
.services__list li:hover h3 { transform: translateX(20px); font-style: italic; }
.services__list p { margin: 0; color: var(--color-muted); max-width: 42ch; }
.services__list .arrow { font-size: 28px; transition: transform .5s var(--ease-out); }
.services__list li:hover .arrow { transform: rotate(45deg); }
.services__float {
  position: fixed; top: 0; left: 0; z-index: 50; width: 260px; aspect-ratio: 3 / 4; pointer-events: none;
  border-radius: var(--radius-arch); overflow: hidden;
  opacity: 0; transform: scale(.6); transition: opacity .35s, transform .5s var(--ease-out);
}
.services__float.on { opacity: 1; transform: scale(1); }
.services__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.services__float img.on { opacity: 1; }

/* ---------- statement ---------- */
.statement { position: relative; height: 120vh; display: grid; place-items: center; overflow: hidden; color: var(--color-background); text-align: center; }
.statement__bg { position: absolute; inset: -15% 0; margin: 0; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; }
.statement__bg::after { content: ""; position: absolute; inset: 0; background: var(--color-text); opacity: .72; }
.statement__text { position: relative; margin: 0; padding: 0 var(--gutter); font-family: var(--font-heading); font-weight: 400; font-size: var(--text-4xl); line-height: .9; letter-spacing: -.03em; }
.statement__text em { color: var(--color-accent); }

/* ---------- plans ---------- */
.plans { padding: var(--space-section) var(--gutter); background: var(--color-surface); }
.plans__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.plans__head p { max-width: 36ch; color: var(--color-muted); font-size: var(--text-lg); margin: 0; }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: stretch; }
.plan {
  position: relative; padding: 40px var(--space-4); background: var(--color-background); border-radius: var(--radius-md); border: 1px solid var(--color-border);
  display: flex; flex-direction: column; gap: 20px;
}
.plan.in:hover { transform: translateY(-12px); }
.plan:nth-child(2) { --delay: .12s; } .plan:nth-child(3) { --delay: .24s; }
.plan__price { display: flex; align-items: baseline; gap: var(--space-1); }
.plan__price b { font-family: var(--font-heading); font-weight: 400; font-size: 72px; line-height: 1; }
.plan__price span { color: var(--color-muted); }
.plan ul { list-style: none; margin: 0 0 auto; padding: 0; }
.plan li { padding: 10px 0; border-bottom: 1px dashed var(--color-border); font-size: 16px; }
.plan li::before { content: "✿ "; color: var(--color-primary); }
.plan .btn { align-self: flex-start; }
.plan--featured { background: var(--color-text); color: var(--color-background); border-color: var(--color-text); }
.plan--featured li { border-color: color-mix(in srgb, var(--color-background) 25%, transparent); }
.plan--featured li::before { color: var(--color-accent); }
.plan--featured .plan__price span { color: color-mix(in srgb, var(--color-background) 75%, var(--color-text)); }
.plan--featured .btn { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.plan--featured .btn::before { background: var(--color-background); }
.plan--featured .btn:hover { color: var(--color-text); }
.plan__tag {
  position: absolute; top: -14px; right: var(--space-3); background: var(--color-primary); color: var(--color-on-primary);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill);
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-4deg) translateY(-3px); } }

/* ---------- quotes ---------- */
.quotes { position: relative; padding: clamp(100px, 14vw, 200px) var(--gutter); background: var(--color-rose); color: var(--color-text); text-align: center; overflow: hidden; }
.quotes__flower { position: absolute; font-size: clamp(300px, 50vw, 700px); font-family: var(--font-heading); line-height: 1; top: 50%; left: 50%; margin: -.5em 0 0 -.5em; width: 1em; color: var(--color-background); opacity: .14; animation: spin 40s linear infinite; pointer-events: none; }
.quotes__slides { position: relative; display: grid; max-width: 1100px; margin: 0 auto; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .8s; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote p { font-family: var(--font-heading); font-size: clamp(30px, 4.6vw, 68px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 var(--space-4); text-wrap: balance; }
.quote .word { display: inline-block; transform: translateY(30px); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 35ms); }
.quote.is-active .word { transform: none; }
.quote cite { font-style: normal; }
.quotes__dots { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: var(--space-5); }
.quotes__dots button { width: 40px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--color-text) 25%, transparent); cursor: pointer; overflow: hidden; position: relative; }
.quotes__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--color-text); transform-origin: left; animation: fill 6s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- gallery ---------- */
.gallery { padding: var(--space-section) var(--gutter); overflow: hidden; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(40px, 6vw, 80px); }
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); align-items: start; }
.gallery__grid figure { margin: 0; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 3 / 4; }
.gallery__grid figure:nth-child(odd) { margin-top: 80px; }
.gallery__grid figure:nth-child(3n+1) { border-radius: var(--radius-arch); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery__grid figure:hover img { transform: scale(1.1) rotate(1.5deg); }

/* ---------- visit ---------- */
.visit { padding: var(--space-section) var(--gutter); background: var(--color-dark); color: var(--color-background); }
.visit .section-label::after { background: color-mix(in srgb, var(--color-background) 20%, transparent); }
.visit .h2 em { color: var(--color-accent); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); }
.visit__info { min-width: 0; }
.visit dl { margin: var(--space-5) 0 0; display: grid; gap: 28px; }
.visit dl > div { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-2); padding-bottom: 28px; border-bottom: 1px solid color-mix(in srgb, var(--color-background) 15%, transparent); }
.visit dt { color: var(--color-accent); padding-top: 4px; }
.visit dd { margin: 0; font-size: var(--text-lg); }
.visit__open { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-4); --dot: var(--color-open); }
.visit__open.is-closed { --dot: var(--color-rose); }
.visit__open i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.visit__open i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

.form { position: relative; min-width: 0; background: var(--color-background); color: var(--color-text); border-radius: 220px 220px var(--radius-md) var(--radius-md); padding: clamp(80px, 9vw, 120px) clamp(24px, 4vw, 56px) clamp(32px, 4vw, 56px); display: grid; gap: 22px; }
.form h3 { margin: 0 0 var(--space-1); font-family: var(--font-heading); font-weight: 400; font-size: 36px; text-align: center; }
.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--color-border); background: transparent;
  padding: 22px 0 10px; color: var(--color-text); outline: none; border-radius: 0; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.field label { position: absolute; left: 0; top: 20px; color: var(--color-muted); pointer-events: none; transition: transform .4s var(--ease-out); transform-origin: left; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-primary); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field--area::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-18px) scale(.78); color: var(--color-primary); }
.field.invalid input, .field.invalid select { border-color: var(--color-primary); }
.form .btn { justify-self: start; margin-top: var(--space-1); }
.form__ok { margin: 0; min-height: 1.6em; font-family: var(--font-heading); font-style: italic; font-size: 20px; color: var(--color-primary); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- thank-you page ---------- */
.thanks { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px var(--gutter) var(--space-6); }
.thanks__inner { display: grid; justify-items: center; gap: var(--space-3); max-width: 760px; }
.thanks__flower { width: 120px; height: 120px; animation: spin 14s linear infinite; }
.thanks__flower ellipse { fill: var(--color-rose); }
.thanks__flower circle { fill: var(--color-accent); }
.thanks h1 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: clamp(56px, 10vw, 140px); line-height: .95; letter-spacing: -.03em; }
.thanks h1 em { color: var(--color-primary); }
.thanks p { margin: 0; font-size: var(--text-lg); color: var(--color-muted); max-width: 44ch; }

/* ---------- footer ---------- */
.footer { background: var(--color-text); color: var(--color-background); padding: clamp(60px, 8vw, 100px) var(--gutter) 28px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.footer__top p { margin: 0; max-width: 32ch; }
.footer__news { position: relative; display: flex; border-bottom: 1px solid color-mix(in srgb, var(--color-background) 40%, transparent); min-width: min(100%, 380px); }
.footer__news input { flex: 1; background: none; border: 0; color: var(--color-background); padding: 12px 0; outline: none; min-width: 0; }
.footer__news input::placeholder { color: color-mix(in srgb, var(--color-background) 70%, var(--color-text)); }
.footer__news button { background: none; border: 0; color: var(--color-rose); font-size: 26px; cursor: pointer; transition: transform .4s var(--ease-out); }
.footer__news button:hover { transform: translateX(8px); }
.footer__giant { font-family: var(--font-heading); font-style: italic; font-size: clamp(90px, 26vw, 420px); line-height: .85; letter-spacing: -.05em; text-align: center; margin: 60px 0 30px; color: var(--color-rose); overflow: hidden; padding-bottom: .1em; }
.footer__giant .char { transition-duration: 1.4s; }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--color-rose); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__burger { display: block; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; gap: var(--space-4); }
  .hero__title { grid-column: 1; grid-row: 2; }
  .hero__stack { grid-column: 1; grid-row: 3; min-height: 0; aspect-ratio: 1 / 1.05; max-width: 100%; }
  .hero__bottom { grid-row: 4; }
  .about__grid, .visit__grid { grid-template-columns: 1fr; }
  .services__list li { grid-template-columns: 40px 1fr 30px; }
  .services__list p { grid-column: 2 / -1; grid-row: 2; }
  .services__float { display: none; }
  .plans__grid { grid-template-columns: 1fr; max-width: 480px; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid figure:nth-child(odd) { margin-top: 0; }
  .gallery__grid figure:nth-child(3n+2) { margin-top: 40px; }
}
@media (max-width: 600px) {
  .hero__meta .mono:last-child { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .badge { width: 120px; height: 120px; align-self: flex-end; margin-top: -40px; }
  .stats { gap: 10px; }
  .collection__head { grid-template-columns: 1fr; }
  .collection__progress { justify-self: start; }
  .card { width: 76vw; }
  .visit dl > div { grid-template-columns: 1fr; gap: 6px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery__grid figure:nth-child(3n+2) { margin-top: 0; }
  .gallery__grid figure:nth-child(even) { margin-top: 40px; }
  .form { border-radius: 160px 160px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader__flower, .loader__petals ellipse, .badge__ring, .marquee__track, .marquee i, .quotes__flower,
  .plan__tag, .thanks__flower, .visit__open i::after, .quotes__dots button.is-active::after { animation: none; }
  .loader__petals ellipse { transform: rotate(var(--r)); }
  .char, .reveal, .arch, .arch img, .clip-reveal img, .loader, .menu, .card, .quote, .quote .word { transition: none; }
  .char, .reveal, .quote .word { transform: none; }
  .arch { opacity: 1; transform: none; }
  .clip-reveal::after { display: none; }
  #petals { display: none; }
}
