/* ============================================================================
   Digital Invites — landing page (index.html only)
   ----------------------------------------------------------------------------
   Sits on top of the kit and site.css (brand tokens, type, chrome). This file holds the landing
   page's own sections and their motion:

     1. Rhythm      sections as tall as what they hold, on warm ivory grounds that alternate
     2. Type        the italic accent line and the section label with its drawn rules
     3. Hero        the words, three facts, and one invitation on a phone that scrolls itself,
                    with three floating notes
     4. Designs     portrait cards for the catalogue (a swipeable row on a phone)
     5. Journey     the three steps as tabs that advance on their own
     6. Features    a picture beside six cards whose icons draw themselves in
     7. Questions   an accordion of soft cards
     8. Request     the form and its picture in one card
     9. WhatsApp    a quiet round button, only when a number is set in the admin

   Colour: Soft Ivory #F7F3EA and Ink Black #141414 only, with ivories of the same hue for depth.
   Every animation stops for prefers-reduced-motion and for <html data-motion="off">.
   ========================================================================== */

:root {
  --iv-0: #fbf8f1;
  --iv-1: #f7f3ea;
  --iv-2: #f0eadd;
  --iv-3: #e9e1d1;
  --ink: #141414;
  --sec-pad: clamp(40px, 6vw, 88px);
  --r-card: 20px;
  --ease-soft: cubic-bezier(.22, .8, .24, 1);
  interpolate-size: allow-keywords;   /* lets the questions open smoothly where supported */
}

/* ── 1. Rhythm ─────────────────────────────────────────────────────────────── */
/* Every section is as tall as its content with one even padding; anchors land under the header. */
main > :is(section, .section):not(.hero, .section--hero) {
  height: auto; min-height: 0; padding: var(--sec-pad) 0; scroll-margin-top: var(--nav);
}
main > :is(section, .section):not(.hero, .section--hero) > .wrap { height: auto; }
.home-designs  { background: var(--iv-2); }
.home-journey  { background: var(--iv-1); }
.home-features { background: var(--iv-0); }
.home-faq      { background: var(--iv-1); }
.home-request  { background: var(--iv-2); }

/* ── 2. Type ───────────────────────────────────────────────────────────────── */
/* Centred section heads: a label with a fine rule either side, the heading, an italic accent line. */
.head-c { max-width: 760px; margin: 0 auto clamp(32px, 4.4vw, 56px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.head-c > p:not(.kicker, .accent) { max-width: 56ch; }
.kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0; }
.kicker::before, .head-c > .kicker::after {
  content: ""; width: 34px; height: 1px; background: currentColor; flex: none;
  transition: transform 1.1s var(--ease-soft) .15s;
}
.kicker::before { transform-origin: right; }
.head-c > .kicker::after { transform-origin: left; }
html.rise-js [data-rise]:not(.is-in) .kicker::before,
html.rise-js [data-rise]:not(.is-in) .kicker::after { transform: scaleX(0); }

/* The accent: Cormorant Garamond italic in sentence case, the page's one softer voice. */
.accent {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 1.15vw + 15px, 28px); line-height: 1.3; letter-spacing: .01em; text-transform: none;
}

/* ── 3. Hero ───────────────────────────────────────────────────────────────── */
main > .hero.home-hero {
  height: auto; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav) + clamp(28px, 4vw, 56px)) 0 clamp(40px, 5vw, 72px);
  background:
    radial-gradient(48% 62% at 76% 48%, var(--iv-0) 0%, rgba(251, 248, 241, 0) 72%),
    radial-gradient(60% 60% at 0% 100%, rgba(240, 234, 221, .7) 0%, rgba(240, 234, 221, 0) 70%),
    var(--iv-1);
}
.home-hero > .wrap { height: auto; }
.home-hero .hero__grid { align-items: center; row-gap: 40px; }
.home-hero .hero__text { align-self: center; }
.home-hero .hero__text > .accent { margin-top: 18px; }
.home-hero .hero__lead { margin-top: 18px; }


/* The stage: a soft halo with one fine ring, the phone, and three notes around it. */
.hero__media.hero-stage {
  position: relative; display: grid; place-items: center; height: auto; min-height: 0;
  padding: clamp(24px, 4vw, 48px) 0; overflow: visible; background: none; border-radius: 0;
}
.hero-stage__halo {
  position: absolute; left: 50%; top: 50%; width: min(118%, 640px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--iv-0) 0%, var(--iv-0) 52%, rgba(251, 248, 241, 0) 100%);
}
.hero-stage__halo::after {
  content: ""; position: absolute; inset: 15%; border-radius: 50%; border: 1px solid rgba(20, 20, 20, .09);
}

/* A phone: an Ink Black bezel around a screen. The screen keeps the invitation's own 390:844. */
.device {
  position: relative; display: block; margin: 0; padding: 2.6%;
  border-radius: 15% / 7%; background: var(--ink);
  box-shadow: 0 0 0 1px rgba(20, 20, 20, .9), 0 8px 18px -8px rgba(20, 20, 20, .25), 0 44px 80px -34px rgba(20, 20, 20, .5);
}
.device__screen { position: relative; display: block; width: 100%; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 12.6% / 5.8%; background: var(--iv-1); }
.device__screen > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
.hero-device { position: relative; z-index: 1; width: clamp(210px, 22vw, 300px); }
.hero-device__poster { height: 100% !important; object-fit: cover; object-position: top; }
.hero-device__strip { opacity: 0; transition: opacity .9s var(--ease-soft); }

/* Notes: small ivory cards with an icon, a label and one italic line. */
.note {
  position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 11px 18px 11px 11px; border-radius: 18px; max-width: 240px;
  background: rgba(251, 248, 241, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(20, 20, 20, .06); box-shadow: var(--shadow-soft);
}
.note__icon { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--iv-2); }
.note__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.note__k { font: 300 10.5px/1.4 var(--font-text); letter-spacing: .3em; text-transform: uppercase; }
.note__v { font: italic 500 18px/1.25 var(--font-display); white-space: nowrap; }
.note--a { top: 12%; left: max(0px, calc(50% - 300px)); }
.note--b { top: 43%; right: max(0px, calc(50% - 310px)); }
.note--c { bottom: 12%; left: max(8px, calc(50% - 270px)); }

/* ≤1023: words then the stage, centred, a little smaller. */
@media (max-width: 1023px) {
  .home-hero .hero__grid { row-gap: 8px; }
  .home-hero .hero__media.hero-stage { margin-top: 0; flex: none; }
}
@media (max-width: 639px) {
  .hero-device { width: min(58vw, 230px); }
  .note { padding: 8px 12px 8px 8px; column-gap: 9px; border-radius: 14px; }
  .note__icon { width: 30px; height: 30px; }
  .note__icon svg { width: 15px; height: 15px; }
  .note__k { font-size: 10px; letter-spacing: .24em; }
  .note__v { font-size: 15px; }
  .note--a { top: 8%; left: 0; }
  .note--b { top: 44%; right: 0; }
  .note--c { bottom: 8%; left: 2%; }
}

/* ── 4. Designs ────────────────────────────────────────────────────────────── */
.home-designs .chips { justify-content: center; margin-bottom: clamp(28px, 3.4vw, 44px); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 1199px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 799px)  { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } }

.dcard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--iv-0); border-radius: var(--r-card); overflow: hidden;
  border: 1px solid rgba(20, 20, 20, .05); box-shadow: 0 1px 2px rgba(20, 20, 20, .04);
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.dcard[data-off] { display: none; }
.dcard__stage {
  position: relative; display: grid; place-items: center; padding: 26px 0 30px; color: inherit; text-decoration: none;
  background: radial-gradient(90% 70% at 50% 108%, var(--iv-3) 0%, var(--iv-2) 46%, var(--iv-0) 100%);
}
.dcard__stage .device { width: 56%; transition: transform .7s var(--ease-soft); }
.dcard__stage .device__screen > img { height: 100%; object-fit: cover; object-position: top; }
.dcard__view {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 8px; opacity: 0; white-space: nowrap;
  padding: 9px 16px 9px calc(16px + .3em); border-radius: 999px; background: var(--iv-0); box-shadow: var(--shadow-soft);
  font: 300 11px/1 var(--font-text); letter-spacing: .3em; text-transform: uppercase;
  transition: opacity .4s var(--ease-soft), translate .5s var(--ease-soft);
}
.dcard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.dcard__event { margin: 0; font: 300 11px/1.5 var(--font-text); letter-spacing: .32em; text-transform: uppercase; }
.dcard__name { margin: 0; font: 500 18px/1.3 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.dcard__desc {
  margin: 0; font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.dcard__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.dcard__link, .dcard__req {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0;
  font: 300 11px/1.2 var(--font-text); letter-spacing: .28em; text-transform: uppercase; color: var(--ink);
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.dcard__req { padding: 0 14px 0 calc(14px + .28em); border: 1px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s; }
.dcard__req:hover { background: var(--ink); color: var(--iv-1); }
.dcard__link:hover { text-decoration: underline; text-underline-offset: 5px; }
.dcard__link svg, .dcard__req svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }

@media (hover: hover) {
  .dcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
  .dcard:hover .dcard__stage .device { transform: translateY(-6px) scale(1.015); }
  .dcard:hover .dcard__view, .dcard__stage:focus-visible .dcard__view { opacity: 1; translate: -50% 0; }
}

/* Changing occasion: the chosen designs rise in one after another. */
.dcard.is-enter { animation: card-in .7s var(--ease-soft) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* A phone: one swipeable row with the next card peeking in. */
@media (max-width: 639px) {
  .cards {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 18px; scroll-padding-inline: var(--gut);
  }
  .cards::-webkit-scrollbar { display: none; }
  .dcard { flex: 0 0 74%; scroll-snap-align: start; }
  .home-designs .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); gap: 0 22px; }
  .home-designs .chips::-webkit-scrollbar { display: none; }
  .home-designs .chip { flex: none; }
  .swipe-hint { display: flex; }
}
.swipe-hint { display: none; justify-content: center; align-items: center; gap: 10px; margin: 6px 0 0; font: 300 11px/1.4 var(--font-text); letter-spacing: .3em; text-transform: uppercase; }
.swipe-hint::after { content: ""; width: 26px; height: 1px; background: currentColor; }

/* ── 5. Journey (how it works) ─────────────────────────────────────────────── */
.journey { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.journey__tab {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 22px; row-gap: 6px; width: 100%;
  padding: 22px 26px; border: 1px solid transparent; border-radius: var(--r-card); background: transparent;
  color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  transition: background .5s var(--ease-soft), box-shadow .5s var(--ease-soft), border-color .5s;
}
.journey__tab:hover { background: rgba(251, 248, 241, .6); }
.journey__tab[aria-selected="true"] { background: var(--iv-0); border-color: rgba(20, 20, 20, .05); box-shadow: var(--shadow-soft); }
.journey__num { grid-row: span 3; font: italic 500 34px/1 var(--font-display); font-variant-numeric: lining-nums; padding-top: 2px; }
.journey__title { font: 500 var(--t-h3)/1.35 var(--font-display); letter-spacing: var(--display-tracking); text-transform: uppercase; }
.journey__text { font-size: 16px; line-height: 1.6; }
.journey__bar { display: block; height: 1px; margin-top: 10px; background: var(--line); overflow: hidden; }
.journey__bar > i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.journey__tab[aria-selected="true"] .journey__bar > i { transform: scaleX(1); }
.journey.is-auto .journey__tab[aria-selected="true"] .journey__bar > i { transform: scaleX(0); animation: journey-progress var(--journey-dur, 7s) linear forwards; }
.journey.is-paused .journey__tab[aria-selected="true"] .journey__bar > i { animation-play-state: paused; }
@keyframes journey-progress { to { transform: scaleX(1); } }

.journey__stage {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 28px; overflow: hidden;
  background: radial-gradient(70% 80% at 50% 110%, var(--iv-3) 0%, var(--iv-2) 55%, var(--iv-0) 100%);
  border: 1px solid rgba(20, 20, 20, .05);
}
.journey__panel {
  position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(14px) scale(.985);
  transition: opacity .7s var(--ease-soft), transform 1s var(--ease-soft);
}
.journey__panel.is-on { opacity: 1; transform: none; }
.journey__panel img { position: absolute; inset: 4% 6%; width: 88%; height: 92%; max-width: none; object-fit: contain; }

@media (max-width: 1023px) {
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey__stage { order: -1; aspect-ratio: 1072 / 1100; max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 639px) {
  .journey__tab { padding: 18px 18px; column-gap: 16px; }
  .journey__num { font-size: 28px; }
}

/* ── 6. Features ───────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.bento__visual {
  position: relative; margin: 0; min-height: 520px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 105%, var(--iv-3) 0%, var(--iv-2) 50%, var(--iv-1) 100%);
}
.bento__visual img { position: absolute; inset: 5% 4%; width: 92%; height: 90%; max-width: none; object-fit: contain; }
.bento__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fcard {
  display: grid; align-content: start; gap: 10px; padding: 28px 26px;
  background: var(--iv-1); border: 1px solid rgba(20, 20, 20, .05); border-radius: var(--r-card);
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), background .4s;
}
@media (hover: hover) { .fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); } }
.fcard__icon { width: 44px; height: 44px; margin-bottom: 6px; fill: none; stroke: var(--ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.fcard__name { margin: 0; font: 500 17px/1.35 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.fcard p { margin: 0; font-size: 15px; line-height: 1.6; }
/* The icons draw themselves in as their card rises. */
.fcard__icon :is(path, circle, rect) { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-soft); transition-delay: calc(var(--d, 0ms) + 250ms); }
html.rise-js .fcard[data-rise]:not(.is-in) .fcard__icon :is(path, circle, rect) { stroke-dashoffset: 1; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__visual { min-height: 0; aspect-ratio: 1280 / 1240; max-width: 620px; width: 100%; margin-inline: auto; }
}
@media (max-width: 639px) {
  .bento__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fcard { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; padding: 20px; }
  .fcard__icon { grid-row: span 2; width: 36px; height: 36px; margin: 0; }
}

/* ── 7. Questions ──────────────────────────────────────────────────────────── */
.qa { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.qa__item { background: var(--iv-0); border: 1px solid rgba(20, 20, 20, .06); border-radius: var(--r-card); transition: box-shadow .4s var(--ease-soft); }
.qa__item[open] { box-shadow: var(--shadow-soft); }
.qa__item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none;
  font: 400 var(--t-lead)/1.4 var(--font-text);
}
.qa__item > summary::-webkit-details-marker { display: none; }
.qa__item > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: var(--r-card); }
.qa__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(20, 20, 20, .2); transition: transform .5s var(--ease-soft), background .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: var(--ink); translate: -50% -50%; transition: transform .5s var(--ease-soft); }
.qa__icon::after { transform: rotate(90deg); }
.qa__item[open] .qa__icon { transform: rotate(180deg); background: var(--iv-2); }
.qa__item[open] .qa__icon::after { transform: rotate(0deg); }
.qa__body { padding: 0 26px 24px; }
.qa__body p { margin: 0; max-width: 68ch; line-height: 1.7; }
.qa__item::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease-soft), content-visibility .5s allow-discrete; }
.qa__item[open]::details-content { block-size: auto; }
@media (max-width: 639px) {
  .qa__item > summary { padding: 18px 18px; font-size: 16px; }
  .qa__body { padding: 0 18px 20px; }
}

/* ── 8. Request ────────────────────────────────────────────────────────────── */
.request-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--iv-0); border-radius: 32px; overflow: hidden; border: 1px solid rgba(20, 20, 20, .05); box-shadow: var(--shadow-soft); }
.request-card__form { padding: clamp(28px, 4.4vw, 64px); }
.request-card__form .section-head { margin-bottom: 32px; }
.request-card__aside {
  position: relative; min-height: 420px;
  background: radial-gradient(80% 70% at 50% 105%, var(--iv-3) 0%, var(--iv-2) 55%, var(--iv-1) 100%);
}
.request-card__aside > img { position: absolute; inset: 6% 5%; width: 90%; height: 88%; max-width: none; object-fit: contain; }
@media (max-width: 1023px) {
  .request-card { grid-template-columns: minmax(0, 1fr); }
  .request-card__aside { order: -1; min-height: 0; aspect-ratio: 1376 / 1000; }
}

/* ── 9. WhatsApp ───────────────────────────────────────────────────────────── */
/* WhatsApp's own green with a white glyph, so the button reads as WhatsApp at a glance: the page's one
   colour outside the brand palette, on purpose. */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 30px -12px rgba(20, 20, 20, .45);
  transition: transform .4s var(--ease-soft);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: #1ebe5d; }
.wa-float svg { width: 25px; height: 25px; fill: currentColor; }
.wa-float[hidden] { display: none; }
@media (max-width: 639px) { .wa-float { right: 16px; bottom: calc(var(--bar, 0px) + 12px); width: 48px; height: 48px; } }

/* ── 10. Motion ────────────────────────────────────────────────────────────── */
html:not([data-motion="off"]) .hero-stage__halo { animation: halo-breathe 14s ease-in-out infinite; }
@keyframes halo-breathe { 50% { transform: scale(1.04); opacity: .85; } }

/* the phone rises in; the notes follow, then drift on their own slow rhythms */
html:not([data-motion="off"]) .hero-device { animation: device-in 1.4s var(--ease-soft) .25s both; }
@keyframes device-in { from { opacity: 0; translate: 0 34px; } }
html:not([data-motion="off"]) .note { animation: note-in 1s var(--ease-soft) both, note-float 7s ease-in-out infinite; }
html:not([data-motion="off"]) .note--a { animation-delay: .9s, 1.9s; }
html:not([data-motion="off"]) .note--b { animation-delay: 1.2s, 2.6s; animation-duration: 1s, 8s; }
html:not([data-motion="off"]) .note--c { animation-delay: 1.5s, 3.2s; animation-duration: 1s, 7.5s; }
@keyframes note-in { from { opacity: 0; translate: 0 16px; } }
@keyframes note-float { 50% { transform: translateY(-7px); } }

/* the invitation scrolls itself, pausing on each screen, then glides back to the top */
.hero-device.is-live .hero-device__strip { opacity: 1; animation: invite-scroll 30s cubic-bezier(.65, 0, .35, 1) 1.2s infinite; }
@keyframes invite-scroll {
  0%, 11%   { transform: translateY(0); }
  21%, 32%  { transform: translateY(-25%); }
  42%, 53%  { transform: translateY(-50%); }
  63%, 76%  { transform: translateY(-75%); }
  93%, 100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage__halo, .hero-device, .note, .dcard.is-enter { animation: none !important; }
  .hero-device.is-live .hero-device__strip { animation: none; opacity: 0; }
  .journey.is-auto .journey__tab[aria-selected="true"] .journey__bar > i { animation: none; transform: scaleX(1); }
  .journey__panel, .dcard, .fcard, .qa__icon, .dcard__stage .device { transition: none; }
  .qa__item::details-content { transition: none; }
}
html[data-motion="off"] .hero-device.is-live .hero-device__strip { animation: none; opacity: 0; }

/* ── 11. Close and footer ──────────────────────────────────────────────────── */
/* As tall as what it holds (the kit made it a whole screen, which left an empty band). */
footer.closing { height: auto; min-height: 0; padding: clamp(56px, 7vw, 104px) 0 calc(clamp(32px, 4vw, 48px) + var(--bar, 0px)); }
footer.closing > .wrap { height: auto; }
.closing__links { margin-top: clamp(56px, 7vw, 96px); }

/* ── 12. Phones: how the designs are shown ─────────────────────────────────── */
/* A small segmented control under the occasions: Grid (one large design a row), Carousel (swipe,
   the default) and Compact (two a row, names only). Wider screens always show the card grid. */
.viewbar { display: none; }
@media (max-width: 639px) {
  .viewbar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: -10px 0 18px; }
  .viewbar__label { font: 300 11px/1 var(--font-text); letter-spacing: .3em; text-transform: uppercase; }
  .viewseg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--iv-0); border: 1px solid rgba(20, 20, 20, .08); box-shadow: 0 1px 2px rgba(20, 20, 20, .04); }
  .viewseg__btn { display: grid; place-items: center; width: 42px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; transition: background .35s var(--ease-soft), color .35s var(--ease-soft); }
  .viewseg__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
  .viewseg__btn[aria-pressed="true"] { background: var(--ink); color: var(--iv-1); }
  .viewseg__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

  /* Grid: one large design a row, scrolling down */
  .cards[data-view="grid"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; overflow: visible; margin-inline: 0; padding: 0; }
  .cards[data-view="grid"] .dcard { flex: none; }
  .cards[data-view="grid"] .dcard__stage .device { width: 50%; }

  /* Compact: two a row; each card keeps its phone, occasion, name and Request */
  .cards[data-view="compact"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; margin-inline: 0; padding: 0; }
  .cards[data-view="compact"] .dcard { flex: none; border-radius: 16px; }
  .cards[data-view="compact"] .dcard__stage { padding: 16px 0 18px; }
  .cards[data-view="compact"] .dcard__stage .device { width: 62%; }
  .cards[data-view="compact"] .dcard__body { gap: 4px; padding: 12px 12px 14px; }
  .cards[data-view="compact"] .dcard__event { font-size: 10px; letter-spacing: .26em; }
  .cards[data-view="compact"] .dcard__name { font-size: 14px; letter-spacing: .1em; }
  .cards[data-view="compact"] :is(.dcard__desc, .dcard__link) { display: none; }
  .cards[data-view="compact"] .dcard__actions { padding-top: 10px; }
  .cards[data-view="compact"] .dcard__req { width: 100%; justify-content: center; min-height: 34px; }

  /* the swipe hint belongs to the carousel only */
  .cards:not([data-view="carousel"]) + .swipe-hint { display: none; }
}

/* ── 13. WhatsApp: a quiet label beside the button on hover ────────────────── */
.wa-float::before {
  content: attr(data-label); position: absolute; right: calc(100% + 12px); top: 50%; translate: 8px -50%;
  padding: 10px 16px calc(10px) calc(16px + .28em); border-radius: 999px; white-space: nowrap; pointer-events: none;
  background: var(--iv-0); color: var(--ink); box-shadow: var(--shadow-soft);
  font: 300 11px/1 var(--font-text); letter-spacing: .28em; text-transform: uppercase;
  opacity: 0; transition: opacity .35s var(--ease-soft), translate .45s var(--ease-soft);
}
@media (hover: hover) {
  .wa-float:is(:hover, :focus-visible)::before { opacity: 1; translate: 0 -50%; }
}
.wa-float:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
