/* =========================================================
   Coastline Signature Remodeling & Construction
   v3 — DARK LUXURY · architectural · premium
   ========================================================= */

:root {
  /* Palette */
  --bg: #0F1115;
  --bg-soft: #171B22;
  --bg-card: #1A1F27;
  --bg-elev: #20262E;
  --bg-glass: rgba(255, 255, 255, 0.04);

  --ink: #FFFFFF;
  --ink-soft: #B7BDC8;
  --muted: #7C8493;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.04);

  --accent: #C6A47A;
  --accent-hover: #D6B489;
  --accent-soft: rgba(198, 164, 122, 0.12);
  --accent-line: rgba(198, 164, 122, 0.4);

  /* Typography */
  --display: "Inter Tight", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-xs: 0.72rem;
  --fs-sm: clamp(0.86rem, 0.4vw + 0.78rem, 0.94rem);
  --fs-base: clamp(0.98rem, 0.4vw + 0.88rem, 1.06rem);
  --fs-lg: clamp(1.08rem, 0.6vw + 1rem, 1.22rem);
  --h4: clamp(1.1rem, 1vw + 0.86rem, 1.36rem);
  --h3: clamp(1.5rem, 2vw + 1rem, 2.4rem);
  --h2: clamp(2.2rem, 4.2vw + 0.8rem, 4.4rem);
  --h1: clamp(2.6rem, 6vw + 0.4rem, 6.4rem);
  --h1-hero: clamp(3.2rem, 8vw, 8.8rem);

  /* Geometry */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 16px 40px rgba(198, 164, 122, 0.18);

  --container: 1320px;
  --container-narrow: 960px;

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

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--accent); }

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 0 0 0.4em;
  line-height: 1.04;
}
h1 { font-size: var(--h1); letter-spacing: -0.04em; font-weight: 500; }
h2 { font-size: var(--h2); letter-spacing: -0.035em; font-weight: 500; }
h3 { font-size: var(--h3); letter-spacing: -0.025em; font-weight: 500; }
h4 {
  font-size: var(--h4);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  font-family: var(--sans);
}

h1 .accent, h2 .accent, h3 .accent { color: var(--accent); font-weight: 500; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
section.tight { padding: clamp(56px, 7vw, 100px) 0; }
section.snug { padding: clamp(40px, 5vw, 64px) 0; }

section + section { border-top: 1px solid var(--line-soft); }
.cta-band + section, section + .cta-band, section.dark-band + section { border-top: none; }

/* ===== Scroll progress ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 100;
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ===== Top Bar ===== */
.topbar {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a { color: var(--ink-soft); }
.topbar a:hover { color: var(--accent); }
.topbar strong { color: var(--ink); font-weight: 500; font-family: var(--mono); }
.topbar-info {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 2.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@media (max-width: 720px) {
  .topbar-info { font-size: 0.66rem; gap: 14px; }
  .topbar-info .hide-mobile { display: none; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.4);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(15, 17, 21, 0.92);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s var(--ease);
}
.site-header.scrolled .container { height: 68px; }

.logo {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logo strong { font-weight: 600; color: var(--ink); font-family: var(--display); }
.logo small {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.main-nav { display: flex; gap: 38px; align-items: center; }
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
  letter-spacing: -0.005em;
}
.main-nav a.active,
.main-nav a:hover { color: var(--ink); }
@media (min-width: 881px) {
  .main-nav a:not(.btn)::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease);
  }
  .main-nav a:not(.btn):hover::before,
  .main-nav a.active:not(.btn)::before { transform: scaleX(1); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--bg-glass);
  border-color: var(--accent-line);
  color: var(--ink);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-ghost::after {
  content: "";
  display: block;
  height: 1px;
  background: currentColor;
  width: 0;
  transition: width 0.3s var(--ease);
}
.btn-ghost:hover { color: var(--accent-hover); }
.btn-ghost:hover::after { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 18px 32px; font-size: 0.96rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  width: 22px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.nav-toggle span { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { content: ""; top: -7px; left: 0; }
.nav-toggle span::after { content: ""; top: 7px; left: 0; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 1080px) { .main-nav .nav-cta { display: none; } }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 80px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 32px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.6rem;
    font-family: var(--display);
    color: var(--ink);
    font-weight: 500;
  }
  .main-nav .nav-cta { display: inline-flex; margin-top: 28px; align-self: flex-start; font-family: var(--sans); font-size: 0.95rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  animation: heroZoom 28s ease-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.1); }
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,17,21,0.4) 0%, rgba(15,17,21,0.75) 70%, var(--bg) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; }
.hero h1 {
  color: var(--ink);
  font-size: var(--h1-hero);
  max-width: 1200px;
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 0.96;
  margin-bottom: 0.4em;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lead {
  font-size: clamp(1.08rem, 1.4vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 600px;
  margin: 28px 0 40px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
}
.hero-trust .ht-item {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.hero-trust .ht-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 18px; }
}

.hero-meta {
  position: absolute;
  bottom: clamp(20px, 3vw, 36px);
  right: clamp(20px, 3vw, 40px);
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: right;
}
.hero-meta strong { display: block; color: var(--ink-soft); font-weight: 500; font-size: 0.72rem; margin-top: 4px; font-family: var(--mono); }

/* ===== Page hero (smaller) ===== */
.page-hero {
  background: var(--bg);
  padding: clamp(96px, 14vw, 200px) 0 clamp(56px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(198, 164, 122, 0.05), transparent 50%);
}
.page-hero .container, .page-hero .container-narrow { position: relative; z-index: 1; }
.page-hero h1 {
  max-width: 980px;
  font-weight: 500;
  margin-bottom: 22px;
}
.page-hero p { max-width: 640px; font-size: var(--fs-lg); }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center p { margin-left: auto; margin-right: auto; }

/* ===== Social proof / Trust strip ===== */
.trust-strip {
  background: var(--bg);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}
.trust-card .ico {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 4px;
}
.trust-card .num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.trust-card .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) { .trust-strip .container { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ===== Section utility ===== */
.section-head {
  margin-bottom: 64px;
  max-width: 880px;
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { margin-bottom: 20px; }
.section-head p { font-size: var(--fs-lg); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split.reverse .split-text { order: 2; }
.split.reverse .split-img { order: 1; }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 1; }
  .split.reverse .split-img { order: 2; }
}
.split-img {
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
  border-radius: var(--radius);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-img:hover img { transform: scale(1.04); }

/* ===== Services Grid ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  will-change: transform;
}
.service-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
  filter: brightness(0.92);
}
.service-card:hover .service-card-img img { transform: scale(1.06); filter: brightness(1); }
.service-card-body { padding: 28px 28px 30px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.05;
  color: var(--ink);
}
.service-card p { font-size: 0.95rem; flex: 1; color: var(--ink-soft); }
.service-card .more {
  margin-top: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease);
}
.service-card:hover .more { gap: 12px; color: var(--accent-hover); }

/* ===== Feature / Why Us cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s var(--ease);
}
.feature:hover {
  border-color: var(--accent-line);
  background: var(--bg-elev);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature h4 { font-size: 1.06rem; margin: 0 0 4px; color: var(--ink); }
.feature p { font-size: 0.92rem; margin: 0; line-height: 1.55; color: var(--ink-soft); }

/* ===== Project grid ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 600px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  background: transparent;
  text-decoration: none;
}
.project-card:hover { transform: translateY(-4px); }
.project-card-img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--line);
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
  filter: brightness(0.9);
}
.project-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,17,21,0.85) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-card:hover .project-card-img img { transform: scale(1.06); filter: brightness(1.05); }
.project-card:hover .project-card-img { border-color: var(--accent-line); box-shadow: var(--shadow); }
.project-card:hover .project-card-img::after { opacity: 1; }

.project-card-body { padding: 22px 4px 8px; }
.project-card .scope {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}
.project-card h3 { font-size: 1.5rem; margin-bottom: 6px; line-height: 1.05; color: var(--ink); }
.project-card .meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.project-card-img[data-label]::before {
  content: attr(data-label);
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 2;
}
.project-card:hover .project-card-img[data-label]::before {
  opacity: 1;
  transform: translateY(0);
}

/* Featured project (editorial) */
.project-feature {
  margin: clamp(64px, 8vw, 120px) 0;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.project-feature.reverse { grid-template-columns: 1fr 1.25fr; }
.project-feature.reverse .pf-img { order: 2; }
.project-feature.reverse .pf-text { order: 1; }
@media (max-width: 880px) {
  .project-feature, .project-feature.reverse { grid-template-columns: 1fr; gap: 36px; }
  .project-feature.reverse .pf-img { order: 1; }
  .project-feature.reverse .pf-text { order: 2; }
}
.pf-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
}
.pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pf-img:hover img { transform: scale(1.04); }
.pf-text h3 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 0.96;
  margin-bottom: 18px;
}
.pf-text .pf-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pf-text .pf-stat {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.pf-text .pf-stat strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

/* ===== Process Timeline ===== */
.process-timeline {
  position: relative;
  counter-reset: pstep;
  padding-left: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  counter-increment: pstep;
}
.process-step:last-child { border-bottom: none; }
.process-step .ps-num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.process-step h3 { margin-bottom: 10px; font-size: 1.6rem; color: var(--ink); }
.process-step p { margin: 0; line-height: 1.6; max-width: 560px; }
@media (max-width: 600px) {
  .process-step { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .process-step .ps-num { font-size: 2.2rem; }
}

/* Process compact (steps in 3-col grid for home page) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  transition: all 0.3s var(--ease);
}
.step:hover { border-color: var(--accent-line); background: var(--bg-elev); }
.step-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
  font-weight: 500;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.step p { font-size: 0.92rem; margin: 0; line-height: 1.55; color: var(--ink-soft); }

/* ===== Reviews ===== */
.reviews-band { background: var(--bg-soft); }
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.reviews-head h2 { margin: 0; }
.google-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 14px 22px;
}
.google-rating .g-mark {
  width: 20px; height: 20px;
  background: conic-gradient(from -45deg, #ea4335 0 25%, #fbbc04 0 50%, #34a853 0 75%, #4285f4 0);
  border-radius: 50%;
  position: relative;
}
.google-rating .g-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--bg-card);
  border-radius: 50%;
}
.google-rating .stars { color: var(--accent); letter-spacing: 1px; }
.google-rating .score { font-weight: 700; color: var(--ink); }
.google-rating .count { color: var(--muted); font-size: 0.82rem; font-family: var(--mono); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }
.review {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s var(--ease);
}
.review:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.review-head { display: flex; align-items: center; gap: 14px; }
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.review-name { font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.review-date { font-size: 0.74rem; color: var(--muted); margin-top: 2px; font-family: var(--mono); }
.review-stars { color: var(--accent); letter-spacing: 1px; font-size: 0.95rem; }
.review-text {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex: 1;
  line-height: 1.55;
  position: relative;
}
.review-text::before {
  content: "\201C";
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 0.7;
  margin-bottom: 6px;
  font-weight: 500;
}
.review-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elev);
  padding: 4px 10px 4px 6px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0;
}
.g-badge .g-mark { width: 12px; height: 12px; }
.g-badge .g-mark::after { background: var(--bg-elev); }

/* ===== Service Areas ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 880px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
.area-grid .area {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s var(--ease);
}
.area-grid .area:hover { background: var(--bg-soft); }
.area-grid .area .name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.area-grid .area .county {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== FAQ ===== */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 64px 28px 0;
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 300;
  transition: transform 0.35s var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { color: var(--accent); }
.faq-item .faq-body {
  padding: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 760px;
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ===== Filter chips ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg-card);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--sans);
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--accent-line); color: var(--accent); }
.chip.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 12, 0.96);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.25s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid var(--line-strong);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--accent);
}
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%); }
.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  font-family: var(--mono);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Forms ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}
@media (max-width: 600px) { .form-card { padding: 28px; } }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 164, 122, 0.1);
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B7BDC8' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field-file {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.form-field-file input[type=file] {
  font-size: 0.86rem;
  padding: 14px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-field-file input[type=file]::file-selector-button {
  background: var(--accent-soft);
  color: var(--accent);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 12px;
  cursor: pointer;
}
.form-card .btn { width: 100%; justify-content: center; }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}
@media (max-width: 540px) { .form-row, .form-row.cols-3 { grid-template-columns: 1fr; } }

.contact-block { padding: 8px 0; }
.contact-block h3 { font-size: 1.7rem; margin-bottom: 22px; color: var(--ink); }
.contact-line {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-line:last-child { border-bottom: none; }
.contact-line .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-line .lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-line .val { font-weight: 500; color: var(--ink); }
.contact-line .val a { color: var(--ink); font-weight: 500; }

/* ===== CTA Band ===== */
.cta-band {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(198, 164, 122, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(198, 164, 122, 0.06) 0%, transparent 45%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--ink); max-width: 880px; }
.cta-band p { color: var(--ink-soft); font-size: var(--fs-lg); max-width: 640px; margin-bottom: 34px; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Marquee ===== */
.marquee {
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marqueeScroll 40s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
}
.marquee-track .dot {
  color: var(--accent);
  font-size: 0.4em;
  align-self: center;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Service detail page sections ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: clamp(80px, 12vw, 140px);
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail.reverse .sd-img { order: 2; }
.service-detail.reverse .sd-text { order: 1; }
@media (max-width: 880px) {
  .service-detail { grid-template-columns: 1fr; gap: 36px; }
  .service-detail.reverse .sd-img { order: 1; }
  .service-detail.reverse .sd-text { order: 2; }
}
.sd-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); }
.sd-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sd-img:hover img { transform: scale(1.04); }
.sd-text h2 { margin-bottom: 22px; }
.sd-list { list-style: none; padding: 0; margin: 28px 0; }
.sd-list li {
  padding: 13px 0 13px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.sd-list li:last-child { border-bottom: none; }
.sd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* ===== Service hero (per service page) ===== */
.svc-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
@media (max-width: 880px) { .svc-hero { grid-template-columns: 1fr; gap: 32px; } }
.svc-hero h1 { margin-bottom: 22px; max-width: 720px; }
.svc-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
}
.svc-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Pricing / scope grid ===== */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.scope-card .tier {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
  font-weight: 500;
}
.scope-card h3 { font-size: 1.4rem; margin-bottom: 6px; color: var(--ink); }
.scope-card .price {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
  font-variant-numeric: tabular-nums;
}
.scope-card ul { list-style: none; padding: 0; margin: 0; }
.scope-card li {
  font-size: 0.92rem;
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.scope-card li:last-child { border-bottom: none; }
.scope-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.blog-card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
  filter: brightness(0.9);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); filter: brightness(1); }
.blog-card-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card .category {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.15;
}
.blog-card p { font-size: 0.94rem; margin-bottom: 18px; color: var(--ink-soft); flex: 1; }
.blog-card .read {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ===== Project Detail Page ===== */
.project-detail-hero {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
@media (max-width: 880px) { .project-detail-hero { aspect-ratio: 4/3; } }
.project-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0 48px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .pd-meta { grid-template-columns: 1fr 1fr; } }
.pd-meta-item .lbl {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.pd-meta-item .val {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.pd-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.pd-section:last-of-type { border-bottom: none; }
@media (max-width: 880px) { .pd-section { grid-template-columns: 1fr; gap: 16px; } }
.pd-section .pd-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.pd-section .pd-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 800px;
}
.pd-section .pd-body p { color: var(--ink-soft); }
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 760px) { .pd-gallery { grid-template-columns: repeat(2, 1fr); } }
.pd-gallery img {
  aspect-ratio: 4/5;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.3s var(--ease);
  filter: brightness(0.92);
}
.pd-gallery img:hover { opacity: 0.92; filter: brightness(1); }

/* ===== Project Modal (for projects.html) ===== */
.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 12, 0.97);
  z-index: 200;
  display: none;
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}
.project-modal.open { display: block; }
.pm-inner {
  max-width: 1180px;
  margin: 40px auto;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.pm-close {
  position: fixed;
  top: 28px;
  right: 28px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--line-strong);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s var(--ease);
}
.pm-close:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pm-hero img {
  width: 100%;
  height: clamp(320px, 56vh, 620px);
  object-fit: cover;
}
.pm-body { padding: 52px clamp(28px, 5vw, 72px) 72px; color: var(--ink-soft); }
.pm-body h2, .pm-body h4 { color: var(--ink); }
.pm-body .scope {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.pm-body h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.pm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0 44px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .pm-stats { grid-template-columns: 1fr 1fr; } }
.pm-stat .lbl {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.pm-stat .val {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.pm-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 36px;
}
@media (max-width: 600px) { .pm-gallery { grid-template-columns: repeat(2, 1fr); } }
.pm-gallery img {
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
  filter: brightness(0.9);
}
.pm-gallery img:hover { opacity: 0.92; filter: brightness(1); }

/* ===== Sticky Mobile CTA ===== */
@media (max-width: 720px) {
  .sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: flex;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  }
  .sticky-cta a {
    flex: 1;
    text-align: center;
    padding: 13px 12px;
    border-radius: 100px;
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.005em;
  }
  .sticky-cta a.primary { background: var(--accent); color: var(--bg); }
  .sticky-cta a.secondary { color: var(--ink); }
}
@media (min-width: 721px) { .sticky-cta { display: none; } }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg);
  color: var(--ink-soft);
  padding: 100px 0 36px;
  border-top: 1px solid var(--line);
}
.site-footer h4 {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  margin-bottom: 22px;
  font-family: var(--mono);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: var(--ink); }
.site-footer .logo small { color: var(--accent); }
.site-footer p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 18px; max-width: 360px; }
.site-footer a { color: var(--ink-soft); display: inline-block; padding: 5px 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ===== Dark band variant (for highlighting on dark theme) ===== */
.dark-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-img img { animation: none; }
}

/* ===== Custom scrollbar ===== */
@media (min-width: 880px) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb {
    background: var(--bg-elev);
    border-radius: 10px;
    border: 3px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}

/* ===== Utility ===== */
.tc { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }
.flex { display: flex; }
.gap-2 { gap: 14px; }
.wrap { flex-wrap: wrap; }
.mb-0 { margin-bottom: 0 !important; }
.mt-3 { margin-top: 24px; }
.mt-5 { margin-top: 40px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   v4 — RESPONSIVE & UI POLISH (override layer)
   Fixes: hero readability, mobile overflow, typography rhythm,
          consistent containers, responsive headings, tap targets,
          tilt disabled on tablet, smoother spacing rhythm.
   ========================================================================= */

/* Lock global horizontal overflow + safer fluid containers */
html, body { overflow-x: clip; max-width: 100%; }
img, video, svg { max-width: 100%; height: auto; }

/* Container padding scales smoothly */
.container, .container-narrow {
  padding-left: clamp(20px, 4vw, 36px);
  padding-right: clamp(20px, 4vw, 36px);
}

/* Section padding tighter on mobile */
@media (max-width: 720px) {
  section { padding: 72px 0; }
  section.tight { padding: 48px 0; }
}

/* === HEADINGS: responsive break helper === */
/* The .br-md helper hides <br> below 720px so headlines flow naturally */
@media (max-width: 720px) {
  h1 br, h2 br, .hero h1 br, .page-hero h1 br {
    display: none;
  }
}

/* The .accent span needs to break properly — make it inline-flex friendly */
h1 .accent, h2 .accent, h3 .accent { color: var(--accent); display: inline; }

/* === HERO: bullet-proof readability === */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* small-viewport unit fixes iOS bar issue */
}
.hero-img::after {
  background:
    linear-gradient(180deg, rgba(15,17,21,0.45) 0%, rgba(15,17,21,0.6) 40%, rgba(15,17,21,0.92) 100%);
}
/* Add a left-side darkening for big content area */
.hero .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,17,21,0.6) 0%, rgba(15,17,21,0.15) 60%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  max-width: 16ch;
}
.hero p.lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}
.hero-actions {
  margin-top: 6px;
}
.hero-trust {
  margin-top: clamp(36px, 6vw, 56px);
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .hero .lead { font-size: 1rem; }
  .hero-meta { display: none; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero-trust {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 22px;
  }
  .hero-trust .ht-item { font-size: 0.66rem; }
}

/* === PAGE HERO === */
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 5rem); max-width: 18ch; }
.page-hero p { font-size: clamp(1rem, 1.3vw, 1.2rem); }
@media (max-width: 600px) {
  .page-hero { padding: 80px 0 56px; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
}

/* === Typography rhythm cleanup === */
h2 { font-size: clamp(1.9rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-bottom: clamp(14px, 1.6vw, 20px); }
.section-head p { font-size: clamp(1rem, 1.4vw, 1.2rem); }

/* Eyebrow on mobile — slightly smaller */
@media (max-width: 600px) {
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.18em; }
  .eyebrow::before { width: 22px; }
}

/* === HEADER: prevent logo wrap on mid-screens === */
.logo {
  flex-shrink: 1;
  min-width: 0;
}
.logo strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo small { white-space: nowrap; }
@media (max-width: 380px) {
  .logo strong { font-size: 1.05rem; }
  .logo small { font-size: 0.5rem; letter-spacing: 0.24em; }
}

/* === SITE HEADER nav on mid-screen breakpoints === */
@media (min-width: 881px) and (max-width: 1080px) {
  .main-nav { gap: 24px; }
  .main-nav a { font-size: 0.86rem; }
}

/* === BUTTONS: better mobile sizes === */
@media (max-width: 600px) {
  .btn { padding: 13px 22px; font-size: 0.88rem; }
  .btn-lg { padding: 15px 26px; font-size: 0.92rem; }
}

/* Tap target accessibility */
@media (hover: none) {
  .btn, .chip, .nav-toggle, .footer-social a {
    min-height: 44px;
    min-width: 44px;
  }
}

/* === SERVICE GRID: tighter & cleaner on tablet === */
@media (min-width: 561px) and (max-width: 880px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .service-card-img { aspect-ratio: 4/3; }
  .service-card-body { padding: 22px 22px 24px; }
  .service-card h3 { font-size: 1.3rem; }
}

/* === PROJECT GRID === */
@media (min-width: 601px) and (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .project-grid { gap: 24px; }
  .project-card-img { aspect-ratio: 4/5; }
  .project-card h3 { font-size: 1.3rem; }
}

/* === FEATURE / WHY-US CARDS === */
@media (min-width: 561px) and (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .feature { padding: 24px 22px; }
  .feature h4 { font-size: 1.04rem; }
}

/* === PROJECT FEATURE (editorial split) === */
@media (max-width: 880px) {
  .project-feature, .project-feature.reverse { gap: 32px; }
  .pf-text h3 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
  .pf-text .pf-stats { gap: 24px; margin: 20px 0 24px; padding: 18px 0; }
  .pf-text .pf-stat strong { font-size: 1.4rem; }
  .pf-img { aspect-ratio: 4/5; }
}
@media (max-width: 600px) {
  .pf-text .pf-stats { gap: 16px; }
  .pf-text .pf-stat strong { font-size: 1.25rem; }
}

/* === FORM === */
@media (max-width: 600px) {
  .form-card { padding: 24px 20px; }
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 16px; padding: 13px 14px; } /* 16px prevents iOS zoom */
  .form-field label { font-size: 0.66rem; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-field { margin-bottom: 14px; }
}

/* === SVC HERO (per service page) === */
@media (min-width: 881px) and (max-width: 1080px) {
  .svc-hero { gap: 36px; }
}
@media (max-width: 880px) {
  .svc-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
}

/* === SCOPE / PRICING CARDS === */
@media (max-width: 880px) {
  .scope-grid { gap: 16px; }
  .scope-card { padding: 28px 22px; }
  .scope-card h3 { font-size: 1.25rem; }
  .scope-card .price { font-size: 1.7rem; margin: 12px 0 18px; }
}

/* === FAQ === */
@media (max-width: 600px) {
  .faq-item summary { font-size: 1.08rem; padding: 22px 50px 22px 0; }
  .faq-item summary::after { font-size: 1.5rem; }
  .faq-item .faq-body { font-size: 0.94rem; padding-bottom: 22px; }
}

/* === PROCESS TIMELINE === */
@media (max-width: 600px) {
  .process-step { padding: 24px 0; }
  .process-step .ps-num { font-size: 2rem; }
  .process-step h3 { font-size: 1.2rem; }
  .process-step p { font-size: 0.94rem; }
}

/* === AREA GRID (service area) === */
.area-grid .area { padding: 22px 18px; }
.area-grid .area .name { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
@media (max-width: 600px) {
  .area-grid .area .name { font-size: 1.1rem; }
  .area-grid .area .county { font-size: 0.6rem; letter-spacing: 0.12em; }
}

/* === MARQUEE: smaller on mobile === */
@media (max-width: 600px) {
  .marquee { padding: 20px 0; }
  .marquee-track { gap: 36px; }
  .marquee-track span { font-size: 1.3rem; }
}

/* === REVIEWS === */
@media (max-width: 600px) {
  .review { padding: 26px 24px 24px; }
  .review-text { font-size: 0.92rem; }
  .review-text::before { font-size: 2rem; }
}

/* === FOOTER === */
.site-footer { padding: 72px 0 28px; }
@media (max-width: 600px) {
  .site-footer { padding: 56px 0 24px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { margin-top: 48px; font-size: 0.72rem; }
}

/* === CTA BAND === */
@media (max-width: 600px) {
  .cta-band .cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .cta-band .cta-actions .btn { justify-content: center; }
}

/* === STICKY MOBILE CTA — avoid overlap with footer === */
@media (max-width: 720px) {
  .site-footer { padding-bottom: 100px; }
  body { padding-bottom: 0; }
}

/* === CONTACT BLOCK on contact.html === */
@media (max-width: 880px) {
  .contact-block { padding: 0; }
  .contact-block h3 { font-size: 1.5rem; margin-bottom: 16px; }
  .contact-line { padding: 14px 0; gap: 14px; }
}

/* === LARGE SCREENS: don't let headlines get too monstrous === */
@media (min-width: 1600px) {
  .hero h1 { font-size: 7rem; }
  .page-hero h1 { font-size: 5rem; }
}

/* === 3D TILT: disable below tablet (was: below 640px) === */
@media (max-width: 1024px) {
  .service-card, .project-card { transform: none !important; }
}

/* === Project-detail meta on tablet === */
@media (max-width: 880px) {
  .pd-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pd-section { padding: 32px 0; gap: 20px; }
  .pd-section .pd-body { font-size: 0.98rem; }
}

/* === Blog cards === */
@media (max-width: 600px) {
  .blog-card-body { padding: 22px 22px 24px; }
  .blog-card h3 { font-size: 1.2rem; }
  .blog-card-img { aspect-ratio: 16/11; }
}

/* === Trust strip === */
@media (max-width: 600px) {
  .trust-strip { padding: 36px 0; }
  .trust-card .num { font-size: 2rem; }
  .trust-card .label { font-size: 0.62rem; letter-spacing: 0.14em; }
}

/* === Lightbox close on mobile === */
@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; width: 44px; height: 44px; }
  .lightbox-next { right: 8px; width: 44px; height: 44px; }
}

/* === Selection of hero noise overlay shouldn't intercept clicks === */
.hero::before { pointer-events: none; }

/* === Improve scroll-into-view padding for anchor jumps === */
:target { scroll-margin-top: 100px; }

/* === Ensure CTAs in footer wrap on mobile === */
.footer-grid > div > a { padding: 6px 0; line-height: 1.4; }

/* === Subtle hover scale removed where it caused overflow === */
.service-card:hover .service-card-img img,
.project-card:hover .project-card-img img,
.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

/* === Project-detail hero on mobile === */
@media (max-width: 720px) {
  .project-detail-hero { aspect-ratio: 4/5; max-height: 70vh; }
}

/* === Trust-bar on landing v2 === */
.trust-bar .container {
  font-variant-numeric: tabular-nums;
}

/* === Better focus state on form === */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-field-file input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 164, 122, 0.12);
}

/* === Service area block on contact page → smaller text === */
.contact-line .val a { word-break: break-word; }

/* === Misc safety net: any element accidentally overflowing === */
section, header, footer { position: relative; }
.container, .container-narrow { position: relative; }

/* =========================================================================
   v5 — Header CTA visibility & polish
   ========================================================================= */

/* Header CTA — punchier, always visible against glass header */
.main-nav .nav-cta.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 13px 22px;
  font-size: 0.88rem;
  letter-spacing: 0.005em;
  box-shadow:
    0 4px 16px rgba(198, 164, 122, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 1;
}
.main-nav .nav-cta.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(214, 180, 137, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
.main-nav .nav-cta.btn-primary .arrow {
  font-weight: 700;
}

/* Underline animation should NOT apply to the CTA button */
@media (min-width: 881px) {
  .main-nav a.btn::before { display: none !important; }
}

/* When header is in glass mode at top, give CTA a strong drop shadow for separation */
.site-header:not(.scrolled) .main-nav .nav-cta.btn-primary {
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 22px rgba(198, 164, 122, 0.22);
}

/* Topbar phone number — gold, more prominent */
.topbar a strong { color: var(--accent); font-weight: 600; }
.topbar a:hover strong { color: var(--accent-hover); }

/* Sticky-mobile primary should also have the glow */
.sticky-cta a.primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(198, 164, 122, 0.4);
}

/* General .btn-primary upgrade: stronger shadow + brighter on hover */
.btn-primary {
  box-shadow: 0 4px 14px rgba(198, 164, 122, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(214, 180, 137, 0.42);
}

/* Subtle attention pulse on the header CTA when first loaded (gentle, non-annoying) */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(198, 164, 122, 0.35), 0 0 0 1px rgba(255,255,255,0.06) inset; }
  50% { box-shadow: 0 4px 16px rgba(198, 164, 122, 0.55), 0 0 0 1px rgba(255,255,255,0.06) inset, 0 0 0 6px rgba(198, 164, 122, 0.0); }
}
.main-nav .nav-cta.btn-primary {
  animation: ctaPulse 4s ease-in-out 1s 2;
}
@media (prefers-reduced-motion: reduce) {
  .main-nav .nav-cta.btn-primary { animation: none; }
}

/* =========================================================================
   v6 — MOBILE POLISH (aggressive, mobile-first refinements)
   Targets: ≤480px (small phones), ≤640px (most phones), ≤880px (tablets)
   ========================================================================= */

/* === Global mobile defaults === */
@media (max-width: 880px) {
  html, body { overflow-x: hidden; }
  body { font-size: 16px; line-height: 1.6; }
  .container, .container-narrow { padding-left: 20px; padding-right: 20px; }
  section { padding: 60px 0 !important; }
  section.tight { padding: 44px 0 !important; }
  section.snug { padding: 32px 0 !important; }
  button, a, input, select, textarea { touch-action: manipulation; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding-left: 16px; padding-right: 16px; }
  section { padding: 52px 0 !important; }
}

/* === Topbar — compact on phones === */
@media (max-width: 720px) {
  .topbar { padding: 8px 0; font-size: 0.66rem; }
  .topbar .container { gap: 8px; }
  .topbar-info { gap: 10px; }
}
@media (max-width: 480px) {
  .topbar-info .hide-mobile { display: none !important; }
  .topbar a strong { font-size: 0.78rem; }
}

/* === Header — clean mobile === */
@media (max-width: 640px) {
  .site-header .container { height: 64px; }
  .site-header.scrolled .container { height: 56px; }
  .logo { gap: 2px; }
  .logo strong { font-size: 1.1rem; letter-spacing: -0.02em; }
  .logo small { font-size: 0.5rem; letter-spacing: 0.22em; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* Mobile nav drawer — smoother */
@media (max-width: 880px) {
  .main-nav {
    inset: 64px 0 0 0 !important;
    padding: 24px 20px 80px !important;
    background: rgba(15, 17, 21, 0.98) !important;
    backdrop-filter: blur(20px);
  }
  .main-nav a {
    font-size: 1.4rem !important;
    padding: 16px 0 !important;
  }
  .main-nav .nav-cta {
    margin-top: 20px !important;
    width: 100%;
    justify-content: center;
    font-size: 1rem !important;
  }
}

/* === HERO — readable & contained on phone === */
@media (max-width: 880px) {
  .hero {
    min-height: 88vh;
    min-height: 88svh;
    padding-top: 24px;
    padding-bottom: 64px;
  }
  .hero .container { padding-top: 40px; }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3.4rem) !important;
    line-height: 1.02 !important;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .hero .eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 18px !important;
  }
  .hero p.lead {
    font-size: 1rem !important;
    line-height: 1.5;
    margin: 18px 0 28px !important;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero { min-height: 82svh; }
  .hero h1 { font-size: clamp(1.85rem, 9.5vw, 2.8rem) !important; }
  .hero-img img { opacity: 0.5; }
  .hero-img::after {
    background: linear-gradient(180deg, rgba(15,17,21,0.55) 0%, rgba(15,17,21,0.75) 50%, rgba(15,17,21,0.95) 100%) !important;
  }
  .hero-meta { display: none !important; }
}

/* Hero CTA buttons — full width on phone */
@media (max-width: 480px) {
  .hero-actions { width: 100%; flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-actions .btn-lg { font-size: 0.94rem; }
}

/* Hero trust grid on phone — 2x2 compact */
@media (max-width: 880px) {
  .hero-trust {
    margin-top: 36px !important;
    padding-top: 22px !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
  .hero-trust .ht-item {
    font-size: 0.6rem !important;
    letter-spacing: 0.1em !important;
    gap: 8px;
    line-height: 1.35;
  }
  .hero-trust .ht-item::before {
    width: 5px; height: 5px; margin-top: 5px;
  }
}

/* === Page-hero — smaller header pages === */
@media (max-width: 880px) {
  .page-hero { padding: 60px 0 44px !important; }
  .page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
    line-height: 1.05 !important;
  }
  .page-hero p {
    font-size: 1rem !important;
    line-height: 1.55;
  }
}

/* === Trust strip — clean 2x2 === */
@media (max-width: 880px) {
  .trust-strip { padding: 32px 0; }
  .trust-strip .container { grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; }
  .trust-card { gap: 6px; padding: 0; }
  .trust-card .ico { width: 26px; height: 26px; }
  .trust-card .num { font-size: 1.7rem !important; letter-spacing: -0.02em; }
  .trust-card .label { font-size: 0.6rem !important; letter-spacing: 0.12em !important; }
}

/* === "Trusted by" tagline === */
@media (max-width: 640px) {
  section.snug p.tc {
    font-size: 1.2rem !important;
    line-height: 1.35;
    max-width: 100% !important;
  }
}

/* === Marquee — slower & smaller on phone === */
@media (max-width: 640px) {
  .marquee { padding: 18px 0; }
  .marquee-track { gap: 32px; animation-duration: 28s; }
  .marquee-track span { font-size: 1.15rem; letter-spacing: -0.015em; }
  .marquee-track .dot { font-size: 0.4em; }
}

/* === Section heads — tighter on mobile === */
@media (max-width: 640px) {
  .section-head { margin-bottom: 36px; }
  .section-head h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem) !important;
    line-height: 1.05;
    margin-bottom: 14px;
  }
  .section-head p { font-size: 0.96rem; line-height: 1.55; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.18em; margin-bottom: 16px; }
}

/* === Service grid — bigger images, tighter cards === */
@media (max-width: 640px) {
  .service-grid { gap: 14px; }
  .service-card { border-radius: 8px; }
  .service-card-img { aspect-ratio: 16/11 !important; }
  .service-card-body { padding: 22px 22px 24px !important; }
  .service-card h3 { font-size: 1.3rem !important; line-height: 1.05; margin-bottom: 8px; }
  .service-card p { font-size: 0.92rem; line-height: 1.5; }
  .service-card .more { font-size: 0.68rem; letter-spacing: 0.14em; margin-top: 12px; }
}

/* === Project Feature (editorial) on phone === */
@media (max-width: 880px) {
  .project-feature { margin: 56px 0 !important; gap: 26px !important; }
  .pf-img { aspect-ratio: 4/3 !important; }
  .pf-text h3 {
    font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    line-height: 1.05;
    margin-bottom: 12px;
  }
  .pf-text p { font-size: 0.96rem; }
  .pf-text .pf-stats {
    gap: 16px !important;
    margin: 18px 0 22px !important;
    padding: 16px 0 !important;
  }
  .pf-text .pf-stat {
    font-size: 0.58rem !important;
    letter-spacing: 0.12em !important;
  }
  .pf-text .pf-stat strong {
    font-size: 1.3rem !important;
    margin-bottom: 2px;
  }
}

/* === Project grid on phone === */
@media (max-width: 640px) {
  .project-grid { gap: 22px; }
  .project-card-img { aspect-ratio: 4/3 !important; }
  .project-card-body { padding: 18px 4px 4px; }
  .project-card .scope { font-size: 0.62rem; letter-spacing: 0.14em; margin-bottom: 6px; }
  .project-card h3 { font-size: 1.2rem !important; }
  .project-card .meta { font-size: 0.78rem; }
}

/* === Reviews on phone === */
@media (max-width: 640px) {
  .reviews-head { margin-bottom: 32px; gap: 18px; }
  .reviews-head h2 { font-size: clamp(1.7rem, 8vw, 2.2rem) !important; }
  .reviews-head > div:first-child p { font-size: 0.92rem; }
  .google-rating { padding: 10px 16px; gap: 10px; }
  .google-rating .count { font-size: 0.7rem; }
  .review-grid { gap: 14px; }
  .review { padding: 22px 22px 20px; gap: 12px; }
  .review-text {
    font-size: 0.94rem !important;
    line-height: 1.5;
  }
  .review-text::before { font-size: 1.8rem; line-height: 0.6; margin-bottom: 4px; }
  .review-avatar { width: 38px; height: 38px; font-size: 0.92rem; }
  .review-name { font-size: 0.9rem; }
  .review-date { font-size: 0.7rem; }
  .review-footer { padding-top: 10px; font-size: 0.66rem; }
}

/* === Process timeline on phone — number above text === */
@media (max-width: 640px) {
  .process-timeline { padding-left: 0; }
  .process-step {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 22px 0 !important;
  }
  .process-step .ps-num {
    font-size: 1.8rem !important;
    margin-bottom: 0;
  }
  .process-step h3 { font-size: 1.18rem !important; margin-bottom: 6px; }
  .process-step p { font-size: 0.94rem; line-height: 1.55; }
}

/* === Feature/Why-us cards on phone === */
@media (max-width: 640px) {
  .feature-grid { gap: 12px !important; }
  .feature { padding: 22px 20px !important; gap: 12px; }
  .feature-icon { width: 38px; height: 38px; border-radius: 9px; }
  .feature h4 { font-size: 1rem; }
  .feature p { font-size: 0.88rem; line-height: 1.5; }
}

/* === Service Area grid on phone === */
@media (max-width: 640px) {
  .area-grid { grid-template-columns: 1fr 1fr !important; }
  .area-grid .area { padding: 18px 14px !important; gap: 2px; }
  .area-grid .area .name { font-size: 0.95rem !important; }
  .area-grid .area .county { font-size: 0.55rem; letter-spacing: 0.1em; }
}

/* === CTA Band on phone === */
@media (max-width: 640px) {
  .cta-band h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.6rem) !important;
    line-height: 1.05;
  }
  .cta-band p { font-size: 0.96rem; margin-bottom: 24px; }
  .cta-band .cta-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100%;
  }
  .cta-band .cta-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
  }
}

/* === Service Hub Hero (svc-hero) on phone === */
@media (max-width: 880px) {
  .svc-hero { gap: 28px !important; }
  .svc-hero-img { aspect-ratio: 4/3 !important; }
  .svc-hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem) !important;
    line-height: 1.05;
  }
  .svc-hero p { font-size: 1rem; line-height: 1.55; }
}
@media (max-width: 480px) {
  .svc-hero > div:first-child > div[style*="flex-wrap"] {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
  }
  .svc-hero > div:first-child > div[style*="flex-wrap"] .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Service Detail (sd-img / sd-text) === */
@media (max-width: 880px) {
  .service-detail { gap: 28px !important; }
  .sd-img { aspect-ratio: 4/3 !important; }
  .sd-text h2 {
    font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
    line-height: 1.05;
    margin-bottom: 14px !important;
  }
  .sd-text p.lead { font-size: 1rem; }
  .sd-list { margin: 20px 0 !important; }
  .sd-list li { font-size: 0.94rem; padding: 11px 0 11px 28px; }
  .sd-list li::before { top: 19px; }
}

/* === Scope cards (pricing tiers) === */
@media (max-width: 640px) {
  .scope-grid { gap: 12px !important; }
  .scope-card { padding: 24px 22px !important; }
  .scope-card h3 { font-size: 1.18rem; }
  .scope-card .price { font-size: 1.55rem !important; margin: 10px 0 16px !important; }
  .scope-card .tier { font-size: 0.62rem; letter-spacing: 0.14em; }
  .scope-card li { font-size: 0.86rem; padding: 6px 0 6px 18px; }
}

/* === FAQ on phone === */
@media (max-width: 640px) {
  .faq-item summary {
    font-size: 1.04rem !important;
    padding: 20px 44px 20px 0 !important;
    line-height: 1.3;
  }
  .faq-item summary::after { font-size: 1.4rem; }
  .faq-item .faq-body {
    font-size: 0.92rem;
    padding-bottom: 20px !important;
  }
}

/* === Contact form on phone === */
@media (max-width: 640px) {
  .contact-grid { gap: 36px; }
  .form-card { padding: 24px 20px !important; border-radius: 10px; }
  .form-row, .form-row.cols-3 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-row .form-field { margin-bottom: 14px; }
  .form-field label {
    font-size: 0.6rem !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 6px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px !important;
    padding: 13px 14px;
    border-radius: 7px;
  }
  .form-field-file input[type=file] { font-size: 0.84rem; padding: 12px; }
  .form-card .btn-lg { padding: 16px 22px; font-size: 0.95rem; }
  .form-note { font-size: 0.74rem; margin-top: 14px; }
  .contact-block h3 { font-size: 1.4rem !important; margin-bottom: 18px; }
  .contact-line { padding: 14px 0; gap: 12px; }
  .contact-line .ico { width: 34px; height: 34px; border-radius: 8px; }
  .contact-line .lbl { font-size: 0.58rem; letter-spacing: 0.14em; }
  .contact-line .val { font-size: 0.94rem; }
}

/* === Project Detail page === */
@media (max-width: 880px) {
  .project-detail-hero { aspect-ratio: 4/5; max-height: 75svh; }
  .pd-meta {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin: 24px 0 36px !important;
    padding: 22px 0 !important;
  }
  .pd-meta-item .lbl { font-size: 0.58rem; letter-spacing: 0.14em; }
  .pd-meta-item .val { font-size: 1.15rem !important; }
  .pd-section {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 32px 0 !important;
  }
  .pd-section .pd-label { font-size: 0.64rem; letter-spacing: 0.16em; }
  .pd-section .pd-body { font-size: 0.96rem; }
  .pd-gallery { grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin-top: 28px !important; }
}

/* === Blog cards === */
@media (max-width: 640px) {
  .blog-grid { gap: 18px; }
  .blog-card-body { padding: 20px 20px 22px !important; }
  .blog-card .category { font-size: 0.62rem; margin-bottom: 10px; }
  .blog-card h3 { font-size: 1.12rem !important; line-height: 1.18; }
  .blog-card p { font-size: 0.88rem; margin-bottom: 14px; }
  .blog-card .read { font-size: 0.64rem; }
  .blog-card-img { aspect-ratio: 16/9; }
}

/* === Filter chips on phone === */
@media (max-width: 640px) {
  .filter-bar { gap: 6px; margin-bottom: 32px; }
  .chip { padding: 8px 14px; font-size: 0.78rem; }
}

/* === Footer on phone === */
@media (max-width: 640px) {
  .site-footer { padding: 56px 0 110px !important; }
  .footer-grid { gap: 32px; }
  .site-footer h4 { font-size: 0.66rem; letter-spacing: 0.16em; margin-bottom: 14px; }
  .site-footer .logo strong { font-size: 1.1rem; }
  .site-footer p { font-size: 0.86rem; margin-top: 12px; }
  .site-footer a { font-size: 0.86rem; padding: 4px 0; }
  .footer-bottom {
    margin-top: 40px;
    padding-top: 18px;
    font-size: 0.66rem;
    flex-direction: column;
    gap: 6px;
  }
  .footer-social { gap: 10px; margin-top: 18px; }
  .footer-social a { width: 34px; height: 34px; }
}

/* === Sticky mobile CTA === */
@media (max-width: 720px) {
  .sticky-cta {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 5px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(10px);
  }
  .sticky-cta a {
    padding: 12px 10px !important;
    font-size: 0.84rem !important;
  }
  .sticky-cta a.primary { font-weight: 700 !important; }
  body { padding-bottom: 80px; }
}

/* === Masonry on phone === */
@media (max-width: 640px) {
  .masonry { column-count: 1; column-gap: 12px; }
  .masonry-item { margin-bottom: 12px; border-radius: 8px; }
}
@media (min-width: 641px) and (max-width: 880px) {
  .masonry { column-count: 2; column-gap: 14px; }
}

/* === Lightbox on phone === */
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox-close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 4px; width: 40px; height: 40px; }
  .lightbox-next { right: 4px; width: 40px; height: 40px; }
  .lightbox-counter { bottom: 18px; font-size: 0.7rem; }
}

/* === Project Modal on phone === */
@media (max-width: 880px) {
  .pm-inner { margin: 20px 12px !important; }
  .pm-close { top: 18px; right: 18px; width: 40px; height: 40px; font-size: 1.2rem; }
  .pm-hero img { height: 280px; }
  .pm-body { padding: 32px 24px 48px !important; }
  .pm-body h2 { font-size: clamp(1.7rem, 7vw, 2.4rem) !important; }
  .pm-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
    margin: 22px 0 32px !important;
    padding: 22px 0 !important;
  }
  .pm-stat .val { font-size: 1.2rem !important; }
  .pm-stat .lbl { font-size: 0.6rem; letter-spacing: 0.14em; }
  .pm-gallery { grid-template-columns: 1fr 1fr !important; gap: 6px !important; margin-top: 26px !important; }
}

/* === Final safety net for inline-styled flex rows === */
@media (max-width: 380px) {
  section [style*="display:flex; gap:14px; flex-wrap:wrap"] { flex-direction: column; gap: 10px !important; }
  section [style*="display:flex; gap:14px; flex-wrap:wrap"] .btn { width: 100%; justify-content: center; }
}

/* === iOS-specific === */
* { -webkit-tap-highlight-color: rgba(198, 164, 122, 0.15); }
button, a { -webkit-touch-callout: none; }
.lightbox, .project-modal { -webkit-overflow-scrolling: touch; }
