/* ==========================================================================
   TonesVerse — site stylesheet
   Mobile-first. No framework. Tokens live in :root.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0c11;
  --bg-2: #13121a;
  --surface: #1a1922;
  --surface-2: #23222d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f2f6;
  --text-soft: rgba(244, 242, 246, 0.8);
  --muted: #a7a4b2;
  --accent: #dc2751;
  --accent-hover: #c21b43;
  --accent-text: #ff5c80;
  --accent-tint: rgba(220, 39, 81, 0.14);

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --slide-duration: 6.5s;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-color: rgba(255, 92, 128, 0.5); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-text); }

button { font: inherit; color: inherit; }

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

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3, h4 { letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; color: #fff; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 16px;
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.display {
  font-size: clamp(2.25rem, 11.5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }

.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.muted { color: var(--muted); }
.accent { color: var(--accent-text); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 0.9em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.btn-light { background: #fff; color: #14131a; }
.btn-light:hover { background: #f1e9ec; color: #14131a; }

.btn-sm { min-height: 42px; padding: 0.6em 1.2em; font-size: 0.875rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon,
a:hover > .link-arrow .icon { transform: translateX(4px); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(13, 12, 17, 0.84);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand { position: relative; z-index: 2; display: block; flex-shrink: 0; }
.brand img { width: auto; height: 46px; }

.nav { display: flex; align-items: center; gap: 20px; }

.nav-list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 0.55em 0.95em;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-list a[aria-current] { color: #fff; }
.nav-list a[aria-current]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 12, 17, 0.4);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); background: var(--text); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); background: var(--text); }

@media (max-width: 939px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
    overflow-y: auto;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s, transform 0.3s var(--ease);
  }
  /* backdrop-filter would trap the fixed menu inside the header box */
  .nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }
  .nav-open,
  .nav-open body { overflow: hidden; }

  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    padding: 0.5em 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .nav-list a:hover { background: none; }
  .nav-list a[aria-current] { color: var(--accent-text); }
  .nav-list a[aria-current]::after { display: none; }
  .nav-cta { min-height: 54px; font-size: 1rem; }
}

/* ---------- REC badge & EQ meter ---------- */
.rec {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 12, 17, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rec::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(220, 39, 81, 0.7);
  animation: rec-pulse 1.8s infinite;
}
@keyframes rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 39, 81, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(220, 39, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 39, 81, 0); }
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
}
.eq i {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite alternate;
}
.eq i:nth-child(1) { animation-delay: -0.2s; }
.eq i:nth-child(2) { animation-delay: -0.9s; }
.eq i:nth-child(3) { animation-delay: -0.4s; }
.eq i:nth-child(4) { animation-delay: -1.1s; }
.eq i:nth-child(5) { animation-delay: -0.6s; }
@keyframes eq {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, 100svh);
  padding: calc(var(--header-h) + 40px) 0 36px;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s linear;
}
.hero-media img.is-active { opacity: 1; transform: scale(1); }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 12, 17, 0.6) 0%, rgba(13, 12, 17, 0.2) 30%, rgba(13, 12, 17, 0.78) 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13, 12, 17, 0.75) 0%, rgba(13, 12, 17, 0) 65%);
}

.hero-content { max-width: 1000px; }
.hero .display { margin: 22px 0 20px; }
.hero .display em { font-style: normal; color: var(--accent-text); }
.hero .lead { max-width: 640px; color: rgba(255, 255, 255, 0.84); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: clamp(32px, 6vh, 72px) 0 0;
  padding: 0;
  list-style: none;
}
.hero-tab {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 0 4px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.hero-tab:hover,
.hero-tab.is-active { opacity: 1; }
.hero-tab::before,
.hero-tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
}
.hero-tab::before { right: 0; background: rgba(255, 255, 255, 0.2); }
.hero-tab::after { width: 0; background: var(--accent); }
.hero-tab.is-active::after { width: 100%; transition: width var(--slide-duration) linear; }
.hero.is-paused .hero-tab.is-active::after,
.hero:not(.is-playing) .hero-tab.is-active::after { transition: none; }

.hero-tab .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-text);
}
.hero-tab strong {
  display: block;
  margin: 2px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero-tab .desc {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 719px) {
  .hero-tab .desc { display: none; }
  .hero-tab strong { font-size: 0.9rem; }
  .hero { padding-bottom: 92px; } /* keep slide titles clear of the floating WhatsApp button */
  .rec { font-size: 0.7rem; letter-spacing: 0.12em; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(64px, 11vw, 132px)) 0 clamp(48px, 7vw, 84px);
  overflow: hidden;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 12, 17, 0.72) 0%, rgba(13, 12, 17, 0.7) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13, 12, 17, 0.7), rgba(13, 12, 17, 0.1));
}
.page-hero h1 { font-size: clamp(2.25rem, 10.5vw, 4.75rem); font-weight: 700; letter-spacing: -0.03em; }
.page-hero .lead { max-width: 640px; margin: 20px 0 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5em; opacity: 0.5; }
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
/* Heavy below-the-fold sections: the browser skips rendering them until they near the viewport. */
.defer-render { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.section-alt { background: var(--bg-2); }
.pt-0 { padding-top: 0; }
.page-hero + .section { padding-top: clamp(40px, 6vw, 80px); }
.mt-l { margin-top: 40px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { max-width: 15ch; }
.section-head > p { max-width: 46ch; margin: 0; color: var(--muted); }

/* ---------- Statement ---------- */
.statement-wrap {
  display: grid;
  gap: 28px;
}
.statement-wrap > :first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.statement {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.statement .accent { font-weight: 700; }
.statement + .link-arrow { margin-top: 28px; }
@media (min-width: 900px) {
  .statement-wrap { grid-template-columns: 220px 1fr; gap: 48px; }
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.service-card:hover { color: inherit; border-color: rgba(220, 39, 81, 0.55); transform: translateY(-4px); }
.service-card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  background: rgba(13, 12, 17, 0.72);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}
.service-card .body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 22px 24px; }
.service-card h3 { display: flex; align-items: center; gap: 0.5em; font-size: 1.3rem; }
.service-card h3 .icon { color: var(--accent-text); }
.service-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Split layout & features ---------- */
.split {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split-reverse { grid-template-columns: 7fr 5fr; }
  .split-reverse > :first-child { order: 2; }
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--surface);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1em;
  border-radius: 999px;
  background: rgba(13, 12, 17, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 600;
}
.split-media .tag .icon { color: var(--accent-text); width: 1.1em; height: 1.1em; }
@media (max-width: 959px) {
  .split-media { aspect-ratio: 16 / 10; }
}

.feature-grid {
  display: grid;
  gap: 32px 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: 36px;
}
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.feature h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-text);
}
.icon-badge .icon { width: 22px; height: 22px; }

/* ---------- Brand band ---------- */
.brands { padding-block: clamp(32px, 4vw, 44px); background: var(--accent); }
.brands ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px clamp(28px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.brands a { display: block; transition: opacity 0.2s, transform 0.3s var(--ease); }
.brands a:hover { opacity: 0.8; transform: translateY(-2px); }
.brands img { width: auto; height: 72px; max-width: 160px; object-fit: contain; }

/* ---------- Equipment ---------- */
.gear-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.gear-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.gear-card h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1.25;
}
.gear-card ul { margin: 0; padding: 0; list-style: none; }
.gear-card li { padding: 11px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.gear-card li strong { display: block; font-weight: 600; }
.gear-card li span { display: block; color: var(--muted); font-size: 0.875rem; }

/* ---------- Mosaic (home gallery teaser) ---------- */
.mosaic {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
.mosaic a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  background: var(--surface);
}
.mosaic a:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.mosaic a:hover img { transform: scale(1.05); }
@media (min-width: 768px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 240px); }
  .mosaic a { aspect-ratio: auto; }
  .mosaic a:first-child { grid-row: span 2; aspect-ratio: auto; }
}

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(circle at 88% 12%, rgba(220, 39, 81, 0.55), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(220, 39, 81, 0.18), transparent 50%),
    linear-gradient(135deg, #261320, #17161e 60%);
}
.cta h2 { max-width: 18ch; font-size: clamp(1.65rem, 4.6vw, 3.5rem); }
.cta p:not(.eyebrow) { max-width: 52ch; margin: 18px 0 0; color: var(--text-soft); font-size: 1.1rem; }
.cta .hero-actions { margin-top: 32px; }
.cta .eq { position: absolute; right: clamp(24px, 5vw, 64px); bottom: clamp(24px, 5vw, 56px); height: 64px; opacity: 0.5; }
.cta .eq i { width: 8px; }
@media (max-width: 719px) { .cta .eq { display: none; } }

/* ---------- Prose / about ---------- */
.prose p { color: var(--text-soft); font-size: 1.05rem; line-height: 1.8; max-width: 68ch; }
.prose .lead { color: var(--text); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; }

.pillars {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.pillar {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pillar .num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.pillar h3 { margin-bottom: 10px; font-size: 1.3rem; }
.pillar p { margin: 0; color: var(--muted); }

.quote {
  margin: 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.quote p { margin: 0 0 0.6em; }
.quote footer { color: var(--muted); font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; }

/* ---------- Service detail ---------- */
.service-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) {
  .service-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
}

.service-figure { margin: 0 0 36px; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.service-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.sidebar { display: grid; gap: 20px; }
.side-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.side-card h2 { margin-bottom: 12px; font-size: 1.1rem; }
.side-nav { margin: 0; padding: 0; list-style: none; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.side-nav a .icon { width: 1em; height: 1em; opacity: 0.5; transition: transform 0.3s var(--ease), opacity 0.2s; }
.side-nav a:hover { color: #fff; }
.side-nav a:hover .icon { opacity: 1; transform: translateX(3px); }
.side-nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }

.book-card {
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    var(--accent);
}
.book-card p { color: rgba(255, 255, 255, 0.88); }
.book-card .stack { display: grid; gap: 10px; margin-top: 20px; }
.book-card .btn-ghost { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a {
  position: relative;
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface);
  break-inside: avoid;
}
.gallery img { width: 100%; transition: transform 0.7s var(--ease), opacity 0.3s; }
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 12, 17, 0.6));
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery a .icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 22px;
  height: 22px;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.gallery a:hover img { transform: scale(1.04); }
.gallery a:hover::after,
.gallery a:hover .icon,
.gallery a:focus-visible .icon { opacity: 1; transform: none; }
.gallery a:hover::after { opacity: 1; }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 8, 11, 0.97);
  color: var(--text);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox figure {
  position: absolute;
  inset: 72px 84px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  touch-action: pan-y;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  user-select: none;
}
.lightbox figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.lb-btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; top: 26px; left: 22px; color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox figure { inset: 64px 8px 84px; }
  .lightbox figcaption { display: none; }
}

/* ---------- Contact ---------- */
.contact-split { align-items: stretch; }
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.contact-card:hover { color: inherit; border-color: rgba(220, 39, 81, 0.55); transform: translateY(-3px); }
.contact-card .icon-badge { margin-bottom: 14px; }
.contact-card .label { color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-card .value { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.contact-card .link-arrow { margin-top: auto; padding-top: 14px; }
.contact-card.is-primary { border-color: transparent; background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%), var(--accent); }
.contact-card.is-primary .icon-badge { background: rgba(255, 255, 255, 0.18); color: #fff; }
.contact-card.is-primary .label,
.contact-card.is-primary .link-arrow { color: rgba(255, 255, 255, 0.9); }

.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours th,
.hours td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { color: var(--text-soft); text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th,
.hours tr.is-today td { color: var(--accent-text); font-weight: 700; }

.status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 18px;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }
.status[hidden] { display: none; }

.map-facade {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.map-facade > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.map-facade .map-actions { position: relative; display: grid; gap: 14px; justify-items: center; padding: 32px; text-align: center; }
.map-facade .map-actions p { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(56px, 8vw, 88px) 0 28px;
  border-top: 1px solid var(--line);
  background: #08080b;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; } }

.footer-brand img { width: auto; height: 52px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; color: var(--muted); }
.site-footer h2 {
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.footer-contact .icon { margin-top: 3px; color: var(--accent-text); width: 1.1em; height: 1.1em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { color: #fff; transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }
.nav-open .wa-float { display: none; }

/* ---------- 404 ---------- */
.not-found { min-height: 100svh; display: flex; align-items: center; }
.not-found .display { margin: 18px 0; }

/* ---------- Scroll reveal (the .js class is set inline in <head>) ---------- */
.js .reveal,
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-stagger] > :nth-child(3n + 2) { transition-delay: 90ms; }
.js [data-stagger] > :nth-child(3n) { transition-delay: 180ms; }
.js .reveal.in,
.js [data-stagger] > .in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .eq i { transform: scaleY(0.6); }
  .js .reveal,
  .js [data-stagger] > * { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
}
