/* =============================================================
   Fresh Coat Solutions — styles.css
   Aesthetic: Clean & Minimal
   Color: navy (#14365f) + bright blue (#2f74c7) on white, soft borders
   Type:  Schibsted Grotesk (everything; headings at 800)
   ============================================================= */

/* ---------- Metric-matched fallback ----------
   Schibsted Grotesk loads from Google Fonts with font-display:swap, so text first
   paints in a fallback and then swaps. Because the real font is ~2.4% wider and has
   a taller line box (ascent 97.7% / descent 25.8% of em, vs Arial's 90.5% / 21.2%),
   that swap reflowed whole pages: measured CLS 0.27 on privacy.html desktop.
   Measured live in-browser via canvas TextMetrics, then normalised by size-adjust.
   This synthetic fallback makes the pre-swap layout occupy identical space, so the
   swap becomes invisible. Keep it FIRST in the fallback chain, before system-ui. */
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"), local("Nimbus Sans");
  size-adjust: 102.44%;
  ascent-override: 95.37%;
  descent-override: 25.19%;
  line-gap-override: 0%;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand — token names kept so inline var() in the SVG logos still resolve */
  --brand:      #14365f;   /* navy — primary */
  --brand-700:  #1f5a9e;   /* mid blue */
  --brand-900:  #0f2747;   /* deepest navy (footer) */
  --brand-tint: #eaf1f8;   /* light-blue icon chip fill */

  --accent:      #2f74c7;  /* bright blue */
  --accent-600:  #2766b0;
  --accent-text: #2766b0;  /* link color: 5.81:1 on white, 5.06:1 on the --band tint. #2f74c7 only reached 4.11:1 on --band. */

  /* Paint palette (Full-palette brand strategy) — the "creative painter" pops */
  --paint-navy:  #14365f;
  --paint-blue:  #2f74c7;
  --paint-coral: #ff5a36;
  --paint-green: #12b886;
  --paint-gold:  #f5a623;

  /* Neutrals — cool, near-white */
  --canvas:  #ffffff;
  --surface: #ffffff;
  --band:    #e8f0fb;      /* light blue section band */
  --ink:     #14365f;      /* navy text */
  --muted:   #516b87;      /* body secondary */
  --muted-2: #57738d;      /* card body (4.96:1 on white, WCAG AA) */
  --faint:   #57738d;      /* eyebrows / fine print (4.96:1 on white; was #9bb0c8 at 2.22:1, failed WCAG AA) */
  --line:        #eef2f7;
  --line-2:      #e4edf6;
  --line-strong: #d9e2ec;

  /* On deep-navy sections */
  --on-dark:        #ffffff;
  --on-dark-muted:  #b8cae0;
  --on-dark-line:   rgba(255,255,255,0.10);
  --on-navy-icon:   #9ec1ee;
  --on-navy-eyebrow:#7fa0c8;

  --star:   #f4b740;
  --danger: #c23a30;

  /* Fonts */
  --font-display: "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Schibsted Grotesk", "Schibsted Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (fluid) */
  --step--1: clamp(0.8rem, 0.77rem + 0.12vw, 0.86rem);
  --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.06rem);
  --step-1:  clamp(1.05rem, 1rem + 0.28vw, 1.2rem);
  --step-2:  clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);    /* section titles */
  --step-3:  clamp(1.7rem, 1.3rem + 1.7vw, 2.6rem);
  --step-4:  clamp(2rem, 1.5rem + 2.4vw, 3.2rem);
  --step-5:  clamp(2.5rem, 1.6rem + 3.9vw, 4.25rem);   /* hero h1 */

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --section-y: clamp(4rem, 2.8rem + 4.6vw, 6.5rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.5rem + 2.7vw, 2.5rem);

  /* Radii */
  --r-sm: 8px; --r: 10px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;

  /* Shadows — navy-tinted, soft */
  --shadow-sm: 0 1px 2px rgba(20,54,95,0.06);
  --shadow:    0 12px 30px rgba(20,54,95,0.10);
  --shadow-lg: 0 24px 50px rgba(20,54,95,0.14);
  --shadow-card: 0 20px 40px rgba(20,54,95,0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms; --t: 240ms; --t-slow: 520ms;

  --z-header: 50; --z-overlay: 80; --z-modal: 100;
  --maxch: 66ch;
}

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--brand); }

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--brand); color: var(--on-dark);
  padding: 0.6rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: var(--z-modal); transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; color: var(--on-dark); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: block;
  font-size: 0.81rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: var(--sp-4);
}
.eyebrow--light { color: var(--on-navy-eyebrow); }

.section__title { font-size: var(--step-2); }
.section__title--light { color: var(--on-dark); }
.section__lede {
  font-size: var(--step-1); color: var(--muted);
  max-width: 54ch; margin-top: var(--sp-4); line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.92rem; --btn-pad-x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-display);
  font-weight: 600; font-size: var(--step-0); line-height: 1;
  border-radius: var(--r); white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t) var(--ease),
              color var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.btn svg { flex: none; }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary { background: var(--brand); color: var(--on-dark); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent); color: var(--on-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-2px); }

/* light button for use on deep-navy backgrounds (article-cta, etc.) */
.btn--invert { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.btn--invert:hover { background: #f3f7fc; color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost-light { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark-line); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.4); }

.btn--sm { min-height: 42px; padding: 0.6rem 1.15rem; font-size: var(--step--1); border-radius: var(--r-pill); }
.btn--full { width: 100%; }

/* inline text link with underline accent */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  color: var(--brand); font-weight: 600; font-size: var(--step-0);
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
  transition: color var(--t) var(--ease);
}
.link-arrow:hover { color: var(--accent); }

/* ---------- Header / nav ---------- */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-6);
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--brand); }
.brand__mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.brand__mark svg { width: 21px; height: 21px; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.18rem;
  line-height: 0.98; color: var(--ink); display: flex; flex-direction: column;
  letter-spacing: -0.02em;
}
.brand__sub {
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-text);
}

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.75rem); }
.nav__list a {
  position: relative; color: var(--muted); font-weight: 500;
  font-size: 0.95rem; padding: 0.4rem 0.15rem; transition: color var(--t) var(--ease);
}
.nav__list a:hover { color: var(--accent); }

.site-header__cta { display: flex; align-items: center; gap: var(--sp-5); }
.link-call {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--brand); font-weight: 600; font-size: 0.9rem;
}
.link-call svg { color: var(--accent); }
.link-call:hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 46px; height: 46px; margin-inline-start: auto;
  border-radius: var(--r-sm); flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle__bar {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--canvas); border-bottom: 1px solid var(--line);
}
/* ambient paint flecks (static color pops) */
.hero__flecks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fleck { position: absolute; border-radius: 60% 40% 55% 45%; }
.fleck--1 { width: 15px; height: 15px; background: var(--paint-blue); top: 15%; right: 8%; transform: rotate(18deg); }
.fleck--2 { width: 9px;  height: 9px;  background: var(--paint-navy); top: 27%; right: 4%; opacity: 0.55; }
.fleck--3 { width: 12px; height: 12px; background: var(--paint-blue); top: 21%; right: 15%; transform: rotate(-12deg); opacity: 0.4; }
.fleck--4 { width: 7px;  height: 7px;  background: var(--paint-navy); top: 38%; right: 9%; }
.fleck--5 { width: 26px; height: 26px; background: var(--paint-navy); top: 44%; right: 17%; opacity: 0.06; }
@media (max-width: 700px) { .fleck--3, .fleck--5 { display: none; } }

.hero .container { position: relative; z-index: 1; }
.hero__content { padding-block: clamp(3.5rem, 2.25rem + 7.5vw, 6.5rem); max-width: 840px; }
.hero__tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand);
  background: var(--surface); padding: 0.5rem 0.95rem; border-radius: var(--r-pill);
  border: 2px solid var(--brand); box-shadow: 4px 4px 0 rgba(20,54,95,0.16);
  transform: rotate(-1.6deg);
}
.hero__title {
  margin-top: clamp(1.2rem, 2vw, 1.75rem); text-wrap: balance;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.1rem, 0.85rem + 4.9vw, 4.15rem); line-height: 1.02;
  letter-spacing: -0.034em; color: var(--ink);
}
/* Sub-headline carrying the hand-painted word. The keyword phrase was promoted to
   the H1 above for search, so "lasts" lives here now and keeps its paint-on
   animation. Sized to sit visually below the H1 but above the lede. */
.hero__paintline {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0 0.28em; margin-top: clamp(0.7rem, 1.4vw, 1.1rem);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.6rem, 0.8rem + 3.1vw, 2.85rem); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--ink);
}
/* the hand-painted word */
.painted { display: inline-block; line-height: 0; margin-top: 0.14em; position: relative; }
.painted__svg { display: block; width: clamp(146px, 23vw, 258px); height: auto; overflow: visible; }
.ls { fill: none; stroke: var(--paint-blue); stroke-width: 15; stroke-linecap: butt; stroke-linejoin: round; }
.ls-dot { fill: var(--paint-blue); }
/* the little paintbrush that rides along, painting each letter */
.ls-brush { position: absolute; left: 0; top: -10%; width: clamp(30px, 7vw, 48px); height: auto; z-index: 3; opacity: 0; pointer-events: none; }
.ls-brush svg { width: 100%; height: auto; display: block; }

.hero__lede {
  margin-top: clamp(1.5rem, 2.5vw, 2rem); font-size: var(--step-1); line-height: 1.6;
  color: var(--muted); max-width: 560px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--sp-6); }
.hero__stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3vw, 1.85rem);
  margin-top: var(--sp-7);
}
.hero__stats li { line-height: 1.1; }
.hero__stats strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
/* --faint (#9bb0c8) only hits 2.22:1 on white, which fails WCAG AA for this 12.8px
   text. --muted (#516b87) measures 5.52:1 and keeps the same quiet hierarchy. */
.hero__stats span { font-size: 0.8rem; color: var(--muted); }
.hero__stats .hero__stat-div { width: 1px; align-self: stretch; background: var(--line); }

/* the ONE load animation: "lasts" paints on, stroke by stroke, letter by letter */
@media (prefers-reduced-motion: no-preference) {
  .ls { stroke-dasharray: 1; stroke-dashoffset: 1; animation: paint-on 0.34s cubic-bezier(0.25,1,0.5,1) var(--d,0s) forwards; }
  .ls-dot { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; animation: dot-pop 0.34s cubic-bezier(0.22,1,0.36,1) 2.02s forwards; }
}
@keyframes paint-on { to { stroke-dashoffset: 0; } }
@keyframes dot-pop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .ls-brush { animation: brush-paint 2.4s linear forwards; }
}
@keyframes brush-paint {
  0%   { opacity: 0; left: 0%;   top: 2%; }
  4%   { opacity: 1; left: 2%;   top: -10%; }
  8%   { left: 5%;   top: 12%; }
  18%  { left: 17%;  top: -8%; }
  22%  { left: 19%;  top: 12%; }
  36%  { left: 41%;  top: -8%; }
  40%  { left: 43%;  top: 14%; }
  56%  { left: 61%;  top: -12%; }
  61%  { left: 63%;  top: 14%; }
  78%  { left: 82%;  top: -8%; }
  84%  { opacity: 1; left: 85%; top: 14%; }
  93%  { opacity: 0.85; left: 93%; top: -28%; }
  100% { opacity: 0; left: 106%; top: -58%; }
}

/* ---------- Rotating word band ---------- */
.wordband { background: var(--accent); color: var(--on-dark); }
.wordband .eyebrow { color: rgba(255,255,255,0.82); }
.wordband__inner { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); text-align: center; }
.wordband__title {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.85rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.08; margin: 0; color: #fff;
}
.wordband__rotator {
  color: #fff; display: inline-block; min-height: 1.1em;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

/* ---------- Services (cards) ---------- */
.services__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 2.5rem; margin-bottom: clamp(2rem, 3.5vw, 2.75rem); flex-wrap: wrap;
}
.services__head .eyebrow { margin-bottom: 0.9rem; }
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem 1.75rem; background: var(--surface);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.service:hover { box-shadow: var(--shadow-lg); border-color: var(--pc, var(--accent)); }
.service__index {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--brand-tint); color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 1rem;
}
.service__icon { color: var(--accent); }
.service__name { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.55rem; }
.service__body p { color: var(--muted-2); font-size: 0.9rem; line-height: 1.55; }

/* Painterly service hovers — each service paints in its own color */
.service-list .service:nth-child(1) { --pc: var(--paint-blue); }
.service-list .service:nth-child(2) { --pc: var(--paint-coral); }
.service-list .service:nth-child(3) { --pc: var(--paint-green); }
.service-list .service:nth-child(4) { --pc: var(--paint-gold); }
.service { position: relative; overflow: visible; will-change: auto; --splat: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 240' fill='white'><path d='M150 44 C 176 32 184 56 202 60 C 226 65 244 48 250 70 C 256 92 232 98 240 120 C 247 142 272 140 260 162 C 249 182 226 168 212 184 C 197 200 210 226 184 224 C 162 222 164 198 142 198 C 118 198 110 222 94 208 C 80 196 98 174 82 162 C 66 150 42 158 44 132 C 46 108 72 114 76 92 C 80 68 60 56 82 50 C 104 43 122 58 150 44 Z'/><circle cx='254' cy='34' r='12'/><circle cx='282' cy='58' r='6'/><circle cx='24' cy='84' r='10'/><circle cx='56' cy='214' r='8'/><circle cx='214' cy='228' r='6'/><circle cx='288' cy='150' r='7'/><circle cx='14' cy='158' r='5'/><circle cx='150' cy='14' r='8'/><circle cx='116' cy='230' r='4'/><circle cx='270' cy='196' r='5'/></svg>"); }
/* organic paint splatter that sits BEHIND the white card and peeks out on hover */
.service::before {
  content: ""; position: absolute; z-index: -1; inset: -22% -16%;
  background: var(--pc, var(--accent));
  -webkit-mask: var(--splat) center / contain no-repeat;
  mask: var(--splat) center / contain no-repeat;
  opacity: 0; transform: scale(0.55) rotate(-8deg);
  transition: opacity 0.3s var(--ease), transform 0.6s var(--ease-soft);
  pointer-events: none;
}
.service:hover::before { opacity: 0.5; transform: scale(1) rotate(-2deg); }
.service__index { transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform 0.35s var(--ease-soft); }
.service:hover .service__index { background: var(--pc, var(--accent)); color: #fff; transform: rotate(-5deg) scale(1.08); }
.service__name { position: relative; display: inline-block; }
.service__name::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -4px; height: 5px;
  border-radius: 4px; background: var(--pc, var(--accent)); opacity: 0.9;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-soft);
}
.service:hover .service__name::after { transform: scaleX(1); }

/* ---------- Why (navy band) ---------- */
.band { background: var(--brand); color: var(--on-dark); }
.band__head { max-width: 42ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section__title--light { color: var(--on-dark); }
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.promise__item {}
.promise__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.08); color: var(--on-navy-icon); margin-bottom: 1.1rem;
}
.promise__item h3 { color: var(--on-dark); font-size: 1.12rem; font-weight: 700; margin-bottom: 0.55rem; }
.promise__item p { color: var(--on-dark-muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Process ---------- */
.process__head { max-width: 44ch; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.steps {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem;
}
.steps::before {
  content: ""; position: absolute; top: 23px; left: 9%; right: 9%; height: 2px;
  background: var(--line); z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong);
  color: var(--muted); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
}
.step:first-child .step__num { border-color: var(--accent); color: var(--accent); }
.step__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; }
.step p { color: var(--muted-2); font-size: 0.84rem; line-height: 1.55; }

/* ---------- Work / Instagram ---------- */
.work { background: var(--band); border-block: 1px solid var(--line); }
.work__inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.work__copy { max-width: 46ch; }
.work__copy .btn { margin-top: var(--sp-5); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.work__tile {
  position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2); display: grid; place-items: end start;
}
.work__tile img { width: 100%; height: 100%; object-fit: cover; }
.work__tile--a { background: linear-gradient(160deg, #eaf1f8, #d7e6f5); }
.work__tile--b { background: linear-gradient(160deg, #e9f1ea, #d3e6d8); margin-top: 24px; }
.work__tile--c { background: linear-gradient(160deg, #f3ece1, #e6d8c2); }
.work__pin {
  margin: 0.8rem; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: #5f7da3;
}

/* ---------- Service area ---------- */
.area { background: var(--band); border-top: 1px solid var(--line); }
.area__inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}
.area__map-wrap { position: relative; }
.area__map {
  aspect-ratio: 1 / 1; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--band); z-index: 0;
}
.area__here {
  position: absolute; bottom: 16px; left: 16px; z-index: 500;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.8rem;
  padding: 0.5rem 0.8rem; border-radius: 10px; box-shadow: 0 8px 22px rgba(20,54,95,0.14);
  pointer-events: none;
}
.area__here svg { color: var(--accent); flex-shrink: 0; }
.area__towns { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: var(--sp-6); }
.area__towns li {
  padding: 0.45rem 0.9rem; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--line-strong);
  font-size: 0.82rem; font-weight: 500; color: #34506f;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.area__towns li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.area__note { margin-top: var(--sp-5); color: var(--faint); font-size: 0.86rem; }

/* ---------- FAQ ---------- */
.faq__inner { max-width: 900px; margin-inline: auto; }
.faq__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq__list {}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1.1rem;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; color: var(--ink);
  transition: color var(--t) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex: none; color: var(--accent);
  font-size: 1.4rem; line-height: 1; font-weight: 400;
  transition: transform var(--t) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__item[open] .faq__q { color: var(--accent); }
.faq__q:hover { color: var(--accent); }
.faq__a { color: var(--muted); }
.faq__a p { padding: 0 0.25rem 1.35rem; max-width: 64ch; line-height: 1.62; font-size: 0.96rem; }
.faq__item::details-content {
  block-size: 0; overflow: hidden; opacity: 0;
  transition: block-size var(--t) var(--ease), opacity var(--t) var(--ease), content-visibility var(--t) allow-discrete;
}
.faq__item[open]::details-content { block-size: auto; opacity: 1; }

/* ---------- Estimate / contact (navy) ---------- */
.estimate { background: var(--brand); color: var(--on-dark); }
.estimate__inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}
.estimate__lede { color: var(--on-dark-muted); font-size: var(--step-1); line-height: 1.62; margin-top: var(--sp-4); max-width: 42ch; }
.contact-list { margin-top: var(--sp-6); display: grid; gap: 1rem; }
.contact-list a { display: flex; align-items: center; gap: 0.9rem; color: var(--on-dark); transition: color var(--t) var(--ease); }
.contact-list a:hover { color: #fff; }
.contact-list a > svg, .contact-list .ci {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,0.08); color: var(--on-navy-icon);
  display: grid; place-items: center;
}
.contact-list span { display: flex; flex-direction: column; line-height: 1.3; }
.contact-list strong { color: #fff; }
.contact-list small { color: var(--faint); font-size: 0.8rem; }

/* form card */
.estimate__form-wrap {
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}
.estimate-form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field label { font-weight: 600; font-size: 0.82rem; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.8rem 0.9rem; background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }  /* 4.96:1; still clearly lighter than the navy value text */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47,116,199,0.14);
}
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; }
.select-wrap__chev { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 4px rgba(194,58,48,0.16); }
.field__error { color: var(--danger); font-size: 0.8rem; font-weight: 500; min-height: 1em; }
.field__error:empty { display: none; }

.field-check { display: flex; align-items: flex-start; gap: 0.65rem; margin-top: 0.1rem; }
.field-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 24px; height: 24px; margin-top: 0.05rem;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--surface);
  cursor: pointer; display: grid; place-content: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field-check input[type="checkbox"]::before {
  content: ""; width: 12px; height: 12px; transform: scale(0); transform-origin: center;
  transition: transform var(--t-fast) var(--ease);
  clip-path: polygon(14% 44%, 0 65%, 43% 100%, 100% 16%, 84% 0, 40% 68%);
  background: #fff;
}
.field-check input[type="checkbox"]:checked { background: var(--brand); border-color: var(--brand); }
.field-check input[type="checkbox"]:checked::before { transform: scale(1); }
.field-check input[type="checkbox"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-check label { font-weight: 400; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.field-check label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.field-check label a:hover { color: var(--brand); }
.field-check.has-error input[type="checkbox"] { border-color: var(--danger); }

.form-status {
  padding: 0.85rem 1rem; border-radius: var(--r);
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid rgba(47,116,199,0.3); font-weight: 500; font-size: 0.88rem;
}
.form-status--ok { background: #e8f5ec; color: #1f6b3d; border-color: rgba(40,150,80,0.4); }
.form-status--error { background: #fdeceb; color: #a3271f; border-color: var(--danger); }
.form-fine { font-size: 0.78rem; color: var(--faint); text-align: center; margin-top: 0.1rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #cdd9ea; padding-top: clamp(3rem, 5vw, 4rem); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.5rem);
}
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__mark { background: var(--accent); color: #fff; }
.brand--footer .brand__sub { color: #9fb3cc; }
.site-footer__tag { color: #9fb3cc; margin-top: var(--sp-4); max-width: 36ch; font-size: 0.9rem; line-height: 1.6; }
.site-footer__social { display: flex; gap: 0.6rem; margin-top: var(--sp-5); }
.site-footer__social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); color: #cdd9ea;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.site-footer__social a:hover { background: var(--accent); color: #fff; }
.site-footer__h { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-navy-eyebrow); margin-bottom: var(--sp-4); }
.site-footer__nav ul, .site-footer__contact ul { display: grid; gap: 0.7rem; font-size: 0.9rem; }
.site-footer__nav a, .site-footer__contact a { color: #cdd9ea; }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: #fff; }
.site-footer__contact li { color: #9fb3cc; }
.site-footer__bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-block: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem; color: #7e93b0;
}
.site-footer__credit span { color: #cdd9ea; font-weight: 600; }
.site-footer__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer__legal a { color: #9fb3cc; }
.site-footer__legal a:hover { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Testimonials ---------- */
.testimonials {}
.testimonials__head { text-align: center; max-width: 56ch; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.testimonials__note {
  display: inline-block; margin-top: var(--sp-3);
  font-size: 0.82rem; color: var(--faint); font-weight: 500;
}
/* "Read more reviews on Google" under the testimonial grid */
.testimonials__more { margin-top: var(--sp-5); text-align: center; font-weight: 600; }
.testimonials__more a { color: var(--accent); text-underline-offset: 3px; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.t-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.75rem 1.6rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.t-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.stars { display: inline-flex; gap: 3px; color: var(--star); }
.star { width: 18px; height: 18px; fill: var(--star); }
.t-card blockquote { font-size: 1rem; line-height: 1.6; color: #34506f; font-weight: 500; }
.t-card figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.t-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; color: var(--accent); background: var(--brand-tint);
}
.t-card__who { display: flex; flex-direction: column; line-height: 1.3; }
.t-card__who strong { color: var(--ink); font-size: 0.9rem; }
.t-card__who small { color: var(--faint); font-size: 0.8rem; }

/* ---------- Content: Case studies & Insights ---------- */
.section--alt { background: var(--band); border-block: 1px solid var(--line); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2.5rem; margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}
.section-head__text { max-width: 56ch; }
.section-head .btn, .section-head .link-arrow { flex: none; }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.entry-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
a.entry-card:hover, .entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.entry-card__media {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(160deg, #eaf1f8, #dbe7f4); color: #9bb9da;
}
.entry-card:nth-child(3n+2) .entry-card__media { background: linear-gradient(160deg, #e9f1ea, #d6e8da); }
.entry-card:nth-child(3n+3) .entry-card__media { background: linear-gradient(160deg, #f3ece1, #e8dcc8); }
.entry-card__media img { width: 100%; height: 100%; object-fit: cover; }
.entry-card__media > svg { width: 34px; height: 34px; opacity: 0.8; }
.entry-card__tag {
  position: absolute; top: 14px; left: 14px; padding: 0.3rem 0.7rem; border-radius: var(--r-pill);
  background: var(--surface); color: var(--accent); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.entry-card__body { padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.entry-card__kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.entry-card__title { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.entry-card__excerpt { color: var(--muted-2); font-size: 0.9rem; line-height: 1.55; }
.entry-card__more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 0.4rem; }
.entry-card__more::after { content: "\2192"; transition: transform var(--t) var(--ease); }
a.entry-card:hover .entry-card__more::after { transform: translateX(4px); }
.entry-card.is-placeholder { border-style: dashed; }
.entry-card.is-placeholder .entry-card__title { color: var(--muted); }

.coming-soon { display: inline-flex; align-items: center; margin-top: auto; padding: 0.35rem 0.75rem; font-size: 0.74rem; color: var(--faint); font-weight: 600; border: 1px solid var(--line-2); border-radius: var(--r-pill); align-self: flex-start; }

.content-note {
  margin-top: clamp(1.25rem, 2.5vw, 1.5rem); text-align: center;
  color: var(--faint); font-size: 0.86rem; line-height: 1.5;
}
.content-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Subpage chrome (hub + article pages) ---------- */
.subhead {
  position: sticky; top: 0; z-index: var(--z-header); background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.subhead__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 70px; }
.subhead__nav { margin-inline-start: auto; display: flex; gap: clamp(0.85rem, 1.6vw, 1.75rem); }
.subhead__nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.subhead__nav a:hover { color: var(--accent); }
.subhead .btn { flex: none; }
.subhead .brand { margin-inline-end: auto; }
.subhead__nav + .btn { margin-inline-start: 0; }

.crumbs { padding-block: 1.25rem 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; font-size: 0.84rem; color: var(--muted); }
.crumbs li { display: flex; gap: 0.45rem; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

.page-hero { padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem); }
.page-hero h1 { font-size: var(--step-4); max-width: 22ch; }
.page-hero p { margin-top: var(--sp-4); font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.55; }

/* ---------- Article / prose ---------- */
.article { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem); }
.article__wrap { max-width: 720px; margin-inline: auto; }
.article__kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.article__title { font-size: var(--step-4); margin: 0.6rem 0 1rem; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--muted); font-size: 0.84rem;
  padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.article__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.prose { color: var(--ink); font-size: var(--step-0); }
.prose > * + * { margin-top: 1.2rem; }
.prose p { line-height: 1.75; color: #33506f; }
.prose h2 { font-size: var(--step-2); margin-top: 2.5rem; line-height: 1.2; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { line-height: 1.65; color: #33506f; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.25rem; color: var(--muted); font-style: italic; }
.prose img { width: 100%; border-radius: var(--r); margin-block: 1.5rem; }

.callout { background: var(--brand-tint); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); margin-block: 2rem; }
.callout :first-child { margin-top: 0; }
.callout h2, .callout h3 { font-size: 1.2rem; }
.callout ul { margin-top: 0.75rem; }

.article-cta { margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); background: var(--brand); color: var(--on-dark); text-align: center; }
.article-cta h2 { color: var(--on-dark); font-size: var(--step-2); }
.article-cta p { color: var(--on-dark-muted); margin: 0.5rem auto 1.25rem; max-width: 48ch; }

.back-link { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 2.5rem; font-weight: 600; color: var(--accent); }
.back-link::before { content: "\2190"; transition: transform var(--t) var(--ease); }
.back-link:hover::before { transform: translateX(-4px); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1000px) {
  .hero__inner, .services__head { grid-template-columns: 1fr; }
  .hero__inner { gap: 2.5rem; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .work__inner, .area__inner, .estimate__inner { grid-template-columns: 1fr; }
  .testimonials__grid, .entry-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
  .steps::before { display: none; }
  .promise { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav, .site-header__cta { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav {
    display: block; position: fixed; inset: 72px 0 auto 0; z-index: var(--z-overlay);
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); margin: 0; animation: nav-drop var(--t) var(--ease);
  }
  body.nav-open .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-3) var(--gutter) var(--sp-5); }
  body.nav-open .nav__list a { padding: 0.95rem 0.25rem; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
  @keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } }

  .hero__actions .btn { flex: 1 1 auto; }
  .service-list, .promise, .testimonials__grid, .entry-grid, .work__grid { grid-template-columns: 1fr; }
  .work__tile--b { margin-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .subhead__nav { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 1rem; }
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Print niceties */
@media print {
  .site-header, .subhead, .nav-toggle, .hero__aside, .estimate__form-wrap { display: none; }
  body { color: #000; background: #fff; }
}

/* =============================================================
   Subpage building blocks (services, areas, about) + paint motif
   Reuses the homepage system; adds only what subpages need.
   ============================================================= */

/* painted brush divider — drop under a page-hero h1 for the "hand-painted" feel */
.brush-rule { display: block; width: 100%; max-width: 240px; height: 16px; margin: 1.1rem 0 0; color: var(--accent); }
.brush-rule svg { width: 100%; height: 100%; }

.page-hero .eyebrow { margin-bottom: 0.7rem; }
.page-hero__lead { margin-top: var(--sp-4); font-size: var(--step-1); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--sp-6); }

.measure { max-width: 760px; }

/* "what's included" / feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.5rem 1.4rem; background: var(--surface);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.feature__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-tint); color: var(--accent); margin-bottom: 0.9rem;
  font-family: var(--font-display); font-weight: 800;
}
.feature h3 { font-size: 1.06rem; font-weight: 700; margin-bottom: 0.45rem; }
.feature p { color: var(--muted-2); font-size: 0.9rem; line-height: 1.55; }

/* lead + aside split (service / area intros) */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.split__aside { border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 1.9rem); background: var(--band); }
.split__aside h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.8rem; }
.fact-list { display: grid; gap: 0.7rem; }
.fact-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: #34506f; }
.fact-list li::before { content: "\2713"; color: var(--accent); font-weight: 800; flex: none; }

/* trust chip (e.g. "Licensed & insured") */
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.85rem; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--accent-600);
  font-size: 0.8rem; font-weight: 600;
}
.trust-chip svg { width: 16px; height: 16px; }

/* placeholder ribbon for the in-progress demo pages (remove when copy is final) */
.draft-note {
  display: flex; align-items: flex-start; gap: 0.55rem; flex-wrap: wrap;
  margin: 0 0 1.4rem; padding: 0.7rem 1rem;
  background: #fff7e8; border: 1px solid #f0d8a4; border-radius: var(--r);
  color: #8a6d1f; font-size: 0.82rem; font-weight: 500; line-height: 1.5;
}
.draft-note strong { color: #6f5614; }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}


/* == FCS gallery (before/after + finished projects) == */
.ba-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.1rem, 2.5vw, 1.75rem);
  margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 880px;
}
.ba-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(20,54,95,.05);
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line-2); }
.ba-shot { position: relative; background: var(--band); }
.ba-card--tall .ba-shot { aspect-ratio: 3 / 4; }
.ba-card--wide .ba-shot { aspect-ratio: 4 / 3; }
.ba-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-tag {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 1;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; padding: 0.28rem 0.62rem; border-radius: var(--r-pill);
  background: rgba(15, 39, 71, 0.82);
}
.ba-tag--after { background: var(--accent); }
.ba-cap { padding: 0.8rem 1.05rem; font-weight: 600; color: var(--ink); font-size: var(--step-0); }
.proj-grid {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  column-count: 3; column-gap: clamp(0.9rem, 2vw, 1.25rem);
}
.proj {
  margin: 0 0 clamp(0.9rem, 2vw, 1.25rem); break-inside: avoid;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 1px 3px rgba(20, 54, 95, 0.05);
}
.proj img { width: 100%; height: auto; display: block; }
@media (max-width: 820px) {
  .ba-grid { grid-template-columns: 1fr; }
  .proj-grid { column-count: 2; }
}
@media (max-width: 520px) {
  .proj-grid { column-count: 1; }
}

/* == FCS gallery dropdown (optional, collapsed) == */
.gallery { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.gallery__toggle {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 380px; margin-inline: auto;
  padding: 0.8rem 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--step-0);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.gallery__toggle::-webkit-details-marker { display: none; }
.gallery__toggle:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(20,54,95,0.08); transform: translateY(-1px); }
.gallery__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery__toggle-main { display: inline-flex; align-items: center; gap: 0.6rem; }
.gallery__icon { color: var(--accent); flex-shrink: 0; }
.gallery__count { color: var(--faint); font-weight: 500; font-size: 0.82rem; margin-left: 0.45rem; }
.gallery__chev { color: var(--muted); transition: transform var(--t) var(--ease); flex-shrink: 0; }
.gallery[open] .gallery__chev { transform: rotate(180deg); }
.gallery__panel { margin-top: clamp(1.25rem, 3vw, 2rem); }
.gallery[open] .gallery__panel { animation: gallery-in 0.4s var(--ease) both; }
@keyframes gallery-in { from { opacity: 0; transform: translateY(10px); } }
.gallery__group + .gallery__group { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.gallery__group-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 0.9rem;
}

/* Service page -> area page cross-links ("Towns we cover") */
.svc-towns h2 { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); color: var(--ink); }
.svc-towns > .container > p { max-width: 62ch; color: var(--muted); margin-top: 0.6rem; }
.town-links {
  list-style: none; padding: 0; margin: 1.25rem 0 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.town-links a {
  display: inline-block; padding: 0.55rem 1rem; border-radius: var(--r-pill);
  border: 2px solid var(--brand); color: var(--brand);
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.town-links a:hover, .town-links a:focus-visible { background: var(--brand); color: #fff; }

/* Service page photo galleries */
.svc-gallery h2 { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); color: var(--ink); }
.svc-gallery__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-top: 1.4rem;
}
.svc-shot { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.svc-shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* WCAG 2.4.7 / "link-in-text-block": links sitting inside body copy were
   distinguishable by hue alone (1.16:1 against surrounding text), which fails for
   color-blind users. Underline them wherever they appear mid-paragraph. Navigation,
   buttons, chips and card links are excluded since they are visually obvious blocks. */
.prose a:not(.btn),
.measure a:not(.btn),
p a:not(.btn):not(.link-arrow):not(.town-links a),
.article a:not(.btn),
li a:not(.btn):not(.town-links a) {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.site-footer a:not(.btn), .nav a, .subhead__nav a, .crumbs a, .town-links a { text-decoration: none; }

/* Single proof photo on area pages */
.area-shot__fig { margin: 0; }
.area-shot__fig picture { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.area-shot__fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.area-shot__fig figcaption { margin-top: 0.7rem; font-size: 0.86rem; color: var(--muted); }

/* Photo inside an insight article. Deliberately placed BELOW the answer-first
   paragraph rather than above it: as an above-the-fold element it became the LCP and
   cost 4 to 6 performance points on throttled mobile. The answer text is the LCP now. */
.article__fig { margin: 1.5rem 0 1.8rem; }
.article__fig picture { display: block; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.article__fig img { width: 100%; height: auto; }  /* files are pre-cropped to 16:10 */
.article__fig figcaption { margin-top: 0.65rem; font-size: 0.86rem; color: var(--muted); }

/* Caption under a service page photo grid */
.svc-gallery__note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--muted); }
