/* ============================================================
   MARIA CLARA — styles.css v1.0
   Wedding Invitations PH · Filipiniana heritage panel design

   Structure:
   1. Tokens & base          5. Countdown (capiz flip)
   2. Hero                   6. Content sections
   3. Frame (embroidery)     7. Fan / gallery / RSVP
   4. Marker (Baybayin)      8. Desktop & reduced motion
   ============================================================ */

/* ---- 1. TOKENS & BASE -------------------------------------- */
:root {
  /* Palette — piña / capiz / narra / brass / terracotta */
  --pina:        #F4EDDE;
  --capiz:       #FBF8F1;
  --narra:       #4A2E1C;
  --narra-soft:  #6B4A2E;
  --brass:       #B08D4A;
  --brass-soft:  rgba(176, 141, 74, 0.35);
  --terracotta:  #A24E3D;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script:  'Tangerine', cursive;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-baybayin:'Noto Sans Tagalog', sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --stitch-duration: 2.2s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;              /* 17px — serif reads small */
  line-height: 1.7;
  color: var(--narra);
  background-color: var(--pina);     /* solid fallback if texture missing */
  background-image: url('../assets/images/pina-texture.png');
  background-size: 400px 400px;      /* tile at half res = subtle weave */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- 2. HERO ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;                /* svh: correct on mobile browsers */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;       /* keep faces above the scrim */
}

/* Scrim: keeps overlay text readable on any photo */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(36, 21, 11, 0.82) 0%,
      rgba(36, 21, 11, 0.45) 32%,
      rgba(36, 21, 11, 0.05) 58%,
      rgba(36, 21, 11, 0.18) 100%);
}

.hero__content {
  position: relative;
  padding: 0 1.5rem 5.5rem;
  color: var(--capiz);
}

.hero__monogram {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;               /* re-centers letter-spaced text */
  color: #E4CE9E;
  margin-bottom: 1.25rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.hero__names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.25rem, 15vw, 6.5rem);
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero__amp { color: #E4CE9E; }
.hero__amp--names { font-size: 0.6em; margin: 0 0.05em; }

.hero__rule,
.footer__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1rem auto 0.85rem;
}

.hero__rule span,
.footer__rule span { display: block; width: 52px; height: 1px; background: #E4CE9E; }

.hero__rule-diamond { width: 9px; height: 9px; color: #E4CE9E; }

.hero__date {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
}

.hero__venue {
  font-style: italic;
  font-size: 0.9375rem;
  opacity: 0.85;
  margin-top: 0.35rem;
}

.hero__scroll {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1.4rem;
  color: #E4CE9E;
  text-decoration: none;
}

.hero__scroll-text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: #E4CE9E;
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1;   }
}

/* Hero load-in: staggered rise, --d set inline per element */
.js-load {
  opacity: 0;
  transform: translateY(14px);
  animation: loadRise 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.35s + var(--d, 0) * 0.16s);
}

@keyframes loadRise { to { opacity: 1; transform: translateY(0); } }

/* ---- 3. FRAME — the signature embroidery panel ------------- */
.section { padding: 1.25rem 1rem; }

.frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--capiz);
  box-shadow: 0 1px 0 rgba(74, 46, 28, 0.06);
}

/* Stitch line: draws itself when .is-visible lands on .section */
.frame__stitch {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  pointer-events: none;
}

.frame__stitch rect {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.2px;
  stroke-dasharray: 0.06 0.015;      /* running-stitch pattern */
  stroke-dashoffset: 1;
  opacity: 0;
}

.is-visible .frame__stitch rect {
  opacity: 1;
  stroke-dashoffset: 0;
  transition:
    stroke-dashoffset var(--stitch-duration) var(--ease-out),
    opacity 0.3s linear;
}

/* Corner sprigs: bloom in after the stitch completes */
.frame__corner {
  position: absolute;
  width: 34px;
  height: 34px;
  color: var(--brass);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--stitch-duration) * 0.7);
  pointer-events: none;
}

.is-visible .frame__corner { opacity: 1; transform: scale(1); }

.frame__corner--tl { top: 16px;    left: 16px; }
.frame__corner--tr { top: 16px;    right: 16px;  transform: scale(0.6) scaleX(-1); }
.frame__corner--bl { bottom: 16px; left: 16px;   transform: scale(0.6) scaleY(-1); }
.frame__corner--br { bottom: 16px; right: 16px;  transform: scale(0.6) scale(-1); }

.is-visible .frame__corner--tr { transform: scaleX(-1); }
.is-visible .frame__corner--bl { transform: scaleY(-1); }
.is-visible .frame__corner--br { transform: scale(-1); }

.frame__inner {
  position: relative;
  padding: 3.25rem 1.75rem 3rem;
  text-align: center;
}

/* ---- 4. MARKER — Baybayin numeral in callado medallion ----- */
.marker {
  position: relative;
  width: 128px;
  height: 58px;
  margin: 0 auto 0.9rem;
  color: var(--brass);
}

.marker__motif { position: absolute; inset: 0; width: 100%; height: 100%; }

.marker__glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-baybayin);
  font-size: 1.05rem;
  color: var(--narra-soft);
  padding-bottom: 2px;
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 2.375rem);
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

.section__title em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.35em;
  color: var(--terracotta);
}

/* ---- 5. COUNTDOWN — capiz flip panes ------------------------ */
.countdown { padding-top: 4.5rem; }     /* breathing room below hero */

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.countdown__pane {
  display: block;
  padding: 0.85rem 0.2rem;
  background: rgba(255, 255, 255, 0.55);   /* translucent = capiz shell */
  border: 1px solid var(--brass-soft);
  box-shadow: inset 0 0 14px rgba(176, 141, 74, 0.12);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--narra);
}

.countdown__pane.is-flipping { animation: paneFlip 0.5s var(--ease-out); }

@keyframes paneFlip {
  0%   { transform: perspective(400px) rotateX(0); }
  50%  { transform: perspective(400px) rotateX(88deg); }
  100% { transform: perspective(400px) rotateX(0); }
}

.countdown__label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--narra-soft);
}

.countdown__date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.9rem;
  font-family: var(--font-display);
}

.countdown__date-part {
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--narra-soft);
}

.countdown__date-day {
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
}

/* ---- 6. CONTENT SECTIONS ------------------------------------ */

/* Invitation */
.invite__message { max-width: 46ch; margin: 0 auto; }

.invite__verse {
  max-width: 40ch;
  margin: 1.75rem auto 0;
  font-style: italic;
  color: var(--narra-soft);
}

.invite__verse p::before { content: '\201C'; }
.invite__verse p::after  { content: '\201D'; }

/* Story timeline: narra line + brass nodes */
.story__timeline {
  list-style: none;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding-left: 1.75rem;
}

.story__timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brass-soft), var(--brass), var(--brass-soft));
}

.story__item { position: relative; padding-bottom: 2rem; }
.story__item:last-child { padding-bottom: 0; }

.story__node {
  position: absolute;
  left: -1.75rem;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--capiz);
  border: 2px solid var(--brass);
  transform: rotate(45deg);          /* lozenge, echoes the marker */
}

.story__date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--terracotta);
}

.story__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  margin: 0.15rem 0 0.35rem;
}

.story__text { font-size: 1rem; color: var(--narra-soft); }

/* Details: estampita cards */
.details__grid { display: grid; gap: 0; }

.details__card { padding: 0.5rem 0 1.5rem; }

.details__heading {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.details__time {
  font-family: var(--font-display);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 0.65rem;
}

.details__venue {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}

.details__address {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--narra-soft);
  margin: 0.3rem 0 1.1rem;
}

.details__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem 0 1.5rem;
  color: var(--brass);
}

.details__divider::before,
.details__divider::after {
  content: '';
  width: 64px;
  height: 1px;
  background: var(--brass-soft);
}

.details__divider-diamond { width: 9px; height: 9px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn--outline {
  color: var(--narra);
  border: 1px solid var(--brass);
}

.btn--outline:hover,
.btn--outline:focus-visible { background: var(--brass); color: var(--capiz); }

.btn--solid {
  color: var(--capiz);
  background: var(--narra);
  border: 1px solid var(--narra);
}

.btn--solid:hover,
.btn--solid:focus-visible { background: var(--terracotta); border-color: var(--terracotta); }

.btn:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---- 7. FAN · ENTOURAGE · DRESS CODE · GALLERY · RSVP ------- */

/* Abanico fan: blades share one pivot, unfold when visible */
.fan {
  width: 150px;
  height: 94px;
  margin: 0 auto 1.75rem;
  overflow: visible;
}

.fan__blade path {
  fill: rgba(176, 141, 74, 0.14);
  stroke: var(--brass);
  stroke-width: 1;
}

.fan__blade {
  transform-box: view-box;           /* rotate in viewBox coordinates */
  transform-origin: 80px 92px;       /* shared pivot at the handle */
  transform: rotate(0deg);
  transition: transform 1.1s var(--ease-out);
}

.fan__pivot { fill: var(--brass); }

.fan.is-shown .fan__blade:nth-child(1) { transform: rotate(-54deg); transition-delay: 0.00s; }
.fan.is-shown .fan__blade:nth-child(2) { transform: rotate(-36deg); transition-delay: 0.07s; }
.fan.is-shown .fan__blade:nth-child(3) { transform: rotate(-18deg); transition-delay: 0.14s; }
.fan.is-shown .fan__blade:nth-child(4) { transform: rotate(0deg);   transition-delay: 0.21s; }
.fan.is-shown .fan__blade:nth-child(5) { transform: rotate(18deg);  transition-delay: 0.28s; }
.fan.is-shown .fan__blade:nth-child(6) { transform: rotate(36deg);  transition-delay: 0.35s; }
.fan.is-shown .fan__blade:nth-child(7) { transform: rotate(54deg);  transition-delay: 0.42s; }

/* Entourage */
.entourage__group { margin-bottom: 2.25rem; }
.entourage__group:last-child { margin-bottom: 0; }

.entourage__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1875rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.entourage__heading:not(:first-child) { margin-top: 1.5rem; }

.entourage__subheading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}

.entourage__cols {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1.25rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.entourage__cols li:nth-child(odd)  { text-align: right; }
.entourage__cols li:nth-child(even) { text-align: left; }

.entourage__secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.entourage__list { list-style: none; font-size: 1rem; }

/* Dress code */
.dresscode__body { max-width: 46ch; margin: 0 auto 1.75rem; }
.dresscode__body p + p { margin-top: 0.75rem; }
.dresscode__body strong { font-family: var(--font-display); letter-spacing: 0.04em; }

.dresscode__swatches {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.dresscode__swatches li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dresscode__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--brass-soft);
  box-shadow: inset 0 0 0 3px var(--capiz);
}

/* Gallery: capiz-pane reveal (veil grid injected by JS) */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.gallery__veil {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}

.gallery__veil span {
  background: var(--pina);
  border: 0.5px solid var(--brass-soft);
  opacity: 1;
  transition: opacity 0.55s ease;
  transition-delay: calc(var(--i) * 90ms);
}

.is-visible .gallery__veil span { opacity: 0; }

/* RSVP */
.rsvp__text { max-width: 42ch; margin: 0 auto 1.5rem; }

.rsvp__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.rsvp__note {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--narra-soft);
  max-width: 44ch;
  margin: 0 auto;
}

/* Footer */
.footer { text-align: center; padding: 3.5rem 1.5rem 2.75rem; }

.footer__monogram {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.footer__monogram .hero__amp { color: var(--terracotta); }

.footer__hashtag {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--terracotta);
  margin-top: 0.25rem;
}

.footer__rule span { background: var(--brass); }
.footer__rule .hero__rule-diamond { color: var(--brass); }

.footer__credit { font-size: 0.8125rem; color: var(--narra-soft); }
.footer__credit a { color: var(--narra-soft); }

/* Reveal utility: fade-rise for inner content */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.is-visible .js-reveal { opacity: 1; transform: translateY(0); }

/* Stagger siblings inside a visible section */
.is-visible .js-reveal:nth-of-type(2) { transition-delay: 0.12s; }
.is-visible .js-reveal:nth-of-type(3) { transition-delay: 0.24s; }
.is-visible .js-reveal:nth-of-type(4) { transition-delay: 0.36s; }
.is-visible .js-reveal:nth-of-type(5) { transition-delay: 0.48s; }

/* ---- 8. DESKTOP & ACCESSIBILITY ----------------------------- */
@media (min-width: 720px) {
  .section { padding: 2rem 2rem; }

  .frame__inner { padding: 4.25rem 4rem 4rem; }

  .countdown__pane { font-size: 2rem; padding: 1.1rem 0.25rem; }

  /* Details side-by-side with vertical lozenge divider */
  .details__grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 0 1.5rem;
  }

  .details__divider { flex-direction: column; height: 100%; padding: 1rem 0; }
  .details__divider::before,
  .details__divider::after { width: 1px; height: 64px; flex: 1; }

  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .rsvp__actions { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
  .frame { max-width: 860px; }
  .hero__photo { object-position: center 25%; }
}

/* Reduced motion: land on final states, no animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js-load,
  .js-reveal { animation: none; transition: none; opacity: 1; transform: none; }

  .frame__stitch rect { opacity: 1; stroke-dashoffset: 0; transition: none; }
  .frame__corner { opacity: 1; transform: none; transition: none; }
  .frame__corner--tr { transform: scaleX(-1); }
  .frame__corner--bl { transform: scaleY(-1); }
  .frame__corner--br { transform: scale(-1); }

  .fan__blade { transition: none; }
  .fan .fan__blade:nth-child(1) { transform: rotate(-54deg); }
  .fan .fan__blade:nth-child(2) { transform: rotate(-36deg); }
  .fan .fan__blade:nth-child(3) { transform: rotate(-18deg); }
  .fan .fan__blade:nth-child(5) { transform: rotate(18deg); }
  .fan .fan__blade:nth-child(6) { transform: rotate(36deg); }
  .fan .fan__blade:nth-child(7) { transform: rotate(54deg); }

  .gallery__veil { display: none; }
  .hero__scroll-line { animation: none; }
  .countdown__pane.is-flipping { animation: none; }
}

/* ============================================================
   DEMO-ONLY STYLES — sticky banner, floating CTA, footer CTA.
   These live ONLY in the public demo, never in client builds.
   ============================================================ */

/* Sticky demo banner */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 2.75rem 0.6rem 1rem;
  background: var(--narra);
  color: var(--capiz);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.demo-banner strong { color: #E4CE9E; font-weight: 500; }

.demo-banner__cta {
  color: var(--narra);
  background: #E4CE9E;
  text-decoration: none;
  padding: 0.3rem 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.demo-banner__cta:hover,
.demo-banner__cta:focus-visible { background: var(--capiz); }

.demo-banner__close {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--brass-soft);
  color: var(--capiz);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.demo-banner__close:hover,
.demo-banner__close:focus-visible { background: rgba(255,255,255,0.12); }

.demo-banner.is-hidden { display: none; }

/* Floating "Order this template" button */
.demo-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  background: var(--terracotta);
  color: var(--capiz);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(74, 46, 28, 0.28);
  transform: translateY(0);
  transition: transform 0.3s var(--ease-out), background 0.25s ease, opacity 0.3s ease;
}

.demo-fab:hover,
.demo-fab:focus-visible { background: var(--narra); }

.demo-fab.is-tucked { transform: translateY(150%); opacity: 0; pointer-events: none; }

.demo-fab__dot { width: 7px; height: 7px; background: #E4CE9E; transform: rotate(45deg); }

/* End-of-page CTA section (before footer) */
.demo-cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--narra);
  color: var(--capiz);
}

.demo-cta__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #E4CE9E;
  margin-bottom: 0.6rem;
}

.demo-cta__title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 9vw, 4rem);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.demo-cta__text {
  max-width: 42ch;
  margin: 0 auto 2rem;
  color: rgba(251, 248, 241, 0.82);
}

.demo-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.demo-cta .btn--solid { background: var(--terracotta); border-color: var(--terracotta); }
.demo-cta .btn--solid:hover,
.demo-cta .btn--solid:focus-visible { background: #E4CE9E; color: var(--narra); border-color: #E4CE9E; }

.demo-cta .btn--outline { color: var(--capiz); border-color: var(--brass); }
.demo-cta .btn--outline:hover,
.demo-cta .btn--outline:focus-visible { background: var(--brass); color: var(--narra); }

.demo-cta__price {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: rgba(251, 248, 241, 0.7);
}

.demo-cta__price strong { color: #E4CE9E; font-weight: 500; }

@media (min-width: 720px) {
  .demo-cta__actions { flex-direction: row; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-fab { transition: none; }
}
