/* =============================================================================
   ERKEMA MULTISERVICIOS — styles.css
   Archetype: Editorial Dark Warm (adaptado) — dorado · negro · plateado
   Single file, sectioned per convention.
   ============================================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* --- Color: semantic + derivatives --- */
  --bg:            #0D0C0A;   /* negro cálido, nunca #000 */
  --bg-2:          #17150F;
  --bg-3:          #201D15;   /* card */
  --bg-4:          #2A2619;   /* card elevada / hover */
  --cream:         #F4F1E8;   /* texto principal sobre oscuro */
  --cream-2:       #D8D3C2;
  --cream-mute:    #9A9585;
  --silver:        #C3C7CF;   /* plateado — acentos secundarios, líneas, iconos */
  --silver-2:      #8B909B;
  --gold:          #C9A227;   /* dorado — ÚNICO acento primario */
  --gold-2:        #E8C468;   /* dorado claro — hover / highlight */
  --gold-dark:     #8F701A;
  --ember:         #E8820A;   /* acento del logotipo — solo detalles puntuales */
  --line:          rgba(244,241,232,.12);
  --line-strong:   rgba(244,241,232,.24);
  --overlay:       rgba(13,12,10,.72);

  /* --- Fluid type scale --- */
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.93rem);
  --step-0:  clamp(1rem,    0.96rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.42vw, 1.5rem);
  --step-2:  clamp(1.6rem,  1.42rem + 0.85vw, 2.1rem);
  --step-3:  clamp(2.05rem, 1.72rem + 1.6vw,  3rem);
  --step-4:  clamp(2.7rem,  2.05rem + 3.1vw,  4.6rem);
  --step-5:  clamp(3.3rem,  2.1rem  + 5.8vw,  6.6rem);

  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Jost", "Inter", system-ui, -apple-system, sans-serif;
  --tracking-eyebrow: 0.24em;
  --tracking-caps:    0.12em;

  /* --- Spacing: 8px grid --- */
  --space-0-5: 0.25rem; --space-1: 0.5rem; --space-1-5: 0.75rem;
  --space-2: 1rem; --space-2-5: 1.25rem; --space-3: 1.5rem; --space-4: 2.5rem;
  --space-5: 4rem; --space-6: 6.5rem;

  /* --- Radius --- */
  --radius-sm: 4px; --radius-md: 12px; --radius-lg: 22px; --radius-pill: 999px;

  /* --- Shadows: tintadas, nunca negro puro --- */
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 10px 32px rgba(0,0,0,.42);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
  --shadow-gold: 0 14px 40px -12px rgba(201,162,39,.45);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* --- Z-index --- */
  --z-base: 0; --z-raised: 10; --z-dropdown: 200; --z-sticky: 300;
  --z-overlay: 400; --z-modal: 500; --z-toast: 600;

  /* --- Layout --- */
  --container-max: 1280px;
  --container-narrow: 760px;
  --container-px: clamp(1.1rem, 5vw, 4rem);
  --section-py: clamp(4rem, 10vw, 8rem);

  /* mouse-reactive mesh coords, updated by JS */
  --mx: 50%;
  --my: 42%;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; width: 100%; }
body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--cream-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  width: 100%;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--cream);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--bg); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: var(--z-toast);
  padding: .7rem 1.1rem; background: var(--gold); color: var(--bg);
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top var(--duration-200, 200ms) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .hero-mesh, .hero-mesh-idle, .grain { animation: none !important; }
  .particles-off-anyway { display: none; }
}

/* =============================================================
   3. UTILITIES
   ============================================================= */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-px); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-py); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--alt { background: var(--bg-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .74rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow); color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.center { text-align: center; margin-inline: auto; }
.max-60ch { max-width: 60ch; }
.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;
}
.section-head { max-width: 62ch; margin-bottom: var(--space-4); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); margin-top: .5rem; }
.section-head p { margin-top: 1rem; color: var(--cream-mute); font-size: var(--step-1); }

/* =============================================================
   4. TYPOGRAPHY
   ============================================================= */
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
em, i.italic { font-style: italic; color: var(--gold-2); }
.lede { font-size: var(--step-1); color: var(--cream-2); }
.kicker {
  font-size: var(--step--1); text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--silver);
}

/* =============================================================
   5. COMPONENTS
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .85em 1.9em;
  border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  font-size: .78rem; font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform var(--ease-out) .25s, box-shadow var(--ease-out) .25s,
              background var(--ease-out) .25s, border-color var(--ease-out) .25s, color var(--ease-out) .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn--primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #201a08; box-shadow: var(--shadow-gold); }
.btn--primary:hover { box-shadow: 0 18px 46px -10px rgba(201,162,39,.6); }

.btn--outline { border-color: var(--line-strong); color: var(--cream); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-2); }

.btn--ghost { color: var(--cream); }
.btn--ghost:hover { color: var(--gold-2); }

.btn--sm { min-height: 42px; padding: .6em 1.4em; font-size: .72rem; }
.btn--lg { min-height: 58px; padding: 1em 2.4em; font-size: .84rem; }

/* --- Cards --- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  transition: box-shadow var(--ease-out) .35s, border-color var(--ease-out) .35s, transform var(--ease-out) .35s;
}
.card--elevated:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: linear-gradient(155deg, rgba(201,162,39,.16), rgba(201,162,39,.04));
  border: 1px solid rgba(201,162,39,.3);
  color: var(--gold-2);
  margin-bottom: var(--space-2);
}
.card__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { color: var(--cream-mute); font-size: var(--step-0); }

.service-card {
  border-left: 3px solid var(--silver-2);
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.service-card:hover { border-left-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__arrow { display: inline-flex; margin-top: 1rem; color: var(--gold-2); font-size: .85rem; letter-spacing: .04em; align-items: center; gap: .4em; }
.service-card__arrow i { transition: transform .25s var(--ease-out); font-style: normal; }
.service-card:hover .service-card__arrow i { transform: translateX(5px); }

/* --- Value cards --- */
.value-card { text-align: left; }
.value-card .num { font-family: var(--font-display); color: var(--ember); font-size: var(--step-1); }

/* --- Coverage map (cobertura): embed real de Google Maps, teñido a la paleta --- */
.coverage-map { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); }
.coverage-map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(.35) invert(90%) contrast(88%) hue-rotate(180deg) brightness(.94) saturate(1.15);
}
.coverage-map__badge {
  position: absolute; left: 1.1rem; bottom: 1.1rem; z-index: 2;
  background: rgba(13,12,10,.82); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: .65rem 1.1rem; backdrop-filter: blur(6px); pointer-events: none;
}
.coverage-map__badge strong { display: block; font-family: var(--font-display); color: var(--gold-2); font-size: var(--step-0); }
.coverage-map__badge span { font-size: var(--step--1); color: var(--cream-mute); }

/* --- Testimonial cards --- */
.testimonial-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-1-5);
}
.testimonial-card__stars { color: var(--gold); letter-spacing: .15em; font-size: .95rem; }
.testimonial-card__text { color: var(--cream-2); font-size: var(--step-0); font-style: italic; }
.testimonial-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--space-1); border-top: 1px solid var(--line); }
.testimonial-card__author { font-weight: 600; color: var(--cream); font-style: normal; }
.testimonial-card__src { font-size: var(--step--1); color: var(--cream-mute); }

/* --- Navbar --- */
.navbar {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: var(--z-sticky);
  padding-block: 1.1rem;
  transition: background var(--ease-out) .3s, padding var(--ease-out) .3s, box-shadow var(--ease-out) .3s, transform .35s var(--ease-out);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.navbar.--scrolled { background: rgba(13,12,10,.86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: var(--shadow-sm); padding-block: .7rem; }
.navbar.hide { transform: translateY(-110%); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__badge {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: var(--cream); display: grid; place-items: center;
  border: 2px solid var(--gold); flex: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.brand__badge img { width: 100%; height: 100%; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; color: var(--cream); }
.brand__tag { font-size: .66rem; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--silver); }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a {
  position: relative; font-size: .88rem; letter-spacing: .02em; color: var(--cream-2);
  padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--cream); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta { display: none; }

.hamburger {
  display: grid; gap: 5px; width: 32px; padding: 8px 0;
  z-index: var(--z-modal);
}
.hamburger span {
  width: 100%; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
}

/* --- Mobile menu overlay --- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding-inline: var(--container-px);
  opacity: 0; visibility: hidden; transform: translateY(-16px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility 0s .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu nav { counter-reset: m; display: flex; flex-direction: column; gap: 1.1rem; }
.mobile-menu a {
  counter-increment: m;
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.4rem);
  color: var(--cream); display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease-out) var(--i, 0s), transform .4s var(--ease-out) var(--i, 0s);
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu a::before {
  content: counter(m, decimal-leading-zero); font-family: var(--font-sans);
  font-size: .8rem; color: var(--gold); letter-spacing: .1em;
}
.mobile-menu__foot { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .6rem; color: var(--cream-mute); font-size: .9rem; }
.mobile-menu__foot a { color: var(--gold-2); }
body.menu-open { overflow: hidden; }

/* --- FAQ accordion --- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.4rem; text-align: left; font-family: var(--font-display); font-size: var(--step-1); color: var(--cream);
}
.faq-item__icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--gold);
  transition: transform .3s var(--ease-out);
}
.faq-item__icon::before { width: 100%; height: 2px; }
.faq-item__icon::after { width: 2px; height: 100%; }
.faq-item__q[aria-expanded="true"] .faq-item__icon::after { transform: rotate(90deg) scaleY(0); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-item__a-inner { padding-bottom: 1.5rem; color: var(--cream-mute); max-width: 68ch; }

/* --- Form --- */
.form-grid { display: grid; gap: 1.3rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1.1rem 1rem .5rem; background: var(--bg-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--cream); transition: border-color .25s var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem; color: var(--cream-mute);
  pointer-events: none; transition: top .2s var(--ease-out), font-size .2s var(--ease-out), color .2s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field select.has-value ~ label, .field select:focus ~ label {
  top: .4rem; font-size: .72rem; color: var(--gold-2);
}
.field__error { display: block; margin-top: .4rem; font-size: .8rem; color: #E68C6A; }
.field.has-error input, .field.has-error textarea { border-color: #E68C6A; }
.form-success { display: none; text-align: center; padding: var(--space-4) var(--space-2); }
.form-success.is-visible { display: block; }
.form-note { font-size: .82rem; color: var(--cream-mute); margin-top: .8rem; }

/* --- Floating buttons --- */
.floaters { position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); z-index: var(--z-toast); display: flex; flex-direction: column; gap: .8rem; align-items: flex-end; }
.floater {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), opacity .25s var(--ease-out), visibility .25s;
}
.floater:hover { transform: scale(1.08); }
.floater svg { width: 24px; height: 24px; }
.floater--call { background: linear-gradient(155deg, var(--gold-2), var(--gold)); color: #201a08; }
.floater--call::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ember);
  animation: call-pulse 2.6s ease-out infinite; z-index: -1;
}
@keyframes call-pulse { 0% { transform: scale(1); opacity: .35; } 70% { transform: scale(1.45); opacity: 0; } 100% { opacity: 0; } }
.floater--whatsapp { background: #25D366; color: #0b2413; }
.floater--top { background: var(--bg-3); border: 1px solid var(--line-strong); color: var(--cream); opacity: 0; visibility: hidden; transform: translateY(8px); }
.floater--top.is-visible { opacity: 1; visibility: visible; transform: none; }
.floater[data-tip]::after {
  content: attr(data-tip); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--bg-4); color: var(--cream); padding: .45rem .8rem; border-radius: var(--radius-sm);
  font-size: .78rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s;
  pointer-events: none; box-shadow: var(--shadow-sm);
}
.floater[data-tip]:hover::after { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
body:has(.mobile-menu.is-open) .floaters { opacity: 0; pointer-events: none; }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center;
  background: rgba(9,8,6,.94); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s .3s;
  padding: 4vh 4vw;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox__inner { max-width: 1100px; max-height: 88vh; transform: scale(.92); transition: transform .3s var(--ease-out); }
.lightbox.is-open .lightbox__inner { transform: scale(1); }
.lightbox img { max-height: 88vh; width: auto; margin-inline: auto; border-radius: var(--radius-md); }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--cream);
}
.lightbox figcaption { text-align: center; color: var(--cream-mute); margin-top: .8rem; font-size: .9rem; }

/* --- Footer --- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: var(--space-5) var(--space-3); }
.footer-grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: 1.6fr .9fr 1fr 1.1fr;
}
.footer-col h4 { font-family: var(--font-sans); font-size: .82rem; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--silver); margin-bottom: 1rem; }
.footer-col a, .footer-col li { color: var(--cream-mute); font-size: .92rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { transition: padding-left .2s var(--ease-out), color .2s; display: inline-block; }
.footer-col a:hover { padding-left: 4px; color: var(--gold-2); }
.footer-brand p { max-width: 34ch; color: var(--cream-mute); margin-top: .8rem; font-size: .92rem; }
.footer-bottom {
  margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--cream-mute);
}
.footer-credits a { color: var(--silver); }
.design-credit { margin-top: .6rem; text-align: center; font-size: .78rem; color: var(--cream-mute); }
.design-credit a { color: var(--gold-2); transition: color .2s; }
.design-credit a:hover { color: var(--gold); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =============================================================
   6. SECTIONS
   ============================================================= */

/* --- Hero --- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 6rem; overflow: clip; isolation: isolate;
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(38% 42% at var(--mx) var(--my), rgba(201,162,39,.32), transparent 68%),
    radial-gradient(46% 50% at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(195,199,207,.14), transparent 70%),
    var(--bg);
  filter: blur(40px) saturate(120%);
  transition: background .4s linear;
}
.hero-mesh-idle {
  position: absolute; inset: -10%; z-index: -2; mix-blend-mode: screen;
  background: radial-gradient(30% 34% at 18% 78%, rgba(201,162,39,.14), transparent 70%);
  animation: meshDrift 22s ease-in-out infinite;
}
@keyframes meshDrift { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(3%, -4%) scale(1.12); } }
.grain {
  position: absolute; inset: 0; z-index: -1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-logo-visual {
  position: absolute; z-index: 0; pointer-events: none;
  right: clamp(1rem, 5vw, 5rem); top: 50%;
  width: clamp(240px, 30vw, 460px); aspect-ratio: 1/1;
  display: none;
}
.hero-logo-glow {
  position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232,130,10,.38), rgba(201,162,39,.16) 55%, transparent 75%);
  filter: blur(18px);
  animation: heroLogoPulse 5s ease-in-out infinite;
}
.hero-logo-mark {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
  animation: heroLogoFloat 6.5s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg) scale(1); }
  50% { transform: translateY(-22px) rotate(1.5deg) scale(1.03); }
}
@keyframes heroLogoPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (min-width: 1100px) {
  .hero-logo-visual { display: block; transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-glow, .hero-logo-mark { animation: none; }
}
.hero-inner { position: relative; z-index: 1; }
.hero-meta { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--silver); margin-bottom: 1.4rem; }
.hero-title { font-size: var(--step-5); max-width: 16ch; }
.hero-title em { display: block; }
.hero-sub { margin-top: 1.4rem; font-size: var(--step-1); color: var(--cream-2); max-width: 46ch; }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; align-items: center; }
.hero-trust .stat { display: flex; flex-direction: column; }
.hero-trust .stat b { font-family: var(--font-display); font-size: var(--step-2); color: var(--gold-2); }
.hero-trust .stat span { font-size: .8rem; color: var(--cream-mute); text-transform: uppercase; letter-spacing: .06em; }

/* Page hero (interior pages, shorter) */
.page-hero { min-height: 52svh; padding-top: 7rem; padding-bottom: 3rem; }
.page-hero .hero-title { font-size: var(--step-4); max-width: 20ch; }

/* --- Grids --- */
.grid-3 { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--space-2-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Split section (image + text) --- */
.split { display: grid; gap: var(--space-4); align-items: center; grid-template-columns: 1fr; }
.split.reverse .split__media { order: -1; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split__media { order: 2; }
}
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform .6s var(--ease-out); }
.split__media:hover img { transform: scale(1.04); }
.split__media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: inherit; pointer-events: none; }
.split__media--video { max-width: 380px; margin-inline: auto; background: var(--bg-3); }
.split__media--video video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 9/16; display: block; background: var(--bg-3); }
@media (min-width: 900px) { .split__media--video { margin-inline: 0; } }

/* --- Service visual (no photo available — decorative icon panel) --- */
.service-visual {
  position: relative; aspect-ratio: 4/5; width: 100%; border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(201,162,39,.05) 0 2px, transparent 2px 34px),
    radial-gradient(120% 90% at 20% 0%, rgba(201,162,39,.16), transparent 60%),
    var(--bg-3);
  display: grid; place-items: center; overflow: hidden;
}
.service-visual::before {
  content: attr(data-num); position: absolute; left: 1.4rem; bottom: 1rem;
  font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 6rem); color: var(--line-strong);
  line-height: 1;
}
.service-visual .card__icon {
  width: 96px; height: 96px; margin-bottom: 0; position: relative; z-index: 1;
  background: linear-gradient(155deg, rgba(201,162,39,.22), rgba(201,162,39,.06));
  box-shadow: var(--shadow-gold);
}
.service-visual .card__icon svg { width: 44px; height: 44px; }

/* --- Halo decoration --- */
.section-halo {
  position: absolute; inset: -40% -10% -20% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 34% at 50% 30%, rgba(201,162,39,.14), transparent 72%);
  filter: blur(90px);
}

/* --- Project gallery card --- */
.project-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-md); }
.project-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; transition: transform .6s var(--ease-out); }
.project-card:hover img { transform: scale(1.06); }
.project-card__label {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem;
  background: linear-gradient(0deg, rgba(9,8,6,.92), transparent);
}
.project-card__label .kicker { color: var(--gold-2); }
.project-card__label h3 { font-size: var(--step-1); margin-top: .3rem; }

/* --- Contact section --- */
.contact-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-line { display: flex; align-items: flex-start; gap: 1rem; }
.contact-line__icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.3); color: var(--gold-2);
}
.contact-line__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.contact-line h4 { font-size: 1rem; color: var(--cream); margin-bottom: .2rem; }
.contact-line p, .contact-line a { color: var(--cream-mute); font-size: .95rem; }
.contact-line a:hover { color: var(--gold-2); }

/* --- CTA band --- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: var(--space-4); text-align: center;
  background: linear-gradient(155deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-strong); }
.cta-band h2 { font-size: var(--step-3); max-width: 24ch; margin-inline: auto; }
.cta-band p { margin-top: 1rem; color: var(--cream-mute); }
.cta-band .hero-actions { justify-content: center; }

/* --- Marquee (trust strip) --- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee__track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: marquee 26s linear infinite; padding-block: 1rem; }
.marquee__track span { font-family: var(--font-display); font-size: 1.1rem; color: var(--silver); letter-spacing: .04em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   7. EFFECTS / REVEAL
   ============================================================= */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
.reveal { transform: translateY(26px); }
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; } .delay-3 { transition-delay: .24s; } .delay-4 { transition-delay: .32s; }

/* =============================================================
   8. RESPONSIVE (adjustments)
   ============================================================= */
@media (max-width: 539px) {
  .hero-title { max-width: 100%; }
  .hero-trust { gap: 1.2rem 1.8rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
@media (min-width: 540px) { .hero-actions .btn, .cta-band .btn { width: auto; } }

/* =============================================================
   9. REDUCED MOTION (only intrusive effects — see block in §2 too)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation-duration: 60s; }
}

/* Defensive: reveal + split-text never fight (gotcha A.4.5) */
.reveal[data-split] { opacity: 1; transform: none; }
