/* ==========================================================================
   Chamunda Walls & Floors — "futuristic minimal" stylesheet
   Layout utilities come from Tailwind (CDN). Brand look-and-feel lives here.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #F5F2ED;          /* soft bone */
  --surface: #ECE7DF;     /* warm stone */
  --card: rgba(255, 255, 255, 0.55);
  --card-strong: rgba(255, 255, 255, 0.78);
  --ink: #16161A;         /* deep ink */
  --muted: #5E5B56;       /* warm grey text */
  --line: rgba(22, 22, 26, 0.10);
  --line-strong: rgba(22, 22, 26, 0.22);
  --sage: #7C8B6F;        /* the one accent */
  --sage-ink: #5F6E54;    /* accent for text / small UI (AA on bone) */
  --sage-soft: #DDE3D5;
  --on-ink: #F5F2ED;      /* text on ink buttons */
  --danger: #B4432F;
  --shadow: 0 1px 2px rgba(22, 22, 26, .04), 0 12px 40px -12px rgba(22, 22, 26, .18);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --grain-opacity: .07;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F10;
    --surface: #18181A;
    --card: rgba(32, 32, 35, 0.55);
    --card-strong: rgba(32, 32, 35, 0.82);
    --ink: #EDEAE4;
    --muted: #A3A09A;
    --line: rgba(237, 234, 228, 0.12);
    --line-strong: rgba(237, 234, 228, 0.26);
    --sage: #A3B596;
    --sage-ink: #B7C7AA;
    --sage-soft: #263022;
    --on-ink: #0F0F10;
    --danger: #F08A73;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 50px -16px rgba(0, 0, 0, .6);
    --grain-opacity: .05;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sage); color: #fff; }

.font-display, h1, h2, h3, .display {
  font-family: "Clash Display", "Manrope", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-weight: 600;
}
.text-muted { color: var(--muted); }
.text-sage { color: var(--sage-ink); }
.bg-surface { background: var(--surface); }
.border-line { border-color: var(--line); }

.headline-xl { font-size: clamp(2.9rem, 10.5vw, 7.6rem); }
.headline-lg { font-size: clamp(2.3rem, 6.6vw, 5rem); }
.headline-md { font-size: clamp(1.7rem, 4vw, 2.6rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--sage);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 22%, transparent);
}

.container-x { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container-x { padding-inline: 28px; } }
@media (min-width: 1024px) { .container-x { padding-inline: 40px; } }

.section { padding-block: clamp(4.5rem, 11vw, 8.5rem); }

/* Visible, consistent focus states */
:focus-visible {
  outline: 2px solid var(--sage-ink);
  outline-offset: 3px;
  border-radius: 10px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-ink); padding: .7rem 1rem; border-radius: 12px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Grain overlay ---------- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

/* ---------- Glass ---------- */
.glass {
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius);
}
.glass-strong { background: var(--card-strong); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .95rem; --pad-x: 1.45rem;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .45s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
  white-space: nowrap;
}
.btn i { font-size: 1.15em; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card-strong); border-color: var(--ink); }
.btn-sage { background: var(--sage-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-sage { color: #0F0F10; } }
.btn-sage:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--sage) 70%, transparent); }
.btn-sm { --pad-y: .7rem; --pad-x: 1.1rem; min-height: 42px; font-size: .9rem; }
.btn-lg { --pad-y: 1.15rem; --pad-x: 1.8rem; font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease);
}
.link-underline:hover { background-size: 100% 1px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.wordmark {
  font-family: "Clash Display", sans-serif; font-weight: 600; letter-spacing: -0.02em;
  font-size: 1.12rem; line-height: 1; display: inline-flex; align-items: center; gap: .55rem;
}
.wordmark-logo { width: 38px; height: 38px; flex: none; object-fit: contain; }
.wordmark small { display: block; font-family: "Manrope", sans-serif; font-weight: 600; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-link {
  position: relative; padding: .5rem .2rem; font-weight: 600; font-size: .95rem; color: var(--muted);
  transition: color .25s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 9px;
  background: var(--sage); transform: translateX(-50%);
}

.menu-btn {
  width: 46px; height: 46px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--card); font-size: 1.35rem; color: var(--ink);
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; padding: 18px 16px 28px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a.mm-link {
  font-family: "Clash Display", sans-serif; font-size: clamp(2.4rem, 12vw, 3.4rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; display: flex; align-items: center; justify-content: space-between;
  padding-block: .35rem; border-bottom: 1px solid var(--line);
}
.mobile-menu a.mm-link i { font-size: 1.6rem; color: var(--sage-ink); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-blob {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, 120vw); aspect-ratio: 1; border-radius: 50%;
  top: -20%; right: -25%;
  background:
    radial-gradient(closest-side at 35% 40%, color-mix(in srgb, var(--sage) 70%, transparent), transparent 70%),
    radial-gradient(closest-side at 70% 65%, color-mix(in srgb, #E3C9A8 75%, transparent), transparent 70%),
    radial-gradient(closest-side at 55% 25%, color-mix(in srgb, #CFD6E0 70%, transparent), transparent 70%);
  filter: blur(60px);
  opacity: .75;
  animation: blob 22s var(--ease) infinite alternate;
}
.hero-blob.b2 {
  width: min(620px, 95vw); top: auto; bottom: -30%; right: auto; left: -25%;
  opacity: .5; animation-duration: 28s; animation-direction: alternate-reverse;
}
@media (prefers-color-scheme: dark) { .hero-blob { opacity: .35; } .hero-blob.b2 { opacity: .25; } }
@keyframes blob {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 50% 45% 55% 48%; }
  50% { transform: translate(-6%, 8%) rotate(40deg) scale(1.08); border-radius: 42% 58% 46% 54%; }
  100% { transform: translate(5%, -4%) rotate(80deg) scale(.96); border-radius: 56% 44% 50% 50%; }
}

.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--sage-ink); }

.hero-collage { position: relative; }
.hero-img {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.float-card { position: absolute; padding: .9rem 1rem; border-radius: 20px; box-shadow: var(--shadow); }
.ri-title { min-height: 2.5em; display: flex; align-items: flex-end; } /* room for 2 lines so the card doesn't jump */
.ri-body { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ri-body.is-swapping { opacity: 0; transform: translateY(6px); }
.live-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--sage); flex: none; animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }

.spin-badge {
  position: absolute; width: 112px; height: 112px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink);
  box-shadow: var(--shadow);
}
.spin-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin-badge text { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }
.spin-badge i { font-size: 1.6rem; color: var(--sage); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track > ul { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  font-family: "Clash Display", sans-serif; font-weight: 500; font-size: clamp(1.4rem, 3.6vw, 2.4rem);
  letter-spacing: -0.01em; white-space: nowrap; padding-block: 1.1rem;
}
.marquee-track li::after { content: "✦"; color: var(--sage); font-size: .6em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento: spaces ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
@media (min-width: 768px) { .bento { gap: 16px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; } }
.bento-card {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--surface); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
@media (min-width: 768px) { .bento-card { border-radius: var(--radius); } }
.bento-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.1s var(--ease);
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,12,0) 35%, rgba(10,10,12,.72) 100%);
}
.bento-card .bento-body { padding: 16px; }
@media (min-width: 768px) { .bento-card .bento-body { padding: 22px; } }
.bento-card .bento-label {
  font-family: "Clash Display", sans-serif; font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.6rem); line-height: 1.1;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.bento-card .bento-label i {
  width: 36px; height: 36px; flex: none; border-radius: 99px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 1rem; transition: transform .5s var(--ease), background-color .3s;
}
.bento-card .bento-reveal {
  font-size: .9rem; line-height: 1.45; color: rgba(255,255,255,.88); margin-top: .4rem;
}
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2 { grid-column: span 2; }
@media (hover: hover) and (pointer: fine) {
  .bento-card .bento-reveal {
    max-height: 0; opacity: 0; transform: translateY(10px);
    transition: max-height .6s var(--ease), opacity .45s var(--ease), transform .6s var(--ease);
  }
  .bento-card:hover .bento-reveal, .bento-card:focus-visible .bento-reveal { max-height: 7rem; opacity: 1; transform: none; }
  .bento-card:hover img, .bento-card:focus-visible img { transform: scale(1.06); }
  .bento-card:hover .bento-label i { transform: rotate(-45deg); background: var(--sage); }
}
/* On phones the line is always visible but kept short on small tiles */
@media (max-width: 767px) {
  .bento-card:not(.span-2x2):not(.span-2) .bento-reveal { display: none; }
}
.bento-cta {
  color: var(--ink); background: var(--sage-soft); border: 1px solid var(--line);
  justify-content: space-between; padding: 18px;
}
.bento-cta::before { display: none; }
@media (min-width: 768px) { .bento-cta { padding: 24px; } }

/* ---------- Services ---------- */
.service-block { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
@media (min-width: 1024px) { .service-media { aspect-ratio: auto; min-height: 100%; } }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.service-list li {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
  padding: 1rem 0; border-top: 1px solid var(--line);
}
.service-list li:first-child { border-top: 0; }
.service-list .num {
  font-family: "Clash Display", sans-serif; font-size: .8rem; font-weight: 600; color: var(--sage-ink);
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line-strong);
}
.service-list strong { display: block; font-weight: 700; font-size: 1.02rem; }
.service-list span { color: var(--muted); font-size: .94rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .5rem .95rem; font-size: .86rem; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--card);
}
.pill i { color: var(--sage-ink); }

.supply-install {
  border-radius: var(--radius); background: var(--ink); color: var(--on-ink);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  position: relative; overflow: hidden;
}
.supply-install::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sage) 70%, transparent), transparent);
  filter: blur(20px); opacity: .8;
}
.supply-install .muted-on-ink { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 14px; counter-reset: step; position: relative; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius-sm); }
.step .step-num {
  font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
}
.step .step-icon {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-ink); font-size: 1.4rem;
}
.timeline-rail { display: none; }
@media (min-width: 900px) {
  .timeline-rail {
    display: block; position: absolute; left: 3%; right: 3%; top: 50%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
    z-index: -1;
  }
}
@media (max-width: 899px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 47px; bottom: -14px; width: 1px; height: 14px; background: var(--line-strong);
  }
}

/* ---------- Before / After ---------- */
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; background: var(--surface);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
@media (min-width: 768px) { .ba { aspect-ratio: 16 / 9; } }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-before img { filter: saturate(.85); }
.ba-before { position: absolute; inset: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff;
  transform: translateX(-1px); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: #16161A; font-size: 1.4rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .3s var(--ease);
}
.ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.1); }
.ba:has(input:focus-visible) .ba-knob { outline: 3px solid var(--sage); outline-offset: 3px; }
.ba-tag {
  position: absolute; top: 16px; padding: .4rem .8rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(15,15,16,.55); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  pointer-events: none;
}
.ba-tag.before { left: 16px; }
.ba-tag.after { right: 16px; background: rgba(255,255,255,.75); color: #16161A; }
.ba input[type="range"] {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; margin: 0;
  pointer-events: none;
}

/* ---------- Masonry gallery ---------- */
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 768px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1200px) { .masonry { columns: 4; } }
.masonry figure {
  break-inside: avoid; margin: 0 0 12px; position: relative; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--surface);
}
@media (min-width: 768px) { .masonry figure { margin-bottom: 16px; } }
.masonry img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.masonry figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: .55rem .75rem; border-radius: 14px; font-size: .78rem; font-weight: 600; line-height: 1.3;
  background: rgba(15,15,16,.5); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
}
@media (hover: hover) and (pointer: fine) {
  .masonry figcaption { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .masonry figure:hover figcaption { opacity: 1; transform: none; }
  .masonry figure:hover img { transform: scale(1.05); }
}

/* ---------- Stats ---------- */
.stat { padding: 1.4rem; border-radius: var(--radius-sm); display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
@media (min-width: 768px) { .stat { padding: 1.8rem; min-height: 220px; border-radius: var(--radius); } }
.stat .stat-num { font-family: "Clash Display", sans-serif; font-weight: 600; font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat .stat-num .suffix { color: var(--sage-ink); }
.stat-dark { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.stat-dark .text-muted { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
.stat-dark .stat-num .suffix { color: var(--sage); }
@media (prefers-color-scheme: dark) { .stat-dark .stat-num .suffix { color: #5F6E54; } }

/* ---------- Testimonials carousel ---------- */
.carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.carousel-track { display: flex; width: max-content; gap: 16px; animation: marquee 42s linear infinite; padding-block: 6px; }
.carousel-track > .set { display: flex; gap: 16px; padding-right: 16px; }
.carousel:hover .carousel-track, .carousel:focus-within .carousel-track, .carousel.is-paused .carousel-track { animation-play-state: paused; }
.review {
  width: min(82vw, 380px); flex: none; padding: 1.5rem; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 1rem;
}
.review .stars { color: var(--sage-ink); letter-spacing: 2px; display: flex; gap: 2px; }
.review blockquote { margin: 0; font-size: 1.06rem; line-height: 1.55; }
.avatar {
  width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; background: var(--sage-soft); color: var(--sage-ink);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(24px, 4vw, 40px);
  background: var(--ink); color: var(--on-ink);
  padding: clamp(2.4rem, 7vw, 5.5rem) clamp(1.4rem, 5vw, 4.5rem);
}
.cta-band .hero-blob { opacity: .55; top: -40%; right: -30%; }
.cta-band .muted-on-ink { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.cta-band .btn-primary { background: var(--on-ink); color: var(--ink); }
.cta-band .btn-ghost { color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 35%, transparent); }
.cta-band .btn-ghost:hover { background: color-mix(in srgb, var(--on-ink) 10%, transparent); border-color: var(--on-ink); }

.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1rem 1rem 1.4rem; border-radius: 999px;
}
@media (max-width: 639px) { .inline-cta { border-radius: 24px; padding: 1.1rem; } .inline-cta .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer a:hover { color: var(--ink); }
.footer-big {
  font-family: "Clash Display", sans-serif; font-weight: 600; letter-spacing: -0.04em; line-height: .85;
  font-size: clamp(3.2rem, 15vw, 13rem); color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  white-space: nowrap; user-select: none;
}
.social-btn {
  width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); font-size: 1.25rem; transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.social-btn:hover { background: var(--ink); color: var(--on-ink); transform: translateY(-2px); }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 55;
  width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center;
  background: var(--sage-ink); color: #fff; font-size: 1.8rem;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--sage-ink) 80%, transparent);
  transition: transform .4s var(--ease);
}
@media (prefers-color-scheme: dark) { .wa-float { color: #0F0F10; } }
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--sage);
  animation: pulse 2.6s var(--ease) infinite; pointer-events: none;
}
.wa-float::after { animation-delay: 1.3s; }
.wa-float:hover { transform: scale(1.06); }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
/* Phones already have WhatsApp in the bottom bar, so the bubble is desktop/tablet only */
@media (max-width: 767px) { .wa-float { display: none; } }
@media (min-width: 768px) { .wa-float { bottom: 24px; right: 24px; width: 62px; height: 62px; } }
.wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: .85rem; font-weight: 600; color: var(--ink);
  padding: .5rem .8rem; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
@media (hover: hover) { .wa-float:hover .wa-tip { opacity: 1; } }

.mobile-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 56;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.mobile-bar .btn { min-height: 50px; width: 100%; }
@media (min-width: 768px) { .mobile-bar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor-dot, html.has-cursor .cursor-ring {
    display: block; position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
    border-radius: 999px; transform: translate3d(-100px, -100px, 0);
  }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid var(--ink); opacity: .35;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background-color .3s;
  }
  html.has-cursor .cursor-ring.is-hover {
    width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: .9;
    background: color-mix(in srgb, var(--sage) 22%, transparent); border-color: var(--sage);
  }
}

/* ---------- Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Contact page: form ---------- */
.form-card { border-radius: clamp(24px, 4vw, 36px); padding: clamp(1.25rem, 4vw, 2.6rem); }
.field { display: flex; flex-direction: column; gap: .45rem; }
.label { font-weight: 700; font-size: .92rem; }
.label .req { color: var(--sage-ink); }
.label .opt { color: var(--muted); font-weight: 500; font-size: .82rem; }
.input {
  width: 100%; min-height: 52px; padding: .85rem 1rem;
  font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--ink); background: var(--card-strong);
  border: 1px solid var(--line-strong); border-radius: 16px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.input:focus { outline: none; border-color: var(--sage-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 25%, transparent); }
textarea.input { min-height: 120px; resize: vertical; }
input[type="date"].input { min-height: 52px; }
.field.has-error .input, .field.has-error .chips { border-color: var(--danger); }
.field.has-error .input { box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 15%, transparent); }
.error-msg { display: none; align-items: center; gap: .35rem; color: var(--danger); font-size: .86rem; font-weight: 600; }
.field.has-error .error-msg { display: flex; animation: shake .4s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.hint { color: var(--muted); font-size: .84rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 18px; padding: 0; margin: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: .45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .6rem 1rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card-strong);
  font-weight: 600; font-size: .92rem; cursor: pointer; user-select: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.chip span i { font-size: 1.05rem; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip input:checked + span::before { content: "✓"; font-size: .8rem; color: var(--sage); }
.chip input:focus-visible + span { outline: 2px solid var(--sage-ink); outline-offset: 3px; }
.chip input:active + span { transform: scale(.97); }

.form-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 99px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .arrow { display: none; }

.form-alert { display: none; padding: .9rem 1rem; border-radius: 16px; font-size: .92rem; font-weight: 600; border: 1px solid; gap: .6rem; align-items: flex-start; }
.form-alert.is-shown { display: flex; }
.form-alert.error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }

/* Success state */
.success { display: none; text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; }
.success.is-shown { display: block; animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.success-check { width: 96px; height: 96px; margin: 0 auto 1.4rem; position: relative; }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { stroke: var(--sage); stroke-width: 2; fill: color-mix(in srgb, var(--sage) 14%, transparent); stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw 1s var(--ease) forwards; }
.success-check path { stroke: var(--sage-ink); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sparkle { position: absolute; color: var(--sage); font-size: 1.1rem; opacity: 0; animation: sparkle 1.6s 1s var(--ease) forwards; }
@keyframes sparkle { 0% { opacity: 0; transform: scale(.3) translate(0, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1) translate(var(--x), var(--y)); } }
form.is-hidden { display: none; }

/* Contact cards */
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 22px;
  transition: transform .45s var(--ease), border-color .3s, background-color .3s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--card-strong); }
.contact-card .icon {
  width: 50px; height: 50px; flex: none; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--sage-soft); color: var(--sage-ink);
}
.contact-card .go { margin-left: auto; font-size: 1.2rem; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.contact-card:hover .go { transform: translate(3px, -3px); color: var(--ink); }

/* Map */
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 320px; border: 1px solid var(--line); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
@media (prefers-color-scheme: dark) { .map-wrap iframe { filter: grayscale(.6) invert(.9) hue-rotate(180deg); } }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--surface);
}
.map-pin {
  width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; margin: 0 auto 1rem;
  background: var(--ink); color: var(--on-ink); font-size: 1.6rem;
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--sage) 25%, transparent);
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0; font-family: "Clash Display", sans-serif; font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.35rem); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 38px; height: 38px; flex: none; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); transition: transform .45s var(--ease), background-color .3s, color .3s;
}
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--on-ink); }
.faq .answer { padding: 0 3.2rem 1.4rem 0; color: var(--muted); }
.faq details[open] .answer { animation: rise .5s var(--ease) both; }

/* ---------- Popup ---------- */
.popup {
  width: min(92vw, 520px); padding: 0; border: 1px solid var(--line); border-radius: 30px;
  background: var(--bg); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(0,0,0,.45);
  overflow: hidden;
}
.popup::backdrop { background: rgba(10,10,12,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.popup[open] { animation: rise .6s var(--ease) both; }
.popup-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--card-strong); border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; cursor: pointer; z-index: 2;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track, .carousel-track { animation: none !important; }
  .carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .carousel-track > .set[aria-hidden="true"], .marquee-track > ul[aria-hidden="true"] { display: none; }
  .marquee-track { width: auto; }
  .marquee-track > ul { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; column-gap: 0; padding-inline: 16px; }
  .marquee-track li { padding-block: .5rem; font-size: clamp(1.1rem, 3vw, 1.6rem); }
  .carousel-track { padding-inline: 16px; }
  .hero-img img { transform: none !important; }
  .wa-float::before, .wa-float::after { display: none; }
  .success-check circle, .success-check path { stroke-dashoffset: 0; }
  .sparkle { display: none; }
}
