/* =============================================================
   Abraham Painting — abrahampainting.ca
   Production stylesheet (tokens + components, single file)
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  --brand-blue:        #0E4FA8;
  --brand-blue-deep:   #0A3A7E;
  --brand-blue-soft:   #E6EEF9;
  --brand-ink:         #0B1B33;

  --paint-red:    #D7322B;
  --paint-orange: #E97A20;
  --paint-yellow: #F2C200;
  --paint-green:  #2FA84F;
  --paint-teal:   #1FA7C9;
  --paint-blue:   #1F6BD8;

  --bg:        #FFFFFF;
  --bg-soft:   #F7F6F3;
  --bg-muted:  #EFEDE7;
  --line:      #E3E0D8;
  --line-strong: #C9C4B7;

  --fg:        #14161A;
  --fg-muted:  #4A4F58;
  --fg-subtle: #7A7F88;
  --fg-on-dark: #F7F6F3;

  --color-success: #2FA84F;

  --font-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shadow-xs: 0 1px 2px rgba(11, 27, 51, 0.06);
  --shadow-sm: 0 2px 8px rgba(11, 27, 51, 0.06), 0 1px 2px rgba(11, 27, 51, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 27, 51, 0.08), 0 2px 6px rgba(11, 27, 51, 0.04);
  --shadow-lg: 0 24px 48px rgba(11, 27, 51, 0.12), 0 8px 16px rgba(11, 27, 51, 0.06);
  --shadow-xl: 0 40px 80px rgba(11, 27, 51, 0.18), 0 16px 32px rgba(11, 27, 51, 0.08);

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

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
::selection { background: var(--brand-blue-soft); color: var(--brand-blue-deep); }
[id] { scroll-margin-top: 92px; }

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--brand-blue-soft);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-ink); color: #fff;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 0 0 10px 10px; text-decoration: none;
  transition: top 180ms var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- LAYOUT HELPERS ---------- */
.container { max-width: 1280px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }
.section { padding: 120px 32px; }
.section-sm { padding: 96px 32px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

.band-soft { background: var(--bg-soft); }

/* ---------- TYPE ---------- */
.h-section {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(36px, 4.2vw, 60px); line-height: 1.1;
  letter-spacing: -0.012em; color: var(--brand-ink); margin: 0;
  text-wrap: balance;
}
.h-section em, .em-blue { font-style: italic; color: var(--brand-blue); }
.h-eyebrow {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-blue);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
}
.h-eyebrow::before {
  content: ''; width: 26px; height: 4px; border-radius: 999px; flex: 0 0 auto;
  background: linear-gradient(90deg, var(--paint-red), var(--paint-yellow), var(--paint-green), var(--paint-blue));
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 56px;
}
.section-header-copy { max-width: 720px; }
.section-intro {
  font-family: var(--font-sans); font-size: 17px; color: var(--fg-muted);
  max-width: 380px; line-height: 1.55; margin: 0;
}
.lede { font-size: 18px; color: var(--fg-muted); line-height: 1.55; }

/* ---------- ICONS ---------- */
.ic { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.ic-12 { width: 12px; height: 12px; } .ic-13 { width: 13px; height: 13px; }
.ic-14 { width: 14px; height: 14px; } .ic-15 { width: 15px; height: 15px; }
.ic-16 { width: 16px; height: 16px; } .ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; } .ic-22 { width: 22px; height: 22px; }
.ic-24 { width: 24px; height: 24px; } .ic-26 { width: 26px; height: 26px; }
.ic-34 { width: 34px; height: 34px; }
.star-filled { color: var(--paint-yellow); fill: var(--paint-yellow); }
.icon-box {
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; background: #fff; color: var(--brand-blue);
}

/* ---------- SCROLL REVEAL (fail-open: elements are hidden ONLY after JS
   confirms the rendering pipeline is alive and arms them; above-the-fold
   content is never hidden) ---------- */
html.js .reveal-armed { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
html.js .reveal-armed.in { opacity: 1; transform: none; }
html.js .reveal-delay-1 { transition-delay: 80ms; }
html.js .reveal-delay-2 { transition-delay: 160ms; }
@media print {
  html.js .reveal-armed { opacity: 1 !important; transform: none !important; }
}

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  border-radius: 14px; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 220ms var(--ease-out); border: 0;
}
.btn-primary {
  color: #fff; background: var(--brand-blue); padding: 17px 30px;
  box-shadow: 0 14px 30px -12px rgba(14,79,168,0.55);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%; width: 45%; z-index: 0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn-primary:hover { background: var(--brand-blue-deep); transform: translateY(-1px); }
.btn-primary:hover::after { left: 130%; transition: left 700ms var(--ease-out); }
.btn-ghost {
  color: var(--brand-ink); background: transparent; padding: 15px 26px;
  border: 2px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); background: var(--brand-blue-soft); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-bar {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 20px;
  transition: padding 260ms var(--ease-out);
}
.is-scrolled .nav-bar { padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.nav-logo { height: 60px; display: block; transition: height 260ms var(--ease-out); }
.is-scrolled .nav-logo { height: 48px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  color: var(--fg); text-decoration: none; white-space: nowrap;
  transition: color 180ms var(--ease-out);
}
.nav-links a:hover { color: var(--brand-blue); }
.nav-phone {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--brand-ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  flex: 0 0 auto; padding: 10px 0;
}
.nav-phone .ic { color: var(--brand-blue); }
.nav-cta {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: #fff; background: var(--brand-blue);
  padding: 11px 20px; border-radius: 999px; text-decoration: none;
  white-space: nowrap; flex: 0 0 auto;
  box-shadow: 0 6px 20px -8px rgba(14,79,168,0.55);
  transition: all 220ms var(--ease-out);
}
.nav-cta:hover { background: var(--brand-blue-deep); transform: translateY(-1px); }
.nav-phone-icon {
  width: 42px; height: 42px; border-radius: 999px; background: var(--brand-blue-soft);
  display: none; align-items: center; justify-content: center;
  text-decoration: none; flex: 0 0 auto; margin-left: auto; color: var(--brand-blue);
}
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line-strong);
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
  flex: 0 0 auto; color: var(--brand-ink);
}
.nav-burger .ico-close { display: none; }
.menu-open .nav-burger .ico-menu { display: none; }
.menu-open .nav-burger .ico-close { display: inline-flex; }
.nav-drawer {
  display: none; max-height: 0; overflow: hidden;
  transition: max-height 320ms var(--ease-out);
  border-top: 1px solid transparent;
}
.menu-open .nav-drawer { max-height: 80vh; border-top-color: var(--line); overflow-y: auto; }
.nav-drawer-inner { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.drawer-link {
  font-family: var(--font-serif); font-size: 26px; font-weight: 500;
  color: var(--brand-ink); text-decoration: none; border-bottom: 1px solid var(--line);
  padding: 18px 4px; display: flex; align-items: center; justify-content: space-between;
}
.drawer-link .ic { color: var(--brand-blue); }
.drawer-cta-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.drawer-call, .drawer-quote {
  flex: 1 1 160px; font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  padding: 14px 18px; border-radius: 14px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.drawer-call { color: var(--brand-ink); background: #fff; border: 1px solid var(--line-strong); }
.drawer-call .ic { color: var(--brand-blue); }
.drawer-quote { color: #fff; background: var(--brand-blue); box-shadow: 0 10px 24px -10px rgba(14,79,168,0.55); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-top: 120px; }
.top-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 4px; opacity: 0.85;
  background: linear-gradient(90deg, var(--paint-red) 0%, var(--paint-orange) 18%, var(--paint-yellow) 36%, var(--paint-green) 54%, var(--paint-teal) 72%, var(--paint-blue) 90%, var(--brand-blue) 100%);
}
.hero-grid {
  max-width: 1280px; margin: 0 auto; padding: 32px 24px 96px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-booking {
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--brand-blue);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
}
.hero-booking .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(47,168,79,0.18); display: inline-block;
}
.hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(52px, 6.4vw, 92px); line-height: 1.0; letter-spacing: -0.018em;
  color: var(--brand-ink); margin: 0 0 28px;
}
.hero-em { font-style: italic; color: var(--brand-blue); font-weight: 500; position: relative; display: inline-block; }
.hero-underline-svg { position: absolute; left: 0; right: 0; bottom: -6px; width: 100%; }
.hero-underline { stroke-dasharray: 1; stroke-dashoffset: 0; }
html.js .hero-underline { animation: ap-draw-stroke 1100ms 600ms var(--ease-out) both; }
@keyframes ap-draw-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-lede { font-family: var(--font-sans); font-size: 19px; line-height: 1.55; color: var(--fg-muted); max-width: 520px; margin: 0 0 36px; }
.hero-cta-row { display: flex; gap: 12px; align-items: center; margin-bottom: 44px; flex-wrap: wrap; }
.hero-trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 32px; color: var(--fg-muted);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; flex-wrap: wrap;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--brand-blue); }

.hero-collage { position: relative; height: 620px; min-width: 0; }
.hero-photo {
  position: absolute; top: 0; right: 0; width: 78%; height: 88%; margin: 0;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-xl);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,51,0) 60%, rgba(11,27,51,0.35) 100%); }

.hero-card-palette {
  position: absolute; top: 40px; left: 0; width: 196px; z-index: 2;
  background: #fff; border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow-lg); transform: rotate(-2deg);
}
.palette-kicker, .recent-kicker {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle);
}
.palette-kicker { margin-bottom: 12px; }
.palette-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.palette-swatches span { aspect-ratio: 1; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(11,27,51,0.06); }
.palette-name { font-family: var(--font-serif); font-size: 18px; color: var(--brand-ink); line-height: 1.2; }
.palette-name i { color: var(--fg-subtle); font-style: italic; }
.palette-brand { font-family: var(--font-sans); font-size: 12px; color: var(--fg-muted); margin-top: 4px; }

.hero-card-recent {
  position: absolute; bottom: 0; left: 6%; right: 14%; z-index: 2;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 20px; padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
}
.recent-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-blue-soft); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.recent-copy { min-width: 0; flex: 1; }
.recent-title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--brand-ink); line-height: 1.2; margin-top: 2px; }
.hero-card-recent-avatars { display: flex; margin-left: 4px; flex: 0 0 auto; }
.hero-card-recent-avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid #fff; box-shadow: var(--shadow-xs);
}
.hero-card-recent-avatars span + span { margin-left: -10px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-card-palette { animation: ap-float 7s ease-in-out infinite; }
  .hero-card-recent { animation: ap-float 9s ease-in-out 1.4s infinite; }
}
@keyframes ap-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- TRUST BAND ---------- */
.trust-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip {
  list-style: none; max-width: 1280px; margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  font-family: var(--font-sans);
}
.trust-strip li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.trust-strip .icon-box { width: 44px; height: 44px; box-shadow: var(--shadow-xs); }
.trust-title { font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.trust-sub { font-size: 12.5px; color: var(--fg-muted); }

/* ---------- SERVICES ---------- */
.services-grid { gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: #fff; border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-sm); overflow: hidden; height: 100%;
  transition: box-shadow 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-accent {
  position: absolute; top: 0; left: 30px; width: 40px; height: 4px;
  border-radius: 0 0 4px 4px; background: var(--accent, var(--brand-blue));
  transition: width 280ms var(--ease-out);
}
.service-card:hover .service-accent { width: 80px; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-blue-soft); color: var(--accent, var(--brand-blue));
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  transition: background 280ms var(--ease-out), color 280ms var(--ease-out);
}
.service-card:hover .service-icon { background: var(--accent, var(--brand-blue)); color: #fff; }
.service-card h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: 26px; line-height: 1.15;
  color: var(--brand-ink); margin: 0 0 10px;
}
.service-card p { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--fg-muted); margin: 0 0 22px; flex: 1; }
.service-link {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--accent, var(--brand-blue));
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 220ms var(--ease-out);
}
.service-card:hover .service-link { transform: translateX(4px); }

/* ---------- BEFORE / AFTER (large + tiles) ---------- */
.chip {
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--brand-ink);
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.ba, .ba-tile { position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; background: var(--brand-ink); }
.ba {
  width: 100%; height: clamp(420px, 46vw, 620px); border-radius: 28px;
  box-shadow: var(--shadow-lg); cursor: ew-resize; touch-action: none;
}
.ba img, .ba-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; pointer-events: none;
}
.ba-before { clip-path: inset(0 50% 0 0); -webkit-clip-path: inset(0 50% 0 0); }
.ba-label {
  position: absolute; top: 20px; font-family: var(--font-sans);
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; padding: 7px 14px; border-radius: 999px; pointer-events: none;
}
.ba-label-before { left: 20px; background: rgba(11,27,51,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ba-label-after { right: 20px; background: var(--brand-blue); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11,27,51,0.2), 0 0 30px rgba(255,255,255,0.4);
  transform: translateX(-50%); pointer-events: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-lg); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
}

.ba-tile {
  width: 100%; aspect-ratio: 4 / 5; border-radius: 22px;
  box-shadow: var(--shadow-sm); cursor: ew-resize; touch-action: pan-y;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.ba-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ba-tile .ba-before { transition: clip-path 320ms var(--ease-out); }
.ba-tile .ba-divider { transition: left 320ms var(--ease-out); box-shadow: 0 0 0 1px rgba(11,27,51,0.18), 0 0 24px rgba(255,255,255,0.35); }
.ba-tile.is-live .ba-before, .ba-tile.is-live .ba-divider { transition: none; }
.ba-tile .ba-label { top: 12px; font-size: 10px; letter-spacing: 0.16em; padding: 5px 10px; }
.ba-tile .ba-label-before { left: 12px; }
.ba-tile .ba-label-after { right: 12px; }
.ba-tile .ba-handle { width: 36px; height: 36px; box-shadow: var(--shadow-md); }
.ba-tag {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-ink); background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px; pointer-events: none;
}
.ba-hint {
  position: absolute; bottom: 12px; right: 12px;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; background: rgba(11,27,51,0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 1; transition: opacity 240ms var(--ease-out);
}
.ba-tile.is-live .ba-hint { opacity: 0; }

/* ---------- WORK / GALLERY ---------- */
.filter-row { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.chip-btn {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--brand-ink);
  border: 1px solid var(--line-strong);
  transition: all 180ms var(--ease-out);
}
.chip-btn .count { margin-left: 8px; opacity: 0.6; font-weight: 500; }
.chip-btn.is-active { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }
.work-grid { gap: 32px; row-gap: 48px; }
.work-tile { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.work-tile figcaption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.work-title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--brand-ink); line-height: 1.25; }
.work-meta { font-family: var(--font-sans); font-size: 12.5px; color: var(--fg-muted); white-space: nowrap; }

/* ---------- WHY (dark band) ---------- */
.why { background: var(--brand-ink); color: #fff; position: relative; overflow: hidden; }
.why-watermark, .cta-watermark, .footer-watermark {
  position: absolute; pointer-events: none;
  background: url('../assets/logo-mark.svg') center/contain no-repeat;
  filter: brightness(0) invert(1);
}
.why-watermark { right: -60px; top: -60px; width: 480px; height: 480px; opacity: 0.05; }
.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; position: relative; }
.why .h-eyebrow { color: #7FA8E3; }
.why h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(36px, 4.2vw, 60px); line-height: 1.05;
  color: #fff; margin: 0 0 28px; text-wrap: balance; letter-spacing: -0.012em;
}
.why h2 em { font-style: italic; color: #7FA8E3; }
.why-lede { font-family: var(--font-sans); font-size: 18px; color: rgba(255,255,255,0.78); line-height: 1.55; margin: 0 0 28px; max-width: 460px; }
.why-link {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4);
  text-decoration: none; padding-bottom: 4px;
  display: inline-flex; align-items: center; gap: 8px;
}
.why-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 24px;
}
.feature-card .icon-box { width: 44px; height: 44px; background: rgba(127,168,227,0.18); color: #7FA8E3; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.feature-card p { font-family: var(--font-sans); font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.55; margin: 0; }

/* ---------- PROCESS ---------- */
.process { position: relative; }
.process-line {
  position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--paint-teal) 33%, var(--paint-green) 66%, var(--paint-yellow) 100%);
  opacity: 0.35; z-index: 0;
}
.process-grid { list-style: none; padding: 0; margin: 0; gap: 32px; position: relative; z-index: 1; }
.step-icon {
  width: 64px; height: 64px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); color: var(--brand-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.step-num { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--fg-subtle); margin-bottom: 8px; }
.step h3 { font-family: var(--font-serif); font-weight: 500; font-size: 26px; color: var(--brand-ink); margin: 0 0 8px; line-height: 1.15; }
.step p { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--fg-muted); margin: 0; }

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 36px 0;
}
.marquee-track { display: flex; gap: 64px; white-space: nowrap; width: max-content; }
html.js .marquee-track { animation: marquee 50s linear infinite; will-change: transform; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 24px;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 28px; color: var(--brand-ink); opacity: 0.55;
}
.marquee-item::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--brand-blue)); }

/* ---------- REVIEWS ---------- */
.reviews-grid { gap: 20px; }
.stars { display: flex; gap: 3px; }
.reviews-badge { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); }
.reviews-badge .note { font-size: 14px; color: var(--fg-muted); }
.review-card {
  margin: 0; background: #fff; border-radius: 22px; padding: 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100%;
}
.review-card .stars { margin-bottom: 18px; }
.review-card blockquote {
  font-family: var(--font-serif); font-size: 22px; line-height: 1.4;
  color: var(--brand-ink); margin: 0 0 24px; flex: 1; text-wrap: balance;
}
.review-card figcaption {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 18px; font-weight: 600; flex: 0 0 auto;
}
.review-name { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.review-meta { font-family: var(--font-sans); font-size: 12px; color: var(--fg-muted); }

/* ---------- SERVICE AREAS ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; }
.areas-grid .h-section { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 14px; }
.areas-copy p { font-family: var(--font-sans); font-size: 16px; color: var(--fg-muted); line-height: 1.55; margin: 0; max-width: 360px; }
.area-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.area-pills span {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--brand-ink);
  display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow-xs);
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-serif); font-weight: 500; font-size: 24px; color: var(--brand-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { text-wrap: balance; }
.faq-toggle {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-blue-soft);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  color: var(--brand-blue); transition: all 220ms var(--ease-out);
}
.faq-toggle .ico-minus { display: none; }
.faq-item[open] .faq-toggle { background: var(--brand-blue); color: #fff; }
.faq-item[open] .faq-toggle .ico-plus { display: none; }
.faq-item[open] .faq-toggle .ico-minus { display: inline-flex; }
.faq-a { padding-bottom: 28px; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--fg-muted); max-width: 720px; }
.faq-a p { margin: 0; }
html.js .faq-item[open] .faq-a { animation: faq-in 260ms var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- CONTACT ---------- */
.contact { position: relative; overflow: hidden; }
.contact-wash {
  position: absolute; inset: 0; opacity: 0.6;
  background: linear-gradient(180deg, var(--bg) 0%, var(--brand-blue-soft) 100%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; position: relative; z-index: 1; }
.contact-lede { font-family: var(--font-sans); font-size: 18px; color: var(--fg-muted); line-height: 1.55; margin: 0 0 36px; max-width: 440px; }
.channels { display: flex; flex-direction: column; gap: 16px; font-family: var(--font-sans); }
.channel { display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; }
.channel .icon-box { width: 48px; height: 48px; box-shadow: var(--shadow-sm); }
.channel-label { font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.channel-value { font-size: 17px; font-weight: 600; color: var(--brand-ink); }

.form-card {
  background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--brand-ink); margin-bottom: 8px; display: block; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 15px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff;
  color: var(--brand-ink); outline: none;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-blue); box-shadow: 0 0 0 3px var(--brand-blue-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B1B33' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-note { font-family: var(--font-sans); font-size: 12px; color: var(--fg-subtle); margin-top: 14px; text-align: center; }
.form-error {
  font-family: var(--font-sans); font-size: 13px; color: #B42318;
  margin-top: 14px; text-align: center; line-height: 1.5;
}
.form-error a { color: var(--brand-blue); font-weight: 600; }
.form-success {
  background: var(--brand-blue-soft); border-radius: 24px;
  padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 48px);
  text-align: center; border: 1px solid var(--brand-blue); position: relative; overflow: hidden;
}
.form-success-stripe { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--paint-red), var(--paint-yellow), var(--paint-green), var(--paint-blue)); }
.form-success-check {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--brand-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(14,79,168,0.6);
}
.form-success h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 4vw, 32px); color: var(--brand-ink); margin: 0 0 12px; line-height: 1.15; }
.form-success p { font-family: var(--font-sans); font-size: 16px; color: var(--fg-muted); max-width: 400px; margin: 0 auto 24px; line-height: 1.6; }
.form-success-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--brand-blue); text-decoration: none;
  background: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
}

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--brand-blue); color: #fff; position: relative; overflow: hidden; }
.cta-band .top-stripe { background: linear-gradient(90deg, var(--paint-red) 0%, var(--paint-orange) 18%, var(--paint-yellow) 36%, var(--paint-green) 54%, var(--paint-teal) 72%, var(--paint-blue) 90%, #fff 100%); }
.cta-wash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 75% 50%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 50%), linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0) 30%);
}
.cta-watermark { right: 32px; top: 50%; transform: translateY(-50%); width: 340px; height: 340px; opacity: 0.09; }
.cta-grid {
  max-width: 1280px; margin: 0 auto; padding: 72px 32px;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; position: relative;
}
.cta-kicker {
  font-family: var(--font-sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.cta-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--paint-yellow); box-shadow: 0 0 0 4px rgba(247,201,72,0.22); }
.cta-band h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08;
  color: #fff; margin: 0; text-wrap: balance; letter-spacing: -0.012em;
}
.cta-band h2 em { font-style: italic; color: rgba(255,255,255,0.85); }
.cta-sub { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.78); max-width: 440px; margin: 18px 0 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; justify-self: stretch; max-width: 380px; margin-left: auto; width: 100%; }
.cta-card {
  font-family: var(--font-sans); font-size: 17px; font-weight: 600;
  padding: 17px 26px; border-radius: 14px; text-decoration: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: all 220ms var(--ease-out);
}
.cta-card-inner { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.cta-card .icon-box { width: 36px; height: 36px; border-radius: 10px; }
.cta-card-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; gap: 2px; min-width: 0; }
.cta-card-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.cta-card-call { color: var(--brand-blue); background: #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,0.35); }
.cta-card-call:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -10px rgba(0,0,0,0.45); }
.cta-card-call .icon-box { background: var(--brand-blue-soft); color: var(--brand-blue); }
.cta-card-call .cta-card-kicker { color: var(--fg-subtle); }
.cta-card-mail { color: #fff; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.28); }
.cta-card-mail:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55); }
.cta-card-mail .icon-box { background: rgba(255,255,255,0.12); color: #fff; }
.cta-card-mail .cta-card-kicker { color: rgba(255,255,255,0.55); }
.cta-trust {
  display: flex; gap: 18px; margin-top: 6px; padding-left: 4px;
  font-family: var(--font-sans); font-size: 12px; color: rgba(255,255,255,0.65); flex-wrap: wrap;
}
.cta-trust span { display: inline-flex; align-items: center; gap: 6px; }
.cta-trust .ic { color: var(--paint-green); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--brand-ink); color: var(--fg-on-dark); position: relative; overflow: hidden; }
.site-footer .top-stripe { position: static; display: block; height: 4px; opacity: 1; }
.footer-watermark { right: -120px; bottom: -180px; width: 600px; height: 600px; opacity: 0.04; }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 80px 24px 40px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 56px; position: relative;
}
.footer-logo { height: 96px; margin-bottom: 26px; filter: brightness(0) invert(1); display: block; }
.footer-tagline {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 22px; color: rgba(255,255,255,0.78); line-height: 1.35; max-width: 320px;
}
.fcol-title {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 18px;
}
.fcol ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--font-sans); font-size: 14px; }
.fcol a, .fcol li { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 180ms var(--ease-out); }
.fcol a:hover { color: #fff; }
.fcol a, .fcol .fitem { display: inline-flex; align-items: center; gap: 10px; }
.fcol .ic { color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 1280px; margin: 0 auto; padding: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-sans); font-size: 13px; color: rgba(255,255,255,0.5); position: relative;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 180ms var(--ease-out); }
.footer-bottom a:hover { color: #fff; }

/* ---------- MOBILE CTA BAR ---------- */
.mobile-cta-bar { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .grid-2, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }

  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .nav-drawer { display: block; }

  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .why-features-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-grid { gap: 48px; }
  .process-line { display: none; }

  .areas-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .hero-collage { height: 460px; }

  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-watermark { display: none; }
  .cta-actions { max-width: 100%; margin-left: 0; }

  .section { padding: 80px 24px; }
  .section-sm { padding: 64px 24px; }
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .nav-cta { padding: 9px 16px; font-size: 13px; }

  .hero { padding-top: 96px; }
  .hero-collage { height: 380px; }
  .hero-cta-row > a { flex: 1 1 100%; justify-content: center; }
  .hero-card-palette { width: 152px; padding: 12px; top: 24px; }
  .hero-card-recent { font-size: 14px; padding: 14px 16px; }
  .recent-title { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .section { padding: 64px 20px; }
  .section-sm { padding: 48px 20px; }

  .marquee-item { font-size: 22px; }

  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header > * { max-width: 100%; }

  .ba { height: clamp(360px, 90vw, 480px); }

  .mobile-cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(11,27,51,0.08);
    box-shadow: 0 -10px 30px rgba(11,27,51,0.10);
  }
  .mobile-cta-bar a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-sans); font-size: 15px; font-weight: 600;
    text-decoration: none; border-radius: 12px; padding: 13px 12px; min-height: 48px;
  }
  .mobile-cta-call { color: var(--brand-ink); border: 2px solid var(--line-strong); background: #fff; }
  .mobile-cta-quote { color: #fff; background: var(--brand-blue); box-shadow: 0 10px 24px -10px rgba(14,79,168,0.5); }
  body { padding-bottom: 76px; }
}

@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .nav-phone-icon { display: inline-flex; }
  .grid-4 { grid-template-columns: 1fr; }

  .hero-collage { height: 320px; }
  .hero-card-palette { width: 132px; }
  .hero-card-recent-avatars { display: none; }

  .section { padding: 56px 18px; }
  .section-sm { padding: 40px 18px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal-armed { opacity: 1; transform: none; transition: none; }
  html.js .hero-underline { stroke-dashoffset: 0; animation: none; }
  html.js .marquee-track { animation: none; }
  .hero-card-palette, .hero-card-recent { animation: none; }
  .btn-primary::after { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
