/* =========================================================================
   StoneBase Paving & Landscaping — stylesheet
   Art direction: warm stone neutrals + charcoal ink + disciplined brand crimson.
   Type: Archivo (display) / Hanken Grotesk (body). Geometric block motif.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand */
  --brand: #d81e1e;
  --brand-600: #b81616;
  --brand-700: #971010;

  /* ink / charcoal */
  --ink: #16171a;
  --ink-2: #1e2024;
  --ink-3: #2a2d32;

  /* warm stone neutrals */
  --paper: #f7f5f1;
  --stone-50: #fbfaf8;
  --stone-100: #efeae3;
  --stone-150: #e7e1d8;
  --stone-200: #ddd6cb;
  --stone-300: #cabfb0;

  /* text */
  --text: #1b1c1f;
  --muted: #5f5a53;
  --muted-2: #857f76;
  --on-ink: #f4f2ee;
  --on-ink-muted: #b7b2a9;

  --line: rgba(22, 23, 26, 0.10);
  --line-strong: rgba(22, 23, 26, 0.16);
  --line-ink: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 2px 8px rgba(20, 20, 22, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(20, 20, 22, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(20, 20, 22, 0.40);

  --font-display: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------- 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);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (not hidden) — hidden on body creates a scroll container that breaks
     window.scrollTo used by anchor nav & back-to-top. */
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
ul { list-style: none; padding: 0; }

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

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section--stone { background: var(--stone-100); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h2 { color: #fff; }

.text-brand { color: var(--brand); }
.link { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 1.1rem;
}
.eyebrow__rule { width: 30px; height: 2px; background: var(--brand); display: inline-block; }
.eyebrow--light { color: #fff; }
.eyebrow--light .eyebrow__rule { background: var(--brand); }

/* section heads */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2, .section h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.section-head__lead { margin-top: 1rem; color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.section--center .section-head__lead, .section-head--center .section-head__lead { margin-inline: auto; }
.section--ink .section-head__lead { color: var(--on-ink-muted); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--ink .lead { color: var(--on-ink-muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem; border-radius: var(--radius);
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s, color 0.25s;
  will-change: transform; position: relative; white-space: nowrap;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; }
.btn--primary:hover { background: var(--brand-600); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--glass {
  --btn-bg: rgba(255, 255, 255, 0.08); --btn-fg: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px);
}
.btn--glass:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.02rem; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn .icon path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.has-icon .icon path { stroke-width: 1.7; }

/* svg icon defaults */
.icon { width: 1.25rem; height: 1.25rem; }
svg path, svg circle, svg rect, svg line { }

/* ---------------------------------------------------------------- preloader */
.preloader {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  background: var(--ink); transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { display: grid; grid-template-columns: repeat(2, 26px); gap: 6px; transform: rotate(45deg); }
.preloader__mark span {
  width: 26px; height: 26px; border-radius: 3px; background: var(--brand);
  animation: pl 1.1s var(--ease) infinite;
}
.preloader__mark span:nth-child(1) { background: var(--brand); }
.preloader__mark span:nth-child(2) { background: #4a4d52; animation-delay: 0.12s; }
.preloader__mark span:nth-child(3) { background: #4a4d52; animation-delay: 0.36s; }
.preloader__mark span:nth-child(4) { background: var(--brand); animation-delay: 0.24s; }
@keyframes pl { 0%, 100% { transform: scale(0.6); opacity: 0.35; } 50% { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s, height 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-header.is-scrolled { background: rgba(22, 23, 26, 0.92); backdrop-filter: blur(12px); height: 70px; border-bottom-color: var(--line-ink); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 46px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; color: #fff; letter-spacing: -0.01em; }
.brand__text em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-size: 0.92rem; font-weight: 500; color: rgba(255, 255, 255, 0.82); position: relative; transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--brand); transition: width 0.3s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: 0.7rem; }
/* Header sits on a dark background — the call button must use light text/border,
   not the default dark ink (which was invisible). */
.site-header .btn--ghost { --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.28); }
.site-header .btn--ghost .icon path { stroke: #fff; }
.site-header .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.site-header .btn--ghost:hover .icon path { stroke: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 899; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 6rem var(--gutter) 3rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu__nav a { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.2rem); color: #fff; padding: 0.35rem 0; border-bottom: 1px solid var(--line-ink); transition: color 0.2s, padding-left 0.3s var(--ease); }
.mobile-menu__nav a:hover { color: var(--brand); padding-left: 0.5rem; }
.mobile-menu__cta { display: grid; gap: 0.7rem; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 16, 18, 0.55) 0%, rgba(15, 16, 18, 0.30) 35%, rgba(15, 16, 18, 0.72) 100%),
    linear-gradient(90deg, rgba(15, 16, 18, 0.80) 0%, rgba(15, 16, 18, 0.20) 60%, rgba(15, 16, 18, 0.05) 100%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hero__inner { position: relative; z-index: 2; color: #fff; max-width: 760px; padding-block: 4rem; }
.hero__title { font-size: clamp(2.9rem, 8vw, 5.6rem); font-weight: 900; letter-spacing: -0.03em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 52ch; color: rgba(255, 255, 255, 0.9); }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__trust { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.hero__trust .icon { width: 1.05rem; height: 1.05rem; color: var(--brand); background: rgba(255,255,255,0.95); border-radius: 50%; padding: 3px; }
.hero__trust .icon path { stroke: var(--brand); stroke-width: 3; fill: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 44px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 14px; display: grid; justify-items: center; padding-top: 8px; }
.hero__scroll-dot { width: 4px; height: 8px; border-radius: 3px; background: #fff; animation: scrolldot 1.6s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- stats */
.stats { background: var(--ink); color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0; position: relative; z-index: 5; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 0.5rem 0.75rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -0.75rem; top: 15%; height: 70%; width: 1px; background: var(--line-ink); }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: #fff; }
.stat__num::first-line { color: #fff; }
.stat__label { font-size: 0.88rem; color: var(--on-ink-muted); line-height: 1.35; }
.stat__label small { color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- about */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.about__media-main img { width: 100%; height: 100%; object-fit: cover; }
.about__media-sub { position: absolute; right: -8%; bottom: -10%; width: 48%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--paper); aspect-ratio: 4 / 3; }
.about__media-sub img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: -6%; top: 8%; background: var(--brand); color: #fff;
  border-radius: var(--radius); padding: 0.9rem 1.1rem; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; line-height: 1; text-align: left;
}
.about__badge-num { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; }
.about__badge-txt { font-size: 0.72rem; font-weight: 600; margin-top: 0.35rem; letter-spacing: 0.03em; }

.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; margin: 2rem 0; }
.about__points li { display: flex; gap: 0.85rem; align-items: flex-start; }
.about__points .icon { width: 2.2rem; height: 2.2rem; flex: none; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem; box-shadow: var(--shadow-sm); }
.about__points .icon path, .about__points .icon circle { fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.about__points strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.about__points span { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------------- services */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.svc-card {
  background: var(--stone-50); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s, background 0.4s;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--brand); transition: width 0.4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; background: #fff; }
.svc-card:hover::before { width: 100%; }
.svc-card__icon { width: 56px; height: 56px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; margin-bottom: 1.3rem; box-shadow: 0 8px 18px -8px rgba(216, 30, 30, 0.6); transition: background 0.4s var(--ease), transform 0.5s var(--ease); }
.svc-card__icon svg { width: 30px; height: 30px; }
.svc-card__icon svg path, .svc-card__icon svg rect, .svc-card__icon svg circle { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-card:hover .svc-card__icon { background: var(--ink); transform: rotate(-6deg) scale(1.05); box-shadow: var(--shadow-md); }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.svc-card p { font-size: 0.94rem; color: var(--muted); }

/* ---------------------------------------------------------------- why */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-card { border: 1px solid var(--line-ink); border-radius: var(--radius-lg); padding: 2rem 1.6rem; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s; }
.why-card:hover { transform: translateY(-6px); border-color: rgba(216,30,30,0.5); background: linear-gradient(180deg, rgba(216,30,30,0.10), rgba(255,255,255,0)); }
.why-card__no { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; color: var(--brand); display: block; margin-bottom: 0.8rem; }
.why-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.6rem; }
.why-card p { color: var(--on-ink-muted); font-size: 0.94rem; }

/* ---------------------------------------------------------------- portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; padding: 0.5rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--line-strong); color: var(--muted); transition: all 0.25s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.masonry { columns: 3; column-gap: 1.1rem; }
.tile { break-inside: avoid; margin-bottom: 1.1rem; position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), opacity 0.4s; }
.tile img { width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.1rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; color: #fff; background: linear-gradient(0deg, rgba(15,16,18,0.85), transparent); transform: translateY(8px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s; }
.tile figcaption span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.tile__real { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--brand); align-self: flex-start; padding: 0.2rem 0.55rem; border-radius: 4px; }
.tile:hover { transform: translateY(-4px); }
.tile:hover img { transform: scale(1.07); }
.tile:hover figcaption { transform: none; opacity: 1; }
.tile::after { content: ""; position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316171a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M8 21H5a2 2 0 0 1-2-2v-3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 20px; opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s var(--ease); }
.tile:hover::after { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }

/* ---------------------------------------------------------------- before/after */
.ba__stage { max-width: 960px; margin-inline: auto; }
.ba-slider { position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Both images are full-size and identically scaled; the "before" layer is
   revealed with clip-path so it always aligns perfectly with "after". */
.ba-slider__before { clip-path: inset(0 50% 0 0); will-change: clip-path; }
.ba-slider__tag { position: absolute; top: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 4px; color: #fff; backdrop-filter: blur(4px); }
.ba-slider__tag--before { left: 1rem; background: rgba(22,23,26,0.7); }
.ba-slider__tag--after { right: 1rem; background: var(--brand); }
.ba-slider__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.ba-slider__handle svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 9px; box-shadow: var(--shadow-md); }
.ba-slider__handle svg path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ba__note { text-align: center; margin-top: 1rem; font-size: 0.86rem; color: var(--muted-2); }

/* ---------------------------------------------------------------- process */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 4%; right: 4%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }
.timeline__step { position: relative; padding-top: 0; }
.timeline__no { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 1.1rem; position: relative; z-index: 1; transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s; }
.timeline__step:hover .timeline__no { background: var(--brand); color: #fff; border-color: var(--brand); }
.timeline__step h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.timeline__step p { font-size: 0.92rem; color: var(--muted); }
/* CTA card that fills the empty grid cell left by 5 steps in a 2-col layout.
   Hidden on the desktop 5-across timeline. */
.timeline__cta { display: none; }
@media (max-width: 1080px) {
  .timeline__cta {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 1.6rem;
  }
  .timeline__cta h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 0.5rem; }
  .timeline__cta p { color: var(--on-ink-muted); font-size: 0.9rem; margin-bottom: 1.1rem; }
}

/* ---------------------------------------------------------------- reviews */
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.75rem; }
.reviews__score { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.reviews__stars, .review__stars { display: inline-flex; gap: 2px; }
.reviews__stars svg, .review__stars svg { width: 22px; height: 22px; }
.reviews__stars svg path, .review__stars svg path { fill: #f5b301; stroke: none; }
.reviews__score span { color: var(--on-ink-muted); font-size: 0.95rem; }
.reviews__score strong { color: #fff; }

.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.review { background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: var(--radius-lg); padding: 1.9rem; display: flex; flex-direction: column; gap: 1rem; transition: transform 0.4s var(--ease), border-color 0.4s; }
.review:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.22); }
.review__stars svg { width: 18px; height: 18px; }
.review p { color: #fff; font-size: 1.06rem; line-height: 1.55; flex: 1; }
.review footer { display: flex; align-items: center; gap: 0.8rem; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.review footer strong { display: block; color: #fff; font-family: var(--font-display); }
.review footer em { font-style: normal; font-size: 0.85rem; color: var(--on-ink-muted); }
.review--cta { align-items: flex-start; justify-content: center; background: linear-gradient(160deg, rgba(216,30,30,0.16), rgba(255,255,255,0.02)); border-color: rgba(216,30,30,0.35); }
.review__mark { width: 40px; height: 40px; }
.review__mark path { fill: none; stroke: var(--brand); stroke-width: 2; }
.review--cta p { flex: 0; color: var(--on-ink); font-size: 1.05rem; }

/* ---------------------------------------------------------------- areas */
.areas__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.areas__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.areas__list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1rem; background: var(--stone-50); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, background 0.3s; }
.areas__list li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); flex: none; transition: transform 0.3s var(--ease); }
.areas__list li:hover { transform: translateX(4px); border-color: var(--ink); background: #fff; }
.areas__list li:hover::before { transform: rotate(135deg); }

/* ---------------------------------------------------------------- faq */
.faq__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq__head { position: sticky; top: 120px; }
.accordion { display: grid; gap: 0.75rem; }
.acc-item { background: var(--stone-50); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.acc-item.is-open { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.acc-item__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.03rem; }
.acc-item__chev { width: 22px; height: 22px; flex: none; transition: transform 0.35s var(--ease); }
.acc-item__chev path { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-item.is-open .acc-item__chev { transform: rotate(180deg); }
.acc-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-item__body > p { overflow: hidden; padding: 0 1.3rem; color: var(--muted); font-size: 0.98rem; }
.acc-item.is-open .acc-item__body { grid-template-rows: 1fr; }
.acc-item.is-open .acc-item__body > p { padding-bottom: 1.25rem; }

/* ---------------------------------------------------------------- cta band */
.cta-band { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; color: #fff; overflow: hidden; background: var(--ink); }
.cta-band__bg { position: absolute; inset: 0; background: radial-gradient(120% 140% at 80% 0%, rgba(216,30,30,0.22), transparent 55%); }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%); }
.cta-band__inner { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
.cta-band p { margin-top: 0.9rem; color: var(--on-ink-muted); font-size: 1.15rem; }
.cta-band__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------------------------------------------------------------- contact */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact__methods { display: grid; gap: 1.1rem; margin: 2rem 0; }
.contact__methods li { display: flex; align-items: center; gap: 1rem; }
.contact__ic { width: 50px; height: 50px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.contact__ic .icon { width: 24px; height: 24px; }
.contact__ic .icon path, .contact__ic .icon rect, .contact__ic .icon circle { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__methods small { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.contact__methods a, .contact__methods strong { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.contact__methods a:hover { color: var(--brand); }
.contact__trust { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact__trust span { font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.85rem; background: var(--stone-100); border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }

.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-md); }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; margin-bottom: 0.4rem; }
.field input, .field textarea, .select-wrap select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  background: var(--stone-50); transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; font-size: 1rem;
}
.field input:focus, .field textarea:focus, .select-wrap select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(216,30,30,0.12); }
.field textarea { resize: vertical; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.select-wrap .icon path { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.field.has-error input, .field.has-error textarea { border-color: var(--brand); background: rgba(216,30,30,0.04); }
.field__error { display: none; color: var(--brand); font-size: 0.82rem; font-weight: 600; margin-top: 0.35rem; }
.field.has-error .field__error { display: block; }
.contact__form-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 0.9rem; text-align: center; }
.form-success { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.1rem; padding: 1rem 1.1rem; background: rgba(30,160,80,0.10); border: 1px solid rgba(30,160,80,0.35); border-radius: var(--radius); }
.form-success svg { width: 34px; height: 34px; flex: none; background: #1ea050; border-radius: 50%; padding: 7px; }
.form-success svg path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success strong { display: block; font-family: var(--font-display); }
.form-success span { font-size: 0.88rem; color: var(--muted); }
.form-success.is-error { background: rgba(216,30,30,0.08); border-color: rgba(216,30,30,0.4); }
.form-success.is-error svg { background: var(--brand); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 3rem; }
.brand--footer { margin-bottom: 1.1rem; }
.site-footer__brand p { font-size: 0.94rem; max-width: 40ch; margin-bottom: 1.2rem; }
.site-footer__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.site-footer__badges span { font-size: 0.76rem; font-weight: 600; padding: 0.3rem 0.7rem; border: 1px solid var(--line-ink); border-radius: 100px; color: var(--on-ink); }
.site-footer__col h4 { color: #fff; font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer__col ul { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.site-footer__col a { font-size: 0.94rem; transition: color 0.2s; }
.site-footer__col a:hover { color: var(--brand); }
.site-footer__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line-ink); font-size: 0.85rem; }
.site-footer__bar a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- mobile bar + to-top */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; display: none; grid-template-columns: 1fr 1.4fr; gap: 0; background: var(--ink); border-top: 1px solid var(--line-ink); box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.5); transform: translateY(100%); transition: transform 0.4s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.mobile-bar__call { color: #fff; border-right: 1px solid var(--line-ink); }
.mobile-bar__call .icon { width: 1.1rem; height: 1.1rem; }
.mobile-bar__call .icon path { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mobile-bar__quote { background: var(--brand); color: #fff; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 840; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); box-shadow: var(--shadow-md); display: grid; place-items: center; opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: opacity 0.35s, transform 0.35s var(--ease), background 0.25s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 22px; height: 22px; }
.to-top svg path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2500; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 5vw, 3rem); background: rgba(12,12,14,0.94); opacity: 0; visibility: hidden; transition: opacity 0.35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { max-width: 1000px; max-height: 86vh; display: flex; flex-direction: column; gap: 0.75rem; }
.lightbox__figure img { max-height: 78vh; width: auto; border-radius: 8px; object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox__figure figcaption { text-align: center; color: #fff; font-family: var(--font-display); font-weight: 600; }
.lightbox__close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 2.4rem; line-height: 1; width: 44px; height: 44px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); display: grid; place-items: center; transition: background 0.25s; }
.lightbox__nav:hover { background: var(--brand); border-color: var(--brand); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav svg path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

/* ---------------------------------------------------------------- reveal anim */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .services__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .timeline::before { display: none; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .review--cta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .masonry { columns: 2; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__actions .btn--ghost, .site-header__actions .btn--primary { display: none; }
  .about__grid, .areas__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  /* Tall hero content must flow top-down so the H1 is visible on load,
     instead of being clipped above the fold by vertical centering. */
  .hero { align-items: flex-start; min-height: auto; }
  .hero__inner { padding-block: 2rem 3.5rem; padding-top: calc(var(--header-h) + 1.25rem); }
  .hero__trust { margin-top: 2rem; }
  .about__media { max-width: 480px; margin-inline: auto; margin-bottom: 2.5rem; }
  .faq__head { position: static; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .stat:nth-child(2)::after { display: none; }
}
@media (max-width: 620px) {
  :root { --header-h: 70px; }
  body { font-size: 1rem; }
  .services__grid, .why__grid, .areas__list { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .reviews__grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .review--cta { flex-direction: column; align-items: flex-start; }
  .mobile-bar { display: grid; }
  .to-top { bottom: 78px; }
  body { padding-bottom: 0; }
  .hero__actions .btn { flex: 1; }
  .site-footer { padding-bottom: 70px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .areas__list { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__media img { height: 100% !important; transform: none !important; }
}
