/* =========================================================
   Solsure Electrical — site styles (2026-10 redesign)
   Warm editorial layout: white and paper bands, navy ink,
   one blue accent, the spark mark as the brand device.

   Shape rule: buttons + chips are full pills, photos 20px,
   small images 16px, inputs 12px, the notch curve 28px.
   ========================================================= */

:root {
  /* Palette (2026-10-21): soft black, sun yellow, warm off-white, plus tints/shades derived from them */
  --ink: #171717;          /* soft black: text, dark bands, footer, buttons */
  --ink-rgb: 23, 23, 23;   /* the same colour, for rgba() lines and shadows */
  --sun: #f2b635;          /* sun yellow: the spark, highlights, buttons on black */
  --bg: #f6f4f1;           /* warm off-white: page */
  --surface: #fbfaf8;      /* off-white lifted: cards, inputs, menus */
  --paper: #eeeae3;        /* off-white deepened: alternate bands */
  --sun-soft: rgba(242, 182, 53, 0.24);
  --fg: #171717;
  --fg-2: #4f4d48;
  --fg-3: #65625c;
  --line: rgba(var(--ink-rgb), 0.12);
  --dash: rgba(var(--ink-rgb), 0.24);
  --on-dark-2: rgba(246, 244, 241, 0.76);

  --r-photo: 20px;
  --r-img: 16px;
  --r-input: 12px;
  --notch: clamp(84px, 8.5vw, 128px);   /* size of the cut-out square */
  --notch-r: clamp(20px, 2.2vw, 30px);  /* its curve */

  --shadow-md: 0 6px 18px rgba(var(--ink-rgb), 0.07), 0 22px 48px rgba(var(--ink-rgb), 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: clamp(16px, 3vw, 28px);
  --header-h: 123px;
  --font: "Alata", "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); scrollbar-color: #aaa59b transparent; accent-color: var(--ink); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
}
::selection { background: var(--sun); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: "Basic", var(--font); font-weight: 700; color: var(--fg); letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1.08; }
h2 { font-size: clamp(1.95rem, 3.4vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }

.container { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.section-tight { position: relative; padding: clamp(40px, 6vw, 72px) 0; }
.paper { background: var(--paper); }
.has-mark, .panel, .alt, .page-hero { overflow: clip; }
.lede { font-size: 1.15rem; line-height: 1.6; color: var(--fg-2); max-width: 58ch; }
.muted { color: var(--fg-2); }
.center { text-align: center; }
.stack-head { max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.stack-head .lede { margin-top: 14px; }

/* Section label in the side column (the reference's "About Us") and the content-driven eyebrow */
.side-label, .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.98rem; color: var(--fg-2); margin: 0 0 16px; }
.side-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.eyebrow i { font-size: 1.05rem; }

/* The spark: sprite in layout.php. Size comes from the element using it. */
.spark { display: block; width: 100%; height: 100%; color: var(--sun); }
.mark-bg {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(300px, 38vw, 600px); height: auto; aspect-ratio: 1;
  right: max(-140px, -9vw); top: clamp(-180px, -10vw, -60px);
  color: rgba(242, 182, 53, 0.2);
}

/* ---------- Notch: curved cut-out in a photo's bottom-left corner ---------- */
.notch {
  --nb: var(--notch-bg, var(--bg));
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: var(--notch); height: var(--notch);
  background: var(--nb);
  border-top-right-radius: var(--notch-r);
  display: grid; place-items: center;
}
.notch::before, .notch::after {  /* the two concave fillets that round the photo into the cut */
  content: ""; position: absolute; width: var(--notch-r); height: var(--notch-r);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--notch-r) - 0.5px), var(--nb) var(--notch-r));
}
.notch::before { left: 0; bottom: 100%; }
.notch::after { left: 100%; bottom: 0; }
.notch-spark { width: 56%; height: 56%; margin: 10% 10% 0 0; }
.paper .notch { --notch-bg: var(--paper); }
:has(> .notch) { border-bottom-left-radius: 0 !important; }  /* the notch replaces that corner; avoids a hairline seam */
/* Mirrored notch: bottom-right corner instead (home CTA) */
.notch-right .notch { left: auto; right: 0; border-top-right-radius: 0; border-top-left-radius: var(--notch-r); }
.notch-right .notch::before, .notch-right .notch::after { background: radial-gradient(circle at 0 0, transparent calc(var(--notch-r) - 0.5px), var(--nb) var(--notch-r)); }
.notch-right .notch::before { left: auto; right: 0; }
.notch-right .notch::after { left: auto; right: 100%; }
.notch-right .notch-spark { margin: 10% 0 0 10%; }
.notch-right:has(> .notch) { border-bottom-left-radius: var(--r-photo) !important; border-bottom-right-radius: 0 !important; }

/* ---------- Buttons (pill + sliding arrow, from the reference) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg);
  font: 400 1rem/1 var(--font); white-space: nowrap;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.15s ease-out;
}
.btn:hover { background: var(--sun); color: var(--ink); box-shadow: 0 10px 26px rgba(242, 182, 53, 0.35); }
.btn:active { transform: scale(0.97); transition-duration: 0.08s; }
.btn .ico { display: inline-block; width: 1em; height: 1em; overflow: hidden; font-size: 1.15rem; line-height: 1; }
.btn .ico i { display: block; text-shadow: -1.3em 1.3em 0 currentColor; transition: transform 0.5s var(--ease-out); }
.btn:hover .ico i, .btn:focus-visible .ico i { transform: translate(1.3em, -1.3em); }
.btn-light, .btn-plain { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.3); }
.btn-light:hover, .btn-plain:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-plain i { font-size: 1.1rem; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn.is-loading { pointer-events: none; opacity: 0.8; }

/* On navy */
.cta-card .btn, .on-navy .btn { background: var(--sun); color: var(--ink); }
.cta-card .btn:hover, .on-navy .btn:hover { background: var(--bg); color: var(--ink); box-shadow: none; }
.cta-card .btn-plain { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1.5px rgba(246, 244, 241, 0.4); }
.cta-card .btn-plain:hover { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--bg); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); background: linear-gradient(var(--sun), var(--sun)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.link-arrow i { transition: transform 0.4s var(--ease-out); }
.link-arrow:hover i, a:hover > .link-arrow i, a:hover .link-arrow i { transform: translate(3px, -3px); }
.link-arrow .ph-arrow-right { transition: transform 0.4s var(--ease-out); }
a:hover .link-arrow .ph-arrow-right, .link-arrow:hover .ph-arrow-right { transform: translateX(4px); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a {
  padding: 9px 16px; border-radius: 999px; font-size: 0.92rem; line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--surface);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.chip-list a:hover { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 241, 0.84);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  view-transition-name: site-header;
  transition: transform 0.55s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(246, 244, 241, 0.92); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(var(--ink-rgb), 0.06); }
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; transition: transform 0.4s var(--ease-out); }
.brand:hover { transform: scale(1.04); }
.brand { background: var(--ink); -webkit-mask: url("/assets/logo-navy.png") center / contain no-repeat; mask: url("/assets/logo-navy.png") center / contain no-repeat; }
.brand img { width: 125px; height: auto; opacity: 0; }  /* the mask above paints the logo shape in brand black */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 12px 12px; font-size: 0.8rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg); white-space: nowrap; transition: color 0.3s ease;
}
.nav-links > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--sun); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-links > li > a:hover, .nav-links a.active { color: var(--ink); }
.nav-links > li > a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links .ph-caret-down { font-size: 0.8rem; transition: transform 0.4s var(--ease-out); }
.has-menu { position: relative; }
.has-menu:hover .ph-caret-down, .has-menu:focus-within .ph-caret-down { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 580px; margin-left: -290px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97); transform-origin: top center;
  transition: opacity 0.25s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; transition: background-color 0.25s ease; }
.menu a:hover { background: var(--paper); }
.menu a i { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sun-soft); color: var(--ink); font-size: 1.15rem; transition: transform 0.4s var(--ease-out); }
.menu a:hover i { transform: rotate(-8deg) scale(1.08); }
.menu strong { display: block; font-size: 0.94rem; font-weight: 400; }
.menu span { display: block; font-size: 0.82rem; color: var(--fg-3); line-height: 1.4; margin-top: 2px; }
.menu .menu-all { grid-column: 1 / -1; justify-content: space-between; align-items: center; background: var(--paper); font-size: 0.92rem; }
.menu .menu-all i { background: none; width: auto; height: auto; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-size: 0.94rem; white-space: nowrap; transition: color 0.3s ease; }
.nav-phone:hover { opacity: 0.75; }
.nav-phone i { color: var(--ink); font-size: 1.1rem; }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font-size: 1.3rem; place-items: center;
  transition: transform 0.15s ease-out;
}
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle i { animation: ico-in 0.45s var(--ease-out); }
@keyframes ico-in { from { transform: rotate(-90deg) scale(0.6); opacity: 0; } }

/* Mobile sheet: grows out of the menu button (anchored origin) */
.mobile-sheet {
  position: fixed; inset: 0; z-index: 49; padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
  background: var(--bg); overflow-y: auto; visibility: hidden;
  clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
  transition: clip-path 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.mobile-sheet a { display: block; padding: 13px 0; font: 700 1.45rem/1.2 "Basic", var(--font); border-bottom: 1px solid var(--line); }
.mobile-sheet .sub a { font: 400 1rem/1.3 var(--font); padding: 9px 0 9px 16px; color: var(--fg-2); }
.mobile-sheet .btn { display: flex; width: 100%; margin-top: 24px; padding: 0 26px; font: 400 1rem/1 var(--font); border: 0; }
.mobile-sheet li { opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out); }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-sheet { visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2)); transition-delay: 0s; }
body.menu-open .mobile-sheet li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 120ms); }

/* ---------- Hero (home + inner pages share the grid) ---------- */
/* Copy sits on the container's left; the photo bleeds off the right edge of the viewport. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--container) * 0.5 - var(--gutter))) minmax(0, calc(var(--container) * 0.5)) minmax(0, 1fr);
}
.hero-copy { grid-column: 2; position: relative; z-index: 1; padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px) clamp(36px, 5vw, 64px) 0; }
.hero-media { grid-column: 3 / -1; position: relative; overflow: hidden; border-top-left-radius: clamp(28px, 3.4vw, 48px); background: var(--paper); }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy .lede { margin-bottom: 30px; }

.hero .hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: min(calc(100svh - var(--header-h) - 24px), 760px); }
.hero .hero-media { min-height: min(calc(100svh - var(--header-h) - 24px), 760px); }
.hero h1 { font-size: clamp(2.4rem, 4.1vw, 3.85rem); }

.page-hero .hero-media { min-height: clamp(420px, 40vw, 560px); }
.page-hero .hero-copy { display: flex; flex-direction: column; justify-content: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.page-hero.no-img { background: var(--paper); position: relative; }
.page-hero.no-img .hero-copy { grid-column: 2 / 4; max-width: 820px; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.page-hero.no-img .mark-bg { top: 50%; translate: 0 -50%; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 0.88rem; color: var(--fg-3); }
.crumbs a { transition: color 0.25s ease; }
.crumbs a:hover { color: var(--ink); text-decoration: underline 2px var(--sun); text-underline-offset: 4px; }
.crumbs i { font-size: 0.72rem; }
.crumbs [aria-current] { color: var(--fg); }

/* Accreditation band under the home hero */
.badges-band { padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.badges img { height: 58px; width: auto; mix-blend-mode: multiply; }  /* logos with white boxes sit on the off-white */
.badges img.tall { height: 70px; }
.badges img.wide { height: 44px; }
.badges img.ck { height: 24px; }

/* ---------- Home: editorial intro ---------- */
.editorial { display: grid; grid-template-columns: minmax(150px, 1fr) 3.2fr; gap: 32px clamp(32px, 5vw, 80px); }
.editorial .side-label { padding-top: 0.7em; align-self: start; }
.editorial-body h2 { max-width: 20ch; font-size: clamp(2rem, 3.8vw, 3.25rem); }
.editorial-body .lede { margin: 22px 0 14px; }
.editorial-body .muted { max-width: 64ch; }
.editorial-body .btn { margin-top: 30px; }
.intro-media { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 7vw, 96px); align-items: end; }
.im-main { position: relative; overflow: hidden; border-radius: var(--r-photo); aspect-ratio: 4 / 3.3; background: var(--paper); }
.im-main img { width: 100%; height: 116%; object-fit: cover; }
.im-side { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.im-stat { display: flex; gap: 22px; align-items: flex-start; padding-bottom: clamp(20px, 2.6vw, 32px); border-bottom: 1px dashed var(--dash); }
.im-stat b { font: 700 clamp(3.6rem, 6vw, 5.4rem)/0.9 "Basic", var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.im-stat strong { display: block; font-weight: 400; margin-bottom: 4px; }
.im-stat p { color: var(--fg-2); font-size: 0.98rem; margin: 0; }
.im-img { overflow: hidden; border-radius: var(--r-img); aspect-ratio: 16 / 10; background: var(--paper); }
.im-img img { width: 100%; height: 100%; object-fit: cover; }
.im-card { display: flex; gap: 18px; align-items: flex-start; }
.im-card > i { font-size: 2.3rem; color: var(--ink); flex-shrink: 0; }
.im-card h3 { margin-bottom: 6px; }
.im-card p { color: var(--fg-2); font-size: 0.98rem; }

/* ---------- Home: services (staggered "signature pieces") ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.svc { display: block; }
.svc-img { position: relative; overflow: hidden; border-radius: var(--r-img); aspect-ratio: 1 / 1.02; background: var(--paper); }
.svc-tall .svc-img { aspect-ratio: 4 / 4.9; border-radius: var(--r-photo); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.svc:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding-top: 22px; }
.svc-body h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); transition: color 0.3s ease; }
.svc:hover h3, a.photo-card:hover h3 { text-decoration: underline 2px var(--sun); text-underline-offset: 5px; }
.svc-body p { color: var(--fg-2); font-size: 0.98rem; margin-bottom: 14px; }
.svc-wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px dashed var(--dash); }
.svc-wide-img { overflow: hidden; border-radius: var(--r-photo); aspect-ratio: 16 / 11; background: var(--paper); }
.svc-wide-img img { width: 100%; height: 116%; object-fit: cover; }
.svc-wide-body h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.svc-wide-body > p { color: var(--fg-2); margin-bottom: 24px; max-width: 52ch; }
.svc-wide-body .btn-row { margin-top: 32px; }

/* ---------- Home: values (reference's three columns with dashed dividers) ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: clamp(40px, 5vw, 64px); }
.value { padding: 4px clamp(18px, 2.4vw, 32px); border-left: 1px dashed var(--dash); }
.value:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.value > i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sun); font-size: 1.8rem; color: var(--ink); margin-bottom: 22px; transition: transform 0.5s var(--ease-out); }
.value:hover > i { transform: rotate(-10deg) scale(1.08); }
.value h3 { font-size: 1.25rem; }
.value p { color: var(--fg-2); font-size: 0.97rem; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.process-line { position: absolute; left: 27px; right: 27px; top: 27px; height: 2px; background: var(--line); }
.process-line span { display: block; height: 100%; background: var(--ink); transform-origin: left; }
.step { position: relative; }
.step-dot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 1.4rem; box-shadow: 0 0 0 6px var(--bg); margin-bottom: 26px; }
.paper .step-dot { box-shadow: 0 0 0 6px var(--paper); }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--fg-2); font-size: 0.97rem; }

/* ---------- Reviews (big two-tone quote, reference) ---------- */
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.reviews-head h2 { margin: 0; }
.t-ctrl { display: flex; align-items: center; gap: 14px; }
.t-ctrl button {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 1.2rem; box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.3);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), transform 0.12s ease-out;
}
.t-ctrl button:hover { background: var(--ink); color: var(--bg); }
.t-ctrl button:active { transform: scale(0.94); }
.t-ctrl button:disabled { opacity: 0.35; pointer-events: none; }
.t-count { min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.t-stage .t-card { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 80px); margin: 0 0 56px; }
.js .t-stage { display: grid; touch-action: pan-y; }
.js .t-stage .t-card { grid-area: 1 / 1; margin: 0; }
.js .t-stage .t-card:not(.is-active) { visibility: hidden; }
.t-mark { display: block; height: 0.55em; font: 700 6rem/1 "Basic", var(--font); color: var(--sun); }
.t-card blockquote { grid-column: 1; margin: 0; font: 700 clamp(1.35rem, 2.3vw, 2rem)/1.32 "Basic", var(--font); color: #75726b; }
.t-lead { color: var(--ink); }
.t-meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.t-meta strong { font-weight: 400; }
.t-meta span { color: var(--fg-3); font-size: 0.95rem; }
.stars { display: flex; gap: 2px; color: var(--sun); font-size: 1rem; }
.t-job {
  grid-column: 2; grid-row: 1 / span 3; align-self: stretch;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
  min-height: 300px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-photo);
  background: var(--ink); color: var(--bg); overflow: hidden;
  font: 700 clamp(1.2rem, 1.7vw, 1.5rem)/1.3 "Basic", var(--font);
}
.t-job > span { position: relative; z-index: 1; }
.t-spark { position: absolute; width: 58%; height: auto; aspect-ratio: 1; right: -12%; top: -12%; color: var(--sun); }

/* Single review card (commercial case panel) */
.t-card { margin: 0; }
.panel .t-card blockquote, .case blockquote { font: 700 clamp(1.2rem, 1.9vw, 1.55rem)/1.38 "Basic", var(--font); color: var(--ink); margin: 14px 0; }
.panel .t-card .t-meta { margin-top: 6px; }

/* ---------- Gallery (3-column grid + lightbox) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.g-item { display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; }
.g-img { aspect-ratio: 4 / 3; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-img); overflow: hidden; cursor: zoom-in; background: var(--paper); }
.g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.g-img:hover img { transform: scale(1.05); }
.g-item figcaption { font-size: 0.9rem; color: var(--fg-3); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 48px); border: 0; background: transparent; color: #fff; display: grid; place-items: center; touch-action: pan-y; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(12, 12, 12, 0.92); }
.lb-figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: min(1200px, 100%); }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 140px); border-radius: var(--r-img); object-fit: contain; user-select: none; }
.lb-figure figcaption { display: flex; gap: 16px; align-items: baseline; }
.lb-count { color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.lb-btn { position: fixed; width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: rgba(255, 255, 255, 0.12); cursor: pointer; transition: background-color 0.25s ease, transform 0.12s ease-out; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-btn:active { transform: scale(0.94); }
.lb-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
html:has(dialog.lightbox[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lb-figure { transform-origin: var(--lb-origin, 50% 50%); animation: lb-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  @keyframes lb-in { from { opacity: 0; transform: scale(0.9); } }
  .lightbox[open]::backdrop { animation: lb-fade 0.3s ease-out; }
  .lb-img-swap { animation: lb-swap 0.45s var(--ease-out); }
  @keyframes lb-swap { from { opacity: 0; transform: translateX(var(--lb-dir, 24px)); } }
}
@keyframes lb-fade { from { opacity: 0; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-side .lede { margin: 16px 0 28px; }
.faq-item { border-bottom: 1px dashed var(--dash); }
.faq-item:first-child { border-top: 1px dashed var(--dash); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none; font-size: 1.12rem; line-height: 1.4;
  transition: color 0.3s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { text-decoration: underline 2px var(--sun); text-underline-offset: 5px; }
.faq-item summary i {
  flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), 0.24); font-size: 1rem;
  transition: transform 0.5s var(--ease-out), background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.faq-item[open]:not(.is-closing) summary i { transform: rotate(135deg); background: var(--sun); color: var(--ink); box-shadow: none; }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--fg-2); max-width: 64ch; padding: 0 0 26px; margin: 0; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.areas-card h2 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); }
.areas-card .lede { margin-bottom: 26px; }
.area-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.area-pills li { padding: 8px 15px; border-radius: 999px; font-size: 0.92rem; box-shadow: inset 0 0 0 1px var(--line); }
.address-line { display: flex; gap: 14px; align-items: flex-start; color: var(--fg-2); }
.address-line i { color: var(--ink); font-size: 1.4rem; margin-top: 2px; }
.address-line strong { color: var(--fg); font-weight: 400; }
.map-card { position: relative; overflow: hidden; border-radius: var(--r-photo); min-height: 440px; background: var(--paper); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA band (navy, with the notch) ---------- */
.cta-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4.5vw, 64px); border-radius: clamp(24px, 3vw, 36px); background: var(--ink); color: var(--bg);
}
.cta-card .mark-bg { color: rgba(242, 182, 53, 0.1); left: -8%; right: auto; top: auto; bottom: -40%; }
.cta-body { position: relative; z-index: 1; }
.cta-body h2 { color: var(--bg); font-size: clamp(2rem, 3.6vw, 3.1rem); }
.cta-body p { color: var(--on-dark-2); max-width: 46ch; margin-bottom: 30px; }
.cta-img { position: relative; z-index: 1; overflow: hidden; border-radius: var(--r-photo); aspect-ratio: 4 / 3.3; --notch-bg: var(--ink); }
.cta-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inner page sections ---------- */
/* Chapters: the old navy panels are now paper bands carrying the spark watermark */
.panel, .alt {
  position: relative; background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 9v82M9 50h82M21 21l58 58M79 21 21 79' fill='none' stroke='%23f2b635' stroke-opacity='0.2' stroke-width='15' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: clamp(300px, 36vw, 560px); background-position: right max(-140px, -9vw) top clamp(-160px, -9vw, -60px);
}
.panel { padding: clamp(72px, 9vw, 128px) 0; }
.panel > .container { padding: 0 var(--gutter) !important; }
.panel-head { margin-bottom: clamp(36px, 4.5vw, 56px); max-width: 720px; }
.panel-head .lede { margin-top: 14px; }

.answer { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.answer-text { font-size: 1.2rem; line-height: 1.6; color: var(--fg-2); margin-top: 18px; max-width: 56ch; }
.facts { display: grid; }
.fact { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px dashed var(--dash); }
.fact:first-child { border-top: 1px dashed var(--dash); }
.fact strong { display: block; font-weight: 400; font-size: 1.05rem; margin-bottom: 2px; }
.fact span:not(.ico-tile) { color: var(--fg-2); font-size: 0.97rem; }
.ico-tile { display: inline-grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--sun-soft); color: var(--ink); font-size: 1.5rem; margin-bottom: 18px; }
.fact .ico-tile { margin: 0; width: 46px; height: 46px; font-size: 1.3rem; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-img); background: #fff6db; color: #5c4500; font-size: 0.96rem; margin-top: 24px; }
.notice i { font-size: 1.3rem; flex-shrink: 0; }

.ticks { display: grid; gap: 14px; margin-top: 24px; }
.ticks.two { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--fg-2); }
.ticks li strong { color: var(--fg); font-weight: 400; }
.ticks li a:hover strong { text-decoration: underline 2px var(--sun); text-underline-offset: 4px; }
.ticks i { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: 0.85rem; }

.bubbles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bubble { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-img); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.5; }
.bubble > i { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--sun); font-size: 0.85rem; }

/* Rule-separated columns (the reference's value columns) */
.cards { display: grid; gap: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 40px); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c5 { grid-template-columns: repeat(5, 1fr); }
.card { display: flex; flex-direction: column; padding-top: 26px; border-top: 1px dashed var(--dash); transition: border-color 0.35s ease; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--fg-2); font-size: 0.96rem; }
.card .link-arrow { margin-top: auto; padding-top: 14px; }
.card .ico-tile { transition: transform 0.5s var(--ease-out), background-color 0.35s ease, color 0.35s ease; }
a.card:hover { border-top-color: var(--ink); }
a.card:hover .ico-tile { transform: rotate(-8deg) scale(1.06); background: var(--sun); color: var(--ink); }
a.card[style] { padding: 26px; border: 0; border-radius: var(--r-img); }  /* the navy "All electrical services" tile */

.photo-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
.photo-cards .photo-card:nth-child(even) { margin-top: clamp(32px, 4vw, 64px); }  /* staggered, as in the reference */
.photo-card { display: block; }
.pc-img { position: relative; overflow: hidden; border-radius: var(--r-img); aspect-ratio: 4 / 3.2; background: var(--paper); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
a.photo-card:hover .pc-img img { transform: scale(1.06); }
.pc-body { padding-top: 18px; }
.pc-body h3 { font-size: 1.2rem; transition: color 0.3s ease; }
.pc-body p { color: var(--fg-2); font-size: 0.96rem; margin-bottom: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-img.is-portrait { aspect-ratio: 4 / 5; }  /* set by site.js for tall photos, so they are not cropped to landscape */
.split-img { position: relative; overflow: hidden; border-radius: var(--r-photo); aspect-ratio: 4 / 3.4; background: var(--paper); }
.split-img img { width: 100%; height: 116%; object-fit: cover; }
.split h2 + .lede { margin-top: 16px; }

.case { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(16px, 2vw, 24px); border-radius: clamp(24px, 3vw, 36px); background: var(--paper); }
.case-img { overflow: hidden; border-radius: var(--r-photo); aspect-ratio: 4 / 3.6; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: clamp(8px, 2vw, 24px) clamp(8px, 2vw, 32px) clamp(8px, 2vw, 24px) 0; }
.case-body .stars { margin-top: 4px; }
.case cite { display: block; font-style: normal; }
.case cite span { display: block; color: var(--fg-3); font-size: 0.94rem; }
.case-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.case-facts li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 0.9rem; box-shadow: inset 0 0 0 1px var(--line); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { padding-top: 22px; border-top: 1px dashed var(--dash); }
.stat b { display: block; font: 700 clamp(2.6rem, 4.2vw, 3.6rem)/1 "Basic", var(--font); color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.stat span { color: var(--fg-2); font-size: 0.95rem; line-height: 1.5; display: block; }

.acc-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r-photo); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.acc-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.acc-card .acc-logo { height: 72px; display: flex; align-items: center; }
.acc-card .acc-logo img { max-height: 72px; width: auto; }
.acc-card h3 { margin: 0; font-size: 1.15rem; }
.acc-card p { font-size: 0.95rem; color: var(--fg-2); }

/* About: story collage */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.intro-grid .lede { margin: 18px 0 16px; }
.collage { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.c-img { overflow: hidden; border-radius: var(--r-photo); background: var(--paper); }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-row: span 2; min-height: 420px; }  /* scoped: .cards.c2 (two-column grid) shares the class name */
.collage .c2 { aspect-ratio: 1 / 1.05; }
.mini-card { padding: 22px; border-radius: var(--r-photo); background: var(--paper); }
.mini-card .ico-tile { margin-bottom: 14px; }
.mini-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mini-card p { color: var(--fg-2); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: start; }
.form-card { position: relative; z-index: 2; padding: clamp(26px, 4vw, 44px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; }
.field label .req { color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-input); border: 1.5px solid #cfcbc3;
  font: 400 1rem/1.4 var(--font); color: var(--fg); background: var(--surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6d6a63; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9d998f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(242, 182, 53, 0.45); }
.field .err { display: none; font-size: 0.85rem; color: #b42318; }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #b42318; }
.field input:user-invalid ~ .err, .field select:user-invalid ~ .err, .field.has-error .err { display: block; animation: err-in 0.35s var(--ease-out); }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-foot small { color: var(--fg-3); font-size: 0.86rem; max-width: 40ch; }
.form-error { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fef3f2; color: #b42318; animation: err-in 0.35s var(--ease-out); }
.form-done { display: none; text-align: center; padding: 40px 10px; }
.form-done .ico-tile { margin: 0 auto 18px; width: 64px; height: 64px; font-size: 1.8rem; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-done { display: block; animation: done-in 0.7s var(--ease-out); }
@keyframes done-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.contact-list { display: grid; gap: 12px; }
.contact-item { position: relative; z-index: 2; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-photo); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
a.contact-item:hover { background: var(--sun-soft); }
.contact-item .ico-tile { margin: 0; width: 46px; height: 46px; font-size: 1.25rem; transition: transform 0.5s var(--ease-out); }
a.contact-item:hover .ico-tile { transform: rotate(-10deg); }
.contact-item small { display: block; color: var(--fg-3); font-size: 0.84rem; }
.contact-item strong { display: block; font-weight: 400; font-size: 1.02rem; }
.contact-grid .panel { background: var(--ink); color: var(--bg); border-radius: var(--r-photo); }
.contact-grid .panel h3 { color: var(--bg); }
.next-steps { display: grid; gap: 14px; margin-top: 12px; color: var(--on-dark-2); }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps li i { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(242, 182, 53, 0.22); color: var(--sun); font-size: 1rem; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 2em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--ink); text-decoration: underline 2px var(--sun); text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(32px, 5vw, 64px); }
.footer-panel { position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0 0; background: var(--ink); color: var(--bg); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-panel .mark-bg { color: rgba(242, 182, 53, 0.07); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-brand img { width: 121px; margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-2); font-size: 0.95rem; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(246, 244, 241, 0.1); font-size: 1.15rem; transition: background-color 0.3s ease, transform 0.4s var(--ease-out); }
.social a:hover { background: var(--sun); color: var(--ink); transform: rotate(-8deg); }
.footer-col h4 { color: var(--bg); font-size: 1rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--on-dark-2); font-size: 0.93rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 0.3s ease, background-size 0.45s var(--ease-out); }
.footer-col a:hover { color: var(--bg); background-size: 100% 1px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-2); font-size: 0.93rem; }
.footer-contact i { color: var(--sun); font-size: 1.1rem; margin-top: 2px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px dashed rgba(246, 244, 241, 0.2); align-items: center; }
.footer-badges span { display: grid; place-items: center; height: 60px; padding: 8px 14px; border-radius: 12px; background: #fff; }
.footer-badges img { max-height: 44px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 0.85rem; color: var(--on-dark-2); }
.footer-bottom a:hover { color: var(--bg); }
.footer-bottom .credit { color: var(--sun); }
.footer-bottom .credit:hover { color: var(--bg); }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-inline: auto; display: grid; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 40px rgba(var(--ink-rgb), 0.18); animation: banner-in 0.6s var(--ease-out); }
@keyframes banner-in { from { opacity: 0; transform: translateY(24px); } }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.95rem; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { flex: 0 0 120px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Motion helpers ---------- */
/* Split headings: each word rises out of its own mask (site.js wraps the words). */
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; }

/* Page transitions (native cross-document View Transitions); header stays put */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease-out) both; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-phone { display: none; }
  .nav-links > li > a { padding: 12px 9px; font-size: 0.76rem; }
  .nav-links > li > a::after { left: 9px; right: 9px; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-cta > .btn { display: none; }
  .hero-grid { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); }
  .hero-copy, .page-hero.no-img .hero-copy { grid-column: 2; padding: clamp(28px, 6vw, 48px) 0 clamp(28px, 5vw, 40px); }
  .hero .hero-copy { min-height: 0; justify-content: flex-start; }
  .hero-media, .hero .hero-media, .page-hero .hero-media { grid-column: 2; min-height: 0; aspect-ratio: 4 / 3; border-radius: var(--r-photo); }
  .page-hero .hero-media { margin-bottom: clamp(24px, 5vw, 40px); }
  .hero .hero-media { margin-bottom: 8px; }
  .editorial { grid-template-columns: 1fr; gap: 0; }
  .intro-media, .svc-wide, .split, .case, .answer, .intro-grid, .faq-grid, .areas-grid, .cta-card, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .svc-row { grid-template-columns: 1fr 1fr; }
  .svc-row .svc-tall { grid-row: span 2; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value, .value:nth-child(4n + 1) { border-left: 1px dashed var(--dash); padding-left: clamp(18px, 2.4vw, 32px); }
  .value:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .process-line { display: none; }
  .t-stage .t-card { grid-template-columns: 1fr; }
  .t-job { grid-column: 1; grid-row: auto; min-height: 0; }
  .t-spark { width: 110px; right: -20px; top: -34px; }
  .t-job { padding-top: 96px; }
  .faq-side { position: static; }
  .cards.c4, .cards.c5 { grid-template-columns: repeat(2, 1fr); }
  .cards.c3 { grid-template-columns: 1fr 1fr; }
  .photo-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .svc-row, .cards.c2, .cards.c3, .cards.c4, .cards.c5, .photo-cards, .ticks.two, .form-grid, .footer-top, .collage, .gallery { grid-template-columns: 1fr; }
  .svc-row .svc-tall { grid-row: auto; }
  .photo-cards .photo-card:nth-child(even) { margin-top: 0; }
  .values { grid-template-columns: 1fr; }
  .value, .value:nth-child(4n + 1), .value:nth-child(2n + 1) { border-left: 0; padding: 0 0 32px; border-bottom: 1px dashed var(--dash); }
  .process { grid-template-columns: 1fr; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
  .collage .c1 { grid-row: auto; min-height: 280px; }
  .map-card { min-height: 320px; }
  .badges { justify-content: center; gap: 20px 28px; }
  .badges img { height: 46px; } .badges img.tall { height: 56px; } .badges img.wide { height: 36px; } .badges img.ck { height: 20px; }
  .btn-row .btn { flex: 1 1 auto; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lightbox { padding-bottom: 88px; }
  .lb-figure img { max-height: calc(100dvh - 88px - 16px - 60px); }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
  .mobile-sheet { clip-path: none; opacity: 0; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
  body.menu-open .mobile-sheet { clip-path: none; opacity: 1; }
  .site-header.is-hidden { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
