/* ============================================================
   VAN ESS ELECTRICAL CONTRACTORS
   Design system — monochrome editorial + electric pink accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --ink:        #0a0a0b;   /* near-black surface */
  --ink-2:      #141417;   /* raised dark surface */
  --ink-3:      #1f1f24;   /* dark borders/cards */
  --paper:      #ffffff;   /* base light surface */
  --paper-2:    #f5f5f6;   /* light section */
  --paper-3:    #ededee;   /* light raised */
  --line:       #e3e3e6;   /* light borders */
  --line-dark:  #2a2a30;   /* dark borders */

  --text:       #0a0a0b;   /* primary text on light */
  --text-muted: #54545c;   /* muted text on light (>=4.5:1) */
  --text-inv:   #ffffff;   /* text on dark */
  --text-inv-muted: #a9a9b2;

  --accent:      #ff47a9;  /* electric pink */
  --accent-deep: #d1006f;  /* accessible pink for text on white */
  --accent-soft: #ffe6f3;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.6vw, 4.6rem);
  --step-5:  clamp(3.2rem, 2rem + 6vw, 6.5rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  /* Z */
  --z-nav: 50;
  --z-overlay: 60;
  --z-mobilebar: 55;

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, textarea, select, button { font: inherit; color: inherit; }

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

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-size: var(--step-5);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.h-xl { font-size: var(--step-4); text-transform: uppercase; letter-spacing: -0.03em; font-weight: 900; }
.h-lg { font-size: var(--step-3); }
.h-md { font-size: var(--step-2); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); font-weight: 400; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.accent-text { color: var(--accent-deep); }
.on-dark .accent-text, .accent-on-dark { color: var(--accent); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.stack > * + * { margin-top: 1.1rem; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }
.center { text-align: center; margin-inline: auto; }

.on-dark { background: var(--ink); color: var(--text-inv); }
.on-dark .lead, .on-dark .text-muted { color: var(--text-inv-muted); }
.on-paper-2 { background: var(--paper-2); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1rem 1.6rem;
  min-height: 52px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  isolation: isolate;
}
.btn > * { position: relative; z-index: 1; }
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.45); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: #0a0a0b; }
.btn--accent:hover { box-shadow: 0 12px 30px -10px rgba(255,71,169,0.65); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn--outline { --btn-fg: var(--paper); border-color: rgba(255,255,255,0.4); }
.on-dark .btn--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--lg { min-height: 60px; padding: 1.15rem 2rem; font-size: var(--step-0); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* text link with sweep underline */
.link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-bottom: 3px;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link svg { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: currentColor;
}
.logo svg { width: 56px; height: 56px; flex: none; }
.logo-stamp { color: currentColor; }
.logo-arc {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8.6px;
  letter-spacing: 1.7px;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.5px;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--text-inv-muted);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--line-dark);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding-block: 0.4rem;
}
.topbar-info { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-info a:hover { color: var(--accent); }
.topbar-info svg { width: 15px; height: 15px; color: var(--accent); }
.topbar-social { display: flex; gap: 0.4rem; }
.topbar-social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.topbar-social a:hover { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.topbar-social svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .topbar { display: none; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(0,0,0,0.4); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}
.site-header.scrolled .nav { min-height: 68px; }
.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.3rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--accent-deep); }
.nav-phone:hover { color: var(--accent-deep); }

.nav-toggle { display: none; width: 48px; height: 48px; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
  margin-inline: auto;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 1024px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  .nav-mobile-cta { display: none; }
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(380px, 86vw);
  background: var(--ink);
  color: var(--text-inv);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 2rem var(--gutter) 2rem;
  overflow-y: auto;
}
body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu .logo { color: var(--paper); margin-bottom: 2rem; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.mobile-menu nav a:hover { color: var(--accent); padding-left: 0.5rem; }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: var(--z-mobilebar);
}
body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-inv);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000 30%, transparent 80%);
  z-index: -1;
  animation: gridDrift 40s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px; } }
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  right: -10%; top: -20%;
  background: radial-gradient(circle, rgba(255,71,169,0.28), transparent 65%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 9s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.hero-watermark {
  position: absolute;
  right: -4%; bottom: -12%;
  width: clamp(280px, 38vw, 560px);
  z-index: -1;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero .container { position: relative; padding-block: clamp(4rem, 11vw, 8.5rem); }
.hero-inner { max-width: 760px; }
.hero h1 { margin-block: 1.2rem 1.4rem; }
.hero .lead { color: var(--text-inv-muted); max-width: 52ch; }
.hero-cta { margin-top: 2.2rem; }
.hero-meta {
  margin-top: 3rem;
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.hero-meta .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1;
}
.hero-meta .lbl { font-size: var(--step--1); color: var(--text-inv-muted); letter-spacing: 0.04em; }

/* legacy ribbon */
.legacy-ribbon {
  background: var(--accent);
  color: #0a0a0b;
  overflow: hidden;
  border-block: 2px solid #0a0a0b;
}
.legacy-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding-block: 0.7rem;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.legacy-track span { display: inline-flex; align-items: center; gap: 3rem; }
.legacy-track .dot { width: 7px; height: 7px; background: #0a0a0b; border-radius: 50%; }
@keyframes marquee { to { transform: translateX(-50%); } }
.legacy-ribbon:hover .legacy-track { animation-play-state: paused; }

/* ---------- Cards / Services ---------- */
.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.7rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
  min-height: 100%;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 24px 50px -28px rgba(0,0,0,0.35); }
.service-card:hover::before { transform: scaleY(1); transform-origin: top; }
.service-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  margin-bottom: 1.3rem;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-ico svg { width: 26px; height: 26px; }
.service-card:hover .service-ico { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.service-card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 1.2rem; }
.service-card .link { margin-top: auto; color: var(--ink); }

/* compact icon grid (home services) */
.svc-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.svc-mini {
  padding: 2.2rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.65rem;
  transition: background-color 0.3s var(--ease);
  position: relative;
}
.svc-mini:hover { background: var(--paper-2); }
.svc-mini svg.ico { width: 34px; height: 34px; color: var(--ink); }
.svc-mini h3 { font-size: 1.06rem; }
.svc-mini p { font-size: 0.92rem; color: var(--text-muted); }
.svc-mini .arrow { color: var(--accent-deep); transition: transform 0.3s var(--ease); width: 20px; height: 20px; }
.svc-mini:hover .arrow { transform: translateX(5px); }
@media (max-width: 860px) { .svc-mini-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-mini-grid { grid-template-columns: 1fr; } }

/* ---------- Media frame (image placeholders / photos) ---------- */
.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, #17171b, #0a0a0b);
  isolation: isolate;
  min-height: 280px;
}
.media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.media[data-aspect="4-3"] { aspect-ratio: 4/3; }
.media[data-aspect="1-1"] { aspect-ratio: 1/1; }
.media[data-aspect="16-9"] { aspect-ratio: 16/9; }
.media-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.media-watermark {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
}
.media-watermark svg { width: 55%; max-width: 240px; }
.media-tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
}
.media-float {
  position: absolute;
  right: -16px; bottom: -16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.45);
  z-index: 3;
  max-width: 220px;
}
.media-float .big { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); line-height: 1; }
.media-float .small { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }
@media (max-width: 540px) { .media-float { right: 8px; bottom: 8px; padding: 0.9rem 1rem; } }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: var(--text-inv); }
.stat { text-align: center; padding: 1rem; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .num .accent-on-dark { color: var(--accent); }
.stat .lbl { margin-top: 0.6rem; font-size: 0.92rem; color: var(--text-inv-muted); letter-spacing: 0.03em; }
.stats .grid { position: relative; }
.stats .stat:not(:last-child) { border-right: 1px solid var(--line-dark); }
@media (max-width: 560px) { .stats .stat { border-right: none !important; border-bottom: 1px solid var(--line-dark); } .stats .stat:last-child { border-bottom: none; } }

/* ---------- Feature list ---------- */
.feature {
  display: flex; gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.on-dark .feature { border-color: var(--line-dark); }
.feature-ico {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0a0a0b;
  border-radius: 50%;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }
.on-dark .feature p { color: var(--text-inv-muted); }

/* ---------- Steps ---------- */
.step { position: relative; padding-top: 1.4rem; }
.step .step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-3);
  color: var(--line);
  line-height: 1;
}
.step:hover .step-num { color: var(--accent); transition: color 0.3s; }
.step h3 { font-size: var(--step-1); margin: 0.6rem 0 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  min-height: 100%;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.3); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); margin-bottom: 1rem; }
.stars svg { width: 18px; height: 18px; }
.review-card blockquote { font-size: 1.05rem; line-height: 1.55; color: var(--text); }
.review-card .who { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 0.8rem; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
}
.review-card .who .name { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.review-card .who .loc { font-size: 0.84rem; color: var(--text-muted); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.3);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.field .req { color: var(--accent-deep); }
.input, .textarea, .select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(255,71,169,0.16);
}
.textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.84rem; color: var(--text-muted); margin-top: 0.5rem; }
.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.form-success.show { display: block; }
.checkbox-line { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.checkbox-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }

/* ---------- Contact info blocks ---------- */
.info-item { display: flex; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.on-dark .info-item { border-color: var(--line-dark); }
.info-ico {
  flex: none; width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: var(--accent-deep);
}
.on-dark .info-ico { color: var(--accent); }
.info-ico svg { width: 20px; height: 20px; }
.info-item .lbl { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.on-dark .info-item .lbl { color: var(--text-inv-muted); }
.info-item .val { font-size: 1.08rem; font-weight: 500; }
.info-item a.val:hover { color: var(--accent-deep); }
.on-dark .info-item a.val:hover { color: var(--accent); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-grid-bg { mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.page-hero .container { padding-block: clamp(3rem, 8vw, 5.5rem); position: relative; }
.breadcrumbs { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--text-inv-muted); margin-bottom: 1.2rem; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--line-dark); }
.page-hero h1 { font-size: var(--step-4); text-transform: uppercase; letter-spacing: -0.03em; }
.page-hero p { color: var(--text-inv-muted); max-width: 56ch; margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--accent);
  color: #0a0a0b;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.18) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
}
.cta-band .container { padding-block: clamp(3rem, 7vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { font-size: var(--step-3); text-transform: uppercase; max-width: 16ch; }
.cta-band .btn--light { --btn-bg: #0a0a0b; --btn-fg: #fff; border-color: #0a0a0b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-muted); }
.footer-main { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: var(--paper); margin-bottom: 1.2rem; }
.footer-about p { font-size: 0.95rem; max-width: 38ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inv);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col li { font-size: 0.95rem; }
.footer-col a { transition: color 0.2s, padding-left 0.25s var(--ease); display: inline-block; }
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact .row { display: flex; gap: 0.6rem; margin-bottom: 0.9rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.footer-badge {
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-inv);
}
.footer-badge strong { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-mobilebar);
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.7rem 0.4rem;
  color: var(--text-inv);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mobile-bar a:not(:last-child) { border-right: 1px solid var(--line-dark); }
.mobile-bar a svg { width: 21px; height: 21px; color: var(--accent); }
.mobile-bar a:active { background: var(--ink-2); }
@media (max-width: 760px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 64px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-grid-bg, .hero-glow, .legacy-track { animation: none !important; }
  .btn:hover, .service-card:hover, .review-card:hover, .media-float { transform: none; }
}

/* ---------- Utilities ---------- */
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.maxw-md { max-width: 640px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.wrap { flex-wrap: wrap; }
.hide-mobile { }
@media (max-width: 760px) { .hide-mobile { display: none !important; } }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.on-dark .pill { background: var(--ink-2); border-color: var(--line-dark); }
.pill .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,71,169,0.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,71,169,0.5); } 70% { box-shadow: 0 0 0 10px rgba(255,71,169,0); } 100% { box-shadow: 0 0 0 0 rgba(255,71,169,0); } }
@media (prefers-reduced-motion: reduce) { .pill .dot-live { animation: none; } }

/* ============================================================
   PATCH — real logo images, dark-hero contrast, photos, map,
   mobile-bar fit, and handcrafted micro-interactions
   ============================================================ */

/* Logo rendered from transparent PNG (recolors via separate black/white files) */
.logo svg, .logo img.logo-stamp { width: auto; height: 54px; flex: none; }
.logo img.logo-stamp { object-fit: contain; }
.site-footer .logo img.logo-stamp, .mobile-menu .logo img.logo-stamp { height: 60px; }

/* Hero + interior page-hero are dark surfaces: make outline buttons & pills legible */
.hero .btn--outline, .page-hero .btn--outline {
  --btn-fg: #ffffff;
  border-color: rgba(255,255,255,0.5);
}
.hero .btn--outline:hover, .page-hero .btn--outline:hover {
  background: #ffffff; color: var(--ink); border-color: #ffffff;
}
.pill { color: var(--text); }
.hero .pill, .page-hero .pill {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  color: #ffffff;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Photos inside media frames */
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
  z-index: 0;
}
.split:hover .media img, .media:hover img { filter: grayscale(0) contrast(1); transform: scale(1.03); }
.media .media-grid-overlay { z-index: 2; }
.media .media-tag { z-index: 3; }

/* Google Maps embed frame */
.map-frame { background: var(--paper-3); }
.map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s var(--ease);
}
.map-frame:hover iframe { filter: grayscale(0); }

/* Decorative watermark images */
.hero-watermark { opacity: 0.05; }
.media-watermark img { width: 55%; max-width: 240px; opacity: 0.09; }

/* Desktop hero logo — large & fully visible, slow bright fade-in that stays lit */
@media (min-width: 761px) {
  .hero .lead { max-width: 40ch; }
  .hero-watermark {
    right: max(2%, calc(50% - 645px));
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(400px, 42vw, 600px);
    z-index: 0;
    opacity: 0.9;
    filter:
      drop-shadow(0 0 40px rgba(255, 255, 255, 0.7))
      drop-shadow(0 0 90px rgba(255, 71, 169, 0.95))
      drop-shadow(0 0 150px rgba(255, 71, 169, 0.6));
    animation: heroLogoFadeIn 2.8s ease-out 0.25s both;
    will-change: opacity, filter, transform;
  }
  @keyframes heroLogoFadeIn {
    0% {
      opacity: 0;
      transform: translateY(-50%) scale(0.96);
      filter:
        drop-shadow(0 0 0 rgba(255,255,255,0))
        drop-shadow(0 0 0 rgba(255,71,169,0))
        drop-shadow(0 0 0 rgba(255,71,169,0));
    }
    65% {
      opacity: 0.95;
      filter:
        drop-shadow(0 0 55px rgba(255,255,255,0.9))
        drop-shadow(0 0 120px rgba(255,71,169,1))
        drop-shadow(0 0 200px rgba(255,71,169,0.8));
    }
    100% {
      opacity: 0.9;
      transform: translateY(-50%) scale(1);
      filter:
        drop-shadow(0 0 40px rgba(255,255,255,0.7))
        drop-shadow(0 0 90px rgba(255,71,169,0.95))
        drop-shadow(0 0 150px rgba(255,71,169,0.6));
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-watermark { animation: none; }
}

/* Verified-customer badge in review cards */
.review-avatar svg { width: 20px; height: 20px; }

/* Team grid — auto-fits any number of members (5-up on desktop, wraps gracefully) */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.team-grid > * { min-width: 0; }
.team-grid .media { min-height: 0; }

/* Prevent grid blowout in split sections on narrow screens (fixes 16:9 media min-width) */
.split > * { min-width: 0; }
@media (max-width: 880px) {
  .reveal-left, .reveal-right { transform: translateY(26px); }
}

/* Mobile action bar — keep labels on one line on small phones */
.mobile-bar a { font-size: 0.62rem; letter-spacing: 0.03em; white-space: nowrap; }
@media (max-width: 360px) { .mobile-bar a { font-size: 0.55rem; } .mobile-bar a svg { width: 19px; height: 19px; } }

/* Scroll progress indicator */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  z-index: 100; will-change: transform;
  pointer-events: none;
}

/* Button click ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: scale(0);
  animation: ripple 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.btn--accent .btn-ripple, .btn--light .btn-ripple { background: rgba(0,0,0,0.16); }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* Keep oversized display type from bleeding off small phones */
@media (max-width: 430px) {
  .display { font-size: 2.7rem; letter-spacing: -0.03em; }
  .page-hero h1 { font-size: 2.3rem; }
  .hero-meta { gap: 1.4rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .media img { transition: none; }
  .split:hover .media img, .media:hover img { transform: none; }
  .scroll-progress { display: none; }
}
