/* ═══════════════════════════════════════════════════════
   Sitento — Shared Styles (v2 · editorial premium)
   ═══════════════════════════════════════════════════════ */

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

:root {
  /* Light is now the primary palette (editorial cream) */
  --bg:        #F2EDE6;
  --bg-warm:   #EDE6DB;
  --fg:        #0F0F0E;
  --dim:       rgba(15,15,14,0.58);
  --mute:      rgba(15,15,14,0.36);
  --hair:      rgba(15,15,14,0.12);
  --border:    rgba(15,15,14,0.10);
  --inv:       #0F0F0E;
  --inv-fg:    #F2EDE6;
  --accent:    #1F5E3B;     /* forest green — premium accent */
  --accent-2:  #B8AB97;     /* warm taupe */
  --green:     #1F5E3B;     /* legacy alias kept */
  --easing:    cubic-bezier(0.16,1,0.3,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "kern";
}

/* Subtle paper grain across the page */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='220' height='220' filter='url(%23n)' opacity='0.04'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* Dark sections — flip palette */
.dark {
  --bg:     #0F0F0E;
  --fg:     #F2EDE6;
  --dim:    rgba(242,237,230,0.60);
  --mute:   rgba(242,237,230,0.32);
  --hair:   rgba(242,237,230,0.12);
  --border: rgba(242,237,230,0.10);
  --inv-fg: #0F0F0E;
  --accent: #6EE7B7;
  background: var(--bg);
  color: var(--fg);
}

/* Wrapper */
.w { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.w-tight { max-width: 1100px; margin: 0 auto; padding: 0 56px; }

/* ── Navigation ─────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 56px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.4s var(--easing), backdrop-filter 0.4s, border-color 0.4s;
}
.site-nav.scrolled {
  background: rgba(242,237,230,0.86);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hair);
}

.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg); text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; flex: 1; justify-content: center;
}

.nav-links a {
  font-size: 13px; font-weight: 500;
  color: var(--dim); text-decoration: none;
  letter-spacing: 0.005em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--fg);
}

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--inv-fg); background: var(--fg);
  text-decoration: none;
  padding: 11px 20px; border-radius: 100px;
  transition: transform 0.3s var(--easing), background 0.25s;
  white-space: nowrap;
  flex-shrink: 0; margin-left: 20px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta::after { content: '→'; transition: transform 0.3s var(--easing); }
.nav-cta:hover { background: #1F5E3B; }
.nav-cta:hover::after { transform: translateX(3px); }

/* Burger */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: 16px;
  flex-direction: column; gap: 5px; align-items: flex-end;
}
.nav-burger span {
  display: block; height: 1.5px; background: var(--fg);
  border-radius: 2px; transition: all 0.3s;
}
.nav-burger span:first-child { width: 22px; }
.nav-burger span:last-child  { width: 14px; }
.nav-burger.open span:first-child { transform: rotate(45deg) translate(4.5px, 4px); width: 20px; }
.nav-burger.open span:last-child  { transform: rotate(-45deg) translate(4.5px, -4px); width: 20px; }

/* Mobile overlay menu */
.nav-mobile {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(242,237,230,0.97);
  backdrop-filter: blur(20px);
  z-index: 199; flex-direction: column;
  padding: 96px 32px 40px; gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px,7vw,44px); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1;
  color: var(--dim); text-decoration: none;
  padding: 18px 0; border-bottom: 1px solid var(--hair);
  transition: color 0.2s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--fg); }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .nav-mobile-cta {
  margin-top: 36px; display: inline-block;
  font-size: 15px; color: var(--inv-fg); background: var(--fg);
  padding: 14px 28px; border-radius: 100px; align-self: flex-start;
  font-weight: 500; letter-spacing: -0.01em; transition: opacity 0.2s;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: 32px 56px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
}
.f-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--fg);
}
.site-footer p, .site-footer a {
  font-size: 12px; color: var(--mute);
  text-decoration: none; letter-spacing: 0.02em;
}
.site-footer a:hover { color: var(--fg); }
.f-links { display: flex; gap: 24px; }

/* ── Reveal animations ──────────────────────────────── */
.r {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--easing), transform 1s var(--easing);
}
.r.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }

/* Image reveal — non-blocking. Images always visible.
   Subtle scale-in animation only for extra polish. */
.r-img {
  opacity: 1;
  transform: none;
  transition: transform 1s var(--easing);
}
.r-img:not(.in) img {
  /* purely cosmetic settle-in — never hides the image */
  transform: translate3d(0, 0, 0) scale(1.06);
}
.r-img.in img {
  transform: translate3d(0, 0, 0) scale(1);
}
/* Override for parallax — JS handles the transform */
[data-parallax] img { transform: translate3d(0, 0, 0) scale(1.18) !important; }

/* Parallax wrapper — image inside translates on scroll */
[data-parallax] { overflow: hidden; }
[data-parallax] img,
[data-parallax] > .px-inner {
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.18);
  transition: transform 0.1s linear;
}
[data-parallax].r-img img { transform: translate3d(0, 0, 0) scale(1.18); }

/* Image grain overlay — adds texture to photos */
.img-grain {
  position: relative;
}
.img-grain::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.18'/></svg>");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Custom cursor (Affinity-style) ──────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--fg);
  border-radius: 50%;
  margin: -2.5px 0 0 -2.5px;
  transition: opacity 0.2s, background 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  margin: -18px 0 0 -18px;
  transition: width 0.35s var(--easing),
              height 0.35s var(--easing),
              margin 0.35s var(--easing),
              border-color 0.3s,
              background 0.3s,
              opacity 0.25s,
              mix-blend-mode 0s;
  mix-blend-mode: difference;
  border-color: rgba(255,255,255,0.6);
}
body.cursor-hover .cursor-ring {
  width: 70px; height: 70px;
  margin: -35px 0 0 -35px;
  background: rgba(255,255,255,0.05);
}
body.cursor-image .cursor-ring {
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  background: rgba(255,255,255,0.95);
  border-color: transparent;
}
body.cursor-image .cursor-dot { opacity: 0; }
body.cursor-image .cursor-ring::before {
  content: 'view';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: #0F0F0E;
  letter-spacing: 0.02em;
}

/* Hide cursor on touch devices */
@media (hover: none), (max-width: 980px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}
@media (hover: hover) and (min-width: 981px) {
  body, a, button, input, textarea, label { cursor: none; }
}

/* Restore native cursor on legal pages (no custom cursor present there) */
body.page-legal,
body.page-legal a,
body.page-legal button,
body.page-legal input,
body.page-legal textarea,
body.page-legal label,
body.page-legal * { cursor: auto !important; }
body.page-legal a,
body.page-legal button { cursor: pointer !important; }
body.page-legal .cursor-dot,
body.page-legal .cursor-ring { display: none !important; }

/* ── Legal pages — shared editorial layout ───────────── */
.legal {
  padding: clamp(140px, 16vh, 180px) 0 clamp(80px, 10vw, 140px);
  min-height: 60vh;
}
.legal-head { margin-bottom: clamp(40px, 5vw, 64px); }
.legal-head h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-top: 24px;
}
.legal-head h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--dim);
}
.legal-head .updated {
  margin-top: 16px;
  font-size: 13px; color: var(--mute);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.legal-toc {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px 0;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.legal-toc-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 18px;
  font-weight: 500;
}
.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-toc li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}
.legal-toc-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
  min-width: 22px;
}
.legal-toc a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-toc a:hover { color: var(--fg); }

.legal-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--dim);
}
.legal-section {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--hair);
  scroll-margin-top: 100px;
}
.legal-section:first-of-type { border-top: none; padding-top: 0; }
.legal-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
}
.legal-section h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 18px;
}
.legal-section h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 28px 0 12px;
}
.legal-section p { margin-bottom: 14px; max-width: 680px; }
.legal-section p strong { color: var(--fg); font-weight: 500; }
.legal-section ul {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  max-width: 680px;
}
.legal-section li {
  padding: 10px 0;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 14px;
}
.legal-section li:last-child { border-bottom: 1px solid var(--hair); }
.legal-section li::before {
  content: '—';
  color: var(--accent);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--fg); }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  max-width: 680px;
}
.cookie-table th,
.cookie-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.cookie-table th {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--bg-warm);
}
.cookie-table td strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--fg);
  font-weight: 500;
}

.cookie-actions {
  margin-top: 32px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.cookie-actions button {
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--fg);
  transition: all 0.25s var(--easing);
  font-family: 'Inter', sans-serif;
}
.cookie-actions button:hover { border-color: var(--fg); }
.cookie-actions button.primary {
  background: var(--fg);
  color: var(--inv-fg);
  border-color: var(--fg);
}
.cookie-actions button.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .legal-section {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 36px 0;
  }
  .legal-num {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .cookie-table { font-size: 13px; }
  .cookie-table th, .cookie-table td { padding: 10px; }
}

/* ── Shared typography ──────────────────────────────── */
.kicker {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before {
  content: ''; display: block; width: 28px; height: 1px;
  background: currentColor; opacity: 0.5;
}
.kicker-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  letter-spacing: 0.01em; text-transform: none;
  font-size: 13px;
}

.display-h, .h-display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; letter-spacing: -0.045em; line-height: 0.96;
  font-size: clamp(48px, 8vw, 124px);
}
.display-h em, .h-display em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.section-h {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  font-size: clamp(32px, 4.5vw, 64px);
}
.section-h em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--dim);
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--inv-fg); background: var(--fg);
  text-decoration: none;
  padding: 16px 28px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.3s var(--easing), transform 0.3s var(--easing);
  white-space: nowrap;
  border: none; cursor: pointer;
}
.btn::after { content: '→'; transition: transform 0.35s var(--easing); }
.btn:hover { background: var(--accent); }
.btn:hover::after { transform: translateX(4px); }

.btn-ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--fg); color: var(--inv-fg); border-color: var(--fg); }

.btn-note {
  font-size: 12px; color: var(--mute);
  letter-spacing: 0.04em;
}

/* CTA link (giant editorial arrow link) */
.cta-link {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 3vw, 40px); font-weight: 500;
  letter-spacing: -0.035em; color: var(--fg);
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--hair);
  padding: 0 0 14px;
  transition: gap 0.4s var(--easing), border-color 0.3s;
}
.cta-link::after { content: '→'; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 0.85em; transition: transform 0.4s var(--easing); }
.cta-link:hover { gap: 32px; border-color: var(--fg); }
.cta-link:hover::after { transform: translateX(8px); }
.cta-link span { display: none; } /* legacy arrow span hidden in favor of ::after */

.cta-note {
  margin-top: 22px; font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ── Sections ───────────────────────────────────────── */
.sec     { padding: clamp(96px,12vw,180px) 0; border-top: 1px solid var(--hair); }
.sec-sm  { padding: clamp(64px,7vw,100px) 0;  border-top: 1px solid var(--hair); }

/* CTA block (legacy) */
.cta-block { padding: clamp(120px,16vw,220px) 0; border-top: 1px solid var(--hair); }
.cta-block .display-h { margin-bottom: clamp(48px,6vw,80px); }

/* ── Case photos: no cropping, show full image ─── */
.case-photo {
  aspect-ratio: 2 / 3 !important;
  background: var(--bg-warm) !important;
}
.case-photo img {
  object-fit: contain !important;
  background: var(--bg-warm);
}

/* ── Image utilities ────────────────────────────────── */
.img-frame {
  position: relative; overflow: hidden;
  border-radius: 6px;
  background: var(--bg-warm);
}
.img-frame img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--easing);
}
.img-frame:hover img { transform: scale(1.03); }

/* ── Marquee strip ──────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 64px;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-size: 22px;
  color: var(--dim); letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 64px;
}
.marquee-track span::after {
  content: '✦'; font-style: normal;
  font-size: 12px; color: var(--mute);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Responsive base ────────────────────────────────── */
@media (max-width: 980px) {
  .w, .w-tight { padding: 0 28px; }
  .site-nav    { padding: 18px 24px; }
  .site-footer { padding: 24px; }
  .nav-links   { display: none; }
  .nav-burger  { display: flex; }
}
@media (max-width: 520px) {
  .w, .w-tight { padding: 0 22px; }
  .nav-cta     { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .r, .r-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee-track { animation: none; }
}

/* ═══════════════════════════════════════════════════
   AFFINITY-LEVEL ENHANCEMENTS
   ═══════════════════════════════════════════════════ */

/* ── Smooth scroll polish ───────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* ── Magnetic buttons (Affinity signature) ──────── */
.btn,
.hero-btn,
.nav-cta,
.form-btn,
.cta-link,
.case-cta-btn {
  position: relative;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              background 0.3s var(--easing),
              color 0.3s var(--easing);
}

/* ── Section number side-rail (Affinity-style) ─── */
.section-number {
  position: absolute;
  left: clamp(20px, 3vw, 56px);
  top: clamp(60px, 8vw, 120px);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.02em;
  pointer-events: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 980px) { .section-number { display: none; } }

/* ── Diagonal marquee (Affinity signature) ─────── */
.marquee-diagonal {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--fg);
  color: var(--inv-fg);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.marquee-diagonal-track {
  display: flex; align-items: center; gap: 80px;
  white-space: nowrap;
  animation: marquee-d 28s linear infinite;
  transform: rotate(-2deg);
  width: max-content;
  padding: 8px 0;
}
.marquee-diagonal-track span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 500;
  letter-spacing: -0.05em;
  display: inline-flex; align-items: center; gap: 80px;
  flex-shrink: 0;
}
.marquee-diagonal-track span em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: rgba(242,237,230,0.45);
}
.marquee-diagonal-track span::after {
  content: '✦';
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  color: rgba(242,237,230,0.45);
  margin-left: 80px;
}
@keyframes marquee-d {
  from { transform: rotate(-2deg) translateX(0); }
  to   { transform: rotate(-2deg) translateX(-50%); }
}

/* ── Image hover expand (case cards) ───────────── */
.case-photo,
.step-img,
.ph-image,
.ph-portrait,
.guarantee-figure,
.hero-image,
.ct-accent {
  position: relative;
  overflow: hidden;
}

/* ── Sticky-style horizontal sections ──────────── */
.h-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 32px;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 4px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 100px; }
.h-scroll > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ── Big text reveal — line-by-line clip mask ──── */
.line-mask {
  display: block;
  overflow: hidden;
}
.line-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.line-mask.in > span,
.r.in .line-mask > span,
[class*="hero-h"].in .line-mask > span {
  transform: translateY(0);
}

/* ── Section reveal — bg color slide ───────────── */
.section-reveal {
  position: relative;
  overflow: hidden;
}
.section-reveal::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--bg);
  transform: translateY(0);
  transition: transform 1.4s cubic-bezier(0.76,0,0.24,1);
  z-index: 5; pointer-events: none;
}
.section-reveal.in::before {
  transform: translateY(-101%);
}

/* ── Cursor text label (Affinity signature) ────── */
body.cursor-image .cursor-ring::before {
  content: 'view';
}
body.cursor-arrow .cursor-ring::before {
  content: '→';
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  color: #0F0F0E;
}
body.cursor-arrow .cursor-ring {
  width: 70px; height: 70px;
  margin: -35px 0 0 -35px;
  background: #6EE7B7;
  border-color: transparent;
}
body.cursor-arrow .cursor-dot { opacity: 0; }

/* ── Link underline grow effect ─────────────────── */
.link-grow {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
.link-grow::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.76,0,0.24,1);
}
.link-grow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── CTA hero arrow (Affinity-style giant arrow) ─ */
.giant-arrow {
  display: inline-block;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.2em;
  margin-left: 0.2em;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
a:hover .giant-arrow,
button:hover .giant-arrow {
  transform: translateX(0.4em) rotate(-8deg);
}

/* ── Page transition overlay ────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--fg);
  z-index: 99999;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.76,0,0.24,1);
}
.page-transition.active {
  transform: translateY(0);
}
.page-transition.fading-out {
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.76,0,0.24,1) 0.1s;
}

/* ═══════════════════════════════════════════════════
   AFFINITY-EXACT FEATURES (sticky overlays + carousels)
   ═══════════════════════════════════════════════════ */

/* ── Floating scroll indicator (Affinity signature) ─ */
.scroll-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(15,15,14,0.86);
  color: #F2EDE6;
  padding: 12px 22px 12px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  display: inline-flex; align-items: center; gap: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
  user-select: none;
  border: 1px solid rgba(242,237,230,0.08);
}
.scroll-hint .mouse-icon {
  width: 14px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
}
.scroll-hint .mouse-icon::after {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  width: 1.5px; height: 5px;
  background: currentColor;
  border-radius: 1px;
  transform: translateX(-50%);
  animation: mouse-scroll 1.8s ease-in-out infinite;
}
@keyframes mouse-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 0.4; }
}
.scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* ── Reduce motion floating toggle ──────────────── */
.motion-toggle {
  position: fixed;
  top: 90px; right: 24px;
  z-index: 100;
  background: rgba(15,15,14,0.86);
  color: #F2EDE6;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.3s var(--easing), opacity 0.3s var(--easing);
  user-select: none;
  border: 1px solid rgba(242,237,230,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: inline-flex; align-items: center; gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.motion-toggle.shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.motion-toggle:hover { background: var(--fg); }
.motion-toggle .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6EE7B7;
  flex-shrink: 0;
  transition: background 0.3s;
}
body.reduce-motion .motion-toggle .dot { background: #d56b6b; }
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}
@media (max-width: 980px) {
  .motion-toggle { display: none; }
  .scroll-hint { bottom: 16px; padding: 10px 18px 10px 14px; font-size: 12px; }
}

/* ── Affinity-style horizontal card carousel ─────── */
.carousel-section {
  padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px);
  background: var(--fg);
  color: var(--inv-fg);
  overflow: hidden;
  position: relative;
}
.carousel-head {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.carousel-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--inv-fg);
}
.carousel-head h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: rgba(242,237,230,0.55);
}
.carousel-head p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(242,237,230,0.62);
  max-width: 320px;
  padding-bottom: 12px;
}
.carousel-nav {
  display: flex; gap: 12px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ── Pill tabs (Affinity Vector/Pixel/Diseño pattern) ── */
.pill-tabs {
  display: inline-flex;
  background: rgba(242,237,230,0.06);
  border: 1px solid rgba(242,237,230,0.10);
  border-radius: 100px;
  padding: 5px;
  margin-bottom: clamp(32px, 4vw, 56px);
  position: relative;
  flex-wrap: wrap;
  gap: 0;
}
.pill-tab {
  position: relative;
  z-index: 2;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  background: transparent;
  border: none;
  color: rgba(242,237,230,0.55);
  cursor: pointer;
  border-radius: 100px;
  transition: color 0.35s var(--easing);
  white-space: nowrap;
}
.pill-tab:hover { color: rgba(242,237,230,0.92); }
.pill-tab.active {
  color: var(--inv-fg);
}
.pill-tabs-indicator {
  position: absolute;
  top: 5px; left: 5px;
  height: calc(100% - 10px);
  background: rgba(242,237,230,0.10);
  border: 1px solid rgba(242,237,230,0.40);
  border-radius: 100px;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              width 0.5s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
@media (max-width: 600px) {
  .pill-tab { padding: 10px 16px; font-size: 12px; }
}
.carousel-arrow {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(242,237,230,0.22);
  background: transparent;
  color: var(--inv-fg);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  transition: background 0.3s var(--easing), border-color 0.3s, transform 0.3s var(--easing);
}
.carousel-arrow:hover {
  background: rgba(242,237,230,0.08);
  border-color: rgba(242,237,230,0.55);
}
.carousel-arrow:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  margin: 0 calc(56px - 100vw + 100%);
  padding: 0 56px clamp(40px, 5vw, 80px);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 clamp(280px, 32vw, 460px);
  min-height: 600px;
  border-radius: 12px;
  padding: clamp(24px, 3vw, 36px) 0 0;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #0F0F0E;
  transition: transform 0.5s var(--easing);
}
.carousel-card:hover { transform: translateY(-4px); }
.carousel-card .card-body { padding: 0 clamp(24px, 3vw, 36px); }
.carousel-card .card-image {
  margin-top: 24px;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: rgba(15,15,14,0.06);
  border-top: 1px solid rgba(15,15,14,0.10);
}
.carousel-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--easing);
}
.carousel-card:hover .card-image img { transform: scale(1.06); }

.carousel-card.c-teal   { background: linear-gradient(165deg, #8DD9C8 0%, #5EAEA0 100%); }
.carousel-card.c-purple { background: linear-gradient(165deg, #B998D8 0%, #8B6BAA 100%); }
.carousel-card.c-rose   { background: linear-gradient(165deg, #E0A19A 0%, #B86F62 100%); }
.carousel-card.c-sand   { background: linear-gradient(165deg, #DDC8A6 0%, #B89B73 100%); }
.carousel-card.c-sage   { background: linear-gradient(165deg, #B5C7A1 0%, #7E9166 100%); }
.carousel-card.c-blue   { background: linear-gradient(165deg, #A1B6CC 0%, #6E8AAA 100%); }

.carousel-card .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  margin-bottom: 14px;
  color: rgba(15,15,14,0.55);
}
.carousel-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.carousel-card h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
}
.carousel-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15,15,14,0.7);
  margin-bottom: auto;
}
.carousel-card .ticket {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15,15,14,0.18);
  display: flex; justify-content: space-between; align-items: baseline;
}
.carousel-card .ticket span:first-child {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(15,15,14,0.55);
}
.carousel-card .ticket span:last-child {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ── Floating "design assets" in hero (Affinity hero pattern) ─ */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-float {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
  box-shadow: 0 14px 40px -8px rgba(0,0,0,0.12);
  will-change: transform;
}
.hero-float img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-float::before,
.hero-float::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent);
  background: var(--bg);
  border-radius: 1px;
}
.hero-float::before { top: -5px; left: -5px; }
.hero-float::after  { bottom: -5px; right: -5px; }
.hero-float-corners {
  position: absolute;
  inset: -1px;
  border: 1px dashed rgba(31,94,59,0.45);
  border-radius: 8px;
  pointer-events: none;
}
/* Position individual floats — desktop only */
.hero-float-1 {
  top: 16%; left: 4%;
  width: clamp(80px, 9vw, 130px);
  aspect-ratio: 3/4;
  transform: rotate(-6deg);
}
.hero-float-2 {
  top: 38%; left: 2%;
  width: clamp(100px, 11vw, 160px);
  aspect-ratio: 4/5;
  transform: rotate(4deg);
}
.hero-float-3 {
  top: 12%; right: 6%;
  width: clamp(90px, 10vw, 140px);
  aspect-ratio: 3/4;
  transform: rotate(5deg);
}
.hero-float-4 {
  bottom: 18%; right: 3%;
  width: clamp(110px, 12vw, 170px);
  aspect-ratio: 4/5;
  transform: rotate(-4deg);
}
@media (max-width: 980px) {
  .hero-floats { display: none; }
}

/* ── Big-text mask reveal (per-line clip) ───────── */
.mask-line {
  display: block;
  overflow: hidden;
}
.mask-line > .mask-line-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.mask-line.in > .mask-line-inner,
.r.in .mask-line > .mask-line-inner {
  transform: translateY(0);
}
.mask-line.d1 > .mask-line-inner,
.r.in .mask-line.d1 > .mask-line-inner { transition-delay: 0.08s; }
.mask-line.d2 > .mask-line-inner,
.r.in .mask-line.d2 > .mask-line-inner { transition-delay: 0.16s; }
.mask-line.d3 > .mask-line-inner,
.r.in .mask-line.d3 > .mask-line-inner { transition-delay: 0.24s; }

/* ── Scroll-driven text colour reveal (Affinity signature) ─
   Each word starts dim, brightens as it crosses the viewport.
   JS updates --scroll-progress per .scroll-text-word.            */
.scroll-text {
  display: block;
}
.scroll-text-word {
  display: inline-block;
  color: rgba(15,15,14,0.16);
  transition: color 0.35s var(--easing);
  margin-right: 0.18em;
}
.scroll-text-word.lit {
  color: var(--fg);
}
.scroll-text em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
}

/* Section anchor indicator (top-right floating, like Affinity's progress) */
.section-indicator {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 99;
  background: rgba(15,15,14,0.86);
  color: rgba(242,237,230,0.92);
  padding: 8px 16px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.005em;
  border-radius: 100px;
  border: 1px solid rgba(242,237,230,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);
  pointer-events: none;
  user-select: none;
}
.section-indicator.shown {
  opacity: 1;
  transform: translateY(0);
}
.section-indicator .num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #6EE7B7;
}
@media (max-width: 980px) { .section-indicator { display: none; } }
/* When motion-toggle is shown, push indicator above it */
body:has(.motion-toggle.shown) .section-indicator {
  top: 140px;
}

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS — FAQ, TESTIMONIALS, MEGA MENU,
   STICKY SECTION, COOKIE BANNER
   ═══════════════════════════════════════════════════ */

/* ── FAQ accordion ──────────────────────────────── */
.faq-section {
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.faq-grid h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-top: 24px;
}
.faq-grid h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--dim);
}
.faq-grid > div:first-child p {
  margin-top: 24px;
  font-size: 16px;
  color: var(--dim);
  line-height: 1.65;
  max-width: 380px;
}

.faq-list { list-style: none; }
.faq-item {
  border-top: 1px solid rgba(15,15,14,0.14);
  padding: 0;
}
.faq-list .faq-item:last-child {
  border-bottom: 1px solid rgba(15,15,14,0.14);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: clamp(20px, 2.5vw, 32px) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--fg);
  text-align: left;
  gap: 24px;
  transition: color 0.3s var(--easing);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(15,15,14,0.20);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), background 0.3s, border-color 0.3s;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1px;
  background: var(--fg);
  transform: translate(-50%,-50%);
  transition: transform 0.4s var(--easing), background 0.3s;
}
.faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--fg);
  border-color: var(--fg);
}
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--bg); }
.faq-item.open .faq-icon::after { transform: translate(-50%,-50%) rotate(0deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.76,0,0.24,1), opacity 0.4s var(--easing) 0.1s;
}
.faq-item.open .faq-a {
  max-height: 600px;
  opacity: 1;
}
.faq-a-inner {
  padding: 0 0 clamp(24px, 3vw, 36px);
  font-size: 15px;
  color: var(--dim);
  line-height: 1.75;
  max-width: 720px;
}
.faq-a-inner strong { color: var(--fg); font-weight: 500; }

@media (max-width: 980px) {
  .faq-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Testimonial wall ───────────────────────────── */
.testi-section {
  padding: clamp(120px, 14vw, 200px) 0;
}
.testi-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.testi-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-top: 24px;
}
.testi-head h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--dim);
}
.testi-head p {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.55;
  max-width: 320px;
  padding-bottom: 12px;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card {
  padding: clamp(28px, 3.2vw, 40px);
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 8px;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: transform 0.5s var(--easing), border-color 0.3s;
}
.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15,15,14,0.22);
}
.testi-card.featured {
  background: var(--fg);
  color: var(--inv-fg);
  border-color: var(--fg);
}
.testi-card.featured .testi-quote { color: var(--inv-fg); }
.testi-card.featured .testi-author strong { color: var(--inv-fg); }
.testi-card.featured .testi-author span { color: rgba(242,237,230,0.6); }
.testi-card.featured .testi-stars { color: #6EE7B7; }

.testi-stars {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}
.testi-quote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: auto;
}
.testi-quote::before {
  content: '“';
  color: var(--accent);
  font-size: 1.2em; line-height: 0;
  vertical-align: -0.2em;
  margin-right: 0.05em;
}
.testi-author {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.testi-card.featured .testi-author {
  border-top-color: rgba(242,237,230,0.12);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-warm);
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.testi-card.featured .testi-avatar {
  background: rgba(242,237,230,0.08);
  color: var(--inv-fg);
}
.testi-author > div { line-height: 1.3; }
.testi-author strong {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.testi-author span {
  font-size: 12px;
  color: var(--mute);
}

@media (max-width: 980px) {
  .testi-head { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

/* ── Testimonials filter pills ─────────────────────── */
.testi-filters {
  display: inline-flex;
  background: var(--bg-warm);
  border: 1px solid var(--hair);
  border-radius: 100px;
  padding: 5px;
  margin-bottom: clamp(32px, 4vw, 48px);
  position: relative;
  flex-wrap: wrap;
  gap: 0;
}
.testi-filter {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  background: transparent;
  border: none;
  color: var(--dim);
  cursor: pointer;
  border-radius: 100px;
  transition: color 0.3s var(--easing), background 0.3s var(--easing);
  white-space: nowrap;
}
.testi-filter:hover { color: var(--fg); }
.testi-filter.active {
  background: var(--fg);
  color: var(--inv-fg);
}
.testi-filter .count {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.65;
}

/* Hidden testimonial cards (filter applied) */
.testi-card.filter-hidden {
  opacity: 0.18;
  transform: scale(0.96);
  pointer-events: none;
  filter: grayscale(0.6);
  transition: opacity 0.5s var(--easing),
              transform 0.5s var(--easing),
              filter 0.5s var(--easing);
}
.testi-card.filter-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  filter: none;
  transition: opacity 0.5s var(--easing),
              transform 0.5s var(--easing),
              filter 0.5s var(--easing);
}

/* Tag chip on each card */
.testi-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 100px;
  background: rgba(31,94,59,0.08);
  color: var(--accent);
  border: 1px solid rgba(31,94,59,0.18);
  align-self: flex-start;
}
.testi-card.featured .testi-tag {
  background: rgba(110,231,183,0.12);
  color: #6EE7B7;
  border-color: rgba(110,231,183,0.32);
}

/* ── Mega menu hover preview ──────────────────────── */
.mega-link {
  position: relative;
}
.mega-link[data-preview] .mega-link-thumb {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-warm);
  opacity: 0;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  border: 1px solid var(--hair);
}
.mega-link[data-preview] .mega-link-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.mega-link:hover .mega-link-thumb {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 980px) {
  .mega-link-thumb { display: none; }
}

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v9 — Dark mode, chat widget,
   ROI before/after, offline banner
   ═══════════════════════════════════════════════════ */

/* ── Dark mode (full palette invert) ─────────────── */
body.dark-mode {
  --bg:        #0F0F0E;
  --bg-warm:   #1A1A18;
  --fg:        #F2EDE6;
  --dim:       rgba(242,237,230,0.62);
  --mute:      rgba(242,237,230,0.36);
  --hair:      rgba(242,237,230,0.10);
  --border:    rgba(242,237,230,0.10);
  --inv-fg:    #0F0F0E;
  --accent:    #6EE7B7;
}
body.dark-mode .site-nav.scrolled {
  background: rgba(15,15,14,0.86);
  border-bottom-color: var(--hair);
}
body.dark-mode .nav-mobile { background: rgba(15,15,14,0.97); }
body.dark-mode .scroll-progress { box-shadow: 0 0 12px rgba(110,231,183,0.5); }

/* Dark mode toggle button (top-right area) */
.darkmode-toggle {
  position: fixed;
  top: 90px;
  right: 296px;
  z-index: 95;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(15,15,14,0.86);
  color: rgba(242,237,230,0.85);
  border: 1px solid rgba(242,237,230,0.10);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing), background 0.3s;
}
.darkmode-toggle.shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.darkmode-toggle:hover {
  background: var(--fg);
  color: var(--inv-fg);
}
body.dark-mode .darkmode-toggle {
  background: rgba(242,237,230,0.86);
  color: #0F0F0E;
  border-color: rgba(15,15,14,0.10);
}
@media (max-width: 980px) { .darkmode-toggle { display: none; } }

/* Smooth color transitions when toggling */
body, body * {
  transition: background-color 0.4s var(--easing),
              border-color 0.4s var(--easing),
              color 0.4s var(--easing);
}

/* ── Chat widget (Intercom-style) ──────────────────── */
.chat-fab {
  position: fixed;
  bottom: 96px;
  right: 168px;
  z-index: 95;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--inv-fg);
  border: 1px solid var(--fg);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transition: transform 0.4s var(--easing), background 0.3s;
}
.chat-fab:hover {
  background: var(--accent);
  color: #0F0F0E;
  transform: scale(1.08);
}
.chat-fab svg {
  width: 24px; height: 24px;
  fill: currentColor;
}
.chat-fab .chat-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #6EE7B7;
  color: #0F0F0E;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  font-family: 'Bricolage Grotesque', sans-serif;
}

.chat-window {
  position: fixed;
  bottom: 168px;
  right: 168px;
  z-index: 96;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 220px);
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.20);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  transform-origin: bottom right;
}
.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-header {
  background: var(--fg);
  color: var(--inv-fg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--hair);
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0F0F0E;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  font-size: 15px;
}
.chat-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #6EE7B7;
  border: 2px solid var(--fg);
}
.chat-header-info {
  flex: 1; line-height: 1.2;
}
.chat-header-info strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--inv-fg);
}
.chat-header-info span {
  display: block;
  font-size: 11px;
  color: rgba(242,237,230,0.65);
  margin-top: 2px;
}
.chat-close {
  background: transparent;
  border: none;
  color: rgba(242,237,230,0.65);
  cursor: pointer;
  font-size: 22px;
  padding: 0; line-height: 1;
  transition: color 0.2s, transform 0.3s var(--easing);
}
.chat-close:hover {
  color: var(--inv-fg);
  transform: rotate(90deg);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-warm);
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.005em;
  animation: chat-msg-in 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: var(--bg);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--hair);
}
.chat-msg.user {
  background: var(--fg);
  color: var(--inv-fg);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot strong { color: var(--accent); font-weight: 500; }
.chat-typing {
  display: inline-flex; gap: 4px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mute);
  animation: chat-dot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes chat-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

.chat-options {
  padding: 12px 20px 8px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg);
  border-top: 1px solid var(--hair);
}
.chat-option {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg);
  transition: background 0.25s var(--easing), border-color 0.25s, transform 0.2s;
  font-family: 'Inter', sans-serif;
}
.chat-option:hover {
  background: var(--bg-warm);
  border-color: var(--accent);
  transform: translateX(2px);
}

.chat-footer {
  padding: 10px 20px 14px;
  font-size: 11px;
  color: var(--mute);
  text-align: center;
  background: var(--bg);
  letter-spacing: 0.005em;
  border-top: 1px solid var(--hair);
}
.chat-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 600px) {
  .chat-fab { right: 80px; bottom: 84px; }
  .chat-window { right: 12px; bottom: 150px; width: calc(100vw - 24px); height: 70vh; }
}

/* ── ROI before/after comparison bar ──────────────── */
.roi-compare-bar {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(242,237,230,0.12);
}
.roi-compare-bar-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.45);
  margin-bottom: 12px;
}
.roi-compare-bar-track {
  display: flex;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(242,237,230,0.06);
  position: relative;
}
.roi-compare-bar-fill {
  height: 100%;
  display: flex; align-items: center;
  padding: 0 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.roi-compare-bar-fill.before {
  background: rgba(242,237,230,0.18);
  color: rgba(242,237,230,0.85);
}
.roi-compare-bar-fill.after {
  background: linear-gradient(90deg, var(--accent), #6EE7B7);
  color: #0F0F0E;
}
.roi-compare-bar-legend {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(242,237,230,0.55);
  letter-spacing: 0.005em;
}
.roi-compare-bar-legend strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  color: rgba(242,237,230,0.85);
}
.roi-compare-bar-legend .delta {
  color: #6EE7B7;
  font-weight: 500;
}

/* ── Offline banner ─────────────────────────────── */
.offline-banner {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 9997;
  background: #d56b6b;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 0 0 12px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
  transition: transform 0.4s var(--easing);
}
.offline-banner.shown {
  transform: translateX(-50%) translateY(0);
}
.offline-banner .icon {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  animation: offline-pulse 1.4s ease-in-out infinite;
}
@keyframes offline-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── Sticky scrollytelling section ──────────────── */
.sticky-scroll {
  background: #0F0F0E;
  color: #F2EDE6;
  padding: clamp(120px, 14vw, 200px) 0 0;
  position: relative;
}
.sticky-scroll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
.sticky-scroll-side {
  position: sticky;
  top: 100px;
  height: calc(100vh - 140px);
  display: flex; flex-direction: column; justify-content: center;
}
.sticky-scroll-side h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-top: 24px;
}
.sticky-scroll-side h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: rgba(242,237,230,0.55);
}
.sticky-scroll-side .sub {
  margin-top: 24px;
  font-size: 16px;
  color: rgba(242,237,230,0.62);
  line-height: 1.65;
  max-width: 380px;
}
.sticky-scroll-side .kicker { color: rgba(242,237,230,0.55); }
.sticky-scroll-side .kicker::before { background: rgba(242,237,230,0.4); opacity: 1; }

.sticky-scroll-content {
  padding-bottom: clamp(120px, 14vw, 200px);
}
.sticky-step {
  min-height: 60vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 4vw, 56px) 0;
  border-top: 1px solid rgba(242,237,230,0.10);
}
.sticky-step:first-child { border-top: none; }
.sticky-step .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(40px, 6vw, 80px);
  color: rgba(242,237,230,0.30);
  line-height: 1;
  margin-bottom: 20px;
}
.sticky-step h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.sticky-step h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: #6EE7B7;
}
.sticky-step p {
  font-size: 16px;
  color: rgba(242,237,230,0.65);
  line-height: 1.7;
  max-width: 480px;
}

@media (max-width: 980px) {
  .sticky-scroll-grid { grid-template-columns: 1fr; gap: 32px; }
  .sticky-scroll-side { position: static; height: auto; }
  .sticky-step { min-height: auto; }
}

/* ── Mega menu (nav dropdown) ────────────────────── */
.has-mega { position: relative; }
.mega-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer;
}
.mega-trigger::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 4px;
  transition: transform 0.3s var(--easing);
}
.has-mega.open .mega-trigger::after {
  transform: rotate(-135deg) translateY(0);
}

.mega-menu {
  position: fixed;
  top: 70px; left: 50%;
  transform: translateX(-50%) translateY(-12px);
  min-width: 640px;
  max-width: 90vw;
  background: rgba(242,237,230,0.96);
  backdrop-filter: saturate(140%) blur(18px);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.18);
  display: none;
  z-index: 199;
}
.has-mega.open .mega-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  animation: mega-fade 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes mega-fade {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.mega-col h6 {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 16px;
}
.mega-link {
  display: flex; flex-direction: column;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.25s var(--easing);
}
.mega-link:hover { background: rgba(15,15,14,0.05); }
.mega-link strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.mega-link span {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.4;
}

@media (max-width: 980px) {
  .mega-menu { display: none !important; }
  .mega-trigger::after { display: none; }
}

/* ── Cookie banner (Affinity-style bottom bar) ─────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: rgba(15,15,14,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #F2EDE6;
  padding: clamp(20px, 2.5vw, 28px) clamp(24px, 4vw, 56px);
  border-top: 1px solid rgba(242,237,230,0.10);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.76,0,0.24,1) 1.2s;
}
.cookie-banner.shown { transform: translateY(0); }
.cookie-banner h6 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #F2EDE6;
  white-space: nowrap;
}
.cookie-banner p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(242,237,230,0.65);
  max-width: 760px;
}
.cookie-banner p a {
  color: rgba(242,237,230,0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-btn-action {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 11px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s var(--easing), color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.cookie-btn-action.outline {
  background: transparent;
  color: #F2EDE6;
  border: 1px solid rgba(242,237,230,0.24);
}
.cookie-btn-action.outline:hover {
  border-color: rgba(242,237,230,0.55);
  background: rgba(242,237,230,0.05);
}
.cookie-btn-action.primary {
  background: #6EE7B7;
  color: #0F0F0E;
  border: 1px solid #6EE7B7;
}
.cookie-btn-action.primary:hover { background: #F2EDE6; border-color: #F2EDE6; }

@media (max-width: 980px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 14px; padding: 20px 24px; }
  .cookie-banner-actions { justify-content: flex-start; }
}

/* ── Newsletter footer ──────────────────────────── */
.footer-mega {
  background: var(--fg);
  color: var(--inv-fg);
  padding: clamp(80px, 10vw, 140px) 0 0;
  border-top: none;
}
.footer-mega-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr 0.6fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid rgba(242,237,230,0.12);
}
.footer-brand h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-bottom: 24px;
}
.footer-brand h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: rgba(242,237,230,0.55);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(242,237,230,0.6);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 360px;
}
.newsletter {
  display: flex;
  background: rgba(242,237,230,0.06);
  border: 1px solid rgba(242,237,230,0.12);
  border-radius: 100px;
  padding: 5px;
  max-width: 380px;
  transition: border-color 0.3s var(--easing);
}
.newsletter:focus-within { border-color: rgba(110,231,183,0.5); }
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: var(--inv-fg);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
}
.newsletter input::placeholder { color: rgba(242,237,230,0.45); }
.newsletter button {
  background: #6EE7B7;
  color: #0F0F0E;
  border: none;
  border-radius: 100px;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s var(--easing);
}
.newsletter button:hover { background: #F2EDE6; }

.footer-newsletter-note {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(242,237,230,0.40);
  letter-spacing: 0.04em;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.footer-col h6 {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.45);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 7px 0; }
.footer-col a {
  font-size: 14px;
  color: rgba(242,237,230,0.78);
  text-decoration: none;
  transition: color 0.25s var(--easing);
}
.footer-col a:hover { color: var(--inv-fg); }

.footer-bottom {
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  color: rgba(242,237,230,0.45);
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
.footer-bottom a:hover { color: rgba(242,237,230,0.85); }
.footer-bottom-right {
  display: flex; gap: 24px;
}

/* Hide old footer when mega is used */
.has-footer-mega .site-footer { display: none; }

@media (max-width: 980px) {
  .footer-mega-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-mega-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v2 — progress bar, loader, sticky CTA,
   ROI calculator, live activity, press marquee, anim logo
   ═══════════════════════════════════════════════════ */

/* ── Scroll progress bar (top) ───────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(31,94,59,0.4);
}

/* ── Page loader ──────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s var(--easing), visibility 0.6s var(--easing);
}
.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}
.page-loader-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.page-loader-logo span {
  display: inline-block;
  transform: translateY(120%);
  animation: loader-rise 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
.page-loader-logo span:nth-child(1) { animation-delay: 0s; }
.page-loader-logo span:nth-child(2) { animation-delay: 0.06s; }
.page-loader-logo span:nth-child(3) { animation-delay: 0.12s; }
.page-loader-logo span:nth-child(4) { animation-delay: 0.18s; }
.page-loader-logo span:nth-child(5) { animation-delay: 0.24s; }
.page-loader-logo span:nth-child(6) { animation-delay: 0.30s; }
.page-loader-logo span:nth-child(7) { animation-delay: 0.36s; }
@keyframes loader-rise {
  to { transform: translateY(0); }
}
.page-loader-bar {
  width: 200px;
  height: 1px;
  background: var(--hair);
  position: relative;
  overflow: hidden;
}
.page-loader-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--fg);
  transform: translateX(-100%);
  animation: loader-fill 1.4s cubic-bezier(0.76,0,0.24,1) forwards;
}
@keyframes loader-fill {
  to { transform: translateX(0); }
}
.page-loader-pct {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
  letter-spacing: 0.005em;
}

/* ── Sticky bottom CTA bar ────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 99;
  background: var(--fg);
  color: var(--inv-fg);
  padding: 12px 12px 12px 24px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 16px;
  border: 1px solid rgba(242,237,230,0.08);
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.30);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), opacity 0.4s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.sticky-cta.shown {
  transform: translateX(-50%) translateY(0);
}
.sticky-cta-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  display: flex; flex-direction: column; gap: 2px;
}
.sticky-cta-text small {
  font-size: 11px;
  color: rgba(242,237,230,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}
.sticky-cta-btn {
  background: #6EE7B7;
  color: #0F0F0E;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.3s var(--easing), transform 0.3s var(--easing);
}
.sticky-cta:hover .sticky-cta-btn { background: #F2EDE6; }
.sticky-cta-btn::after {
  content: '→';
  transition: transform 0.3s var(--easing);
}
.sticky-cta:hover .sticky-cta-btn::after {
  transform: translateX(3px);
}
@media (max-width: 600px) {
  .sticky-cta {
    bottom: 16px;
    padding: 10px 10px 10px 18px;
    width: calc(100% - 32px);
    justify-content: space-between;
  }
  .sticky-cta-text small { display: none; }
}

/* ── ROI Calculator widget ────────────────────────── */
.roi-calc {
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.roi-calc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.roi-calc-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-top: 24px;
}
.roi-calc-head h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--dim);
}
.roi-calc-head p {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.55;
  max-width: 320px;
  padding-bottom: 12px;
}

.roi-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
}

.roi-calc-controls {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--hair);
  background: var(--bg);
}
.roi-control { margin-bottom: 32px; }
.roi-control:last-child { margin-bottom: 0; }
.roi-control label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.roi-control label .roi-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(15,15,14,0.10);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  cursor: grab;
  transition: transform 0.2s var(--easing), box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(31,94,59,0.3);
}
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(31,94,59,0.5);
}
.roi-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  cursor: grab;
  border: none;
  box-shadow: 0 2px 8px rgba(31,94,59,0.3);
}
.roi-control-tip {
  margin-top: 8px;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
  display: flex; justify-content: space-between;
}
.roi-slider-readout {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mute);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  line-height: 1.4;
}
.roi-slider-readout strong {
  color: var(--dim);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.roi-treatment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.roi-treatment-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--hair);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  color: var(--dim);
  transition: all 0.25s var(--easing);
}
.roi-treatment-tab:hover { border-color: var(--fg); color: var(--fg); }
.roi-treatment-tab.active {
  background: var(--fg);
  color: var(--inv-fg);
  border-color: var(--fg);
}

.roi-calc-result {
  padding: clamp(32px, 4vw, 56px);
  background: var(--fg);
  color: var(--inv-fg);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.roi-calc-result::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 500px at 80% 20%, rgba(110,231,183,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.roi-calc-result-inner { position: relative; z-index: 1; }
.roi-calc-result .label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.55);
  margin-bottom: 14px;
}
.roi-calc-big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #6EE7B7;
  margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 6px;
}
.roi-calc-big small {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 0.35em;
  color: rgba(242,237,230,0.55);
  font-weight: 400;
}
.roi-calc-result h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 380px;
}
.roi-calc-result h4 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: rgba(242,237,230,0.55);
}
.roi-calc-result-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,237,230,0.12);
}
.roi-mini { }
.roi-mini-l {
  display: block;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.45);
  margin-bottom: 6px;
}
.roi-mini-v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #F2EDE6;
}

@media (max-width: 980px) {
  .roi-calc-head { grid-template-columns: 1fr; }
  .roi-calc-grid { grid-template-columns: 1fr; }
  .roi-calc-controls { border-right: none; border-bottom: 1px solid var(--hair); }
}

/* ── Live activity pill (floating bottom-left) ────── */
.live-activity {
  position: fixed;
  bottom: 90px;
  left: 24px;
  z-index: 95;
  background: rgba(15,15,14,0.92);
  color: #F2EDE6;
  padding: 12px 18px 12px 14px;
  border-radius: 100px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(242,237,230,0.10);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
  user-select: none;
  max-width: calc(100vw - 48px);
}
.live-activity.shown {
  opacity: 1;
  transform: translateY(0);
}
.live-activity .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6EE7B7;
  flex-shrink: 0;
  position: relative;
}
.live-activity .live-dot::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(110,231,183,0.45);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.live-activity strong {
  color: #6EE7B7;
  font-weight: 500;
}
@media (max-width: 600px) {
  .live-activity { bottom: 80px; left: 12px; right: 12px; max-width: none; font-size: 11px; }
}

/* ── Press / awards marquee ───────────────────────── */
.press-strip {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--bg);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  position: relative;
}
.press-strip-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 28px;
}
.press-marquee {
  display: flex;
  gap: 80px;
  animation: press-scroll 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.press-logo {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--dim);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 80px;
  transition: color 0.3s var(--easing);
}
.press-logo:hover { color: var(--fg); }
.press-logo::after {
  content: '✦';
  font-style: normal;
  font-size: 0.4em;
  color: var(--mute);
  margin-left: 80px;
}
.press-logo:last-child::after { display: none; }
@keyframes press-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Animated SVG logo ────────────────────────────── */
.nav-logo svg {
  width: 78px;
  height: auto;
  display: block;
  overflow: visible;
}
.nav-logo svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: logo-draw 1.6s cubic-bezier(0.76,0,0.24,1) 0.4s forwards;
}
.nav-logo svg path.fill-step {
  fill: currentColor;
  fill-opacity: 0;
  animation: logo-fill 0.5s ease 1.8s forwards;
}
@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes logo-fill {
  to { fill-opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v3 — WhatsApp, comparison slider,
   bar charts, lightbox, scroll-line
   ═══════════════════════════════════════════════════ */

/* ── Floating WhatsApp button (bottom-right) ───────── */
.wa-button {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 95;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(37,211,102,0.30);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
              background 0.3s var(--easing);
  animation: wa-pulse 2.4s ease-out infinite;
  border: none;
  cursor: pointer;
}
.wa-button::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  opacity: 0;
  animation: wa-ring 2.4s ease-out infinite;
}
.wa-button svg {
  width: 28px; height: 28px;
  fill: currentColor;
}
.wa-button:hover {
  transform: scale(1.08);
  animation: none;
  background: #1eb955;
}
.wa-button:hover::before { animation: none; opacity: 0; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(37,211,102,0.30); }
  50%      { box-shadow: 0 12px 32px rgba(37,211,102,0.55), 0 0 0 8px rgba(37,211,102,0.10); }
}
@keyframes wa-ring {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* Tooltip on hover */
.wa-button-tip {
  position: absolute;
  right: 72px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(15,15,14,0.92);
  color: #F2EDE6;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  letter-spacing: -0.005em;
}
.wa-button:hover .wa-button-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 600px) {
  .wa-button { bottom: 80px; right: 12px; width: 50px; height: 50px; }
  .wa-button svg { width: 24px; height: 24px; }
  .wa-button-tip { display: none; }
}

/* ── Comparison slider (drag to compare) ───────────── */
.compare-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
  user-select: none;
  cursor: ew-resize;
}
.compare-slider-pane {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  text-align: center;
}
.compare-slider-pane.before {
  background: linear-gradient(135deg, #2a2a28 0%, #1a1a18 100%);
  color: rgba(242,237,230,0.45);
  z-index: 1;
}
.compare-slider-pane.after {
  background: linear-gradient(135deg, #1F5E3B 0%, #0F4A2D 100%);
  color: #F2EDE6;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.05s linear;
}
.compare-slider-content { max-width: 80%; }
.compare-slider-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.compare-slider-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.compare-slider-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(60px, 9vw, 144px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 12px;
}
.compare-slider-pane.after .compare-slider-num { color: #6EE7B7; }
.compare-slider-label {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: -0.005em;
}
.compare-slider-rev {
  margin-top: 14px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.025em;
  opacity: 0.85;
}
.compare-slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #F2EDE6;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.05s linear;
}
.compare-slider-handle::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #F2EDE6;
  border: 1px solid rgba(15,15,14,0.10);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.compare-slider-handle::after {
  content: '⇄';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 18px;
  color: var(--fg);
  font-weight: 600;
}

/* ── Animated bar chart (in numbers section) ───────── */
.num-card-bar {
  margin-top: 22px;
  height: 4px;
  background: rgba(15,15,14,0.10);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}
.num-card-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #6EE7B7);
  border-radius: 100px;
  transition: width 1.6s cubic-bezier(0.16,1,0.3,1) 0.4s;
}
.num-card.in-view .num-card-bar::after {
  width: var(--bar-pct, 70%);
}

/* ── Image lightbox ────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15,15,14,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(24px, 5vw, 80px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.4s var(--easing);
}
.lightbox.shown {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform: scale(0.96);
  transition: transform 0.5s var(--easing);
}
.lightbox.shown img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(242,237,230,0.10);
  border: 1px solid rgba(242,237,230,0.18);
  color: #F2EDE6;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background 0.3s var(--easing), transform 0.3s var(--easing);
}
.lightbox-close:hover {
  background: rgba(242,237,230,0.18);
  transform: rotate(90deg);
}
.lightbox-caption {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(242,237,230,0.72);
  letter-spacing: 0.005em;
  text-align: center;
  max-width: 80%;
}
.zoomable {
  cursor: zoom-in;
}

/* ── Scroll-driven connecting SVG line ─────────────── */
.scroll-line-container {
  position: absolute;
  left: 56px;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
  z-index: 1;
}
.scroll-line-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.scroll-line-path {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  pathLength: 1;
  transition: stroke-dashoffset 0.1s linear;
}
@media (max-width: 980px) { .scroll-line-container { display: none; } }

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v4 — scroll-top, section dots,
   mobile nav, tilt, trust marquee, skewed dividers
   ═══════════════════════════════════════════════════ */

/* ── Scroll-to-top button (left of WhatsApp) ───────── */
.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 96px;
  z-index: 95;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--inv-fg);
  border: 1px solid var(--fg);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.5s var(--easing),
              transform 0.5s var(--easing),
              background 0.3s,
              color 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  pointer-events: none;
}
.scroll-top.shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent);
  color: #F2EDE6;
  border-color: var(--accent);
}
.scroll-top::before {
  content: '↑';
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: transform 0.3s var(--easing);
}
.scroll-top:hover::before {
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .scroll-top { bottom: 80px; right: 72px; width: 42px; height: 42px; }
}

/* ── Section dots indicator (right side) ──────────── */
.section-dots {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 80;
  display: flex; flex-direction: column;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.5s var(--easing);
  pointer-events: none;
}
.section-dots.shown {
  opacity: 1;
  pointer-events: auto;
}
.section-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(15,15,14,0.20);
  cursor: pointer;
  transition: background 0.3s var(--easing), transform 0.3s var(--easing);
  border: none;
  padding: 0;
}
.section-dot:hover { background: rgba(15,15,14,0.55); transform: scale(1.4); }
.section-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}
.section-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 12px;
  white-space: nowrap;
  color: var(--fg);
  background: rgba(242,237,230,0.95);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--hair);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
  letter-spacing: 0.005em;
}
.section-dot:hover::after,
.section-dot.active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 980px) {
  .section-dots { display: none; }
}

/* ── Mobile bottom nav (only mobile) ────────────────── */
.mobile-nav {
  display: none;
}
@media (max-width: 980px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 12px; left: 12px; right: 12px;
    z-index: 96;
    background: rgba(15,15,14,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(242,237,230,0.10);
    border-radius: 100px;
    padding: 8px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 14px 40px rgba(0,0,0,0.30);
  }
  .mobile-nav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center;
    gap: 3px;
    padding: 8px 4px;
    text-decoration: none;
    color: rgba(242,237,230,0.55);
    border-radius: 100px;
    transition: color 0.25s var(--easing), background 0.25s;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .mobile-nav-item.cta {
    background: #6EE7B7;
    color: #0F0F0E;
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 100px;
    flex-direction: row;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
  }
  .mobile-nav-item.active { color: #F2EDE6; }
  .mobile-nav-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
  .mobile-nav-item.cta svg { width: 16px; height: 16px; }

  /* Push live activity above mobile nav */
  .live-activity { bottom: 90px; }
  .scroll-top { bottom: 90px; }
  .wa-button { bottom: 90px; }
  /* Sticky CTA hides on mobile because mobile-nav has CTA */
  .sticky-cta { display: none; }
}

/* ── Tilt cards (testimonials) — JS-controlled ────── */
.testi-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}
.testi-card.tilt-active {
  transition: transform 0.15s var(--easing);
}
.testi-card:not(.tilt-active) {
  transition: transform 0.6s var(--easing);
}

/* ── Trust badge marquee (below hero) ──────────────── */
.trust-strip {
  padding: 22px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--fg);
  color: var(--inv-fg);
  overflow: hidden;
  position: relative;
}
.trust-marquee {
  display: flex;
  gap: 56px;
  animation: trust-scroll 26s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.trust-item {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  color: rgba(242,237,230,0.92);
}
.trust-item strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #F2EDE6;
}
.trust-item::after {
  content: '✦';
  margin-left: 56px;
  color: rgba(242,237,230,0.30);
  font-size: 12px;
}
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Skewed section divider ────────────────────────── */
.skewed-divider {
  position: relative;
  height: 80px;
  background: var(--bg);
  margin: -40px 0;
  z-index: 5;
  pointer-events: none;
}
.skewed-divider.invert { background: var(--fg); }
.skewed-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transform: skewY(-2deg);
  transform-origin: top left;
}

/* ── Trust strip variant for light sections ────────── */
.trust-strip.light {
  background: var(--bg-warm);
  color: var(--fg);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.trust-strip.light .trust-item { color: var(--dim); }
.trust-strip.light .trust-item strong { color: var(--fg); }
.trust-strip.light .trust-item::after { color: var(--mute); }

/* ── Position multiple floating items so they don't stack ── */
@media (min-width: 981px) {
  .live-activity { bottom: 90px; left: 24px; }
  .wa-button { bottom: 96px; right: 24px; }
  .scroll-top { bottom: 96px; right: 96px; }
  .sticky-cta { bottom: 24px; }
}

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v5 — command palette, sparkline,
   confetti, custom scrollbar, live ticker, S icon
   ═══════════════════════════════════════════════════ */

/* ── Custom scrollbar (subtle Affinity-style) ──────── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(15,15,14,0.18);
  border-radius: 100px;
  border: 2px solid var(--bg);
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(15,15,14,0.32);
}
* { scrollbar-width: thin; scrollbar-color: rgba(15,15,14,0.20) transparent; }

/* ── Command palette overlay ───────────────────────── */
.cmd-palette {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(15,15,14,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  transition: opacity 0.35s var(--easing);
}
.cmd-palette.shown {
  display: flex;
  opacity: 1;
}
.cmd-modal {
  width: 100%;
  max-width: 580px;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: translateY(-12px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cmd-palette.shown .cmd-modal {
  transform: translateY(0) scale(1);
}
.cmd-input-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hair);
}
.cmd-input-wrap svg {
  width: 18px; height: 18px;
  stroke: var(--mute);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.cmd-input::placeholder { color: var(--mute); }
.cmd-key-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mute);
  background: var(--bg-warm);
  border: 1px solid var(--hair);
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.cmd-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px;
}
.cmd-section {
  padding: 6px 12px 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.cmd-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.005em;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s var(--easing);
}
.cmd-item:hover, .cmd-item.selected {
  background: var(--bg-warm);
}
.cmd-item-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg-warm);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.cmd-item-meta {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 2px;
}
.cmd-item-meta small {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.005em;
}
.cmd-item-shortcut {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.cmd-empty {
  padding: 32px 20px;
  text-align: center;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
}

.cmd-footer {
  display: flex; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--hair);
  background: var(--bg-warm);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.005em;
}
.cmd-footer kbd {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  background: var(--bg);
  border: 1px solid var(--hair);
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 4px;
}
@media (max-width: 600px) {
  .cmd-palette { padding-top: 8vh; padding-left: 16px; padding-right: 16px; }
  .cmd-modal { max-width: 100%; }
}

/* Floating Cmd+K hint button (top-right of nav, only desktop) */
.cmd-hint {
  position: fixed;
  bottom: 96px;
  right: 168px;
  z-index: 95;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,15,14,0.86);
  color: rgba(242,237,230,0.85);
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  border: 1px solid rgba(242,237,230,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing), background 0.3s;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.cmd-hint.shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cmd-hint:hover { background: var(--fg); color: var(--inv-fg); }
.cmd-hint kbd {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  background: rgba(242,237,230,0.12);
  border: 1px solid rgba(242,237,230,0.18);
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: 500;
}
.cmd-hint:hover kbd {
  background: rgba(15,15,14,0.12);
  border-color: rgba(15,15,14,0.18);
}
@media (max-width: 980px) { .cmd-hint { display: none; } }

/* ── Hero card sparkline upgrade ───────────────────── */
.hero-card-sparkline {
  margin: 12px 0 14px;
  height: 36px;
  position: relative;
}
.hero-card-sparkline svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-card-sparkline path.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: sparkline-draw 2s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}
.hero-card-sparkline path.area {
  fill: url(#sparkline-fade);
  opacity: 0;
  animation: sparkline-fill 0.6s ease 1.6s forwards;
}
.hero-card-sparkline circle.dot {
  fill: var(--accent);
  opacity: 0;
  animation: sparkline-dot 0.4s ease 2s forwards;
}
@keyframes sparkline-draw { to { stroke-dashoffset: 0; } }
@keyframes sparkline-fill { to { opacity: 1; } }
@keyframes sparkline-dot { to { opacity: 1; } }

/* ── Confetti success ────────────────────────────── */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9995;
}

/* ── S icon decorative (manifest) ─────────────────── */
.s-icon-deco {
  display: inline-block;
  width: 80px; height: 80px;
  margin-bottom: 24px;
}
.s-icon-deco svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.s-icon-deco path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.16,1,0.3,1);
}
.s-icon-deco.in path {
  stroke-dashoffset: 0;
}
.s-icon-deco circle {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease 1.4s;
}
.s-icon-deco.in circle {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v6 — Spain map, awards, calendar,
   easter egg, sound toggle
   ═══════════════════════════════════════════════════ */

/* ── Spain coverage map section ────────────────────── */
.coverage-section {
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.coverage-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.coverage-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-top: 24px;
}
.coverage-head h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--dim);
}
.coverage-head p {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.55;
  max-width: 320px;
  padding-bottom: 12px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.coverage-map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
}
.coverage-map svg {
  width: 100%; height: 100%;
  display: block;
}
.coverage-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coverage-map svg path,
.coverage-map svg ellipse {
  fill: rgba(15,15,14,0.04);
  stroke: rgba(15,15,14,0.20);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill 0.6s var(--easing), stroke 0.6s var(--easing);
}
.coverage-map svg path.active,
.coverage-map svg ellipse.active {
  fill: rgba(31,94,59,0.10);
  stroke: rgba(31,94,59,0.35);
  stroke-width: 1.2;
}
.coverage-map svg path.inactive {
  fill: rgba(15,15,14,0.025);
  stroke: rgba(15,15,14,0.12);
  stroke-width: 0.8;
  stroke-dasharray: 2,3;
}
.coverage-pin {
  position: absolute;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #6EE7B7;
  border: 1.5px solid #0F0F0E;
  cursor: pointer;
  transition: transform 0.3s var(--easing), background 0.3s;
  z-index: 3;
  box-shadow: 0 0 0 2px rgba(15,15,14,0.06);
}
.coverage-pin::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: rgba(110,231,183,0.32);
  opacity: 0;
  animation: pin-pulse 2.4s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}
.coverage-pin:hover {
  transform: scale(1.4);
  background: var(--accent);
}
.coverage-pin-label {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  background: var(--fg);
  color: var(--inv-fg);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
}
.coverage-pin:hover .coverage-pin-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.coverage-list { list-style: none; }
.coverage-list li {
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 14px;
  align-items: center;
}
.coverage-list li:last-child { border-bottom: 1px solid var(--hair); }
.coverage-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
}
.coverage-city {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.coverage-count {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
}

@media (max-width: 980px) {
  .coverage-head { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Awards / Certifications row ──────────────────── */
.awards-section {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--bg);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.award-badge {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: clamp(24px, 3vw, 32px) 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  transition: transform 0.5s var(--easing), border-color 0.3s, background 0.3s;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.award-badge:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--bg-warm);
}
.award-badge::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(31,94,59,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--easing);
  pointer-events: none;
}
.award-badge:hover::before { opacity: 1; }

.award-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  border: 1px solid rgba(31,94,59,0.20);
  position: relative;
  z-index: 1;
}
.award-badge:hover .award-icon {
  animation: award-spin 0.6s var(--easing);
}
@keyframes award-spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.award-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}
.award-meta {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

@media (max-width: 980px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .awards-grid { grid-template-columns: 1fr; }
}

/* ── Live calendar widget (floating) ───────────────── */
.calendar-pill {
  position: fixed;
  top: 90px;
  right: 200px;
  z-index: 95;
  background: rgba(242,237,230,0.96);
  color: var(--fg);
  border: 1px solid var(--hair);
  border-radius: 100px;
  padding: 8px 16px 8px 12px;
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.005em;
}
.calendar-pill.shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.calendar-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--inv-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  flex-shrink: 0;
  flex-direction: column;
  line-height: 1;
}
.calendar-icon .month {
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 1px;
}
.calendar-pill .label {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.calendar-pill .time {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
@media (max-width: 980px) { .calendar-pill { display: none; } }

/* ── Easter egg modal ──────────────────────────────── */
.easter-egg {
  position: fixed;
  inset: 0;
  z-index: 9996;
  background: rgba(15,15,14,0.94);
  backdrop-filter: blur(20px);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.5s var(--easing);
}
.easter-egg.shown {
  display: flex;
  opacity: 1;
}
.easter-egg-content {
  text-align: center;
  max-width: 600px;
  color: #F2EDE6;
  transform: scale(0.9);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.easter-egg.shown .easter-egg-content {
  transform: scale(1);
}
.easter-egg h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 24px;
}
.easter-egg h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: #6EE7B7;
}
.easter-egg p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(242,237,230,0.7);
  margin-bottom: 32px;
}
.easter-egg-close {
  background: #6EE7B7;
  color: #0F0F0E;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s;
}
.easter-egg-close:hover { background: #F2EDE6; }
.easter-egg-letters {
  display: inline-flex; gap: 12px;
  margin-bottom: 32px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #6EE7B7;
}
.easter-egg-letters span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(110,231,183,0.35);
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}

/* ── Sound toggle (small floating, optional) ───────── */
.sound-toggle {
  position: fixed;
  top: 90px;
  left: 24px;
  z-index: 95;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(15,15,14,0.86);
  color: rgba(242,237,230,0.6);
  border: 1px solid rgba(242,237,230,0.10);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.3s var(--easing), background 0.3s, transform 0.3s;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
}
.sound-toggle.shown {
  opacity: 1;
  pointer-events: auto;
}
.sound-toggle:hover {
  color: #F2EDE6;
  background: var(--fg);
  transform: scale(1.05);
}
.sound-toggle.on { color: #6EE7B7; }
@media (max-width: 980px) { .sound-toggle { display: none; } }

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v7 — timeline, carousel tilt, ToC
   ═══════════════════════════════════════════════════ */

/* ── Timeline 90 días ─────────────────────────────── */
.timeline-section {
  padding: clamp(120px, 14vw, 200px) 0;
  background: var(--fg);
  color: var(--inv-fg);
  overflow: hidden;
  position: relative;
}
.timeline-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle 600px at 80% 20%, rgba(110,231,183,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.timeline-section .w { position: relative; z-index: 1; }
.timeline-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.timeline-head .kicker { color: rgba(242,237,230,0.55); }
.timeline-head .kicker::before { background: rgba(242,237,230,0.4); opacity: 1; }
.timeline-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(40px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: #F2EDE6;
  margin-top: 24px;
}
.timeline-head h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: rgba(242,237,230,0.55);
}
.timeline-head p {
  font-size: 16px;
  color: rgba(242,237,230,0.62);
  line-height: 1.6;
  max-width: 360px;
  padding-bottom: 12px;
}

.timeline-track {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: rgba(242,237,230,0.16);
  transform: translateY(-50%);
}
.timeline-line::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent), #6EE7B7);
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s;
}

.timeline-stops {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 3vw, 40px);
  position: relative;
}
.timeline-stop {
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s var(--easing);
}
.timeline-stop::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--fg);
  border: 1.5px solid rgba(242,237,230,0.32);
  margin: 60px auto 24px;
  transition: background 0.4s var(--easing), border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--easing);
  position: relative;
  z-index: 2;
}
.timeline-stop.active::before,
.timeline-stop:hover::before {
  background: #6EE7B7;
  border-color: #6EE7B7;
  box-shadow: 0 0 0 6px rgba(110,231,183,0.18);
  transform: scale(1.18);
}
.timeline-stop-day {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 44px);
  color: rgba(242,237,230,0.42);
  line-height: 1;
  transition: color 0.4s var(--easing);
}
.timeline-stop.active .timeline-stop-day,
.timeline-stop:hover .timeline-stop-day {
  color: #6EE7B7;
}
.timeline-stop h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: #F2EDE6;
}
.timeline-stop p {
  font-size: 13px;
  color: rgba(242,237,230,0.55);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .timeline-head { grid-template-columns: 1fr; }
  .timeline-stops { grid-template-columns: 1fr; gap: 32px; }
  .timeline-line { display: none; }
  .timeline-stop::before { margin: 16px auto; }
  .timeline-stop-day { position: static; transform: none; display: block; margin-bottom: 8px; }
}

/* ── 3D tilt on carousel cards (similar to testimonials) ── */
.carousel-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}
.carousel-card.tilt-active {
  transition: transform 0.15s var(--easing);
}

/* ── Sticky Table of Contents (floating left) ────── */
.toc-floating {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  background: rgba(242,237,230,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 16px;
  min-width: 200px;
  max-width: 240px;
  opacity: 0;
  transform: translateY(-50%) translateX(-12px);
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing);
  pointer-events: none;
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
}
.toc-floating.shown {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.toc-floating-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}
.toc-floating-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 2px;
}
.toc-floating-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.25s var(--easing), background 0.25s;
  font-size: 12px;
  letter-spacing: 0.005em;
}
.toc-floating-item:hover {
  background: rgba(15,15,14,0.04);
  color: var(--fg);
}
.toc-floating-item.active {
  color: var(--fg);
  background: rgba(31,94,59,0.06);
}
.toc-floating-item .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 11px;
  color: var(--mute);
  width: 14px;
  flex-shrink: 0;
}
.toc-floating-item.active .num { color: var(--accent); }
@media (max-width: 1280px) { .toc-floating { display: none; } }

/* ═══════════════════════════════════════════════════
   AFFINITY EXTRAS v8 — ROI mini-chart, dynamic hero card,
   section counter overlay, lightbox skeleton
   ═══════════════════════════════════════════════════ */

/* ── Mini chart in ROI calculator ─────────────────── */
.roi-mini-chart {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,237,230,0.12);
}
.roi-mini-chart-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(242,237,230,0.45);
  margin-bottom: 14px;
  display: flex; justify-content: space-between;
}
.roi-mini-chart-svg {
  width: 100%;
  height: 70px;
  display: block;
}
.roi-mini-chart-svg .bar {
  fill: rgba(110,231,183,0.25);
  transition: y 0.5s cubic-bezier(0.16,1,0.3,1),
              height 0.5s cubic-bezier(0.16,1,0.3,1),
              fill 0.4s var(--easing);
}
.roi-mini-chart-svg .bar.active {
  fill: #6EE7B7;
}
.roi-mini-chart-svg .x-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: rgba(242,237,230,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.roi-mini-chart-svg .baseline {
  stroke: rgba(242,237,230,0.10);
  stroke-width: 1;
}

/* ── Section counter overlay (massive number when entering section) ── */
.section-counter-overlay {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  z-index: 90;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 40px;
  color: rgba(15,15,14,0.92);
  letter-spacing: -0.02em;
  background: rgba(242,237,230,0.96);
  backdrop-filter: blur(14px);
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid var(--hair);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--easing), transform 0.5s var(--easing);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  display: inline-flex; align-items: center; gap: 12px;
}
.section-counter-overlay.shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.section-counter-overlay .num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.section-counter-overlay .sep {
  width: 1px;
  height: 18px;
  background: var(--hair);
}
@media (max-width: 980px) { .section-counter-overlay { display: none; } }

/* Move scroll hint up when section counter is shown */
body:has(.section-counter-overlay.shown) .scroll-hint { bottom: 80px; }

/* ── Page transition with page number ─────────────── */
.page-transition::before {
  content: attr(data-target-name);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(40px, 6vw, 72px);
  color: rgba(242,237,230,0.92);
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 0.4s var(--easing) 0.2s;
}
.page-transition.active::before {
  opacity: 1;
}

/* ── Lightbox skeleton loader ───────────────────── */
.lightbox::before {
  content: '';
  position: absolute;
  width: 80%;
  max-width: 600px;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg,
    rgba(242,237,230,0.04) 0%,
    rgba(242,237,230,0.10) 50%,
    rgba(242,237,230,0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s var(--easing);
}
.lightbox.loading::before { opacity: 1; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Live pulse on hero card values ─────────────── */
.hero-card-v.flash {
  animation: value-flash 0.6s var(--easing);
}
@keyframes value-flash {
  0%   { color: var(--fg); }
  50%  { color: var(--accent); transform: scale(1.05); }
  100% { color: var(--fg); transform: scale(1); }
}

/* ── Two-column section header (title left, sub right) ─ */
.split-header {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.split-header h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.96;
}
.split-header h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--dim);
}
.split-header p {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.55;
  max-width: 320px;
  padding-bottom: 12px;
}
@media (max-width: 980px) {
  .split-header { grid-template-columns: 1fr; gap: 24px; }
  .carousel-head { grid-template-columns: 1fr; gap: 28px; }
  .carousel-track { padding-left: 28px; padding-right: 28px; }
  .carousel-card { min-height: 480px; }
}

/* ═══════════════════════════════════════════════════
   MOBILE UX CLEANUP — declutter floating UI
   ═══════════════════════════════════════════════════ */
@media (max-width: 980px) {
  /* Hide non-essential floating UI on tablet+mobile */
  .live-activity { display: none !important; }
  .sound-toggle { display: none !important; }
  /* Process counter is decorative; redundant with inline 01/02/03 step numbers */
  .process-counter { display: none !important; }
}

@media (max-width: 720px) {
  /* Hide chat fab + scroll-hint to avoid 3-button stack on mobile */
  .scroll-hint { display: none !important; }

  /* Mobile bottom nav: tighter so all labels fit */
  .mobile-nav { padding: 6px; gap: 2px; }
  .mobile-nav-item { padding: 6px 2px; font-size: 9px; gap: 2px; min-width: 0; }
  .mobile-nav-item svg { width: 18px; height: 18px; }
  .mobile-nav-item.cta { padding: 8px 14px; font-size: 11px; gap: 6px; flex: 0 0 auto; }
  .mobile-nav-item.cta svg { width: 14px; height: 14px; }

  /* Push remaining floating buttons higher to avoid bottom-nav overlap */
  .scroll-top { bottom: 78px !important; right: 12px !important; }
  .chat-fab { bottom: 78px !important; right: 12px !important; }
  .wa-button { bottom: 78px !important; right: 70px !important; }

  /* Hero kicker line: compact, wraps cleanly */
  .hero-meta .hero-coords {
    font-size: 10px;
    letter-spacing: 0.06em;
    flex-basis: 100%;
    line-height: 1.4;
  }

  /* Manifesto S decorative icon: smaller on mobile */
  .s-icon-deco { width: 52px !important; height: 52px !important; margin-bottom: 16px !important; }

  /* Sticky scrolltelling steps: tighter on mobile */
  .sticky-step .num { font-size: 36px !important; }
}


/* ── Language switcher (i18n) ───────────────────────── */
.lang-switch {
  position: relative; flex-shrink: 0;
  margin-left: 20px;
}
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dim); background: transparent;
  border: 1px solid var(--hair); border-radius: 100px;
  padding: 8px 12px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-current svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.lang-switch:hover .lang-current,
.lang-switch:focus-within .lang-current { color: var(--fg); border-color: var(--fg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 170px; list-style: none; padding: 6px;
  background: var(--bg); border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(15,15,14,0.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--easing), transform 0.25s var(--easing), visibility 0.25s;
  z-index: 260;
}
.lang-switch::after { /* hover bridge */
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif; font-size: 14px;
  color: var(--fg); text-decoration: none;
  transition: background 0.2s;
}
.lang-menu a:hover { background: var(--hair); }
.lang-menu a[aria-current] { color: var(--accent); }
.lang-menu .lang-code {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--mute); width: 20px;
}
body.dark-mode .lang-menu { background: #1a1a18; }
@media (max-width: 980px) {
  .lang-switch { margin-left: auto; margin-right: 4px; }
  .lang-current { padding: 7px 10px; }
}
