/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #140d13;
  --bg-2:      #1c121a;
  --bg-3:      #281a25;
  --bg-4:      #331f2c;
  --cream:     #f4ece2;
  --cream-2:   #ddccd3;
  --cream-3:   #8f7c86;
  --purple:    #a866d1;
  --purple-2:  #8447ac;
  --purple-deep: #4c2361;
  --purple-soft: #d6b8ea;
  --gold:      #c9a15a;
  --gold-soft: #e0c48a;
  --brown:     #4a2e22;
  --line:      rgba(244,236,226,.12);
  --line-2:    rgba(244,236,226,.06);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, sans-serif;
  --mono:  "JetBrains Mono", monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--purple); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--purple-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.2rem; background: var(--cream); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-family: var(--sans);
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 720px)  { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3rem; } }

.kicker {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: var(--gold-soft); display: inline-block; }

.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); margin-top: .9rem; }
.section-head p { color: var(--cream-3); font-size: 1.05rem; margin-top: 1rem; max-width: 52ch; }

.eyebrow-line { color: var(--cream-3); }

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: var(--purple-soft); }
.mono { font-family: var(--mono); }

[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

.split-word, .split-char { display: inline-block; will-change: transform, opacity; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 999px; font-family: var(--sans); font-weight: 600;
  font-size: .92rem; letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: var(--cream);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(168,102,209,0.35), 0 8px 20px rgba(0,0,0,0.35);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(244,236,226,0.03);
}
.btn-ghost:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  transform: translateY(-3px);
}
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform;
  transition: transform .8s var(--ease-soft);
}

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: #0b070a;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .4s var(--ease-out), padding .3s;
  padding-block: 1.1rem;
}
.nav.is-scrolled {
  padding-block: .8rem;
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0,0,0,.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-logo-img { height: 38px; width: auto; display: block; border-radius: 50%; }
.nav-logo-text { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.1; color: var(--cream); }
.nav-logo-text small {
  display: block; font-family: var(--mono); font-style: normal; font-size: .58rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); margin-top: .15rem;
}
.nav-links { display: none; align-items: center; gap: 2.2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: .25rem 0; font-size: .92rem; color: var(--cream-2); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: var(--gold-soft);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-burger { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; }
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger svg { width: 18px; height: 18px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 101;
  background: var(--bg); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[aria-hidden="false"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--serif); font-size: 2rem; font-style: italic; }
.nav-mobile .nav-mobile-close { position: absolute; top: 1.6rem; right: 1.6rem; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }

/* Cards */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }
.has-halo { position: relative; isolation: isolate; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(201,161,90,.28), transparent 62%);
  opacity: 0; transition: opacity .4s;
  mix-blend-mode: screen;
  border-radius: inherit;
}
.has-halo:hover::before { opacity: 1; }

/* =============================================================
   6. Sections
   ============================================================= */

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s, clip-path 1.1s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-logo-img { display: block; height: 96px; width: auto; margin: 0 auto; }
.splash-line { display: block; width: 120px; height: 1px; margin: 1.4rem auto 0; background: var(--line);  position: relative; overflow: hidden; }
.splash-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold-soft); animation: splashLoad 1.6s ease-in-out infinite; }
@keyframes splashLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: clip; isolation: isolate;
  background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.25);
  filter: blur(28px) saturate(1.3) brightness(.62);
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(168,102,209,.22), transparent 60%),
    linear-gradient(180deg, rgba(20,13,19,.35) 0%, rgba(20,13,19,.55) 45%, rgba(20,13,19,.92) 100%);
}
.hero-mesh { position: absolute; inset: -10%; z-index: -2; pointer-events: none; }
.hero-mesh::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(168,102,209,.42), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(201,161,90,.16), rgba(74,46,34,.14), rgba(168,102,209,.22), rgba(201,161,90,.16));
  filter: blur(90px) saturate(120%);
  opacity: .85;
  animation: meshShift 24s linear infinite;
  mix-blend-mode: screen;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 35%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 75%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 35%; }
}
.hero-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .15; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { position: relative; width: 100%; padding-bottom: clamp(3.5rem, 8vw, 6rem); padding-top: 8rem; }
.hero-inner--centered {
  text-align: center; display: flex; flex-direction: column; align-items: stretch;
  padding-top: clamp(6rem, 12vw, 8rem);
}
.hero-kicker { margin-bottom: 1.4rem; }
.hero-logo { height: clamp(90px, 15vw, 148px); width: auto; margin: 0 auto 1.8rem; border-radius: 50%; filter: drop-shadow(0 18px 34px rgba(0,0,0,.5)); }
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  max-width: 16ch;
  color: var(--cream);
}
.hero-inner--centered .hero-title { margin-inline: auto; }
.hero-title em { font-style: italic; }
.hero-sub { color: var(--cream-2); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; margin-top: 1.4rem; font-weight: 300; }
.hero-inner--centered .hero-sub { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-inner--centered .hero-actions { justify-content: center; }

.hero-marquee {
  position: relative; z-index: 1;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.marquee-row { display: flex; flex-wrap: nowrap; overflow: hidden; }
.marquee-track { display: flex; flex: 0 0 auto; gap: 2.5rem; white-space: nowrap; will-change: transform; font-family: var(--mono); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); padding-right: 2.5rem; }
.marquee-track span.dot { color: var(--gold-soft); }

.hero-scroll-cue { position: absolute; right: 2rem; bottom: 2rem; display: none; writing-mode: vertical-rl; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; color: var(--cream-3); align-items: center; gap: .8rem; }
@media (min-width: 960px) { .hero-scroll-cue { display: flex; } }
.hero-scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--gold-soft), transparent); }

/* Mobile: a forced 100svh + centered block leaves a dead empty stretch below
   the marquee before the next section (the shorter mobile content doesn't
   fill the full screen height). Let the hero hug its own content instead. */
@media (max-width: 719px) {
  .hero { min-height: 96svh; align-items: stretch; }
  .hero-inner--centered { padding-top: 6rem; padding-bottom: 2rem; }
  /* pins the ticker to the bottom instead of leaving a dead stretch of
     empty background below it, capped so it doesn't drift too far down */
  .hero-marquee { margin-top: auto; padding-top: 1.2rem; }
}

/* Carta completa (embebida en la landing) */
.section-carta { background: var(--bg); position: relative; }
.carta-header { padding-top: 9rem; padding-bottom: 2.5rem; position: relative; overflow: clip; }
.carta-header--embedded { padding-top: clamp(4rem, 8vw, 6rem); }
.carta-header::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 60%; z-index: -1;
  background: radial-gradient(50% 60% at 30% 20%, rgba(168,102,209,.28), transparent 70%),
              radial-gradient(40% 50% at 80% 10%, rgba(201,161,90,.14), transparent 70%);
  filter: blur(90px);
}
.carta-header h1, .carta-header h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-top: .8rem; max-width: 18ch; }
.carta-search { position: relative; max-width: 420px; margin-top: 2rem; }
.carta-search input {
  width: 100%; padding: 1rem 1.2rem 1rem 2.8rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(244,236,226,0.04); color: var(--cream); font-family: var(--sans); font-size: .96rem;
  transition: border-color .3s;
}
.carta-search input:focus { outline: none; border-color: var(--purple-soft); }
.carta-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--cream-3); pointer-events: none; }
.carta-search-empty { display: none; color: var(--cream-3); font-style: italic; margin-top: 3rem; }
.carta-search-empty.is-visible { display: block; }

/* Cover carousel — horizontal category picker */
.cover-rail-wrap {
  position: sticky; top: 64px; z-index: 50;
  padding-block: .5rem 2.2rem;
  background: linear-gradient(180deg, var(--bg) 82%, transparent);
}
.cover-rail {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity;
  padding: .3rem .1rem 1rem; scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.cover-rail::-webkit-scrollbar { display: none; }
.cover-rail:active { cursor: grabbing; }

.cover-card {
  position: relative; flex: 0 0 auto; width: 168px; aspect-ratio: 3 / 4;
  border-radius: 18px; overflow: hidden; scroll-snap-align: start;
  border: 1px solid var(--line); isolation: isolate;
  transition: border-color .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .4s var(--ease-soft);
}
@media (min-width: 640px)  { .cover-card { width: 200px; } }
@media (min-width: 1024px) { .cover-card { width: 236px; } }

.cover-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(.68);
  transition: filter .5s var(--ease-out), transform .7s var(--ease-soft);
}
.cover-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,13,19,0) 25%, rgba(20,13,19,.55) 70%, rgba(20,13,19,.92) 100%);
}
.cover-card-label {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; text-align: left;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--cream); line-height: 1.1;
}
.cover-card-label small {
  display: block; font-family: var(--sans); font-style: normal; font-size: .7rem;
  letter-spacing: .04em; color: var(--cream-3); margin-top: .4rem; line-height: 1.4;
}
.cover-card:hover img,
.cover-card:focus-visible img { transform: scale(1.08); filter: saturate(1.15) contrast(1.05) brightness(.78); }
.cover-card.is-active {
  border-color: var(--purple-soft);
  box-shadow: 0 0 0 1px var(--purple-soft), 0 24px 50px -10px rgba(168,102,209,.4);
}
.cover-card.is-active img { filter: saturate(1.2) contrast(1.05) brightness(.85); }
.cover-card.is-active .cover-card-label { color: var(--cream); }
.cover-card.is-active .cover-card-label::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-soft); margin-right: .5rem; vertical-align: middle;
  box-shadow: 0 0 10px 2px var(--purple-soft);
}

.cover-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--cream-2);
  transition: border-color .3s, color .3s;
}
.cover-arrow svg { width: 16px; height: 16px; }
.cover-arrow:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.cover-arrow--left { left: -6px; }
.cover-arrow--right { right: -6px; }
@media (max-width: 719px) { .cover-arrow { display: none; } }

.m-section { padding-block: 2.5rem 1rem; scroll-margin-top: 130px; }
.m-section-title { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: .5rem; }
.m-section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.m-section-title .count { font-family: var(--mono); font-size: .74rem; color: var(--cream-3); letter-spacing: .06em; }

.m-group { padding-block: 1.8rem; border-bottom: 1px solid var(--line-2); scroll-margin-top: 130px; }
.m-group:last-child { border-bottom: none; }
.m-group.is-hidden { display: none; }
.m-group h3 { font-size: 1rem; font-style: italic; color: var(--gold-soft); font-family: var(--serif); margin-bottom: .9rem; letter-spacing: .01em; }
.m-list { display: grid; gap: 0; grid-template-columns: 1fr; }
@media (min-width: 860px) { .m-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

.m-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.m-row.is-hidden { display: none; }
.m-name { color: var(--cream-2); font-size: .96rem; line-height: 1.35; }
.m-name small { display: block; color: var(--cream-3); font-size: .78rem; font-style: italic; margin-top: .2rem; line-height: 1.4; }
.m-price { font-family: var(--mono); color: var(--gold-soft); font-size: .88rem; white-space: nowrap; flex-shrink: 0; }

/* Visita / contact */
.visita { background: var(--bg); position: relative; overflow: clip; }
.visita-grid { display: grid; gap: 3rem; max-width: 640px; }
.info-list { margin-top: 2rem; display: grid; gap: 1.4rem; }
.info-row { display: flex; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.info-row .label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-3); width: 9rem; flex-shrink: 0; }
.info-row .value { color: var(--cream-2); }
.info-row .value.placeholder { color: var(--cream-3); font-style: italic; }
.info-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center; isolation: isolate;
  box-shadow: 0 10px 30px rgba(37,211,102,.4), 0 4px 14px rgba(0,0,0,.35);
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-out), opacity .2s;
}
/* hide behind the fullscreen mobile menu instead of floating on top of it */
[data-nav-mobile][aria-hidden="false"] ~ .wa-float { opacity: 0; pointer-events: none; }
.wa-float svg { width: 27px; height: 27px; position: relative; z-index: 1; }
.wa-float:hover, .wa-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 16px 38px rgba(37,211,102,.5), 0 6px 18px rgba(0,0,0,.4);
}
.wa-float-pulse {
  position: absolute; inset: 0; z-index: 0; border-radius: 50%;
  background: #25d366; opacity: .5;
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }
.wa-float-label {
  position: absolute; right: calc(100% + .9rem); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--bg-3); color: var(--cream); padding: .55rem 1rem; border-radius: 8px;
  font-size: .82rem; font-family: var(--sans); white-space: nowrap; border: 1px solid var(--line);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 719px) { .wa-float-label { display: none; } }

/* Chat bubble that pops up next to the WhatsApp button after 20s */
.wa-bubble {
  position: fixed; right: 1.3rem; bottom: calc(1.3rem + 58px + .9rem); z-index: 199;
  width: min(290px, calc(100vw - 2.6rem));
  background: var(--cream); color: var(--bg);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 4px 14px rgba(0,0,0,.3);
  opacity: 0; transform: translateY(14px) scale(.96); transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .55s var(--ease-bounce);
}
.wa-bubble.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble::after {
  content: ""; position: absolute; right: 22px; bottom: -7px; width: 16px; height: 16px;
  background: var(--cream); transform: rotate(45deg); border-radius: 0 0 4px 0;
}
.wa-bubble-link { display: block; padding: 1rem 2.4rem 1rem 1.1rem; position: relative; z-index: 1; border-radius: inherit; }
.wa-bubble-link strong { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.2; font-weight: 600; }
.wa-bubble-link span { display: block; font-size: .85rem; margin-top: .35rem; color: #5a4a52; line-height: 1.4; }
.wa-bubble-close {
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  color: #5a4a52; transition: background .2s;
}
.wa-bubble-close:hover { background: rgba(20,13,19,.1); }
[data-nav-mobile][aria-hidden="false"] ~ .wa-bubble { opacity: 0; pointer-events: none; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
@media (max-width: 719px) {
  /* clears the fixed WhatsApp bubble so it never sits on top of the last footer line */
  .footer { padding-bottom: 6rem; }
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { color: var(--cream-3); font-size: .9rem; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--cream-3); font-size: .78rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* Credits page */
.page-credits { padding-block: 6rem 4rem; }
.page-credits .masthead { position: fixed; top: 0; inset-inline: 0; padding: 1.4rem 1.5rem; z-index: 10; background: rgba(20,13,19,.8); backdrop-filter: blur(10px); }
.page-credits h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.credits-list { display: grid; gap: 1rem; max-width: 760px; }
.credits-list li { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--cream-2); font-size: .92rem; }
.credits-list a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   7. Responsive tweaks
   ============================================================= */
@media (max-width: 539px) {
  .hero-actions .btn { width: 100%; }
}

/* =============================================================
   8. Reduced-motion — only the truly intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh::before { animation: none; }
  .splash-line::after { animation: none; width: 100%; }
  .wa-float-pulse { display: none; }
}
